From fff559a09029f7e4da22e28fdeb1f33ac461aaa4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Aug 2023 23:19:18 +0200 Subject: [PATCH] chore(deps): bump monaco-languageclient from 6.0.3 to 6.3.0 in /frontend (#2004) * chore(deps): bump monaco-languageclient from 6.0.3 to 6.3.0 in /frontend Bumps [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient/tree/HEAD/packages/client) from 6.0.3 to 6.3.0. - [Changelog](https://github.com/TypeFox/monaco-languageclient/blob/main/packages/client/CHANGELOG.md) - [Commits](https://github.com/TypeFox/monaco-languageclient/commits/HEAD/packages/client) --- updated-dependencies: - dependency-name: monaco-languageclient dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * update --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel --- frontend/package-lock.json | 232 +- frontend/package.json | 4 +- frontend/src/lib/components/Editor.svelte | 5 +- frontend/static/workers/cssWorker-es.js | 6317 +- frontend/static/workers/cssWorker-iife.js | 63 +- frontend/static/workers/editorWorker-es.js | 3277 +- frontend/static/workers/editorWorker-iife.js | 11 +- frontend/static/workers/htmlWorker-es.js | 4887 +- frontend/static/workers/htmlWorker-iife.js | 83 +- frontend/static/workers/jsonWorker-es.js | 6897 +- frontend/static/workers/jsonWorker-iife.js | 47 +- frontend/static/workers/tsWorker-es.js | 76809 ++++++++--------- frontend/static/workers/tsWorker-iife.js | 267 +- 13 files changed, 49453 insertions(+), 49446 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 8625973e11..3fee3f2440 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -31,7 +31,7 @@ "lodash": "^4.17.21", "lucide-svelte": "^0.246.0", "monaco-graphql": "^1.3.0", - "monaco-languageclient": "~6.0.3", + "monaco-languageclient": "~6.3.0", "openai": "^4.0.0-beta.4", "quill": "^1.3.7", "svelte-autosize": "^1.0.1", @@ -72,7 +72,7 @@ "eslint": "^8.44.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-svelte3": "^4.0.0", - "monaco-editor-workers": "~0.39.1", + "monaco-editor-workers": "~0.41.0", "ol": "^7.4.0", "openapi-typescript-codegen": "^0.25.0", "path-browserify": "^1.0.1", @@ -2073,6 +2073,15 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@vscode/vscode-languagedetection": { + "version": "1.0.22", + "resolved": "https://registry.npmjs.org/@vscode/vscode-languagedetection/-/vscode-languagedetection-1.0.22.tgz", + "integrity": "sha512-rQ/BgMyLuIXSmbA0MSkIPHtcOw14QkeDbAq19sjvaS9LTRr905yij0S8lsyqN5JgOsbtIx7pAcyOxFMzPmqhZQ==", + "peer": true, + "bin": { + "vscode-languagedetection": "cli/index.js" + } + }, "node_modules/@zerodevx/svelte-toast": { "version": "0.9.5", "resolved": "https://registry.npmjs.org/@zerodevx/svelte-toast/-/svelte-toast-0.9.5.tgz", @@ -6343,26 +6352,26 @@ } }, "node_modules/monaco-editor": { - "version": "0.37.1", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.37.1.tgz", - "integrity": "sha512-jLXEEYSbqMkT/FuJLBZAVWGuhIb4JNwHE9kPTorAVmsdZ4UzHAfgWxLsVtD7pLRFaOwYPhNG9nUCpmFL1t/dIg==" + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.40.0.tgz", + "integrity": "sha512-1wymccLEuFSMBvCk/jT1YDW/GuxMLYwnFwF9CDyYCxoTw2Pt379J3FUhwy9c43j51JdcxVPjwk0jm0EVDsBS2g==" }, "node_modules/monaco-editor-workers": { - "version": "0.39.1", - "resolved": "https://registry.npmjs.org/monaco-editor-workers/-/monaco-editor-workers-0.39.1.tgz", - "integrity": "sha512-QSP2ZCarlYaHGIZqzcz2BtI1mKstwJo4YfYu9m7ZwhkRd8HJEHpclKgE51AXtrncRch5zc05pHk4cQrFEdYsBQ==", + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/monaco-editor-workers/-/monaco-editor-workers-0.41.0.tgz", + "integrity": "sha512-suMPJA44bk/WapkSxbY3ELUQbznpvPHf23oz600Su9dSD75BZMjEQdCuZ9gVvligffMLnyNFJJEx5sSb75LiwQ==", "dev": true, "dependencies": { - "monaco-editor": "~0.39.0" + "monaco-editor": "~0.41.0" }, "peerDependencies": { - "monaco-editor": "~0.39.0" + "monaco-editor": "~0.41.0" } }, "node_modules/monaco-editor-workers/node_modules/monaco-editor": { - "version": "0.39.0", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.39.0.tgz", - "integrity": "sha512-zhbZ2Nx93tLR8aJmL2zI1mhJpsl87HMebNBM6R8z4pLfs8pj604pIVIVwyF1TivcfNtIPpMXL+nb3DsBmE/x6Q==", + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.41.0.tgz", + "integrity": "sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA==", "dev": true }, "node_modules/monaco-graphql": { @@ -6380,13 +6389,13 @@ } }, "node_modules/monaco-languageclient": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/monaco-languageclient/-/monaco-languageclient-6.0.3.tgz", - "integrity": "sha512-jxkmzazfp0boGiTMjbMGpfCRjUQc5DKbpN+zsHg5GBdHMcrB7FVl1NiN9yZ/JABVTAv4yxN4qwhJuzmUoSiQ4w==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/monaco-languageclient/-/monaco-languageclient-6.3.0.tgz", + "integrity": "sha512-AwagAWSDenfj52/M4FhN+fFJxa8jtWXyPyR6sNQWjSzRH7Bqg8gKUzxBLex58cZTa7pdCUMFrx+Ra5U7YDQW5Q==", "hasInstallScript": true, "dependencies": { - "monaco-editor": "~0.37.1", - "vscode": "npm:@codingame/monaco-vscode-api@~1.78.8", + "monaco-editor": "~0.40.0", + "vscode": "npm:@codingame/monaco-vscode-api@1.80.2", "vscode-jsonrpc": "~8.1.0", "vscode-languageclient": "~8.1.0" }, @@ -6395,8 +6404,8 @@ "npm": ">=9.0.0" }, "peerDependencies": { - "monaco-editor": "~0.37.1", - "vscode": "npm:@codingame/monaco-vscode-api@~1.78.8" + "monaco-editor": "~0.40.0", + "vscode": "npm:@codingame/monaco-vscode-api@1.80.2" }, "peerDependenciesMeta": { "monaco-editor": { @@ -9187,6 +9196,11 @@ "node": ">=8.0" } }, + "node_modules/toposort": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", + "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==" + }, "node_modules/tosource": { "version": "2.0.0-alpha.3", "resolved": "https://registry.npmjs.org/tosource/-/tosource-2.0.0-alpha.3.tgz", @@ -9666,16 +9680,27 @@ }, "node_modules/vscode": { "name": "@codingame/monaco-vscode-api", - "version": "1.78.8", - "resolved": "https://registry.npmjs.org/@codingame/monaco-vscode-api/-/monaco-vscode-api-1.78.8.tgz", - "integrity": "sha512-MfiZy/UCEAzpTeFg3TTsA2sgvjHb1X/cuwr7QNZJtYbvJ7X68EOPBXHhr6Kygm3eEKR73ZRkmfK/xX4d9hytTw==", + "version": "1.80.2", + "resolved": "https://registry.npmjs.org/@codingame/monaco-vscode-api/-/monaco-vscode-api-1.80.2.tgz", + "integrity": "sha512-B8vo78YAhnJNnlXIataVvUiv5ANoKk6foLLeJGmx+rSWx3Qk9MKiGYWJGF+L6UdgwFCRP824yY9Cedu0wEaXmw==", + "dependencies": { + "toposort": "^2.0.2" + }, "bin": { "monaco-treemending": "monaco-treemending.js" }, "peerDependencies": { - "monaco-editor": "0.37.1", + "@vscode/vscode-languagedetection": "^1.0.22", + "monaco-editor": "0.40.0", "vscode-oniguruma": "^1.7.0", "vscode-textmate": "^9.0.0", + "xterm": "5.2.1", + "xterm-addon-canvas": "0.4.0", + "xterm-addon-image": "0.4.1", + "xterm-addon-search": "0.12.0", + "xterm-addon-serialize": "0.10.0", + "xterm-addon-unicode11": "0.5.0", + "xterm-addon-webgl": "0.15.0", "yauzl": "^2.10.0" } }, @@ -9869,6 +9894,66 @@ "node": ">=0.4" } }, + "node_modules/xterm": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/xterm/-/xterm-5.2.1.tgz", + "integrity": "sha512-cs5Y1fFevgcdoh2hJROMVIWwoBHD80P1fIP79gopLHJIE4kTzzblanoivxTiQ4+92YM9IxS36H1q0MxIJXQBcA==", + "peer": true + }, + "node_modules/xterm-addon-canvas": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/xterm-addon-canvas/-/xterm-addon-canvas-0.4.0.tgz", + "integrity": "sha512-iTC8CdjX9+hGX7jiEuiDMXzHsY/FKJdVnbjep5xjRXNu7RKOk15xuecIkJ7HZORqMVPpr4DGS3jyd9XUoBuxqw==", + "peer": true, + "peerDependencies": { + "xterm": "^5.0.0" + } + }, + "node_modules/xterm-addon-image": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/xterm-addon-image/-/xterm-addon-image-0.4.1.tgz", + "integrity": "sha512-iJpYyvtbHg4oXSv+D6J73ZfCjnboZpbZ567MLplXDBlYSUknv3kvPTfVMPJATV7Zsx7+bDgyXboCh9vsDf/m/w==", + "peer": true, + "peerDependencies": { + "xterm": "~5.2.0" + } + }, + "node_modules/xterm-addon-search": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/xterm-addon-search/-/xterm-addon-search-0.12.0.tgz", + "integrity": "sha512-hXAuO7Ts2+Jf9K8mZrUx8IFd7c/Flgks/jyqA1L4reymyfmXtcsd+WDLel8R9Tgy2CLyKABVBP09/Ua/FmXcvg==", + "peer": true, + "peerDependencies": { + "xterm": "^5.0.0" + } + }, + "node_modules/xterm-addon-serialize": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/xterm-addon-serialize/-/xterm-addon-serialize-0.10.0.tgz", + "integrity": "sha512-Syp9eSBypn70iAczcJ+kAi0foQIepAvFS6x53JwI4XylTBHn87Ep9fovslhwmUV3rwH2yMnpdDjXH5W/whx2lA==", + "peer": true, + "peerDependencies": { + "xterm": "^5.0.0" + } + }, + "node_modules/xterm-addon-unicode11": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xterm-addon-unicode11/-/xterm-addon-unicode11-0.5.0.tgz", + "integrity": "sha512-Jm4/g4QiTxiKiTbYICQgC791ubhIZyoIwxAIgOW8z8HWFNY+lwk+dwaKEaEeGBfM48Vk8fklsUW9u/PlenYEBg==", + "peer": true, + "peerDependencies": { + "xterm": "^5.0.0" + } + }, + "node_modules/xterm-addon-webgl": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/xterm-addon-webgl/-/xterm-addon-webgl-0.15.0.tgz", + "integrity": "sha512-ZLcqogMFHr4g/YRhcCh3xE8tTklnyut/M+O/XhVsFBRB/YCvYhPdLQ5/AQk54V0wjWAQpa8CF3W8DVR9OqyMCg==", + "peer": true, + "peerDependencies": { + "xterm": "^5.0.0" + } + }, "node_modules/y-leveldb": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/y-leveldb/-/y-leveldb-0.1.2.tgz", @@ -11367,6 +11452,12 @@ "eslint-visitor-keys": "^3.3.0" } }, + "@vscode/vscode-languagedetection": { + "version": "1.0.22", + "resolved": "https://registry.npmjs.org/@vscode/vscode-languagedetection/-/vscode-languagedetection-1.0.22.tgz", + "integrity": "sha512-rQ/BgMyLuIXSmbA0MSkIPHtcOw14QkeDbAq19sjvaS9LTRr905yij0S8lsyqN5JgOsbtIx7pAcyOxFMzPmqhZQ==", + "peer": true + }, "@zerodevx/svelte-toast": { "version": "0.9.5", "resolved": "https://registry.npmjs.org/@zerodevx/svelte-toast/-/svelte-toast-0.9.5.tgz", @@ -14397,23 +14488,23 @@ } }, "monaco-editor": { - "version": "0.37.1", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.37.1.tgz", - "integrity": "sha512-jLXEEYSbqMkT/FuJLBZAVWGuhIb4JNwHE9kPTorAVmsdZ4UzHAfgWxLsVtD7pLRFaOwYPhNG9nUCpmFL1t/dIg==" + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.40.0.tgz", + "integrity": "sha512-1wymccLEuFSMBvCk/jT1YDW/GuxMLYwnFwF9CDyYCxoTw2Pt379J3FUhwy9c43j51JdcxVPjwk0jm0EVDsBS2g==" }, "monaco-editor-workers": { - "version": "0.39.1", - "resolved": "https://registry.npmjs.org/monaco-editor-workers/-/monaco-editor-workers-0.39.1.tgz", - "integrity": "sha512-QSP2ZCarlYaHGIZqzcz2BtI1mKstwJo4YfYu9m7ZwhkRd8HJEHpclKgE51AXtrncRch5zc05pHk4cQrFEdYsBQ==", + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/monaco-editor-workers/-/monaco-editor-workers-0.41.0.tgz", + "integrity": "sha512-suMPJA44bk/WapkSxbY3ELUQbznpvPHf23oz600Su9dSD75BZMjEQdCuZ9gVvligffMLnyNFJJEx5sSb75LiwQ==", "dev": true, "requires": { - "monaco-editor": "~0.39.0" + "monaco-editor": "~0.41.0" }, "dependencies": { "monaco-editor": { - "version": "0.39.0", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.39.0.tgz", - "integrity": "sha512-zhbZ2Nx93tLR8aJmL2zI1mhJpsl87HMebNBM6R8z4pLfs8pj604pIVIVwyF1TivcfNtIPpMXL+nb3DsBmE/x6Q==", + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.41.0.tgz", + "integrity": "sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA==", "dev": true } } @@ -14428,12 +14519,12 @@ } }, "monaco-languageclient": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/monaco-languageclient/-/monaco-languageclient-6.0.3.tgz", - "integrity": "sha512-jxkmzazfp0boGiTMjbMGpfCRjUQc5DKbpN+zsHg5GBdHMcrB7FVl1NiN9yZ/JABVTAv4yxN4qwhJuzmUoSiQ4w==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/monaco-languageclient/-/monaco-languageclient-6.3.0.tgz", + "integrity": "sha512-AwagAWSDenfj52/M4FhN+fFJxa8jtWXyPyR6sNQWjSzRH7Bqg8gKUzxBLex58cZTa7pdCUMFrx+Ra5U7YDQW5Q==", "requires": { - "monaco-editor": "~0.37.1", - "vscode": "npm:@codingame/monaco-vscode-api@~1.78.8", + "monaco-editor": "~0.40.0", + "vscode": "npm:@codingame/monaco-vscode-api@1.80.2", "vscode-jsonrpc": "~8.1.0", "vscode-languageclient": "~8.1.0" } @@ -16385,6 +16476,11 @@ "is-number": "^7.0.0" } }, + "toposort": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", + "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==" + }, "tosource": { "version": "2.0.0-alpha.3", "resolved": "https://registry.npmjs.org/tosource/-/tosource-2.0.0-alpha.3.tgz", @@ -16665,10 +16761,12 @@ "requires": {} }, "vscode": { - "version": "npm:@codingame/monaco-vscode-api@1.78.8", - "resolved": "https://registry.npmjs.org/@codingame/monaco-vscode-api/-/monaco-vscode-api-1.78.8.tgz", - "integrity": "sha512-MfiZy/UCEAzpTeFg3TTsA2sgvjHb1X/cuwr7QNZJtYbvJ7X68EOPBXHhr6Kygm3eEKR73ZRkmfK/xX4d9hytTw==", - "requires": {} + "version": "npm:@codingame/monaco-vscode-api@1.80.2", + "resolved": "https://registry.npmjs.org/@codingame/monaco-vscode-api/-/monaco-vscode-api-1.80.2.tgz", + "integrity": "sha512-B8vo78YAhnJNnlXIataVvUiv5ANoKk6foLLeJGmx+rSWx3Qk9MKiGYWJGF+L6UdgwFCRP824yY9Cedu0wEaXmw==", + "requires": { + "toposort": "^2.0.2" + } }, "vscode-jsonrpc": { "version": "8.1.0", @@ -16830,6 +16928,54 @@ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "optional": true }, + "xterm": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/xterm/-/xterm-5.2.1.tgz", + "integrity": "sha512-cs5Y1fFevgcdoh2hJROMVIWwoBHD80P1fIP79gopLHJIE4kTzzblanoivxTiQ4+92YM9IxS36H1q0MxIJXQBcA==", + "peer": true + }, + "xterm-addon-canvas": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/xterm-addon-canvas/-/xterm-addon-canvas-0.4.0.tgz", + "integrity": "sha512-iTC8CdjX9+hGX7jiEuiDMXzHsY/FKJdVnbjep5xjRXNu7RKOk15xuecIkJ7HZORqMVPpr4DGS3jyd9XUoBuxqw==", + "peer": true, + "requires": {} + }, + "xterm-addon-image": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/xterm-addon-image/-/xterm-addon-image-0.4.1.tgz", + "integrity": "sha512-iJpYyvtbHg4oXSv+D6J73ZfCjnboZpbZ567MLplXDBlYSUknv3kvPTfVMPJATV7Zsx7+bDgyXboCh9vsDf/m/w==", + "peer": true, + "requires": {} + }, + "xterm-addon-search": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/xterm-addon-search/-/xterm-addon-search-0.12.0.tgz", + "integrity": "sha512-hXAuO7Ts2+Jf9K8mZrUx8IFd7c/Flgks/jyqA1L4reymyfmXtcsd+WDLel8R9Tgy2CLyKABVBP09/Ua/FmXcvg==", + "peer": true, + "requires": {} + }, + "xterm-addon-serialize": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/xterm-addon-serialize/-/xterm-addon-serialize-0.10.0.tgz", + "integrity": "sha512-Syp9eSBypn70iAczcJ+kAi0foQIepAvFS6x53JwI4XylTBHn87Ep9fovslhwmUV3rwH2yMnpdDjXH5W/whx2lA==", + "peer": true, + "requires": {} + }, + "xterm-addon-unicode11": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xterm-addon-unicode11/-/xterm-addon-unicode11-0.5.0.tgz", + "integrity": "sha512-Jm4/g4QiTxiKiTbYICQgC791ubhIZyoIwxAIgOW8z8HWFNY+lwk+dwaKEaEeGBfM48Vk8fklsUW9u/PlenYEBg==", + "peer": true, + "requires": {} + }, + "xterm-addon-webgl": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/xterm-addon-webgl/-/xterm-addon-webgl-0.15.0.tgz", + "integrity": "sha512-ZLcqogMFHr4g/YRhcCh3xE8tTklnyut/M+O/XhVsFBRB/YCvYhPdLQ5/AQk54V0wjWAQpa8CF3W8DVR9OqyMCg==", + "peer": true, + "requires": {} + }, "y-leveldb": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/y-leveldb/-/y-leveldb-0.1.2.tgz", diff --git a/frontend/package.json b/frontend/package.json index e204f3b125..5b3cab21e8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -39,7 +39,7 @@ "eslint": "^8.44.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-svelte3": "^4.0.0", - "monaco-editor-workers": "~0.39.1", + "monaco-editor-workers": "~0.41.0", "ol": "^7.4.0", "openapi-typescript-codegen": "^0.25.0", "path-browserify": "^1.0.1", @@ -95,7 +95,7 @@ "lodash": "^4.17.21", "lucide-svelte": "^0.246.0", "monaco-graphql": "^1.3.0", - "monaco-languageclient": "~6.0.3", + "monaco-languageclient": "~6.3.0", "openai": "^4.0.0-beta.4", "quill": "^1.3.7", "svelte-autosize": "^1.0.1", diff --git a/frontend/src/lib/components/Editor.svelte b/frontend/src/lib/components/Editor.svelte index 5420a87a60..13f32e2ce0 100644 --- a/frontend/src/lib/components/Editor.svelte +++ b/frontend/src/lib/components/Editor.svelte @@ -332,11 +332,8 @@ try { await initServices({ enableThemeService: false, - enableModelEditorService: true, + enableModelService: true, enableNotificationService: false, - modelEditorServiceConfig: { - useDefaultFunction: true - }, debugLogging: false }) } catch (e) { diff --git a/frontend/static/workers/cssWorker-es.js b/frontend/static/workers/cssWorker-es.js index beb177fb7b..51b985a52a 100644 --- a/frontend/static/workers/cssWorker-es.js +++ b/frontend/static/workers/cssWorker-es.js @@ -1,7 +1,7 @@ -var Gl = Object.defineProperty; -var Jl = (t, e, n) => e in t ? Gl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; -var Yt = (t, e, n) => (Jl(t, typeof e != "symbol" ? e + "" : e, n), n); -class Xl { +var $l = Object.defineProperty; +var Hl = (t, e, n) => e in t ? $l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; +var Kt = (t, e, n) => (Hl(t, typeof e != "symbol" ? e + "" : e, n), n); +class Gl { constructor() { this.listeners = [], this.unexpectedErrorHandler = function(e) { setTimeout(() => { @@ -13,25 +13,11 @@ class Xl { }, 0); }; } - addListener(e) { - return this.listeners.push(e), () => { - this._removeListener(e); - }; - } emit(e) { this.listeners.forEach((n) => { n(e); }); } - _removeListener(e) { - this.listeners.splice(this.listeners.indexOf(e), 1); - } - setUnexpectedErrorHandler(e) { - this.unexpectedErrorHandler = e; - } - getUnexpectedErrorHandler() { - return this.unexpectedErrorHandler; - } onUnexpectedError(e) { this.unexpectedErrorHandler(e), this.emit(e); } @@ -40,11 +26,11 @@ class Xl { this.unexpectedErrorHandler(e); } } -const Yl = new Xl(); +const Jl = new Gl(); function Go(t) { - Kl(t) || Yl.onUnexpectedError(t); + Xl(t) || Jl.onUnexpectedError(t); } -function Xi(t) { +function Qi(t) { if (t instanceof Error) { const { name: e, message: n } = t, r = t.stacktrace || t.stack; return { @@ -57,13 +43,13 @@ function Xi(t) { } return t; } -const Ir = "Canceled"; -function Kl(t) { - return t instanceof Ql ? !0 : t instanceof Error && t.name === Ir && t.message === Ir; +const Tr = "Canceled"; +function Xl(t) { + return t instanceof Yl ? !0 : t instanceof Error && t.name === Tr && t.message === Tr; } -class Ql extends Error { +class Yl extends Error { constructor() { - super(Ir), this.name = this.message; + super(Tr), this.name = this.message; } } class $t extends Error { @@ -80,20 +66,19 @@ class $t extends Error { return e.name === "CodeExpectedError"; } } -class Dt extends Error { +class Yt extends Error { constructor(e) { - super(e || "An unexpected bug occurred."), Object.setPrototypeOf(this, Dt.prototype); - debugger; + super(e || "An unexpected bug occurred."), Object.setPrototypeOf(this, Yt.prototype); } } -function Zl(t) { +function Kl(t) { const e = this; let n = !1, r; return function() { return n || (n = !0, r = t.apply(e, arguments)), r; }; } -var qn; +var Gn; (function(t) { function e(w) { return w && typeof w == "object" && typeof w[Symbol.iterator] == "function"; @@ -142,23 +127,23 @@ var qn; x(k) && (yield k); } t.filter = u; - function* f(w, x) { + function* m(w, x) { let k = 0; - for (const F of w) - yield x(F, k++); + for (const P of w) + yield x(P, k++); } - t.map = f; - function* m(...w) { + t.map = m; + function* f(...w) { for (const x of w) for (const k of x) yield k; } - t.concat = m; + t.concat = f; function g(w, x, k) { - let F = k; + let P = k; for (const N of w) - F = x(F, N); - return F; + P = x(P, N); + return P; } t.reduce = g; function* b(w, x, k = w.length) { @@ -170,22 +155,21 @@ var qn; const k = []; if (x === 0) return [k, w]; - const F = w[Symbol.iterator](); + const P = w[Symbol.iterator](); for (let N = 0; N < x; N++) { - const j = F.next(); - if (j.done) + const V = P.next(); + if (V.done) return [k, t.empty()]; - k.push(j.value); + k.push(V.value); } return [k, { [Symbol.iterator]() { - return F; + return P; } }]; } t.consume = y; -})(qn || (qn = {})); -globalThis && globalThis.__awaiter; +})(Gn || (Gn = {})); function Jo(t) { - if (qn.is(t)) { + if (Gn.is(t)) { const e = []; for (const n of t) if (n) @@ -202,12 +186,12 @@ function Jo(t) { } else if (t) return t.dispose(), t; } -function ec(...t) { - return $n(() => Jo(t)); +function Ql(...t) { + return fn(() => Jo(t)); } -function $n(t) { +function fn(t) { return { - dispose: Zl(() => { + dispose: Kl(() => { t(); }) }; @@ -253,7 +237,7 @@ class Et { } } Et.DISABLE_DISPOSED_WARNING = !1; -class dr { +class mn { constructor() { this._store = new Et(), this._store; } @@ -269,44 +253,31 @@ class dr { return this._store.add(e); } } -dr.None = Object.freeze({ dispose() { +mn.None = Object.freeze({ dispose() { } }); -class tc { - constructor() { - this.dispose = () => { - }, this.unset = () => { - }, this.isset = () => !1; - } - set(e) { - let n = e; - return this.unset = () => n = void 0, this.isset = () => n !== void 0, this.dispose = () => { - n && (n(), n = void 0); - }, this; - } -} -let se = class Lr { +let oe = class Wr { constructor(e) { - this.element = e, this.next = Lr.Undefined, this.prev = Lr.Undefined; + this.element = e, this.next = Wr.Undefined, this.prev = Wr.Undefined; } }; -se.Undefined = new se(void 0); -class Hn { +oe.Undefined = new oe(void 0); +class Zl { constructor() { - this._first = se.Undefined, this._last = se.Undefined, this._size = 0; + this._first = oe.Undefined, this._last = oe.Undefined, this._size = 0; } get size() { return this._size; } isEmpty() { - return this._first === se.Undefined; + return this._first === oe.Undefined; } clear() { let e = this._first; - for (; e !== se.Undefined; ) { + for (; e !== oe.Undefined; ) { const n = e.next; - e.prev = se.Undefined, e.next = se.Undefined, e = n; + e.prev = oe.Undefined, e.next = oe.Undefined, e = n; } - this._first = se.Undefined, this._last = se.Undefined, this._size = 0; + this._first = oe.Undefined, this._last = oe.Undefined, this._size = 0; } unshift(e) { return this._insert(e, !1); @@ -315,8 +286,8 @@ class Hn { return this._insert(e, !0); } _insert(e, n) { - const r = new se(e); - if (this._first === se.Undefined) + const r = new oe(e); + if (this._first === oe.Undefined) this._first = r, this._last = r; else if (n) { const s = this._last; @@ -332,390 +303,298 @@ class Hn { }; } shift() { - if (this._first !== se.Undefined) { + if (this._first !== oe.Undefined) { const e = this._first.element; return this._remove(this._first), e; } } pop() { - if (this._last !== se.Undefined) { + if (this._last !== oe.Undefined) { const e = this._last.element; return this._remove(this._last), e; } } _remove(e) { - if (e.prev !== se.Undefined && e.next !== se.Undefined) { + if (e.prev !== oe.Undefined && e.next !== oe.Undefined) { const n = e.prev; n.next = e.next, e.next.prev = n; } else - e.prev === se.Undefined && e.next === se.Undefined ? (this._first = se.Undefined, this._last = se.Undefined) : e.next === se.Undefined ? (this._last = this._last.prev, this._last.next = se.Undefined) : e.prev === se.Undefined && (this._first = this._first.next, this._first.prev = se.Undefined); + e.prev === oe.Undefined && e.next === oe.Undefined ? (this._first = oe.Undefined, this._last = oe.Undefined) : e.next === oe.Undefined ? (this._last = this._last.prev, this._last.next = oe.Undefined) : e.prev === oe.Undefined && (this._first = this._first.next, this._first.prev = oe.Undefined); this._size -= 1; } *[Symbol.iterator]() { let e = this._first; - for (; e !== se.Undefined; ) + for (; e !== oe.Undefined; ) yield e.element, e = e.next; } } -globalThis && globalThis.__awaiter; -let nc = typeof document < "u" && document.location && document.location.hash.indexOf("pseudo=true") >= 0; -function rc(t, e) { - let n; - return e.length === 0 ? n = t : n = t.replace(/\{(\d+)\}/g, (r, i) => { - const s = i[0], a = e[s]; - let o = r; - return typeof a == "string" ? o = a : (typeof a == "number" || typeof a == "boolean" || a === void 0 || a === null) && (o = String(a)), o; - }), nc && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"), n; -} -function ic(t, e, ...n) { - return rc(e, n); -} -var gr; -const Wt = "en"; -let Tr = !1, Wr = !1, br = !1, Xo = !1, En, On = Wt, Yi = Wt, sc, qe; -const De = typeof self == "object" ? self : typeof global == "object" ? global : {}; -let Se; -typeof De.vscode < "u" && typeof De.vscode.process < "u" ? Se = De.vscode.process : typeof process < "u" && (Se = process); -const ac = typeof ((gr = Se == null ? void 0 : Se.versions) === null || gr === void 0 ? void 0 : gr.electron) == "string", oc = ac && (Se == null ? void 0 : Se.type) === "renderer"; -if (typeof navigator == "object" && !oc) - qe = navigator.userAgent, Tr = qe.indexOf("Windows") >= 0, Wr = qe.indexOf("Macintosh") >= 0, (qe.indexOf("Macintosh") >= 0 || qe.indexOf("iPad") >= 0 || qe.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, br = qe.indexOf("Linux") >= 0, (qe == null ? void 0 : qe.indexOf("Mobi")) >= 0, Xo = !0, // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale` - // to ensure that the NLS AMD Loader plugin has been loaded and configured. - // This is because the loader plugin decides what the default locale is based on - // how it's able to resolve the strings. - ic({ key: "ensureLoaderPluginIsLoaded", comment: ["{Locked}"] }, "_"), En = Wt, On = En, Yi = navigator.language; -else if (typeof Se == "object") { - Tr = Se.platform === "win32", Wr = Se.platform === "darwin", br = Se.platform === "linux", br && Se.env.SNAP && Se.env.SNAP_REVISION, Se.env.CI || Se.env.BUILD_ARTIFACTSTAGINGDIRECTORY, En = Wt, On = Wt; - const t = Se.env.VSCODE_NLS_CONFIG; - if (t) - try { - const e = JSON.parse(t), n = e.availableLanguages["*"]; - En = e.locale, Yi = e.osLocale, On = n || Wt, sc = e._translationsConfigFile; - } catch { - } -} else - console.error("Unable to resolve platform."); -const pn = Tr, lc = Wr; -Xo && De.importScripts; -const Qe = qe, lt = On; -var Ki; -(function(t) { - function e() { - return lt; - } - t.value = e; - function n() { - return lt.length === 2 ? lt === "en" : lt.length >= 3 ? lt[0] === "e" && lt[1] === "n" && lt[2] === "-" : !1; - } - t.isDefaultVariant = n; - function r() { - return lt === "en"; - } - t.isDefault = r; -})(Ki || (Ki = {})); -const cc = typeof De.postMessage == "function" && !De.importScripts; -(() => { - if (cc) { - const t = []; - De.addEventListener("message", (n) => { - if (n.data && n.data.vscodeScheduleAsyncWork) - for (let r = 0, i = t.length; r < i; r++) { - const s = t[r]; - if (s.id === n.data.vscodeScheduleAsyncWork) { - t.splice(r, 1), s.callback(); - return; - } - } - }); - let e = 0; - return (n) => { - const r = ++e; - t.push({ - id: r, - callback: n - }), De.postMessage({ vscodeScheduleAsyncWork: r }, "*"); - }; - } - return (t) => setTimeout(t); -})(); -const hc = !!(Qe && Qe.indexOf("Chrome") >= 0); -Qe && Qe.indexOf("Firefox") >= 0; -!hc && Qe && Qe.indexOf("Safari") >= 0; -Qe && Qe.indexOf("Edg/") >= 0; -Qe && Qe.indexOf("Android") >= 0; -const dc = De.performance && typeof De.performance.now == "function"; +const ec = globalThis.performance && typeof globalThis.performance.now == "function"; class ur { - static create(e = !0) { + static create(e) { return new ur(e); } constructor(e) { - this._highResolution = dc && e, this._startTime = this._now(), this._stopTime = -1; + this._now = ec && e === !1 ? Date.now : globalThis.performance.now.bind(globalThis.performance), this._startTime = this._now(), this._stopTime = -1; } stop() { this._stopTime = this._now(); } - reset() { - this._startTime = this._now(), this._stopTime = -1; - } elapsed() { return this._stopTime !== -1 ? this._stopTime - this._startTime : this._now() - this._startTime; } - _now() { - return this._highResolution ? De.performance.now() : Date.now(); - } } -globalThis && globalThis.__awaiter; var Or; (function(t) { - t.None = () => dr.None; - function e(P, z) { - return h(P, () => { - }, 0, void 0, !0, void 0, z); + t.None = () => mn.None; + function e(D, E) { + return h(D, () => { + }, 0, void 0, !0, void 0, E); } t.defer = e; - function n(P) { - return (z, A = null, R) => { - let L = !1, O; - return O = P((K) => { - if (!L) - return O ? O.dispose() : L = !0, z.call(A, K); - }, null, R), L && O.dispose(), O; + function n(D) { + return (E, R = null, F) => { + let W = !1, B; + return B = D((K) => { + if (!W) + return B ? B.dispose() : W = !0, E.call(R, K); + }, null, F), W && B.dispose(), B; }; } t.once = n; - function r(P, z, A) { - return c((R, L = null, O) => P((K) => R.call(L, z(K)), null, O), A); + function r(D, E, R) { + return c((F, W = null, B) => D((K) => F.call(W, E(K)), null, B), R); } t.map = r; - function i(P, z, A) { - return c((R, L = null, O) => P((K) => { - z(K), R.call(L, K); - }, null, O), A); + function i(D, E, R) { + return c((F, W = null, B) => D((K) => { + E(K), F.call(W, K); + }, null, B), R); } t.forEach = i; - function s(P, z, A) { - return c((R, L = null, O) => P((K) => z(K) && R.call(L, K), null, O), A); + function s(D, E, R) { + return c((F, W = null, B) => D((K) => E(K) && F.call(W, K), null, B), R); } t.filter = s; - function a(P) { - return P; + function a(D) { + return D; } t.signal = a; - function o(...P) { - return (z, A = null, R) => ec(...P.map((L) => L((O) => z.call(A, O), null, R))); + function o(...D) { + return (E, R = null, F) => Ql(...D.map((W) => W((B) => E.call(R, B), null, F))); } t.any = o; - function l(P, z, A, R) { - let L = A; - return r(P, (O) => (L = z(L, O), L), R); + function l(D, E, R, F) { + let W = R; + return r(D, (B) => (W = E(W, B), W), F); } t.reduce = l; - function c(P, z) { - let A; - const R = { + function c(D, E) { + let R; + const F = { onWillAddFirstListener() { - A = P(L.fire, L); + R = D(W.fire, W); }, onDidRemoveLastListener() { - A == null || A.dispose(); + R == null || R.dispose(); } - }, L = new Ke(R); - return z == null || z.add(L), L.event; + }, W = new Xe(F); + return E == null || E.add(W), W.event; } - function h(P, z, A = 100, R = !1, L = !1, O, K) { - let re, E, C, D = 0, I; + function h(D, E, R = 100, F = !1, W = !1, B, K) { + let ie, A, C, M = 0, L; const X = { - leakWarningThreshold: O, + leakWarningThreshold: B, onWillAddFirstListener() { - re = P((ee) => { - D++, E = z(E, ee), R && !C && (G.fire(E), E = void 0), I = () => { - const Ie = E; - E = void 0, C = void 0, (!R || D > 1) && G.fire(Ie), D = 0; - }, typeof A == "number" ? (clearTimeout(C), C = setTimeout(I, A)) : C === void 0 && (C = 0, queueMicrotask(I)); + ie = D((ee) => { + M++, A = E(A, ee), F && !C && (G.fire(A), A = void 0), L = () => { + const Le = A; + A = void 0, C = void 0, (!F || M > 1) && G.fire(Le), M = 0; + }, typeof R == "number" ? (clearTimeout(C), C = setTimeout(L, R)) : C === void 0 && (C = 0, queueMicrotask(L)); }); }, onWillRemoveListener() { - L && D > 0 && (I == null || I()); + W && M > 0 && (L == null || L()); }, onDidRemoveLastListener() { - I = void 0, re.dispose(); + L = void 0, ie.dispose(); } - }, G = new Ke(X); + }, G = new Xe(X); return K == null || K.add(G), G.event; } t.debounce = h; - function u(P, z = 0, A) { - return t.debounce(P, (R, L) => R ? (R.push(L), R) : [L], z, void 0, !0, void 0, A); + function u(D, E = 0, R) { + return t.debounce(D, (F, W) => F ? (F.push(W), F) : [W], E, void 0, !0, void 0, R); } t.accumulate = u; - function f(P, z = (R, L) => R === L, A) { - let R = !0, L; - return s(P, (O) => { - const K = R || !z(O, L); - return R = !1, L = O, K; - }, A); + function m(D, E = (F, W) => F === W, R) { + let F = !0, W; + return s(D, (B) => { + const K = F || !E(B, W); + return F = !1, W = B, K; + }, R); } - t.latch = f; - function m(P, z, A) { + t.latch = m; + function f(D, E, R) { return [ - t.filter(P, z, A), - t.filter(P, (R) => !z(R), A) + t.filter(D, E, R), + t.filter(D, (F) => !E(F), R) ]; } - t.split = m; - function g(P, z = !1, A = []) { - let R = A.slice(), L = P((re) => { - R ? R.push(re) : K.fire(re); + t.split = f; + function g(D, E = !1, R = []) { + let F = R.slice(), W = D((ie) => { + F ? F.push(ie) : K.fire(ie); }); - const O = () => { - R == null || R.forEach((re) => K.fire(re)), R = null; - }, K = new Ke({ + const B = () => { + F == null || F.forEach((ie) => K.fire(ie)), F = null; + }, K = new Xe({ onWillAddFirstListener() { - L || (L = P((re) => K.fire(re))); + W || (W = D((ie) => K.fire(ie))); }, onDidAddFirstListener() { - R && (z ? setTimeout(O) : O()); + F && (E ? setTimeout(B) : B()); }, onDidRemoveLastListener() { - L && L.dispose(), L = null; + W && W.dispose(), W = null; } }); return K.event; } t.buffer = g; class b { - constructor(z) { - this.event = z, this.disposables = new Et(); + constructor(E) { + this.event = E, this.disposables = new Et(); } /** @see {@link Event.map} */ - map(z) { - return new b(r(this.event, z, this.disposables)); + map(E) { + return new b(r(this.event, E, this.disposables)); } /** @see {@link Event.forEach} */ - forEach(z) { - return new b(i(this.event, z, this.disposables)); + forEach(E) { + return new b(i(this.event, E, this.disposables)); } - filter(z) { - return new b(s(this.event, z, this.disposables)); + filter(E) { + return new b(s(this.event, E, this.disposables)); } /** @see {@link Event.reduce} */ - reduce(z, A) { - return new b(l(this.event, z, A, this.disposables)); + reduce(E, R) { + return new b(l(this.event, E, R, this.disposables)); } /** @see {@link Event.reduce} */ latch() { - return new b(f(this.event, void 0, this.disposables)); + return new b(m(this.event, void 0, this.disposables)); } - debounce(z, A = 100, R = !1, L = !1, O) { - return new b(h(this.event, z, A, R, L, O, this.disposables)); + debounce(E, R = 100, F = !1, W = !1, B) { + return new b(h(this.event, E, R, F, W, B, this.disposables)); } /** * Attach a listener to the event. */ - on(z, A, R) { - return this.event(z, A, R); + on(E, R, F) { + return this.event(E, R, F); } /** @see {@link Event.once} */ - once(z, A, R) { - return n(this.event)(z, A, R); + once(E, R, F) { + return n(this.event)(E, R, F); } dispose() { this.disposables.dispose(); } } - function y(P) { - return new b(P); + function y(D) { + return new b(D); } t.chain = y; - function w(P, z, A = (R) => R) { - const R = (...re) => K.fire(A(...re)), L = () => P.on(z, R), O = () => P.removeListener(z, R), K = new Ke({ onWillAddFirstListener: L, onDidRemoveLastListener: O }); + function w(D, E, R = (F) => F) { + const F = (...ie) => K.fire(R(...ie)), W = () => D.on(E, F), B = () => D.removeListener(E, F), K = new Xe({ onWillAddFirstListener: W, onDidRemoveLastListener: B }); return K.event; } t.fromNodeEventEmitter = w; - function x(P, z, A = (R) => R) { - const R = (...re) => K.fire(A(...re)), L = () => P.addEventListener(z, R), O = () => P.removeEventListener(z, R), K = new Ke({ onWillAddFirstListener: L, onDidRemoveLastListener: O }); + function x(D, E, R = (F) => F) { + const F = (...ie) => K.fire(R(...ie)), W = () => D.addEventListener(E, F), B = () => D.removeEventListener(E, F), K = new Xe({ onWillAddFirstListener: W, onDidRemoveLastListener: B }); return K.event; } t.fromDOMEventEmitter = x; - function k(P) { - return new Promise((z) => n(P)(z)); + function k(D) { + return new Promise((E) => n(D)(E)); } t.toPromise = k; - function F(P, z) { - return z(void 0), P((A) => z(A)); + function P(D, E) { + return E(void 0), D((R) => E(R)); } - t.runAndSubscribe = F; - function N(P, z) { - let A = null; - function R(O) { - A == null || A.dispose(), A = new Et(), z(O, A); + t.runAndSubscribe = P; + function N(D, E) { + let R = null; + function F(B) { + R == null || R.dispose(), R = new Et(), E(B, R); } - R(void 0); - const L = P((O) => R(O)); - return $n(() => { - L.dispose(), A == null || A.dispose(); + F(void 0); + const W = D((B) => F(B)); + return fn(() => { + W.dispose(), R == null || R.dispose(); }); } t.runAndSubscribeWithStore = N; - class j { - constructor(z, A) { - this._observable = z, this._counter = 0, this._hasChanged = !1; - const R = { + class V { + constructor(E, R) { + this._observable = E, this._counter = 0, this._hasChanged = !1; + const F = { onWillAddFirstListener: () => { - z.addObserver(this); + E.addObserver(this); }, onDidRemoveLastListener: () => { - z.removeObserver(this); + E.removeObserver(this); } }; - this.emitter = new Ke(R), A && A.add(this.emitter); + this.emitter = new Xe(F), R && R.add(this.emitter); } - beginUpdate(z) { + beginUpdate(E) { this._counter++; } - handlePossibleChange(z) { + handlePossibleChange(E) { } - handleChange(z, A) { + handleChange(E, R) { this._hasChanged = !0; } - endUpdate(z) { + endUpdate(E) { this._counter--, this._counter === 0 && (this._observable.reportChanges(), this._hasChanged && (this._hasChanged = !1, this.emitter.fire(this._observable.get()))); } } - function H(P, z) { - return new j(P, z).emitter.event; + function I(D, E) { + return new V(D, E).emitter.event; } - t.fromObservable = H; - function B(P) { - return (z) => { - let A = 0, R = !1; - const L = { + t.fromObservable = I; + function T(D) { + return (E) => { + let R = 0, F = !1; + const W = { beginUpdate() { - A++; + R++; }, endUpdate() { - A--, A === 0 && (P.reportChanges(), R && (R = !1, z())); + R--, R === 0 && (D.reportChanges(), F && (F = !1, E())); }, handlePossibleChange() { }, handleChange() { - R = !0; + F = !0; } }; - return P.addObserver(L), { + return D.addObserver(W), D.reportChanges(), { dispose() { - P.removeObserver(L); + D.removeObserver(W); } }; }; } - t.fromObservableLight = B; + t.fromObservableLight = T; })(Or || (Or = {})); class Ht { constructor(e) { this.listenerCount = 0, this.invocationCount = 0, this.elapsedOverall = 0, this.durations = [], this.name = `${e}_${Ht._idPool++}`, Ht.all.add(this); } start(e) { - this._stopWatch = new ur(!0), this.listenerCount = e; + this._stopWatch = new ur(), this.listenerCount = e; } stop() { if (this._stopWatch) { @@ -726,8 +605,8 @@ class Ht { } Ht.all = /* @__PURE__ */ new Set(); Ht._idPool = 0; -let uc = -1; -class pc { +let tc = -1; +class nc { constructor(e, n = Math.random().toString(18).slice(2, 5)) { this.threshold = e, this.name = n, this._warnCountdown = 0; } @@ -754,10 +633,10 @@ class pc { }; } } -class Si { +class ki { static create() { var e; - return new Si((e = new Error().stack) !== null && e !== void 0 ? e : ""); + return new ki((e = new Error().stack) !== null && e !== void 0 ? e : ""); } constructor(e) { this.value = e; @@ -768,115 +647,131 @@ class Si { `)); } } -class fc { - constructor(e, n, r) { - this.callback = e, this.callbackThis = n, this.stack = r, this.subscription = new tc(); - } - invoke(e) { - this.callback.call(this.callbackThis, e); +class gr { + constructor(e) { + this.value = e; } } -class Ke { +const rc = 2; +class Xe { constructor(e) { var n, r, i, s, a; - this._disposed = !1, this._options = e, this._leakageMon = !((n = this._options) === null || n === void 0) && n.leakWarningThreshold ? new pc((i = (r = this._options) === null || r === void 0 ? void 0 : r.leakWarningThreshold) !== null && i !== void 0 ? i : uc) : void 0, this._perfMon = !((s = this._options) === null || s === void 0) && s._profName ? new Ht(this._options._profName) : void 0, this._deliveryQueue = (a = this._options) === null || a === void 0 ? void 0 : a.deliveryQueue; + this._size = 0, this._options = e, this._leakageMon = !((n = this._options) === null || n === void 0) && n.leakWarningThreshold ? new nc((i = (r = this._options) === null || r === void 0 ? void 0 : r.leakWarningThreshold) !== null && i !== void 0 ? i : tc) : void 0, this._perfMon = !((s = this._options) === null || s === void 0) && s._profName ? new Ht(this._options._profName) : void 0, this._deliveryQueue = (a = this._options) === null || a === void 0 ? void 0 : a.deliveryQueue; } dispose() { var e, n, r, i; - this._disposed || (this._disposed = !0, this._listeners && this._listeners.clear(), (e = this._deliveryQueue) === null || e === void 0 || e.clear(this), (r = (n = this._options) === null || n === void 0 ? void 0 : n.onDidRemoveLastListener) === null || r === void 0 || r.call(n), (i = this._leakageMon) === null || i === void 0 || i.dispose()); + this._disposed || (this._disposed = !0, ((e = this._deliveryQueue) === null || e === void 0 ? void 0 : e.current) === this && this._deliveryQueue.reset(), this._listeners && (this._listeners = void 0, this._size = 0), (r = (n = this._options) === null || n === void 0 ? void 0 : n.onDidRemoveLastListener) === null || r === void 0 || r.call(n), (i = this._leakageMon) === null || i === void 0 || i.dispose()); } /** * For the public to allow to subscribe * to events from this Emitter */ get event() { - return this._event || (this._event = (e, n, r) => { - var i, s, a; - if (this._listeners || (this._listeners = new Hn()), 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`), dr.None; - const o = this._listeners.isEmpty(); - o && (!((i = this._options) === null || i === void 0) && i.onWillAddFirstListener) && this._options.onWillAddFirstListener(this); - let l, c; - this._leakageMon && this._listeners.size >= Math.ceil(this._leakageMon.threshold * 0.2) && (c = Si.create(), l = this._leakageMon.check(c, this._listeners.size + 1)); - const h = new fc(e, n, c), u = this._listeners.push(h); - o && (!((s = this._options) === null || s === void 0) && s.onDidAddFirstListener) && this._options.onDidAddFirstListener(this), !((a = this._options) === null || a === void 0) && a.onDidAddListener && this._options.onDidAddListener(this, e, n); - const f = h.subscription.set(() => { - var m, g; - l == null || l(), this._disposed || ((g = (m = this._options) === null || m === void 0 ? void 0 : m.onWillRemoveListener) === null || g === void 0 || g.call(m, this), u(), this._options && this._options.onDidRemoveLastListener && (this._listeners && !this._listeners.isEmpty() || this._options.onDidRemoveLastListener(this))); + var e; + return (e = this._event) !== null && e !== void 0 || (this._event = (n, r, i) => { + var s, a, o, l, c; + if (this._leakageMon && this._size > this._leakageMon.threshold * 3) + return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`), mn.None; + if (this._disposed) + return mn.None; + r && (n = n.bind(r)); + const h = new gr(n); + let u; + this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (h.stack = ki.create(), u = this._leakageMon.check(h.stack, this._size + 1)), this._listeners ? this._listeners instanceof gr ? ((c = this._deliveryQueue) !== null && c !== void 0 || (this._deliveryQueue = new ic()), this._listeners = [this._listeners, h]) : this._listeners.push(h) : ((a = (s = this._options) === null || s === void 0 ? void 0 : s.onWillAddFirstListener) === null || a === void 0 || a.call(s, this), this._listeners = h, (l = (o = this._options) === null || o === void 0 ? void 0 : o.onDidAddFirstListener) === null || l === void 0 || l.call(o, this)), this._size++; + const m = fn(() => { + u == null || u(), this._removeListener(h); }); - return r instanceof Et ? r.add(f) : Array.isArray(r) && r.push(f), f; + return i instanceof Et ? i.add(m) : Array.isArray(i) && i.push(m), m; }), this._event; } + _removeListener(e) { + var n, r, i, s; + if ((r = (n = this._options) === null || n === void 0 ? void 0 : n.onWillRemoveListener) === null || r === void 0 || r.call(n, this), !this._listeners) + return; + if (this._size === 1) { + this._listeners = void 0, (s = (i = this._options) === null || i === void 0 ? void 0 : i.onDidRemoveLastListener) === null || s === void 0 || s.call(i, this), this._size = 0; + return; + } + const a = this._listeners, o = a.indexOf(e); + if (o === -1) + throw console.log("disposed?", this._disposed), console.log("size?", this._size), console.log("arr?", JSON.stringify(this._listeners)), new Error("Attempted to dispose unknown listener"); + this._size--, a[o] = void 0; + const l = this._deliveryQueue.current === this; + if (this._size * rc <= a.length) { + let c = 0; + for (let h = 0; h < a.length; h++) + a[h] ? a[c++] = a[h] : l && (this._deliveryQueue.end--, c < this._deliveryQueue.i && this._deliveryQueue.i--); + a.length = c; + } + } + _deliver(e, n) { + var r; + if (!e) + return; + const i = ((r = this._options) === null || r === void 0 ? void 0 : r.onListenerError) || Go; + if (!i) { + e.value(n); + return; + } + try { + e.value(n); + } catch (s) { + i(s); + } + } + /** Delivers items in the queue. Assumes the queue is ready to go. */ + _deliverQueue(e) { + const n = e.current._listeners; + for (; e.i < e.end; ) + this._deliver(n[e.i++], e.value); + e.reset(); + } /** * To be kept private to fire an event to * subscribers */ fire(e) { - var n, r, i; - if (this._listeners) { - this._deliveryQueue || (this._deliveryQueue = new gc((n = this._options) === null || n === void 0 ? void 0 : n.onListenerError)); - for (const s of this._listeners) - this._deliveryQueue.push(this, s, e); - (r = this._perfMon) === null || r === void 0 || r.start(this._deliveryQueue.size), this._deliveryQueue.deliver(), (i = this._perfMon) === null || i === void 0 || i.stop(); - } + var n, r, i, s; + if (!((n = this._deliveryQueue) === null || n === void 0) && n.current && (this._deliverQueue(this._deliveryQueue), (r = this._perfMon) === null || r === void 0 || r.stop()), (i = this._perfMon) === null || i === void 0 || i.start(this._size), this._listeners) + if (this._listeners instanceof gr) + this._deliver(this._listeners, e); + else { + const a = this._deliveryQueue; + a.enqueue(this, e, this._listeners.length), this._deliverQueue(a); + } + (s = this._perfMon) === null || s === void 0 || s.stop(); } hasListeners() { - return this._listeners ? !this._listeners.isEmpty() : !1; + return this._size > 0; } } -class mc { - constructor(e = Go) { - this._onListenerError = e, this._queue = new Hn(); +class ic { + constructor() { + this.i = -1, this.end = 0; } - get size() { - return this._queue.size; + enqueue(e, n, r) { + this.i = 0, this.end = r, this.current = e, this.value = n; } - push(e, n, r) { - this._queue.push(new bc(e, n, r)); - } - clear(e) { - const n = new Hn(); - for (const r of this._queue) - r.emitter !== e && n.push(r); - this._queue = n; - } - deliver() { - for (; this._queue.size > 0; ) { - const e = this._queue.shift(); - try { - e.listener.invoke(e.event); - } catch (n) { - this._onListenerError(n); - } - } + reset() { + this.i = this.end, this.current = void 0, this.value = void 0; } } -class gc extends mc { - clear(e) { - this._queue.clear(); - } -} -class bc { - constructor(e, n, r) { - this.emitter = e, this.listener = n, this.event = r; - } -} -function vc(t) { +function sc(t) { return typeof t == "string"; } -function yc(t) { - let e = [], n = Object.getPrototypeOf(t); - for (; Object.prototype !== n; ) - e = e.concat(Object.getOwnPropertyNames(n)), n = Object.getPrototypeOf(n); +function ac(t) { + let e = []; + for (; Object.prototype !== t; ) + e = e.concat(Object.getOwnPropertyNames(t)), t = Object.getPrototypeOf(t); return e; } function Ur(t) { const e = []; - for (const n of yc(t)) + for (const n of ac(t)) typeof t[n] == "function" && e.push(n); return e; } -function wc(t, e) { +function oc(t, e) { const n = (i) => function() { const s = Array.prototype.slice.call(arguments, 0); return e(i, s); @@ -885,58 +780,76 @@ function wc(t, e) { r[i] = n(i); return r; } -const Yo = Object.freeze(function(t, e) { - const n = setTimeout(t.bind(e), 0); - return { dispose() { - clearTimeout(n); - } }; -}); -var Gn; -(function(t) { - function e(n) { - return n === t.None || n === t.Cancelled || n instanceof Un ? !0 : !n || typeof n != "object" ? !1 : typeof n.isCancellationRequested == "boolean" && typeof n.onCancellationRequested == "function"; - } - t.isCancellationToken = e, t.None = Object.freeze({ - isCancellationRequested: !1, - onCancellationRequested: Or.None - }), t.Cancelled = Object.freeze({ - isCancellationRequested: !0, - onCancellationRequested: Yo - }); -})(Gn || (Gn = {})); -class Un { - 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 ? Yo : (this._emitter || (this._emitter = new Ke()), this._emitter.event); - } - dispose() { - this._emitter && (this._emitter.dispose(), this._emitter = null); - } +globalThis && globalThis.__awaiter; +let lc = typeof document < "u" && document.location && document.location.hash.indexOf("pseudo=true") >= 0; +function cc(t, e) { + let n; + return e.length === 0 ? n = t : n = t.replace(/\{(\d+)\}/g, (r, i) => { + const s = i[0], a = e[s]; + let o = r; + return typeof a == "string" ? o = a : (typeof a == "number" || typeof a == "boolean" || a === void 0 || a === null) && (o = String(a)), o; + }), lc && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"), n; } -class xc { - 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 Un()), this._token; - } - cancel() { - this._token ? this._token instanceof Un && this._token.cancel() : this._token = Gn.Cancelled; - } - dispose(e = !1) { - var n; - e && this.cancel(), (n = this._parentListener) === null || n === void 0 || n.dispose(), this._token ? this._token instanceof Un && this._token.dispose() : this._token = Gn.None; - } +function ae(t, e, ...n) { + return cc(e, n); } -class Sc { +var br; +const Tt = "en"; +let Vr = !1, Br = !1, vr = !1, Xo = !1, Nn, yr = Tt, Zi = Tt, hc, qe; +const He = typeof self == "object" ? self : typeof global == "object" ? global : {}; +let xe; +typeof He.vscode < "u" && typeof He.vscode.process < "u" ? xe = He.vscode.process : typeof process < "u" && (xe = process); +const dc = typeof ((br = xe == null ? void 0 : xe.versions) === null || br === void 0 ? void 0 : br.electron) == "string", uc = dc && (xe == null ? void 0 : xe.type) === "renderer"; +if (typeof navigator == "object" && !uc) + qe = navigator.userAgent, Vr = qe.indexOf("Windows") >= 0, Br = qe.indexOf("Macintosh") >= 0, (qe.indexOf("Macintosh") >= 0 || qe.indexOf("iPad") >= 0 || qe.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, vr = qe.indexOf("Linux") >= 0, (qe == null ? void 0 : qe.indexOf("Mobi")) >= 0, Xo = !0, // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale` + // to ensure that the NLS AMD Loader plugin has been loaded and configured. + // This is because the loader plugin decides what the default locale is based on + // how it's able to resolve the strings. + ae({ key: "ensureLoaderPluginIsLoaded", comment: ["{Locked}"] }, "_"), Nn = Tt, yr = Nn, Zi = navigator.language; +else if (typeof xe == "object") { + Vr = xe.platform === "win32", Br = xe.platform === "darwin", vr = xe.platform === "linux", vr && xe.env.SNAP && xe.env.SNAP_REVISION, xe.env.CI || xe.env.BUILD_ARTIFACTSTAGINGDIRECTORY, Nn = Tt, yr = Tt; + const t = xe.env.VSCODE_NLS_CONFIG; + if (t) + try { + const e = JSON.parse(t), n = e.availableLanguages["*"]; + Nn = e.locale, Zi = e.osLocale, yr = n || Tt, hc = e._translationsConfigFile; + } catch { + } +} else + console.error("Unable to resolve platform."); +const gn = Vr, pc = Br; +Xo && He.importScripts; +const Ye = qe, fc = typeof He.postMessage == "function" && !He.importScripts; +(() => { + if (fc) { + const t = []; + He.addEventListener("message", (n) => { + if (n.data && n.data.vscodeScheduleAsyncWork) + for (let r = 0, i = t.length; r < i; r++) { + const s = t[r]; + if (s.id === n.data.vscodeScheduleAsyncWork) { + t.splice(r, 1), s.callback(); + return; + } + } + }); + let e = 0; + return (n) => { + const r = ++e; + t.push({ + id: r, + callback: n + }), He.postMessage({ vscodeScheduleAsyncWork: r }, "*"); + }; + } + return (t) => setTimeout(t); +})(); +const mc = !!(Ye && Ye.indexOf("Chrome") >= 0); +Ye && Ye.indexOf("Firefox") >= 0; +!mc && Ye && Ye.indexOf("Safari") >= 0; +Ye && Ye.indexOf("Edg/") >= 0; +Ye && Ye.indexOf("Android") >= 0; +class gc { constructor(e) { this.fn = e, this.lastCache = void 0, this.lastArgKey = void 0; } @@ -945,16 +858,10 @@ class Sc { return this.lastArgKey !== n && (this.lastArgKey = n, this.lastCache = this.fn(e)), this.lastCache; } } -class Ko { +class Yo { constructor(e) { this.executor = e, this._didRun = !1; } - /** - * True if the lazy value has been resolved. - */ - get hasValue() { - return this._didRun; - } /** * Get the wrapped value. * @@ -981,14 +888,14 @@ class Ko { return this._value; } } -var Qo; -function Cc(t) { +var Ko; +function bc(t) { return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, "\\$&"); } -function kc(t) { +function vc(t) { return t.split(/\r\n|\r|\n/); } -function _c(t) { +function yc(t) { for (let e = 0, n = t.length; e < n; e++) { const r = t.charCodeAt(e); if (r !== 32 && r !== 9) @@ -996,7 +903,7 @@ function _c(t) { } return -1; } -function Fc(t, e = t.length - 1) { +function wc(t, e = t.length - 1) { for (let n = e; n >= 0; n--) { const r = t.charCodeAt(n); if (r !== 32 && r !== 9) @@ -1004,37 +911,37 @@ function Fc(t, e = t.length - 1) { } return -1; } -function Zo(t) { +function Qo(t) { return t >= 65 && t <= 90; } -function Vr(t) { +function jr(t) { return 55296 <= t && t <= 56319; } -function Rc(t) { +function xc(t) { return 56320 <= t && t <= 57343; } -function Ec(t, e) { +function Sc(t, e) { return (t - 55296 << 10) + (e - 56320) + 65536; } -function Dc(t, e, n) { +function Cc(t, e, n) { const r = t.charCodeAt(n); - if (Vr(r) && n + 1 < e) { + if (jr(r) && n + 1 < e) { const i = t.charCodeAt(n + 1); - if (Rc(i)) - return Ec(r, i); + if (xc(i)) + return Sc(r, i); } return r; } -const Ac = /^[\t\n\r\x20-\x7E]*$/; -function Mc(t) { - return Ac.test(t); +const kc = /^[\t\n\r\x20-\x7E]*$/; +function _c(t) { + return kc.test(t); } -class Ve { +class Be { static getInstance(e) { - return Ve.cache.get(Array.from(e)); + return Be.cache.get(Array.from(e)); } static getLocales() { - return Ve._locales.value; + return Be._locales.value; } constructor(e) { this.confusableDictionary = e; @@ -1053,9 +960,9 @@ class Ve { return new Set(this.confusableDictionary.keys()); } } -Qo = Ve; -Ve.ambiguousCharacterData = new Ko(() => 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]}')); -Ve.cache = new Sc((t) => { +Ko = Be; +Be.ambiguousCharacterData = new Yo(() => 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]}')); +Be.cache = new gc((t) => { function e(c) { const h = /* @__PURE__ */ new Map(); for (let u = 0; u < c.length; u += 2) @@ -1064,19 +971,19 @@ Ve.cache = new Sc((t) => { } function n(c, h) { const u = new Map(c); - for (const [f, m] of h) - u.set(f, m); + for (const [m, f] of h) + u.set(m, f); return u; } function r(c, h) { if (!c) return h; const u = /* @__PURE__ */ new Map(); - for (const [f, m] of c) - h.has(f) && u.set(f, m); + for (const [m, f] of c) + h.has(m) && u.set(m, f); return u; } - const i = Qo.ambiguousCharacterData.value; + const i = Ko.ambiguousCharacterData.value; let s = t.filter((c) => !c.startsWith("_") && c in i); s.length === 0 && (s = ["_default"]); let a; @@ -1085,51 +992,51 @@ Ve.cache = new Sc((t) => { a = r(a, h); } const o = e(i._common), l = n(o, a); - return new Ve(l); + return new Be(l); }); -Ve._locales = new Ko(() => Object.keys(Ve.ambiguousCharacterData.value).filter((t) => !t.startsWith("_"))); -class bt { +Be._locales = new Yo(() => Object.keys(Be.ambiguousCharacterData.value).filter((t) => !t.startsWith("_"))); +class gt { 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(bt.getRawData())), this._data; + return this._data || (this._data = new Set(gt.getRawData())), this._data; } static isInvisibleCharacter(e) { - return bt.getData().has(e); + return gt.getData().has(e); } static get codePoints() { - return bt.getData(); + return gt.getData(); } } -bt._data = void 0; -const Nc = "$initialize"; -class zc { +gt._data = void 0; +const Fc = "$initialize"; +class Rc { constructor(e, n, r, i) { this.vsWorker = e, this.req = n, this.method = r, this.args = i, this.type = 0; } } -class Qi { +class es { constructor(e, n, r, i) { this.vsWorker = e, this.seq = n, this.res = r, this.err = i, this.type = 1; } } -class Pc { +class Ec { constructor(e, n, r, i) { this.vsWorker = e, this.req = n, this.eventName = r, this.arg = i, this.type = 2; } } -class Ic { +class Dc { constructor(e, n, r) { this.vsWorker = e, this.req = n, this.event = r, this.type = 3; } } -class Lc { +class Ac { constructor(e, n) { this.vsWorker = e, this.req = n, this.type = 4; } } -class Tc { +class Mc { constructor(e) { this._workerId = -1, this._handler = e, this._lastSentReq = 0, this._pendingReplies = /* @__PURE__ */ Object.create(null), this._pendingEmitters = /* @__PURE__ */ new Map(), this._pendingEvents = /* @__PURE__ */ new Map(); } @@ -1142,17 +1049,17 @@ class Tc { this._pendingReplies[r] = { resolve: i, reject: s - }, this._send(new zc(this._workerId, r, e, n)); + }, this._send(new Rc(this._workerId, r, e, n)); }); } listen(e, n) { let r = null; - const i = new Ke({ + const i = new Xe({ onWillAddFirstListener: () => { - r = String(++this._lastSentReq), this._pendingEmitters.set(r, i), this._send(new Pc(this._workerId, r, e, n)); + r = String(++this._lastSentReq), this._pendingEmitters.set(r, i), this._send(new Ec(this._workerId, r, e, n)); }, onDidRemoveLastListener: () => { - this._pendingEmitters.delete(r), this._send(new Lc(this._workerId, r)), r = null; + this._pendingEmitters.delete(r), this._send(new Ac(this._workerId, r)), r = null; } }); return i.event; @@ -1190,14 +1097,14 @@ class Tc { _handleRequestMessage(e) { const n = e.req; this._handler.handleMessage(e.method, e.args).then((i) => { - this._send(new Qi(this._workerId, n, i, void 0)); + this._send(new es(this._workerId, n, i, void 0)); }, (i) => { - i.detail instanceof Error && (i.detail = Xi(i.detail)), this._send(new Qi(this._workerId, n, void 0, Xi(i))); + i.detail instanceof Error && (i.detail = Qi(i.detail)), this._send(new es(this._workerId, n, void 0, Qi(i))); }); } _handleSubscribeEventMessage(e) { const n = e.req, r = this._handler.handleEvent(e.eventName, e.arg)((i) => { - this._send(new Ic(this._workerId, n, i)); + this._send(new Dc(this._workerId, n, i)); }); this._pendingEvents.set(n, r); } @@ -1225,13 +1132,13 @@ class Tc { this._handler.sendMessage(e, n); } } +function Zo(t) { + return t[0] === "o" && t[1] === "n" && Qo(t.charCodeAt(2)); +} function el(t) { - return t[0] === "o" && t[1] === "n" && Zo(t.charCodeAt(2)); + return /^onDynamic/.test(t) && Qo(t.charCodeAt(9)); } -function tl(t) { - return /^onDynamic/.test(t) && Zo(t.charCodeAt(9)); -} -function Wc(t, e, n) { +function Nc(t, e, n) { const r = (a) => function() { const o = Array.prototype.slice.call(arguments, 0); return e(a, o); @@ -1239,11 +1146,11 @@ function Wc(t, e, n) { return n(a, o); }, s = {}; for (const a of t) { - if (tl(a)) { + if (el(a)) { s[a] = i(a); continue; } - if (el(a)) { + if (Zo(a)) { s[a] = n(a, void 0); continue; } @@ -1251,9 +1158,9 @@ function Wc(t, e, n) { } return s; } -class Oc { +class zc { constructor(e, n) { - this._requestHandlerFactory = n, this._requestHandler = null, this._protocol = new Tc({ + this._requestHandlerFactory = n, this._requestHandler = null, this._protocol = new Mc({ sendMessage: (r, i) => { e(r, i); }, @@ -1265,7 +1172,7 @@ class Oc { this._protocol.handleMessage(e); } _handleMessage(e, n) { - if (e === Nc) + if (e === Fc) return this.initialize(n[0], n[1], n[2], n[3]); if (!this._requestHandler || typeof this._requestHandler[e] != "function") return Promise.reject(new Error("Missing requestHandler or method: " + e)); @@ -1278,13 +1185,13 @@ class Oc { _handleEvent(e, n) { if (!this._requestHandler) throw new Error("Missing requestHandler"); - if (tl(e)) { + if (el(e)) { const r = this._requestHandler[e].call(this._requestHandler, n); if (typeof r != "function") throw new Error(`Missing dynamic event ${e} on request handler.`); return r; } - if (el(e)) { + if (Zo(e)) { const r = this._requestHandler[e]; if (typeof r != "function") throw new Error(`Missing event ${e} on request handler.`); @@ -1294,7 +1201,7 @@ class Oc { } initialize(e, n, r, i) { this._protocol.setWorkerId(e); - const o = Wc(i, (l, c) => this._protocol.sendMessage(l, c), (l, c) => this._protocol.listen(l, c)); + const o = Nc(i, (l, c) => this._protocol.sendMessage(l, c), (l, c) => this._protocol.listen(l, c)); return this._requestHandlerFactory ? (this._requestHandler = this._requestHandlerFactory(o), Promise.resolve(Ur(this._requestHandler))) : (n && (typeof n.baseUrl < "u" && delete n.baseUrl, typeof n.paths < "u" && typeof n.paths.vs < "u" && delete n.paths.vs, typeof n.trustedTypesPolicy !== void 0 && delete n.trustedTypesPolicy, n.catchError = !0, globalThis.require.config(n)), new Promise((l, c) => { const h = globalThis.require; h([r], (u) => { @@ -1328,16 +1235,16 @@ class ut { return this.modifiedStart + this.modifiedLength; } } -function Zi(t, e) { +function ts(t, e) { return (e << 5) - e + t | 0; } -function Uc(t, e) { - e = Zi(149417, e); +function Pc(t, e) { + e = ts(149417, e); for (let n = 0, r = t.length; n < r; n++) - e = Zi(t.charCodeAt(n), e); + e = ts(t.charCodeAt(n), e); return e; } -class es { +class ns { constructor(e) { this.source = e; } @@ -1348,16 +1255,16 @@ class es { return n; } } -function Vc(t, e, n) { - return new ft(new es(t), new es(e)).ComputeDiff(n).changes; +function Lc(t, e, n) { + return new ft(new ns(t), new ns(e)).ComputeDiff(n).changes; } -class At { +class Dt { static Assert(e, n) { if (!e) throw new Error(n); } } -class Mt { +class At { /** * Copies a range of elements from an Array starting at the specified source index and pastes * them to another Array starting at the specified destination index. The length and the indexes @@ -1382,7 +1289,7 @@ class Mt { r[i + a] = e[n + a]; } } -class ts { +class rs { /** * Constructs a new DiffChangeHelper for the given DiffSequences. */ @@ -1445,7 +1352,7 @@ class ft { if (ft._isStringArray(n)) { const r = new Int32Array(n.length); for (let i = 0, s = n.length; i < s; i++) - r[i] = Uc(n[i], 0); + r[i] = Pc(n[i], 0); return [n, r, !0]; } return n instanceof Int32Array ? [[], n, !1] : [[], new Int32Array(n), !1]; @@ -1496,50 +1403,50 @@ class ft { n--, i--; if (e > n || r > i) { let u; - return r <= i ? (At.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), u = [ + return r <= i ? (Dt.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), u = [ new ut(e, 0, r, i - r + 1) - ]) : e <= n ? (At.Assert(r === i + 1, "modifiedStart should only be one more than modifiedEnd"), u = [ + ]) : e <= n ? (Dt.Assert(r === i + 1, "modifiedStart should only be one more than modifiedEnd"), u = [ new ut(e, n - e + 1, r, 0) - ]) : (At.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), At.Assert(r === i + 1, "modifiedStart should only be one more than modifiedEnd"), u = []), u; + ]) : (Dt.Assert(e === n + 1, "originalStart should only be one more than originalEnd"), Dt.Assert(r === i + 1, "modifiedStart should only be one more than modifiedEnd"), u = []), u; } const a = [0], o = [0], l = this.ComputeRecursionPoint(e, n, r, i, a, o, s), c = a[0], h = o[0]; if (l !== null) return l; if (!s[0]) { const u = this.ComputeDiffRecursive(e, c, r, h, s); - let f = []; - return s[0] ? f = [ + let m = []; + return s[0] ? m = [ new ut(c + 1, n - (c + 1) + 1, h + 1, i - (h + 1) + 1) - ] : f = this.ComputeDiffRecursive(c + 1, n, h + 1, i, s), this.ConcatenateChanges(u, f); + ] : m = this.ComputeDiffRecursive(c + 1, n, h + 1, i, s), this.ConcatenateChanges(u, m); } return [ new ut(e, n - e + 1, r, i - r + 1) ]; } - WALKTRACE(e, n, r, i, s, a, o, l, c, h, u, f, m, g, b, y, w, x) { - let k = null, F = null, N = new ts(), j = n, H = r, B = m[0] - y[0] - i, P = -1073741824, z = this.m_forwardHistory.length - 1; + WALKTRACE(e, n, r, i, s, a, o, l, c, h, u, m, f, g, b, y, w, x) { + let k = null, P = null, N = new rs(), V = n, I = r, T = f[0] - y[0] - i, D = -1073741824, E = this.m_forwardHistory.length - 1; do { - const A = B + e; - A === j || A < H && c[A - 1] < c[A + 1] ? (u = c[A + 1], g = u - B - i, u < P && N.MarkNextChange(), P = u, N.AddModifiedElement(u + 1, g), B = A + 1 - e) : (u = c[A - 1] + 1, g = u - B - i, u < P && N.MarkNextChange(), P = u - 1, N.AddOriginalElement(u, g + 1), B = A - 1 - e), z >= 0 && (c = this.m_forwardHistory[z], e = c[0], j = 1, H = c.length - 1); - } while (--z >= -1); + const R = T + e; + R === V || R < I && c[R - 1] < c[R + 1] ? (u = c[R + 1], g = u - T - i, u < D && N.MarkNextChange(), D = u, N.AddModifiedElement(u + 1, g), T = R + 1 - e) : (u = c[R - 1] + 1, g = u - T - i, u < D && N.MarkNextChange(), D = u - 1, N.AddOriginalElement(u, g + 1), T = R - 1 - e), E >= 0 && (c = this.m_forwardHistory[E], e = c[0], V = 1, I = c.length - 1); + } while (--E >= -1); if (k = N.getReverseChanges(), x[0]) { - let A = m[0] + 1, R = y[0] + 1; + let R = f[0] + 1, F = y[0] + 1; if (k !== null && k.length > 0) { - const L = k[k.length - 1]; - A = Math.max(A, L.getOriginalEnd()), R = Math.max(R, L.getModifiedEnd()); + const W = k[k.length - 1]; + R = Math.max(R, W.getOriginalEnd()), F = Math.max(F, W.getModifiedEnd()); } - F = [ - new ut(A, f - A + 1, R, b - R + 1) + P = [ + new ut(R, m - R + 1, F, b - F + 1) ]; } else { - N = new ts(), j = a, H = o, B = m[0] - y[0] - l, P = 1073741824, z = w ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2; + N = new rs(), V = a, I = o, T = f[0] - y[0] - l, D = 1073741824, E = w ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2; do { - const A = B + s; - A === j || A < H && h[A - 1] >= h[A + 1] ? (u = h[A + 1] - 1, g = u - B - l, u > P && N.MarkNextChange(), P = u + 1, N.AddOriginalElement(u + 1, g + 1), B = A + 1 - s) : (u = h[A - 1], g = u - B - l, u > P && N.MarkNextChange(), P = u, N.AddModifiedElement(u + 1, g + 1), B = A - 1 - s), z >= 0 && (h = this.m_reverseHistory[z], s = h[0], j = 1, H = h.length - 1); - } while (--z >= -1); - F = N.getChanges(); + const R = T + s; + R === V || R < I && h[R - 1] >= h[R + 1] ? (u = h[R + 1] - 1, g = u - T - l, u > D && N.MarkNextChange(), D = u + 1, N.AddOriginalElement(u + 1, g + 1), T = R + 1 - s) : (u = h[R - 1], g = u - T - l, u > D && N.MarkNextChange(), D = u, N.AddModifiedElement(u + 1, g + 1), T = R - 1 - s), E >= 0 && (h = this.m_reverseHistory[E], s = h[0], V = 1, I = h.length - 1); + } while (--E >= -1); + P = N.getChanges(); } - return this.ConcatenateChanges(k, F); + return this.ConcatenateChanges(k, P); } /** * Given the range to compute the diff on, this method finds the point: @@ -1558,41 +1465,41 @@ class ft { * @returns The diff changes, if available, otherwise null */ ComputeRecursionPoint(e, n, r, i, s, a, o) { - let l = 0, c = 0, h = 0, u = 0, f = 0, m = 0; + let l = 0, c = 0, h = 0, u = 0, m = 0, f = 0; e--, r--, s[0] = 0, a[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = []; - const g = n - e + (i - r), b = g + 1, y = new Int32Array(b), w = new Int32Array(b), x = i - r, k = n - e, F = e - r, N = n - i, H = (k - x) % 2 === 0; + const g = n - e + (i - r), b = g + 1, y = new Int32Array(b), w = new Int32Array(b), x = i - r, k = n - e, P = e - r, N = n - i, I = (k - x) % 2 === 0; y[x] = e, w[k] = n, o[0] = !1; - for (let B = 1; B <= g / 2 + 1; B++) { - let P = 0, z = 0; - h = this.ClipDiagonalBound(x - B, B, x, b), u = this.ClipDiagonalBound(x + B, B, x, b); - for (let R = h; R <= u; R += 2) { - R === h || R < u && y[R - 1] < y[R + 1] ? l = y[R + 1] : l = y[R - 1] + 1, c = l - (R - x) - F; - const L = l; + for (let T = 1; T <= g / 2 + 1; T++) { + let D = 0, E = 0; + h = this.ClipDiagonalBound(x - T, T, x, b), u = this.ClipDiagonalBound(x + T, T, x, b); + for (let F = h; F <= u; F += 2) { + F === h || F < u && y[F - 1] < y[F + 1] ? l = y[F + 1] : l = y[F - 1] + 1, c = l - (F - x) - P; + const W = l; for (; l < n && c < i && this.ElementsAreEqual(l + 1, c + 1); ) l++, c++; - if (y[R] = l, l + c > P + z && (P = l, z = c), !H && Math.abs(R - k) <= B - 1 && l >= w[R]) - return s[0] = l, a[0] = c, L <= w[R] && 1447 > 0 && B <= 1447 + 1 ? this.WALKTRACE(x, h, u, F, k, f, m, N, y, w, l, n, s, c, i, a, H, o) : null; + if (y[F] = l, l + c > D + E && (D = l, E = c), !I && Math.abs(F - k) <= T - 1 && l >= w[F]) + return s[0] = l, a[0] = c, W <= w[F] && 1447 > 0 && T <= 1447 + 1 ? this.WALKTRACE(x, h, u, P, k, m, f, N, y, w, l, n, s, c, i, a, I, o) : null; } - const A = (P - e + (z - r) - B) / 2; - if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(P, A)) - return o[0] = !0, s[0] = P, a[0] = z, A > 0 && 1447 > 0 && B <= 1447 + 1 ? this.WALKTRACE(x, h, u, F, k, f, m, N, y, w, l, n, s, c, i, a, H, o) : (e++, r++, [ + const R = (D - e + (E - r) - T) / 2; + if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(D, R)) + return o[0] = !0, s[0] = D, a[0] = E, R > 0 && 1447 > 0 && T <= 1447 + 1 ? this.WALKTRACE(x, h, u, P, k, m, f, N, y, w, l, n, s, c, i, a, I, o) : (e++, r++, [ new ut(e, n - e + 1, r, i - r + 1) ]); - f = this.ClipDiagonalBound(k - B, B, k, b), m = this.ClipDiagonalBound(k + B, B, k, b); - for (let R = f; R <= m; R += 2) { - R === f || R < m && w[R - 1] >= w[R + 1] ? l = w[R + 1] - 1 : l = w[R - 1], c = l - (R - k) - N; - const L = l; + m = this.ClipDiagonalBound(k - T, T, k, b), f = this.ClipDiagonalBound(k + T, T, k, b); + for (let F = m; F <= f; F += 2) { + F === m || F < f && w[F - 1] >= w[F + 1] ? l = w[F + 1] - 1 : l = w[F - 1], c = l - (F - k) - N; + const W = l; for (; l > e && c > r && this.ElementsAreEqual(l, c); ) l--, c--; - if (w[R] = l, H && Math.abs(R - x) <= B && l <= y[R]) - return s[0] = l, a[0] = c, L >= y[R] && 1447 > 0 && B <= 1447 + 1 ? this.WALKTRACE(x, h, u, F, k, f, m, N, y, w, l, n, s, c, i, a, H, o) : null; + if (w[F] = l, I && Math.abs(F - x) <= T && l <= y[F]) + return s[0] = l, a[0] = c, W >= y[F] && 1447 > 0 && T <= 1447 + 1 ? this.WALKTRACE(x, h, u, P, k, m, f, N, y, w, l, n, s, c, i, a, I, o) : null; } - if (B <= 1447) { - let R = new Int32Array(u - h + 2); - R[0] = x - h + 1, Mt.Copy2(y, h, R, 1, u - h + 1), this.m_forwardHistory.push(R), R = new Int32Array(m - f + 2), R[0] = k - f + 1, Mt.Copy2(w, f, R, 1, m - f + 1), this.m_reverseHistory.push(R); + if (T <= 1447) { + let F = new Int32Array(u - h + 2); + F[0] = x - h + 1, At.Copy2(y, h, F, 1, u - h + 1), this.m_forwardHistory.push(F), F = new Int32Array(f - m + 2), F[0] = k - m + 1, At.Copy2(w, m, F, 1, f - m + 1), this.m_reverseHistory.push(F); } } - return this.WALKTRACE(x, h, u, F, k, f, m, N, y, w, l, n, s, c, i, a, H, o); + return this.WALKTRACE(x, h, u, P, k, m, f, N, y, w, l, n, s, c, i, a, I, o); } /** * Shifts the given changes to provide a more intuitive diff. @@ -1627,10 +1534,10 @@ class ft { const a = r.originalLength > 0, o = r.modifiedLength > 0; let l = 0, c = this._boundaryScore(r.originalStart, r.originalLength, r.modifiedStart, r.modifiedLength); for (let u = 1; ; u++) { - const f = r.originalStart - u, m = r.modifiedStart - u; - if (f < i || m < s || a && !this.OriginalElementsAreEqual(f, f + r.originalLength) || o && !this.ModifiedElementsAreEqual(m, m + r.modifiedLength)) + const m = r.originalStart - u, f = r.modifiedStart - u; + if (m < i || f < s || a && !this.OriginalElementsAreEqual(m, m + r.originalLength) || o && !this.ModifiedElementsAreEqual(f, f + r.modifiedLength)) break; - const b = (f === i && m === s ? 5 : 0) + this._boundaryScore(f, r.originalLength, m, r.modifiedLength); + const b = (m === i && f === s ? 5 : 0) + this._boundaryScore(m, r.originalLength, f, r.modifiedLength); b > c && (c = b, l = u); } r.originalStart -= l, r.modifiedStart -= l; @@ -1642,11 +1549,11 @@ class ft { } if (this._hasStrings) for (let n = 1, r = e.length; n < r; n++) { - const i = e[n - 1], s = e[n], a = s.originalStart - i.originalStart - i.originalLength, o = i.originalStart, l = s.originalStart + s.originalLength, c = l - o, h = i.modifiedStart, u = s.modifiedStart + s.modifiedLength, f = u - h; - if (a < 5 && c < 20 && f < 20) { - const m = this._findBetterContiguousSequence(o, c, h, f, a); - if (m) { - const [g, b] = m; + const i = e[n - 1], s = e[n], a = s.originalStart - i.originalStart - i.originalLength, o = i.originalStart, l = s.originalStart + s.originalLength, c = l - o, h = i.modifiedStart, u = s.modifiedStart + s.modifiedLength, m = u - h; + if (a < 5 && c < 20 && m < 20) { + const f = this._findBetterContiguousSequence(o, c, h, m, a); + if (f) { + const [g, b] = f; (g !== i.originalStart + i.originalLength || b !== i.modifiedStart + i.modifiedLength) && (i.originalLength = g - i.originalStart, i.modifiedLength = b - i.modifiedStart, s.originalStart = g + a, s.modifiedStart = b + a, s.originalLength = l - s.originalStart, s.modifiedLength = u - s.modifiedStart); } } @@ -1659,9 +1566,9 @@ class ft { const a = e + n - s + 1, o = r + i - s + 1; let l = 0, c = 0, h = 0; for (let u = e; u < a; u++) - for (let f = r; f < o; f++) { - const m = this._contiguousSequenceScore(u, f, s); - m > 0 && m > l && (l = m, c = u, h = f); + for (let m = r; m < o; m++) { + const f = this._contiguousSequenceScore(u, m, s); + f > 0 && f > l && (l = f, c = u, h = m); } return l > 0 ? [c, h] : null; } @@ -1717,10 +1624,10 @@ class ft { return n.length > 0 ? n : e; if (this.ChangesOverlap(e[e.length - 1], n[0], r)) { const i = new Array(e.length + n.length - 1); - return Mt.Copy(e, 0, i, 0, e.length - 1), i[e.length - 1] = r[0], Mt.Copy(n, 1, i, e.length, n.length - 1), i; + return At.Copy(e, 0, i, 0, e.length - 1), i[e.length - 1] = r[0], At.Copy(n, 1, i, e.length, n.length - 1), i; } else { const i = new Array(e.length + n.length); - return Mt.Copy(e, 0, i, 0, e.length), Mt.Copy(n, 0, i, e.length, n.length), i; + return At.Copy(e, 0, i, 0, e.length), At.Copy(n, 0, i, e.length, n.length), i; } } /** @@ -1732,7 +1639,7 @@ class ft { * @returns True if the two changes overlap */ ChangesOverlap(e, n, r) { - if (At.Assert(e.originalStart <= n.originalStart, "Left change is not less than or equal to right change"), At.Assert(e.modifiedStart <= n.modifiedStart, "Left change is not less than or equal to right change"), e.originalStart + e.originalLength >= n.originalStart || e.modifiedStart + e.modifiedLength >= n.modifiedStart) { + if (Dt.Assert(e.originalStart <= n.originalStart, "Left change is not less than or equal to right change"), Dt.Assert(e.modifiedStart <= n.modifiedStart, "Left change is not less than or equal to right change"), e.originalStart + e.originalLength >= n.originalStart || e.modifiedStart + e.modifiedLength >= n.modifiedStart) { const i = e.originalStart; let s = e.originalLength; const a = e.modifiedStart; @@ -1766,10 +1673,10 @@ class ft { } } } -let Rt; -if (typeof De.vscode < "u" && typeof De.vscode.process < "u") { - const t = De.vscode.process; - Rt = { +let Ut; +if (typeof He.vscode < "u" && typeof He.vscode.process < "u") { + const t = He.vscode.process; + Ut = { get platform() { return t.platform; }, @@ -1784,7 +1691,7 @@ if (typeof De.vscode < "u" && typeof De.vscode.process < "u") { } }; } else - typeof process < "u" ? Rt = { + typeof process < "u" ? Ut = { get platform() { return process.platform; }, @@ -1797,10 +1704,10 @@ if (typeof De.vscode < "u" && typeof De.vscode.process < "u") { cwd() { return process.env.VSCODE_CWD || process.cwd(); } - } : Rt = { + } : Ut = { // Supported get platform() { - return pn ? "win32" : lc ? "darwin" : "linux"; + return gn ? "win32" : pc ? "darwin" : "linux"; }, get arch() { }, @@ -1812,10 +1719,8 @@ if (typeof De.vscode < "u" && typeof De.vscode.process < "u") { return "/"; } }; -const Jn = Rt.cwd, Bc = Rt.env, jc = Rt.platform; -Rt.arch; -const qc = 65, $c = 97, Hc = 90, Gc = 122, vt = 46, ye = 47, Re = 92, ct = 58, Jc = 63; -class nl extends Error { +const Jn = Ut.cwd, Ic = Ut.env, Tc = Ut.platform, Wc = 65, Oc = 97, Uc = 90, Vc = 122, bt = 46, ye = 47, Re = 92, lt = 58, Bc = 63; +class tl extends Error { constructor(e, n, r) { let i; typeof n == "string" && n.indexOf("not ") === 0 ? (i = "must not be", n = n.replace(/^not /, "")) : i = "must be"; @@ -1824,23 +1729,23 @@ class nl extends Error { a += `. Received type ${typeof r}`, super(a), this.code = "ERR_INVALID_ARG_TYPE"; } } -function Xc(t, e) { +function jc(t, e) { if (t === null || typeof t != "object") - throw new nl(e, "Object", t); + throw new tl(e, "Object", t); } -function oe(t, e) { +function he(t, e) { if (typeof t != "string") - throw new nl(e, "string", t); + throw new tl(e, "string", t); } -const Ae = jc === "win32"; +const yt = Tc === "win32"; function J(t) { return t === ye || t === Re; } -function Br(t) { +function qr(t) { return t === ye; } -function ht(t) { - return t >= qc && t <= Hc || t >= $c && t <= Gc; +function ct(t) { + return t >= Wc && t <= Uc || t >= Oc && t <= Vc; } function Xn(t, e, n, r) { let i = "", s = 0, a = -1, o = 0, l = 0; @@ -1855,7 +1760,7 @@ function Xn(t, e, n, r) { if (r(l)) { if (!(a === c - 1 || o === 1)) if (o === 2) { - if (i.length < 2 || s !== 2 || i.charCodeAt(i.length - 1) !== vt || i.charCodeAt(i.length - 2) !== vt) { + if (i.length < 2 || s !== 2 || i.charCodeAt(i.length - 1) !== bt || i.charCodeAt(i.length - 2) !== bt) { if (i.length > 2) { const h = i.lastIndexOf(n); h === -1 ? (i = "", s = 0) : (i = i.slice(0, h), s = i.length - 1 - i.lastIndexOf(n)), a = c, o = 0; @@ -1870,26 +1775,26 @@ function Xn(t, e, n, r) { i.length > 0 ? i += `${n}${t.slice(a + 1, c)}` : i = t.slice(a + 1, c), s = c - a - 1; a = c, o = 0; } else - l === vt && o !== -1 ? ++o : o = -1; + l === bt && o !== -1 ? ++o : o = -1; } return i; } -function rl(t, e) { - Xc(e, "pathObject"); +function nl(t, e) { + jc(e, "pathObject"); const n = e.dir || e.root, r = e.base || `${e.name || ""}${e.ext || ""}`; return n ? n === e.root ? `${n}${r}` : `${n}${t}${r}` : r; } -const ue = { +const Fe = { // path.resolve([from ...], to) resolve(...t) { let e = "", n = "", r = !1; for (let i = t.length - 1; i >= -1; i--) { let s; if (i >= 0) { - if (s = t[i], oe(s, "path"), s.length === 0) + if (s = t[i], he(s, "path"), s.length === 0) continue; } else - e.length === 0 ? s = Jn() : (s = Bc[`=${e}`] || Jn(), (s === void 0 || s.slice(0, 2).toLowerCase() !== e.toLowerCase() && s.charCodeAt(2) === Re) && (s = `${e}\\`)); + e.length === 0 ? s = Jn() : (s = Ic[`=${e}`] || Jn(), (s === void 0 || s.slice(0, 2).toLowerCase() !== e.toLowerCase() && s.charCodeAt(2) === Re) && (s = `${e}\\`)); const a = s.length; let o = 0, l = "", c = !1; const h = s.charCodeAt(0); @@ -1897,23 +1802,23 @@ const ue = { J(h) && (o = 1, c = !0); else if (J(h)) if (c = !0, J(s.charCodeAt(1))) { - let u = 2, f = u; + let u = 2, m = u; for (; u < a && !J(s.charCodeAt(u)); ) u++; - if (u < a && u !== f) { - const m = s.slice(f, u); - for (f = u; u < a && J(s.charCodeAt(u)); ) + if (u < a && u !== m) { + const f = s.slice(m, u); + for (m = u; u < a && J(s.charCodeAt(u)); ) u++; - if (u < a && u !== f) { - for (f = u; u < a && !J(s.charCodeAt(u)); ) + if (u < a && u !== m) { + for (m = u; u < a && !J(s.charCodeAt(u)); ) u++; - (u === a || u !== f) && (l = `\\\\${m}\\${s.slice(f, u)}`, o = u); + (u === a || u !== m) && (l = `\\\\${f}\\${s.slice(m, u)}`, o = u); } } } else o = 1; else - ht(h) && s.charCodeAt(1) === ct && (l = s.slice(0, 2), o = 2, a > 2 && J(s.charCodeAt(2)) && (c = !0, o = 3)); + ct(h) && s.charCodeAt(1) === lt && (l = s.slice(0, 2), o = 2, a > 2 && J(s.charCodeAt(2)) && (c = !0, o = 3)); if (l.length > 0) if (e.length > 0) { if (l.toLowerCase() !== e.toLowerCase()) @@ -1929,14 +1834,14 @@ const ue = { return n = Xn(n, !r, "\\", J), r ? `${e}\\${n}` : `${e}${n}` || "."; }, normalize(t) { - oe(t, "path"); + he(t, "path"); const e = t.length; if (e === 0) return "."; let n = 0, r, i = !1; const s = t.charCodeAt(0); if (e === 1) - return Br(s) ? "\\" : t; + return qr(s) ? "\\" : t; if (J(s)) if (i = !0, J(t.charCodeAt(1))) { let o = 2, l = o; @@ -1957,18 +1862,18 @@ const ue = { } else n = 1; else - ht(s) && t.charCodeAt(1) === ct && (r = t.slice(0, 2), n = 2, e > 2 && J(t.charCodeAt(2)) && (i = !0, n = 3)); + ct(s) && t.charCodeAt(1) === lt && (r = t.slice(0, 2), n = 2, e > 2 && J(t.charCodeAt(2)) && (i = !0, n = 3)); let a = n < e ? Xn(t.slice(n), !i, "\\", J) : ""; return a.length === 0 && !i && (a = "."), a.length > 0 && J(t.charCodeAt(e - 1)) && (a += "\\"), r === void 0 ? i ? `\\${a}` : a : i ? `${r}\\${a}` : `${r}${a}`; }, isAbsolute(t) { - oe(t, "path"); + he(t, "path"); const e = t.length; if (e === 0) return !1; const n = t.charCodeAt(0); return J(n) || // Possible device root - e > 2 && ht(n) && t.charCodeAt(1) === ct && J(t.charCodeAt(2)); + e > 2 && ct(n) && t.charCodeAt(1) === lt && J(t.charCodeAt(2)); }, join(...t) { if (t.length === 0) @@ -1976,7 +1881,7 @@ const ue = { let e, n; for (let s = 0; s < t.length; ++s) { const a = t[s]; - oe(a, "path"), a.length > 0 && (e === void 0 ? e = n = a : e += `\\${a}`); + he(a, "path"), a.length > 0 && (e === void 0 ? e = n = a : e += `\\${a}`); } if (e === void 0) return "."; @@ -1991,16 +1896,16 @@ const ue = { i++; i >= 2 && (e = `\\${e.slice(i)}`); } - return ue.normalize(e); + return Fe.normalize(e); }, // It will solve the relative path from `from` to `to`, for instance: // from = 'C:\\orandea\\test\\aaa' // to = 'C:\\orandea\\impl\\bbb' // The output of the function should be: '..\\..\\impl\\bbb' relative(t, e) { - if (oe(t, "from"), oe(e, "to"), t === e) + if (he(t, "from"), he(e, "to"), t === e) return ""; - const n = ue.resolve(t), r = ue.resolve(e); + const n = Fe.resolve(t), r = Fe.resolve(e); if (n === r || (t = n.toLowerCase(), e = r.toLowerCase(), t === e)) return ""; let i = 0; @@ -2017,48 +1922,48 @@ const ue = { for (; l - 1 > o && e.charCodeAt(l - 1) === Re; ) l--; const c = l - o, h = a < c ? a : c; - let u = -1, f = 0; - for (; f < h; f++) { - const g = t.charCodeAt(i + f); - if (g !== e.charCodeAt(o + f)) + let u = -1, m = 0; + for (; m < h; m++) { + const g = t.charCodeAt(i + m); + if (g !== e.charCodeAt(o + m)) break; - g === Re && (u = f); + g === Re && (u = m); } - if (f !== h) { + if (m !== h) { if (u === -1) return r; } else { if (c > h) { - if (e.charCodeAt(o + f) === Re) - return r.slice(o + f + 1); - if (f === 2) - return r.slice(o + f); + if (e.charCodeAt(o + m) === Re) + return r.slice(o + m + 1); + if (m === 2) + return r.slice(o + m); } - a > h && (t.charCodeAt(i + f) === Re ? u = f : f === 2 && (u = 3)), u === -1 && (u = 0); + a > h && (t.charCodeAt(i + m) === Re ? u = m : m === 2 && (u = 3)), u === -1 && (u = 0); } - let m = ""; - for (f = i + u + 1; f <= s; ++f) - (f === s || t.charCodeAt(f) === Re) && (m += m.length === 0 ? ".." : "\\.."); - return o += u, m.length > 0 ? `${m}${r.slice(o, l)}` : (r.charCodeAt(o) === Re && ++o, r.slice(o, l)); + let f = ""; + for (m = i + u + 1; m <= s; ++m) + (m === s || t.charCodeAt(m) === Re) && (f += f.length === 0 ? ".." : "\\.."); + return o += u, f.length > 0 ? `${f}${r.slice(o, l)}` : (r.charCodeAt(o) === Re && ++o, r.slice(o, l)); }, toNamespacedPath(t) { if (typeof t != "string" || t.length === 0) return t; - const e = ue.resolve(t); + const e = Fe.resolve(t); if (e.length <= 2) return t; if (e.charCodeAt(0) === Re) { if (e.charCodeAt(1) === Re) { const n = e.charCodeAt(2); - if (n !== Jc && n !== vt) + if (n !== Bc && n !== bt) return `\\\\?\\UNC\\${e.slice(2)}`; } - } else if (ht(e.charCodeAt(0)) && e.charCodeAt(1) === ct && e.charCodeAt(2) === Re) + } else if (ct(e.charCodeAt(0)) && e.charCodeAt(1) === lt && e.charCodeAt(2) === Re) return `\\\\?\\${e}`; return t; }, dirname(t) { - oe(t, "path"); + he(t, "path"); const e = t.length; if (e === 0) return "."; @@ -2084,7 +1989,7 @@ const ue = { } } } else - ht(i) && t.charCodeAt(1) === ct && (n = e > 2 && J(t.charCodeAt(2)) ? 3 : 2, r = n); + ct(i) && t.charCodeAt(1) === lt && (n = e > 2 && J(t.charCodeAt(2)) ? 3 : 2, r = n); let s = -1, a = !0; for (let o = e - 1; o >= r; --o) if (J(t.charCodeAt(o))) { @@ -2102,9 +2007,9 @@ const ue = { return t.slice(0, s); }, basename(t, e) { - e !== void 0 && oe(e, "ext"), oe(t, "path"); + e !== void 0 && he(e, "ext"), he(t, "path"); let n = 0, r = -1, i = !0, s; - if (t.length >= 2 && ht(t.charCodeAt(0)) && t.charCodeAt(1) === ct && (n = 2), e !== void 0 && e.length > 0 && e.length <= t.length) { + if (t.length >= 2 && ct(t.charCodeAt(0)) && t.charCodeAt(1) === lt && (n = 2), e !== void 0 && e.length > 0 && e.length <= t.length) { if (e === t) return ""; let a = e.length - 1, o = -1; @@ -2131,9 +2036,9 @@ const ue = { return r === -1 ? "" : t.slice(n, r); }, extname(t) { - oe(t, "path"); + he(t, "path"); let e = 0, n = -1, r = 0, i = -1, s = !0, a = 0; - t.length >= 2 && t.charCodeAt(1) === ct && ht(t.charCodeAt(0)) && (e = r = 2); + t.length >= 2 && t.charCodeAt(1) === lt && ct(t.charCodeAt(0)) && (e = r = 2); for (let o = t.length - 1; o >= e; --o) { const l = t.charCodeAt(o); if (J(l)) { @@ -2143,15 +2048,15 @@ const ue = { } continue; } - i === -1 && (s = !1, i = o + 1), l === vt ? n === -1 ? n = o : a !== 1 && (a = 1) : n !== -1 && (a = -1); + i === -1 && (s = !1, i = o + 1), l === bt ? n === -1 ? n = o : a !== 1 && (a = 1) : n !== -1 && (a = -1); } return n === -1 || i === -1 || // We saw a non-dot character immediately before the dot a === 0 || // The (right-most) trimmed path component is exactly '..' a === 1 && n === i - 1 && n === r + 1 ? "" : t.slice(n, i); }, - format: rl.bind(null, "\\"), + format: nl.bind(null, "\\"), parse(t) { - oe(t, "path"); + he(t, "path"); const e = { root: "", dir: "", base: "", ext: "", name: "" }; if (t.length === 0) return e; @@ -2161,20 +2066,20 @@ const ue = { return J(i) ? (e.root = e.dir = t, e) : (e.base = e.name = t, e); if (J(i)) { if (r = 1, J(t.charCodeAt(1))) { - let u = 2, f = u; + let u = 2, m = u; for (; u < n && !J(t.charCodeAt(u)); ) u++; - if (u < n && u !== f) { - for (f = u; u < n && J(t.charCodeAt(u)); ) + if (u < n && u !== m) { + for (m = u; u < n && J(t.charCodeAt(u)); ) u++; - if (u < n && u !== f) { - for (f = u; u < n && !J(t.charCodeAt(u)); ) + if (u < n && u !== m) { + for (m = u; u < n && !J(t.charCodeAt(u)); ) u++; - u === n ? r = u : u !== f && (r = u + 1); + u === n ? r = u : u !== m && (r = u + 1); } } } - } else if (ht(i) && t.charCodeAt(1) === ct) { + } else if (ct(i) && t.charCodeAt(1) === lt) { if (n <= 2) return e.root = e.dir = t, e; if (r = 2, J(t.charCodeAt(2))) { @@ -2193,7 +2098,7 @@ const ue = { } continue; } - o === -1 && (l = !1, o = c + 1), i === vt ? s === -1 ? s = c : h !== 1 && (h = 1) : s !== -1 && (h = -1); + o === -1 && (l = !1, o = c + 1), i === bt ? s === -1 ? s = c : h !== 1 && (h = 1) : s !== -1 && (h = -1); } return o !== -1 && (s === -1 || // We saw a non-dot character immediately before the dot h === 0 || // The (right-most) trimmed path component is exactly '..' @@ -2203,8 +2108,8 @@ const ue = { delimiter: ";", win32: null, posix: null -}, Yc = (() => { - if (Ae) { +}, qc = (() => { + if (yt) { const t = /\\/g; return () => { const e = Jn().replace(t, "/"); @@ -2212,24 +2117,24 @@ const ue = { }; } return () => Jn(); -})(), me = { +})(), Ee = { // path.resolve([from ...], to) resolve(...t) { let e = "", n = !1; for (let r = t.length - 1; r >= -1 && !n; r--) { - const i = r >= 0 ? t[r] : Yc(); - oe(i, "path"), i.length !== 0 && (e = `${i}/${e}`, n = i.charCodeAt(0) === ye); + const i = r >= 0 ? t[r] : qc(); + he(i, "path"), i.length !== 0 && (e = `${i}/${e}`, n = i.charCodeAt(0) === ye); } - return e = Xn(e, !n, "/", Br), n ? `/${e}` : e.length > 0 ? e : "."; + return e = Xn(e, !n, "/", qr), n ? `/${e}` : e.length > 0 ? e : "."; }, normalize(t) { - if (oe(t, "path"), t.length === 0) + if (he(t, "path"), t.length === 0) return "."; const e = t.charCodeAt(0) === ye, n = t.charCodeAt(t.length - 1) === ye; - return t = Xn(t, !e, "/", Br), t.length === 0 ? e ? "/" : n ? "./" : "." : (n && (t += "/"), e ? `/${t}` : t); + return t = Xn(t, !e, "/", qr), t.length === 0 ? e ? "/" : n ? "./" : "." : (n && (t += "/"), e ? `/${t}` : t); }, isAbsolute(t) { - return oe(t, "path"), t.length > 0 && t.charCodeAt(0) === ye; + return he(t, "path"), t.length > 0 && t.charCodeAt(0) === ye; }, join(...t) { if (t.length === 0) @@ -2237,12 +2142,12 @@ const ue = { let e; for (let n = 0; n < t.length; ++n) { const r = t[n]; - oe(r, "path"), r.length > 0 && (e === void 0 ? e = r : e += `/${r}`); + he(r, "path"), r.length > 0 && (e === void 0 ? e = r : e += `/${r}`); } - return e === void 0 ? "." : me.normalize(e); + return e === void 0 ? "." : Ee.normalize(e); }, relative(t, e) { - if (oe(t, "from"), oe(e, "to"), t === e || (t = me.resolve(t), e = me.resolve(e), t === e)) + if (he(t, "from"), he(e, "to"), t === e || (t = Ee.resolve(t), e = Ee.resolve(e), t === e)) return ""; const n = 1, r = t.length, i = r - n, s = 1, a = e.length - s, o = i < a ? i : a; let l = -1, c = 0; @@ -2269,7 +2174,7 @@ const ue = { return t; }, dirname(t) { - if (oe(t, "path"), t.length === 0) + if (he(t, "path"), t.length === 0) return "."; const e = t.charCodeAt(0) === ye; let n = -1, r = !0; @@ -2284,7 +2189,7 @@ const ue = { return n === -1 ? e ? "/" : "." : e && n === 1 ? "//" : t.slice(0, n); }, basename(t, e) { - e !== void 0 && oe(e, "ext"), oe(t, "path"); + e !== void 0 && he(e, "ext"), he(t, "path"); let n = 0, r = -1, i = !0, s; if (e !== void 0 && e.length > 0 && e.length <= t.length) { if (e === t) @@ -2313,7 +2218,7 @@ const ue = { return r === -1 ? "" : t.slice(n, r); }, extname(t) { - oe(t, "path"); + he(t, "path"); let e = -1, n = 0, r = -1, i = !0, s = 0; for (let a = t.length - 1; a >= 0; --a) { const o = t.charCodeAt(a); @@ -2324,15 +2229,15 @@ const ue = { } continue; } - r === -1 && (i = !1, r = a + 1), o === vt ? e === -1 ? e = a : s !== 1 && (s = 1) : e !== -1 && (s = -1); + r === -1 && (i = !1, r = a + 1), o === bt ? e === -1 ? e = a : s !== 1 && (s = 1) : e !== -1 && (s = -1); } return e === -1 || r === -1 || // We saw a non-dot character immediately before the dot s === 0 || // The (right-most) trimmed path component is exactly '..' s === 1 && e === r - 1 && e === n + 1 ? "" : t.slice(e, r); }, - format: rl.bind(null, "/"), + format: nl.bind(null, "/"), parse(t) { - oe(t, "path"); + he(t, "path"); const e = { root: "", dir: "", base: "", ext: "", name: "" }; if (t.length === 0) return e; @@ -2349,7 +2254,7 @@ const ue = { } continue; } - a === -1 && (o = !1, a = l + 1), h === vt ? i === -1 ? i = l : c !== 1 && (c = 1) : i !== -1 && (c = -1); + a === -1 && (o = !1, a = l + 1), h === bt ? i === -1 ? i = l : c !== 1 && (c = 1) : i !== -1 && (c = -1); } if (a !== -1) { const h = s === 0 && n ? 1 : s; @@ -2364,39 +2269,33 @@ const ue = { win32: null, posix: null }; -me.win32 = ue.win32 = ue; -me.posix = ue.posix = me; -Ae ? ue.normalize : me.normalize; -Ae ? ue.isAbsolute : me.isAbsolute; -Ae ? ue.join : me.join; -Ae ? ue.resolve : me.resolve; -Ae ? ue.relative : me.relative; -Ae ? ue.dirname : me.dirname; -Ae ? ue.basename : me.basename; -Ae ? ue.extname : me.extname; -Ae ? ue.format : me.format; -Ae ? ue.parse : me.parse; -Ae ? ue.toNamespacedPath : me.toNamespacedPath; -Ae ? ue.sep : me.sep; -Ae ? ue.delimiter : me.delimiter; -const Kc = /^\w[\w\d+.-]*$/, Qc = /^\//, Zc = /^\/\//; -function ns(t, e) { +Ee.win32 = Fe.win32 = Fe; +Ee.posix = Fe.posix = Ee; +yt ? Fe.normalize : Ee.normalize; +yt ? Fe.resolve : Ee.resolve; +yt ? Fe.relative : Ee.relative; +yt ? Fe.dirname : Ee.dirname; +yt ? Fe.basename : Ee.basename; +yt ? Fe.extname : Ee.extname; +yt ? Fe.sep : Ee.sep; +const $c = /^\w[\w\d+.-]*$/, Hc = /^\//, Gc = /^\/\//; +function Jc(t, e) { if (!t.scheme && e) throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`); - if (t.scheme && !Kc.test(t.scheme)) + if (t.scheme && !$c.test(t.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); if (t.path) { if (t.authority) { - if (!Qc.test(t.path)) + if (!Hc.test(t.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 (Zc.test(t.path)) + } else if (Gc.test(t.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); } } -function eh(t, e) { +function Xc(t, e) { return !t && !e ? "file" : t; } -function th(t, e) { +function Yc(t, e) { switch (t) { case "https": case "http": @@ -2406,16 +2305,16 @@ function th(t, e) { } return e; } -const ie = "", $e = "/", nh = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; -let Ci = class Vn { +const se = "", $e = "/", Kc = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; +let _i = class jn { static isUri(e) { - return e instanceof Vn ? !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; + return e instanceof jn ? !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; } /** * @internal */ constructor(e, n, r, i, s, a = !1) { - typeof e == "object" ? (this.scheme = e.scheme || ie, this.authority = e.authority || ie, this.path = e.path || ie, this.query = e.query || ie, this.fragment = e.fragment || ie) : (this.scheme = eh(e, a), this.authority = n || ie, this.path = th(this.scheme, r || ie), this.query = i || ie, this.fragment = s || ie, ns(this, a)); + typeof e == "object" ? (this.scheme = e.scheme || se, this.authority = e.authority || se, this.path = e.path || se, this.query = e.query || se, this.fragment = e.fragment || se) : (this.scheme = Xc(e, a), this.authority = n || se, this.path = Yc(this.scheme, r || se), this.query = i || se, this.fragment = s || se, Jc(this, a)); } // ---- filesystem path ----------------------- /** @@ -2443,14 +2342,14 @@ let Ci = class Vn { * with URIs that represent files on disk (`file` scheme). */ get fsPath() { - return jr(this, !1); + return $r(this, !1); } // ---- modify to new ------------------------- with(e) { if (!e) return this; let { scheme: n, authority: r, path: i, query: s, fragment: a } = e; - return n === void 0 ? n = this.scheme : n === null && (n = ie), r === void 0 ? r = this.authority : r === null && (r = ie), i === void 0 ? i = this.path : i === null && (i = ie), s === void 0 ? s = this.query : s === null && (s = ie), a === void 0 ? a = this.fragment : a === null && (a = ie), n === this.scheme && r === this.authority && i === this.path && s === this.query && a === this.fragment ? this : new Nt(n, r, i, s, a); + return n === void 0 ? n = this.scheme : n === null && (n = se), r === void 0 ? r = this.authority : r === null && (r = se), i === void 0 ? i = this.path : i === null && (i = se), s === void 0 ? s = this.query : s === null && (s = se), a === void 0 ? a = this.fragment : a === null && (a = se), n === this.scheme && r === this.authority && i === this.path && s === this.query && a === this.fragment ? this : new Mt(n, r, i, s, a); } // ---- parse & validate ------------------------ /** @@ -2460,8 +2359,8 @@ let Ci = class Vn { * @param value A string which represents an URI (see `URI#toString`). */ static parse(e, n = !1) { - const r = nh.exec(e); - return r ? new Nt(r[2] || ie, Dn(r[4] || ie), Dn(r[5] || ie), Dn(r[7] || ie), Dn(r[9] || ie), n) : new Nt(ie, ie, ie, ie, ie); + const r = Kc.exec(e); + return r ? new Mt(r[2] || se, zn(r[4] || se), zn(r[5] || se), zn(r[7] || se), zn(r[9] || se), n) : new Mt(se, se, se, se, se); } /** * Creates a new URI from a file system path, e.g. `c:\my\files`, @@ -2485,16 +2384,22 @@ let Ci = class Vn { * @param path A file system path (see `URI#fsPath`) */ static file(e) { - let n = ie; - if (pn && (e = e.replace(/\\/g, $e)), e[0] === $e && e[1] === $e) { + let n = se; + if (gn && (e = e.replace(/\\/g, $e)), e[0] === $e && e[1] === $e) { const r = e.indexOf($e, 2); r === -1 ? (n = e.substring(2), e = $e) : (n = e.substring(2, r), e = e.substring(r) || $e); } - return new Nt("file", n, e, ie, ie); + return new Mt("file", n, e, se, se); } - static from(e) { - const n = new Nt(e.scheme, e.authority, e.path, e.query, e.fragment); - return ns(n, !0), n; + /** + * Creates new URI from uri components. + * + * Unless `strict` is `true` the scheme is defaults to be `file`. This function performs + * validation and should be used for untrusted uri components retrieved from storage, + * user input, command arguments etc + */ + static from(e, n) { + return new Mt(e.scheme, e.authority, e.path, e.query, e.fragment, n); } /** * Join a URI path with path fragments and normalizes the resulting path. @@ -2507,7 +2412,7 @@ let Ci = class Vn { if (!e.path) throw new Error("[UriError]: cannot call joinPath on URI without path"); let r; - return pn && e.scheme === "file" ? r = Vn.file(ue.join(jr(e, !0), ...n)).path : r = me.join(e.path, ...n), e.with({ path: r }); + return gn && e.scheme === "file" ? r = jn.file(Fe.join($r(e, !0), ...n)).path : r = Ee.join(e.path, ...n), e.with({ path: r }); } // ---- printing/externalize --------------------------- /** @@ -2522,121 +2427,65 @@ let Ci = class Vn { * @param skipEncoding Do not encode the result, default is `false` */ toString(e = !1) { - return qr(this, e); + return Hr(this, e); } toJSON() { return this; } static revive(e) { + var n, r; if (e) { - if (e instanceof Vn) + if (e instanceof jn) return e; { - const n = new Nt(e); - return n._formatted = e.external, n._fsPath = e._sep === il ? e.fsPath : null, n; + const i = new Mt(e); + return i._formatted = (n = e.external) !== null && n !== void 0 ? n : null, i._fsPath = e._sep === rl && (r = e.fsPath) !== null && r !== void 0 ? r : null, i; } } else return e; } }; -const il = pn ? 1 : void 0; -class Nt extends Ci { +const rl = gn ? 1 : void 0; +class Mt extends _i { constructor() { super(...arguments), this._formatted = null, this._fsPath = null; } get fsPath() { - return this._fsPath || (this._fsPath = jr(this, !1)), this._fsPath; + return this._fsPath || (this._fsPath = $r(this, !1)), this._fsPath; } toString(e = !1) { - return e ? qr(this, !0) : (this._formatted || (this._formatted = qr(this, !1)), this._formatted); + return e ? Hr(this, !0) : (this._formatted || (this._formatted = Hr(this, !1)), this._formatted); } toJSON() { const e = { $mid: 1 /* MarshalledId.Uri */ }; - return this._fsPath && (e.fsPath = this._fsPath, e._sep = il), 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; + return this._fsPath && (e.fsPath = this._fsPath, e._sep = rl), 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 sl = { - [ - 58 - /* CharCode.Colon */ - ]: "%3A", - [ - 47 - /* CharCode.Slash */ - ]: "%2F", - [ - 63 - /* CharCode.QuestionMark */ - ]: "%3F", - [ - 35 - /* CharCode.Hash */ - ]: "%23", - [ - 91 - /* CharCode.OpenSquareBracket */ - ]: "%5B", - [ - 93 - /* CharCode.CloseSquareBracket */ - ]: "%5D", - [ - 64 - /* CharCode.AtSign */ - ]: "%40", - [ - 33 - /* CharCode.ExclamationMark */ - ]: "%21", - [ - 36 - /* CharCode.DollarSign */ - ]: "%24", - [ - 38 - /* CharCode.Ampersand */ - ]: "%26", - [ - 39 - /* CharCode.SingleQuote */ - ]: "%27", - [ - 40 - /* CharCode.OpenParen */ - ]: "%28", - [ - 41 - /* CharCode.CloseParen */ - ]: "%29", - [ - 42 - /* CharCode.Asterisk */ - ]: "%2A", - [ - 43 - /* CharCode.Plus */ - ]: "%2B", - [ - 44 - /* CharCode.Comma */ - ]: "%2C", - [ - 59 - /* CharCode.Semicolon */ - ]: "%3B", - [ - 61 - /* CharCode.Equals */ - ]: "%3D", - [ - 32 - /* CharCode.Space */ - ]: "%20" +const il = { + 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 rs(t, e, n) { +function is(t, e, n) { let r, i = -1; for (let s = 0; s < t.length; s++) { const a = t.charCodeAt(s); @@ -2644,26 +2493,26 @@ function rs(t, e, n) { i !== -1 && (r += encodeURIComponent(t.substring(i, s)), i = -1), r !== void 0 && (r += t.charAt(s)); else { r === void 0 && (r = t.substr(0, s)); - const o = sl[a]; + const o = il[a]; o !== void 0 ? (i !== -1 && (r += encodeURIComponent(t.substring(i, s)), i = -1), r += o) : i === -1 && (i = s); } } return i !== -1 && (r += encodeURIComponent(t.substring(i))), r !== void 0 ? r : t; } -function rh(t) { +function Qc(t) { let e; for (let n = 0; n < t.length; n++) { const r = t.charCodeAt(n); - r === 35 || r === 63 ? (e === void 0 && (e = t.substr(0, n)), e += sl[r]) : e !== void 0 && (e += t[n]); + r === 35 || r === 63 ? (e === void 0 && (e = t.substr(0, n)), e += il[r]) : e !== void 0 && (e += t[n]); } return e !== void 0 ? e : t; } -function jr(t, e) { +function $r(t, e) { let n; - return t.authority && t.path.length > 1 && t.scheme === "file" ? n = `//${t.authority}${t.path}` : t.path.charCodeAt(0) === 47 && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && t.path.charCodeAt(2) === 58 ? e ? n = t.path.substr(1) : n = t.path[1].toLowerCase() + t.path.substr(2) : n = t.path, pn && (n = n.replace(/\//g, "\\")), n; + return t.authority && t.path.length > 1 && t.scheme === "file" ? n = `//${t.authority}${t.path}` : t.path.charCodeAt(0) === 47 && (t.path.charCodeAt(1) >= 65 && t.path.charCodeAt(1) <= 90 || t.path.charCodeAt(1) >= 97 && t.path.charCodeAt(1) <= 122) && t.path.charCodeAt(2) === 58 ? e ? n = t.path.substr(1) : n = t.path[1].toLowerCase() + t.path.substr(2) : n = t.path, gn && (n = n.replace(/\//g, "\\")), n; } -function qr(t, e) { - const n = e ? rh : rs; +function Hr(t, e) { + const n = e ? Qc : is; let r = "", { scheme: i, authority: s, path: a, query: o, fragment: l } = t; if (i && (r += i, r += ":"), (s || i === "file") && (r += $e, r += $e), s) { let c = s.indexOf("@"); @@ -2683,20 +2532,20 @@ function qr(t, e) { } r += n(a, !0, !1); } - return o && (r += "?", r += n(o, !1, !1)), l && (r += "#", r += e ? l : rs(l, !1, !1)), r; + return o && (r += "?", r += n(o, !1, !1)), l && (r += "#", r += e ? l : is(l, !1, !1)), r; } -function al(t) { +function sl(t) { try { return decodeURIComponent(t); } catch { - return t.length > 3 ? t.substr(0, 3) + al(t.substr(3)) : t; + return t.length > 3 ? t.substr(0, 3) + sl(t.substr(3)) : t; } } -const is = /(%[0-9A-Za-z][0-9A-Za-z])+/g; -function Dn(t) { - return t.match(is) ? t.replace(is, (e) => al(e)) : t; +const ss = /(%[0-9A-Za-z][0-9A-Za-z])+/g; +function zn(t) { + return t.match(ss) ? t.replace(ss, (e) => sl(e)) : t; } -let Ge = class Ct { +let Ke = class Ct { constructor(e, n) { this.lineNumber = e, this.column = n; } @@ -2794,7 +2643,7 @@ let Ge = class Ct { static isIPosition(e) { return e && typeof e.lineNumber == "number" && typeof e.column == "number"; } -}, Ee = class ce { +}, De = class ue { constructor(e, n, r, i) { e > r || e === r && n > i ? (this.startLineNumber = r, this.startColumn = i, this.endLineNumber = e, this.endColumn = n) : (this.startLineNumber = e, this.startColumn = n, this.endLineNumber = r, this.endColumn = i); } @@ -2802,7 +2651,7 @@ let Ge = class Ct { * Test if this range is empty. */ isEmpty() { - return ce.isEmpty(this); + return ue.isEmpty(this); } /** * Test if `range` is empty. @@ -2814,7 +2663,7 @@ let Ge = class Ct { * Test if position is in this range. If the position is at the edges, will return true. */ containsPosition(e) { - return ce.containsPosition(this, e); + return ue.containsPosition(this, e); } /** * Test if `position` is in `range`. If the position is at the edges, will return true. @@ -2833,7 +2682,7 @@ let Ge = class Ct { * Test if range is in this range. If the range is equal to this range, will return true. */ containsRange(e) { - return ce.containsRange(this, e); + return ue.containsRange(this, e); } /** * Test if `otherRange` is in `range`. If the ranges are equal, will return true. @@ -2845,7 +2694,7 @@ let Ge = class Ct { * Test if `range` is strictly in this range. `range` must start after and end before this range for the result to be true. */ strictContainsRange(e) { - return ce.strictContainsRange(this, e); + return ue.strictContainsRange(this, e); } /** * Test if `otherRange` is strictly in `range` (must start after, and end before). If the ranges are equal, will return false. @@ -2858,7 +2707,7 @@ let Ge = class Ct { * The smallest position will be used as the start point, and the largest one as the end point. */ plusRange(e) { - return ce.plusRange(this, e); + return ue.plusRange(this, e); } /** * A reunion of the two ranges. @@ -2866,13 +2715,13 @@ let Ge = class Ct { */ static plusRange(e, n) { let r, i, s, a; - return n.startLineNumber < e.startLineNumber ? (r = n.startLineNumber, i = n.startColumn) : n.startLineNumber === e.startLineNumber ? (r = n.startLineNumber, i = Math.min(n.startColumn, e.startColumn)) : (r = e.startLineNumber, i = e.startColumn), n.endLineNumber > e.endLineNumber ? (s = n.endLineNumber, a = n.endColumn) : n.endLineNumber === e.endLineNumber ? (s = n.endLineNumber, a = Math.max(n.endColumn, e.endColumn)) : (s = e.endLineNumber, a = e.endColumn), new ce(r, i, s, a); + return n.startLineNumber < e.startLineNumber ? (r = n.startLineNumber, i = n.startColumn) : n.startLineNumber === e.startLineNumber ? (r = n.startLineNumber, i = Math.min(n.startColumn, e.startColumn)) : (r = e.startLineNumber, i = e.startColumn), n.endLineNumber > e.endLineNumber ? (s = n.endLineNumber, a = n.endColumn) : n.endLineNumber === e.endLineNumber ? (s = n.endLineNumber, a = Math.max(n.endColumn, e.endColumn)) : (s = e.endLineNumber, a = e.endColumn), new ue(r, i, s, a); } /** * A intersection of the two ranges. */ intersectRanges(e) { - return ce.intersectRanges(this, e); + return ue.intersectRanges(this, e); } /** * A intersection of the two ranges. @@ -2880,13 +2729,13 @@ let Ge = class Ct { static intersectRanges(e, n) { let r = e.startLineNumber, i = e.startColumn, s = e.endLineNumber, a = e.endColumn; const o = n.startLineNumber, l = n.startColumn, c = n.endLineNumber, h = n.endColumn; - return r < o ? (r = o, i = l) : r === o && (i = Math.max(i, l)), s > c ? (s = c, a = h) : s === c && (a = Math.min(a, h)), r > s || r === s && i > a ? null : new ce(r, i, s, a); + return r < o ? (r = o, i = l) : r === o && (i = Math.max(i, l)), s > c ? (s = c, a = h) : s === c && (a = Math.min(a, h)), r > s || r === s && i > a ? null : new ue(r, i, s, a); } /** * Test if this range equals other. */ equalsRange(e) { - return ce.equalsRange(this, e); + return ue.equalsRange(this, e); } /** * Test if range `a` equals `b`. @@ -2898,25 +2747,25 @@ let Ge = class Ct { * Return the end position (which will be after or equal to the start position) */ getEndPosition() { - return ce.getEndPosition(this); + return ue.getEndPosition(this); } /** * Return the end position (which will be after or equal to the start position) */ static getEndPosition(e) { - return new Ge(e.endLineNumber, e.endColumn); + return new Ke(e.endLineNumber, e.endColumn); } /** * Return the start position (which will be before or equal to the end position) */ getStartPosition() { - return ce.getStartPosition(this); + return ue.getStartPosition(this); } /** * Return the start position (which will be before or equal to the end position) */ static getStartPosition(e) { - return new Ge(e.startLineNumber, e.startColumn); + return new Ke(e.startLineNumber, e.startColumn); } /** * Transform to a user presentable string representation. @@ -2928,50 +2777,50 @@ let Ge = class Ct { * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position. */ setEndPosition(e, n) { - return new ce(this.startLineNumber, this.startColumn, e, n); + return new ue(this.startLineNumber, this.startColumn, e, n); } /** * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position. */ setStartPosition(e, n) { - return new ce(e, n, this.endLineNumber, this.endColumn); + return new ue(e, n, this.endLineNumber, this.endColumn); } /** * Create a new empty range using this range's start position. */ collapseToStart() { - return ce.collapseToStart(this); + return ue.collapseToStart(this); } /** * Create a new empty range using this range's start position. */ static collapseToStart(e) { - return new ce(e.startLineNumber, e.startColumn, e.startLineNumber, e.startColumn); + return new ue(e.startLineNumber, e.startColumn, e.startLineNumber, e.startColumn); } /** * Create a new empty range using this range's end position. */ collapseToEnd() { - return ce.collapseToEnd(this); + return ue.collapseToEnd(this); } /** * Create a new empty range using this range's end position. */ static collapseToEnd(e) { - return new ce(e.endLineNumber, e.endColumn, e.endLineNumber, e.endColumn); + return new ue(e.endLineNumber, e.endColumn, e.endLineNumber, e.endColumn); } /** * Moves the range by the given amount of lines. */ delta(e) { - return new ce(this.startLineNumber + e, this.startColumn, this.endLineNumber + e, this.endColumn); + return new ue(this.startLineNumber + e, this.startColumn, this.endLineNumber + e, this.endColumn); } // --- static fromPositions(e, n = e) { - return new ce(e.lineNumber, e.column, n.lineNumber, n.column); + return new ue(e.lineNumber, e.column, n.lineNumber, n.column); } static lift(e) { - return e ? new ce(e.startLineNumber, e.startColumn, e.endLineNumber, e.endColumn) : null; + return e ? new ue(e.startLineNumber, e.startColumn, e.endLineNumber, e.endColumn) : null; } /** * Test if `obj` is an `IRange`. @@ -3003,8 +2852,8 @@ let Ge = class Ct { if (o === l) { const c = e.endLineNumber | 0, h = n.endLineNumber | 0; if (c === h) { - const u = e.endColumn | 0, f = n.endColumn | 0; - return u - f; + const u = e.endColumn | 0, m = n.endColumn | 0; + return u - m; } return c - h; } @@ -3031,8 +2880,7 @@ let Ge = class Ct { return this; } }; -globalThis && globalThis.__awaiter; -var ss; +var as; (function(t) { function e(i) { return i < 0; @@ -3046,30 +2894,27 @@ var ss; return i === 0; } t.isNeitherLessOrGreaterThan = r, t.greaterThan = 1, t.lessThan = -1, t.neitherLessOrGreaterThan = 0; -})(ss || (ss = {})); -function as(t) { +})(as || (as = {})); +function os(t) { return t < 0 ? 0 : t > 255 ? 255 : t | 0; } -function zt(t) { +function Nt(t) { return t < 0 ? 0 : t > 4294967295 ? 4294967295 : t | 0; } -class ih { +class Zc { constructor(e) { this.values = e, this.prefixSum = new Uint32Array(e.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1; } - getCount() { - return this.values.length; - } insertValues(e, n) { - e = zt(e); + e = Nt(e); const r = this.values, i = this.prefixSum, s = n.length; return s === 0 ? !1 : (this.values = new Uint32Array(r.length + s), this.values.set(r.subarray(0, e), 0), this.values.set(r.subarray(e), e + s), this.values.set(n, e), e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(i.subarray(0, this.prefixSumValidIndex[0] + 1)), !0); } setValue(e, n) { - return e = zt(e), n = zt(n), this.values[e] === n ? !1 : (this.values[e] = n, e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), !0); + return e = Nt(e), n = Nt(n), this.values[e] === n ? !1 : (this.values[e] = n, e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), !0); } removeValues(e, n) { - e = zt(e), n = zt(n); + e = Nt(e), n = Nt(n); const r = this.values, i = this.prefixSum; if (e >= r.length) return !1; @@ -3084,7 +2929,7 @@ class ih { * @returns `SUM(0 <= j <= index, values[j])`. */ getPrefixSum(e) { - return e < 0 ? 0 : (e = zt(e), this._getPrefixSum(e)); + return e < 0 ? 0 : (e = Nt(e), this._getPrefixSum(e)); } _getPrefixSum(e) { if (e <= this.prefixSumValidIndex[0]) @@ -3105,15 +2950,15 @@ class ih { n = i + 1; else break; - return new sh(i, e - a); + return new eh(i, e - a); } } -class sh { +class eh { constructor(e, n) { this.index = e, this.remainder = n, this._prefixSumIndexOfResultBrand = void 0, this.index = e, this.remainder = n; } } -class ah { +class th { constructor(e, n, r, i) { this._uri = e, this._lines = n, this._eol = r, this._versionId = i, this._lineStarts = null, this._cachedTextValue = null; } @@ -3130,7 +2975,7 @@ class ah { e.eol && e.eol !== this._eol && (this._eol = e.eol, this._lineStarts = null); const n = e.changes; for (const r of n) - this._acceptDeleteRange(r.range), this._acceptInsertText(new Ge(r.range.startLineNumber, r.range.startColumn), r.text); + this._acceptDeleteRange(r.range), this._acceptInsertText(new Ke(r.range.startLineNumber, r.range.startColumn), r.text); this._versionId = e.versionId, this._cachedTextValue = null; } _ensureLineStarts() { @@ -3138,7 +2983,7 @@ class ah { const e = this._eol.length, n = this._lines.length, r = new Uint32Array(n); for (let i = 0; i < n; i++) r[i] = this._lines[i].length + e; - this._lineStarts = new ih(r); + this._lineStarts = new Zc(r); } } /** @@ -3159,7 +3004,7 @@ class ah { _acceptInsertText(e, n) { if (n.length === 0) return; - const r = kc(n); + const r = vc(n); if (r.length === 1) { this._setLineText(e.lineNumber - 1, this._lines[e.lineNumber - 1].substring(0, e.column - 1) + r[0] + this._lines[e.lineNumber - 1].substring(e.column - 1)); return; @@ -3171,16 +3016,16 @@ class ah { this._lineStarts && this._lineStarts.insertValues(e.lineNumber, i); } } -const oh = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"; -function lh(t = "") { +const nh = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"; +function rh(t = "") { let e = "(-?\\d*\\.\\d\\w*)|([^"; - for (const n of oh) + for (const n of nh) t.indexOf(n) >= 0 || (e += "\\" + n); return e += "\\s]+)", new RegExp(e, "g"); } -const ol = lh(); -function ch(t) { - let e = ol; +const al = rh(); +function ih(t) { + let e = al; if (t && t instanceof RegExp) if (t.global) e = t; @@ -3190,23 +3035,23 @@ function ch(t) { } return e.lastIndex = 0, e; } -const ll = new Hn(); -ll.unshift({ +const ol = new Zl(); +ol.unshift({ maxLen: 1e3, windowSize: 15, timeBudget: 150 }); -function ki(t, e, n, r, i) { - if (i || (i = qn.first(ll)), n.length > i.maxLen) { +function Fi(t, e, n, r, i) { + if (i || (i = Gn.first(ol)), n.length > i.maxLen) { let c = t - i.maxLen / 2; - return c < 0 ? c = 0 : r += c, n = n.substring(c, t + i.maxLen / 2), ki(t, e, n, r, i); + return c < 0 ? c = 0 : r += c, n = n.substring(c, t + i.maxLen / 2), Fi(t, e, n, r, i); } const s = Date.now(), a = t - 1 - r; let o = -1, l = null; for (let c = 1; !(Date.now() - s >= i.timeBudget); c++) { const h = a - i.windowSize * c; e.lastIndex = Math.max(0, h); - const u = hh(e, n, a, o); + const u = sh(e, n, a, o); if (!u && l || (l = u, h <= 0)) break; o = h; @@ -3221,7 +3066,7 @@ function ki(t, e, n, r, i) { } return null; } -function hh(t, e, n, r) { +function sh(t, e, n, r) { let i; for (; i = t.exec(e); ) { const s = i.index || 0; @@ -3232,17 +3077,17 @@ function hh(t, e, n, r) { } return null; } -class _i { +class Ri { constructor(e) { - const n = as(e); - this._defaultValue = n, this._asciiMap = _i._createAsciiMap(n), this._map = /* @__PURE__ */ new Map(); + const n = os(e); + this._defaultValue = n, this._asciiMap = Ri._createAsciiMap(n), this._map = /* @__PURE__ */ new Map(); } static _createAsciiMap(e) { const n = new Uint8Array(256); return n.fill(e), n; } set(e, n) { - const r = as(n); + const r = os(n); e >= 0 && e < 256 ? this._asciiMap[e] = r : this._map.set(e, r); } get(e) { @@ -3252,7 +3097,7 @@ class _i { this._asciiMap.fill(this._defaultValue), this._map.clear(); } } -class dh { +class ah { constructor(e, n, r) { const i = new Uint8Array(e * n); for (let s = 0, a = e * n; s < a; s++) @@ -3266,7 +3111,7 @@ class dh { this._data[e * this.cols + n] = r; } } -class uh { +class oh { constructor(e) { let n = 0, r = 0; for (let s = 0, a = e.length; s < a; s++) { @@ -3274,7 +3119,7 @@ class uh { l > n && (n = l), o > r && (r = o), c > r && (r = c); } n++, r++; - const i = new dh( + const i = new ah( r, n, 0 @@ -3290,9 +3135,9 @@ class uh { return n < 0 || n >= this._maxCharCode ? 0 : this._states.get(e, n); } } -let vr = null; -function ph() { - return vr === null && (vr = new uh([ +let wr = null; +function lh() { + return wr === null && (wr = new oh([ [ 1, 104, @@ -3425,31 +3270,31 @@ function ph() { 12 /* State.End */ ] - ])), vr; + ])), wr; } -let Kt = null; -function fh() { - if (Kt === null) { - Kt = new _i( +let Qt = null; +function ch() { + if (Qt === null) { + Qt = new Ri( 0 /* CharacterClass.None */ ); const t = ` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`; for (let n = 0; n < t.length; n++) - Kt.set( + Qt.set( t.charCodeAt(n), 1 /* CharacterClass.ForceTermination */ ); const e = ".,;:"; for (let n = 0; n < e.length; n++) - Kt.set( + Qt.set( e.charCodeAt(n), 2 /* CharacterClass.CannotEndIn */ ); } - return Kt; + return Qt; } class Yn { static _createLink(e, n, r, i, s) { @@ -3474,22 +3319,22 @@ class Yn { url: n.substring(i, a + 1) }; } - static computeLinks(e, n = ph()) { - const r = fh(), i = []; + static computeLinks(e, n = lh()) { + const r = ch(), i = []; for (let s = 1, a = e.getLineCount(); s <= a; s++) { const o = e.getLineContent(s), l = o.length; - let c = 0, h = 0, u = 0, f = 1, m = !1, g = !1, b = !1, y = !1; + let c = 0, h = 0, u = 0, m = 1, f = !1, g = !1, b = !1, y = !1; for (; c < l; ) { let w = !1; const x = o.charCodeAt(c); - if (f === 13) { + if (m === 13) { let k; switch (x) { case 40: - m = !0, k = 0; + f = !0, k = 0; break; case 41: - k = m ? 0 : 1; + k = f ? 0 : 1; break; case 91: b = !0, g = !0, k = 0; @@ -3521,22 +3366,22 @@ class Yn { k = r.get(x); } k === 1 && (i.push(Yn._createLink(r, o, s, h, c)), w = !0); - } else if (f === 12) { + } else if (m === 12) { let k; - x === 91 ? (g = !0, k = 0) : k = r.get(x), k === 1 ? w = !0 : f = 13; + x === 91 ? (g = !0, k = 0) : k = r.get(x), k === 1 ? w = !0 : m = 13; } else - f = n.nextState(f, x), f === 0 && (w = !0); - w && (f = 1, m = !1, g = !1, y = !1, h = c + 1, u = x), c++; + m = n.nextState(m, x), m === 0 && (w = !0); + w && (m = 1, f = !1, g = !1, y = !1, h = c + 1, u = x), c++; } - f === 13 && i.push(Yn._createLink(r, o, s, h, l)); + m === 13 && i.push(Yn._createLink(r, o, s, h, l)); } return i; } } -function mh(t) { +function hh(t) { return !t || typeof t.getLineCount != "function" || typeof t.getLineContent != "function" ? [] : Yn.computeLinks(t); } -class $r { +class Gr { constructor() { this._defaultValueSet = [ ["true", "false"], @@ -3588,8 +3433,59 @@ class $r { return i >= 0 ? (i += r ? 1 : -1, i < 0 ? i = e.length - 1 : i %= e.length, e[i]) : null; } } -$r.INSTANCE = new $r(); -class Fi { +Gr.INSTANCE = new Gr(); +const ll = Object.freeze(function(t, e) { + const n = setTimeout(t.bind(e), 0); + return { dispose() { + clearTimeout(n); + } }; +}); +var Kn; +(function(t) { + function e(n) { + return n === t.None || n === t.Cancelled || n instanceof qn ? !0 : !n || typeof n != "object" ? !1 : typeof n.isCancellationRequested == "boolean" && typeof n.onCancellationRequested == "function"; + } + t.isCancellationToken = e, t.None = Object.freeze({ + isCancellationRequested: !1, + onCancellationRequested: Or.None + }), t.Cancelled = Object.freeze({ + isCancellationRequested: !0, + onCancellationRequested: ll + }); +})(Kn || (Kn = {})); +class qn { + 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 ? ll : (this._emitter || (this._emitter = new Xe()), this._emitter.event); + } + dispose() { + this._emitter && (this._emitter.dispose(), this._emitter = null); + } +} +class dh { + 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 qn()), this._token; + } + cancel() { + this._token ? this._token instanceof qn && this._token.cancel() : this._token = Kn.Cancelled; + } + dispose(e = !1) { + var n; + e && this.cancel(), (n = this._parentListener) === null || n === void 0 || n.dispose(), this._token ? this._token instanceof qn && this._token.dispose() : this._token = Kn.None; + } +} +class Ei { constructor() { this._keyCodeToStr = [], this._strToKeyCode = /* @__PURE__ */ Object.create(null); } @@ -3603,7 +3499,7 @@ class Fi { return this._strToKeyCode[e.toLowerCase()] || 0; } } -const Bn = new Fi(), Hr = new Fi(), Gr = new Fi(), gh = new Array(230), bh = /* @__PURE__ */ Object.create(null), vh = /* @__PURE__ */ Object.create(null); +const $n = new Ei(), Jr = new Ei(), Xr = new Ei(), uh = new Array(230), ph = /* @__PURE__ */ Object.create(null), fh = /* @__PURE__ */ Object.create(null); (function() { const t = "", e = [ // immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel @@ -3724,11 +3620,11 @@ const Bn = new Fi(), Hr = new Fi(), Gr = new Fi(), gh = new Array(230), bh = /* [1, 114, "F17", 75, "F17", 128, "VK_F17", t, t], [1, 115, "F18", 76, "F18", 129, "VK_F18", t, t], [1, 116, "F19", 77, "F19", 130, "VK_F19", t, t], - [1, 117, "F20", 78, "F20", 0, "VK_F20", t, t], - [1, 118, "F21", 79, "F21", 0, "VK_F21", t, t], - [1, 119, "F22", 80, "F22", 0, "VK_F22", t, t], - [1, 120, "F23", 81, "F23", 0, "VK_F23", t, t], - [1, 121, "F24", 82, "F24", 0, "VK_F24", t, t], + [1, 117, "F20", 78, "F20", 131, "VK_F20", t, t], + [1, 118, "F21", 79, "F21", 132, "VK_F21", t, t], + [1, 119, "F22", 80, "F22", 133, "VK_F22", t, t], + [1, 120, "F23", 81, "F23", 134, "VK_F23", t, t], + [1, 121, "F24", 82, "F24", 135, "VK_F24", t, t], [1, 122, "Open", 0, t, 0, t, t, t], [1, 123, "Help", 0, t, 0, t, t, t], [1, 124, "Select", 0, t, 0, t, t, t], @@ -3840,35 +3736,35 @@ const Bn = new Fi(), Hr = new Fi(), Gr = new Fi(), gh = new Array(230), bh = /* [1, 0, t, 0, t, 0, "VK_OEM_CLEAR", t, t] ], n = [], r = []; for (const i of e) { - const [s, a, o, l, c, h, u, f, m] = i; - if (r[a] || (r[a] = !0, bh[o] = a, vh[o.toLowerCase()] = a), !n[l]) { + const [s, a, o, l, c, h, u, m, f] = i; + if (r[a] || (r[a] = !0, ph[o] = a, fh[o.toLowerCase()] = a), !n[l]) { if (n[l] = !0, !c) throw new Error(`String representation missing for key code ${l} around scan code ${o}`); - Bn.define(l, c), Hr.define(l, f || c), Gr.define(l, m || f || c); + $n.define(l, c), Jr.define(l, m || c), Xr.define(l, f || m || c); } - h && (gh[h] = l); + h && (uh[h] = l); } })(); -var os; +var ls; (function(t) { function e(o) { - return Bn.keyCodeToStr(o); + return $n.keyCodeToStr(o); } t.toString = e; function n(o) { - return Bn.strToKeyCode(o); + return $n.strToKeyCode(o); } t.fromString = n; function r(o) { - return Hr.keyCodeToStr(o); + return Jr.keyCodeToStr(o); } t.toUserSettingsUS = r; function i(o) { - return Gr.keyCodeToStr(o); + return Xr.keyCodeToStr(o); } t.toUserSettingsGeneral = i; function s(o) { - return Hr.strToKeyCode(o) || Gr.strToKeyCode(o); + return Jr.strToKeyCode(o) || Xr.strToKeyCode(o); } t.fromUserSettings = s; function a(o) { @@ -3884,15 +3780,15 @@ var os; case 17: return "Right"; } - return Bn.keyCodeToStr(o); + return $n.keyCodeToStr(o); } t.toElectronAccelerator = a; -})(os || (os = {})); -function yh(t, e) { +})(ls || (ls = {})); +function mh(t, e) { const n = (e & 65535) << 16 >>> 0; return (t | n) >>> 0; } -class Ne extends Ee { +class Ne extends De { constructor(e, n, r, i) { super(e, n, r, i), this.selectionStartLineNumber = e, this.selectionStartColumn = n, this.positionLineNumber = r, this.positionColumn = i; } @@ -3930,13 +3826,13 @@ class Ne extends Ee { * Get the position at `positionLineNumber` and `positionColumn`. */ getPosition() { - return new Ge(this.positionLineNumber, this.positionColumn); + return new Ke(this.positionLineNumber, this.positionColumn); } /** * Get the position at the start of the selection. */ getSelectionStart() { - return new Ge(this.selectionStartLineNumber, this.selectionStartColumn); + return new Ke(this.selectionStartLineNumber, this.selectionStartColumn); } /** * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`. @@ -3991,17 +3887,17 @@ class Ne extends Ee { return s === 0 ? new Ne(e, n, r, i) : new Ne(r, i, e, n); } } -const ls = /* @__PURE__ */ Object.create(null); +const cs = /* @__PURE__ */ Object.create(null); function d(t, e) { - if (vc(e)) { - const n = ls[e]; + if (sc(e)) { + const n = cs[e]; if (n === void 0) throw new Error(`${t} references an unknown codicon: ${e}`); e = n; } - return ls[t] = e, { id: t }; + return cs[t] = e, { id: t }; } -const V = { +const q = { // built-in icons, with image name add: d("add", 6e4), plus: d("plus", 6e4), @@ -4543,7 +4439,7 @@ const V = { toolBarMore: d("toolbar-more", "more"), quickInputBack: d("quick-input-back", "arrow-left") }; -var Jr = globalThis && globalThis.__awaiter || function(t, e, n, r) { +var Yr = globalThis && globalThis.__awaiter || function(t, e, n, r) { function i(s) { return s instanceof n ? s : new n(function(a) { a(s); @@ -4570,9 +4466,9 @@ var Jr = globalThis && globalThis.__awaiter || function(t, e, n, r) { c((r = r.apply(t, e || [])).next()); }); }; -class wh { +class gh { constructor() { - this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new Ke(), this.onDidChange = this._onDidChange.event, this._colorMap = null; + this._tokenizationSupports = /* @__PURE__ */ new Map(), this._factories = /* @__PURE__ */ new Map(), this._onDidChange = new Xe(), this.onDidChange = this._onDidChange.event, this._colorMap = null; } handleChange(e) { this._onDidChange.fire({ @@ -4581,7 +4477,7 @@ class wh { }); } register(e, n) { - return this._tokenizationSupports.set(e, n), this.handleChange([e]), $n(() => { + return this._tokenizationSupports.set(e, n), this.handleChange([e]), fn(() => { this._tokenizationSupports.get(e) === n && (this._tokenizationSupports.delete(e), this.handleChange([e])); }); } @@ -4591,14 +4487,14 @@ class wh { registerFactory(e, n) { var r; (r = this._factories.get(e)) === null || r === void 0 || r.dispose(); - const i = new xh(this, e, n); - return this._factories.set(e, i), $n(() => { + const i = new bh(this, e, n); + return this._factories.set(e, i), fn(() => { const s = this._factories.get(e); !s || s !== i || (this._factories.delete(e), s.dispose()); }); } getOrCreate(e) { - return Jr(this, void 0, void 0, function* () { + return Yr(this, void 0, void 0, function* () { const n = this.get(e); if (n) return n; @@ -4628,7 +4524,7 @@ class wh { ] : null; } } -class xh extends dr { +class bh extends mn { get isResolved() { return this._isResolved; } @@ -4639,18 +4535,18 @@ class xh extends dr { this._isDisposed = !0, super.dispose(); } resolve() { - return Jr(this, void 0, void 0, function* () { + return Yr(this, void 0, void 0, function* () { return this._resolvePromise || (this._resolvePromise = this._create()), this._resolvePromise; }); } _create() { - return Jr(this, void 0, void 0, function* () { + return Yr(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)); }); } } -class Sh { +class vh { constructor(e, n, r) { this.offset = e, this.type = n, this.language = r, this._tokenBrand = void 0; } @@ -4658,13 +4554,13 @@ class Sh { return "(" + this.offset + ", " + this.type + ")"; } } -var cs; +var hs; (function(t) { const e = /* @__PURE__ */ new Map(); - e.set(0, V.symbolMethod), e.set(1, V.symbolFunction), e.set(2, V.symbolConstructor), e.set(3, V.symbolField), e.set(4, V.symbolVariable), e.set(5, V.symbolClass), e.set(6, V.symbolStruct), e.set(7, V.symbolInterface), e.set(8, V.symbolModule), e.set(9, V.symbolProperty), e.set(10, V.symbolEvent), e.set(11, V.symbolOperator), e.set(12, V.symbolUnit), e.set(13, V.symbolValue), e.set(15, V.symbolEnum), e.set(14, V.symbolConstant), e.set(15, V.symbolEnum), e.set(16, V.symbolEnumMember), e.set(17, V.symbolKeyword), e.set(27, V.symbolSnippet), e.set(18, V.symbolText), e.set(19, V.symbolColor), e.set(20, V.symbolFile), e.set(21, V.symbolReference), e.set(22, V.symbolCustomColor), e.set(23, V.symbolFolder), e.set(24, V.symbolTypeParameter), e.set(25, V.account), e.set(26, V.issues); + e.set(0, q.symbolMethod), e.set(1, q.symbolFunction), e.set(2, q.symbolConstructor), e.set(3, q.symbolField), e.set(4, q.symbolVariable), e.set(5, q.symbolClass), e.set(6, q.symbolStruct), e.set(7, q.symbolInterface), e.set(8, q.symbolModule), e.set(9, q.symbolProperty), e.set(10, q.symbolEvent), e.set(11, q.symbolOperator), e.set(12, q.symbolUnit), e.set(13, q.symbolValue), e.set(15, q.symbolEnum), e.set(14, q.symbolConstant), e.set(15, q.symbolEnum), e.set(16, q.symbolEnumMember), e.set(17, q.symbolKeyword), e.set(27, q.symbolSnippet), e.set(18, q.symbolText), e.set(19, q.symbolColor), e.set(20, q.symbolFile), e.set(21, q.symbolReference), e.set(22, q.symbolCustomColor), e.set(23, q.symbolFolder), e.set(24, q.symbolTypeParameter), e.set(25, q.account), e.set(26, q.issues); function n(s) { let a = e.get(s); - return a || (console.info("No codicon found for CompletionItemKind " + s), a = V.symbolProperty), a; + return a || (console.info("No codicon found for CompletionItemKind " + s), a = q.symbolProperty), a; } t.toIcon = n; const r = /* @__PURE__ */ new Map(); @@ -4794,261 +4690,242 @@ var cs; return typeof o > "u" && !a && (o = 9), o; } t.fromString = i; -})(cs || (cs = {})); -var hs; -(function(t) { - t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit"; })(hs || (hs = {})); var ds; (function(t) { - t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange"; + t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit"; })(ds || (ds = {})); var us; (function(t) { - t[t.Text = 0] = "Text", t[t.Read = 1] = "Read", t[t.Write = 2] = "Write"; + t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange"; })(us || (us = {})); var ps; +(function(t) { + t[t.Text = 0] = "Text", t[t.Read = 1] = "Read", t[t.Write = 2] = "Write"; +})(ps || (ps = {})); +ae("Array", "array"), ae("Boolean", "boolean"), ae("Class", "class"), ae("Constant", "constant"), ae("Constructor", "constructor"), ae("Enum", "enumeration"), ae("EnumMember", "enumeration member"), ae("Event", "event"), ae("Field", "field"), ae("File", "file"), ae("Function", "function"), ae("Interface", "interface"), ae("Key", "key"), ae("Method", "method"), ae("Module", "module"), ae("Namespace", "namespace"), ae("Null", "null"), ae("Number", "number"), ae("Object", "object"), ae("Operator", "operator"), ae("Package", "package"), ae("Property", "property"), ae("String", "string"), ae("Struct", "struct"), ae("TypeParameter", "type parameter"), ae("Variable", "variable"); +var fs; (function(t) { const e = /* @__PURE__ */ new Map(); - e.set(0, V.symbolFile), e.set(1, V.symbolModule), e.set(2, V.symbolNamespace), e.set(3, V.symbolPackage), e.set(4, V.symbolClass), e.set(5, V.symbolMethod), e.set(6, V.symbolProperty), e.set(7, V.symbolField), e.set(8, V.symbolConstructor), e.set(9, V.symbolEnum), e.set(10, V.symbolInterface), e.set(11, V.symbolFunction), e.set(12, V.symbolVariable), e.set(13, V.symbolConstant), e.set(14, V.symbolString), e.set(15, V.symbolNumber), e.set(16, V.symbolBoolean), e.set(17, V.symbolArray), e.set(18, V.symbolObject), e.set(19, V.symbolKey), e.set(20, V.symbolNull), e.set(21, V.symbolEnumMember), e.set(22, V.symbolStruct), e.set(23, V.symbolEvent), e.set(24, V.symbolOperator), e.set(25, V.symbolTypeParameter); + e.set(0, q.symbolFile), e.set(1, q.symbolModule), e.set(2, q.symbolNamespace), e.set(3, q.symbolPackage), e.set(4, q.symbolClass), e.set(5, q.symbolMethod), e.set(6, q.symbolProperty), e.set(7, q.symbolField), e.set(8, q.symbolConstructor), e.set(9, q.symbolEnum), e.set(10, q.symbolInterface), e.set(11, q.symbolFunction), e.set(12, q.symbolVariable), e.set(13, q.symbolConstant), e.set(14, q.symbolString), e.set(15, q.symbolNumber), e.set(16, q.symbolBoolean), e.set(17, q.symbolArray), e.set(18, q.symbolObject), e.set(19, q.symbolKey), e.set(20, q.symbolNull), e.set(21, q.symbolEnumMember), e.set(22, q.symbolStruct), e.set(23, q.symbolEvent), e.set(24, q.symbolOperator), e.set(25, q.symbolTypeParameter); function n(r) { let i = e.get(r); - return i || (console.info("No codicon found for SymbolKind " + r), i = V.symbolProperty), i; + return i || (console.info("No codicon found for SymbolKind " + r), i = q.symbolProperty), i; } t.toIcon = n; -})(ps || (ps = {})); -var fs; +})(fs || (fs = {})); +var ms; (function(t) { function e(n) { return !n || typeof n != "object" ? !1 : typeof n.id == "string" && typeof n.title == "string"; } t.is = e; -})(fs || (fs = {})); -var ms; -(function(t) { - t[t.Collapsed = 0] = "Collapsed", t[t.Expanded = 1] = "Expanded"; })(ms || (ms = {})); var gs; (function(t) { - t[t.Unresolved = 0] = "Unresolved", t[t.Resolved = 1] = "Resolved"; + t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter"; })(gs || (gs = {})); +new gh(); var bs; (function(t) { - t[t.Editing = 0] = "Editing", t[t.Preview = 1] = "Preview"; + t[t.Unknown = 0] = "Unknown", t[t.Disabled = 1] = "Disabled", t[t.Enabled = 2] = "Enabled"; })(bs || (bs = {})); var vs; (function(t) { - t[t.Published = 0] = "Published", t[t.Draft = 1] = "Draft"; + t[t.Invoke = 1] = "Invoke", t[t.Auto = 2] = "Auto"; })(vs || (vs = {})); var ys; (function(t) { - t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter"; + t[t.None = 0] = "None", t[t.KeepWhitespace = 1] = "KeepWhitespace", t[t.InsertAsSnippet = 4] = "InsertAsSnippet"; })(ys || (ys = {})); -new wh(); var ws; (function(t) { - t[t.None = 0] = "None", t[t.Option = 1] = "Option", t[t.Default = 2] = "Default", t[t.Preferred = 3] = "Preferred"; + t[t.Method = 0] = "Method", t[t.Function = 1] = "Function", t[t.Constructor = 2] = "Constructor", t[t.Field = 3] = "Field", t[t.Variable = 4] = "Variable", t[t.Class = 5] = "Class", t[t.Struct = 6] = "Struct", t[t.Interface = 7] = "Interface", t[t.Module = 8] = "Module", t[t.Property = 9] = "Property", t[t.Event = 10] = "Event", t[t.Operator = 11] = "Operator", t[t.Unit = 12] = "Unit", t[t.Value = 13] = "Value", t[t.Constant = 14] = "Constant", t[t.Enum = 15] = "Enum", t[t.EnumMember = 16] = "EnumMember", t[t.Keyword = 17] = "Keyword", t[t.Text = 18] = "Text", t[t.Color = 19] = "Color", t[t.File = 20] = "File", t[t.Reference = 21] = "Reference", t[t.Customcolor = 22] = "Customcolor", t[t.Folder = 23] = "Folder", t[t.TypeParameter = 24] = "TypeParameter", t[t.User = 25] = "User", t[t.Issue = 26] = "Issue", t[t.Snippet = 27] = "Snippet"; })(ws || (ws = {})); var xs; (function(t) { - t[t.Unknown = 0] = "Unknown", t[t.Disabled = 1] = "Disabled", t[t.Enabled = 2] = "Enabled"; + t[t.Deprecated = 1] = "Deprecated"; })(xs || (xs = {})); var Ss; (function(t) { - t[t.Invoke = 1] = "Invoke", t[t.Auto = 2] = "Auto"; + t[t.Invoke = 0] = "Invoke", t[t.TriggerCharacter = 1] = "TriggerCharacter", t[t.TriggerForIncompleteCompletions = 2] = "TriggerForIncompleteCompletions"; })(Ss || (Ss = {})); var Cs; (function(t) { - t[t.None = 0] = "None", t[t.KeepWhitespace = 1] = "KeepWhitespace", t[t.InsertAsSnippet = 4] = "InsertAsSnippet"; + t[t.EXACT = 0] = "EXACT", t[t.ABOVE = 1] = "ABOVE", t[t.BELOW = 2] = "BELOW"; })(Cs || (Cs = {})); var ks; (function(t) { - t[t.Method = 0] = "Method", t[t.Function = 1] = "Function", t[t.Constructor = 2] = "Constructor", t[t.Field = 3] = "Field", t[t.Variable = 4] = "Variable", t[t.Class = 5] = "Class", t[t.Struct = 6] = "Struct", t[t.Interface = 7] = "Interface", t[t.Module = 8] = "Module", t[t.Property = 9] = "Property", t[t.Event = 10] = "Event", t[t.Operator = 11] = "Operator", t[t.Unit = 12] = "Unit", t[t.Value = 13] = "Value", t[t.Constant = 14] = "Constant", t[t.Enum = 15] = "Enum", t[t.EnumMember = 16] = "EnumMember", t[t.Keyword = 17] = "Keyword", t[t.Text = 18] = "Text", t[t.Color = 19] = "Color", t[t.File = 20] = "File", t[t.Reference = 21] = "Reference", t[t.Customcolor = 22] = "Customcolor", t[t.Folder = 23] = "Folder", t[t.TypeParameter = 24] = "TypeParameter", t[t.User = 25] = "User", t[t.Issue = 26] = "Issue", t[t.Snippet = 27] = "Snippet"; + t[t.NotSet = 0] = "NotSet", t[t.ContentFlush = 1] = "ContentFlush", t[t.RecoverFromMarkers = 2] = "RecoverFromMarkers", t[t.Explicit = 3] = "Explicit", t[t.Paste = 4] = "Paste", t[t.Undo = 5] = "Undo", t[t.Redo = 6] = "Redo"; })(ks || (ks = {})); var _s; (function(t) { - t[t.Deprecated = 1] = "Deprecated"; + t[t.LF = 1] = "LF", t[t.CRLF = 2] = "CRLF"; })(_s || (_s = {})); var Fs; (function(t) { - t[t.Invoke = 0] = "Invoke", t[t.TriggerCharacter = 1] = "TriggerCharacter", t[t.TriggerForIncompleteCompletions = 2] = "TriggerForIncompleteCompletions"; + t[t.Text = 0] = "Text", t[t.Read = 1] = "Read", t[t.Write = 2] = "Write"; })(Fs || (Fs = {})); var Rs; (function(t) { - t[t.EXACT = 0] = "EXACT", t[t.ABOVE = 1] = "ABOVE", t[t.BELOW = 2] = "BELOW"; + t[t.None = 0] = "None", t[t.Keep = 1] = "Keep", t[t.Brackets = 2] = "Brackets", t[t.Advanced = 3] = "Advanced", t[t.Full = 4] = "Full"; })(Rs || (Rs = {})); var Es; (function(t) { - t[t.NotSet = 0] = "NotSet", t[t.ContentFlush = 1] = "ContentFlush", t[t.RecoverFromMarkers = 2] = "RecoverFromMarkers", t[t.Explicit = 3] = "Explicit", t[t.Paste = 4] = "Paste", t[t.Undo = 5] = "Undo", t[t.Redo = 6] = "Redo"; + t[t.acceptSuggestionOnCommitCharacter = 0] = "acceptSuggestionOnCommitCharacter", t[t.acceptSuggestionOnEnter = 1] = "acceptSuggestionOnEnter", t[t.accessibilitySupport = 2] = "accessibilitySupport", t[t.accessibilityPageSize = 3] = "accessibilityPageSize", t[t.ariaLabel = 4] = "ariaLabel", t[t.ariaRequired = 5] = "ariaRequired", t[t.autoClosingBrackets = 6] = "autoClosingBrackets", t[t.screenReaderAnnounceInlineSuggestion = 7] = "screenReaderAnnounceInlineSuggestion", t[t.autoClosingDelete = 8] = "autoClosingDelete", t[t.autoClosingOvertype = 9] = "autoClosingOvertype", t[t.autoClosingQuotes = 10] = "autoClosingQuotes", t[t.autoIndent = 11] = "autoIndent", t[t.automaticLayout = 12] = "automaticLayout", t[t.autoSurround = 13] = "autoSurround", t[t.bracketPairColorization = 14] = "bracketPairColorization", t[t.guides = 15] = "guides", t[t.codeLens = 16] = "codeLens", t[t.codeLensFontFamily = 17] = "codeLensFontFamily", t[t.codeLensFontSize = 18] = "codeLensFontSize", t[t.colorDecorators = 19] = "colorDecorators", t[t.colorDecoratorsLimit = 20] = "colorDecoratorsLimit", t[t.columnSelection = 21] = "columnSelection", t[t.comments = 22] = "comments", t[t.contextmenu = 23] = "contextmenu", t[t.copyWithSyntaxHighlighting = 24] = "copyWithSyntaxHighlighting", t[t.cursorBlinking = 25] = "cursorBlinking", t[t.cursorSmoothCaretAnimation = 26] = "cursorSmoothCaretAnimation", t[t.cursorStyle = 27] = "cursorStyle", t[t.cursorSurroundingLines = 28] = "cursorSurroundingLines", t[t.cursorSurroundingLinesStyle = 29] = "cursorSurroundingLinesStyle", t[t.cursorWidth = 30] = "cursorWidth", t[t.disableLayerHinting = 31] = "disableLayerHinting", t[t.disableMonospaceOptimizations = 32] = "disableMonospaceOptimizations", t[t.domReadOnly = 33] = "domReadOnly", t[t.dragAndDrop = 34] = "dragAndDrop", t[t.dropIntoEditor = 35] = "dropIntoEditor", t[t.emptySelectionClipboard = 36] = "emptySelectionClipboard", t[t.experimentalWhitespaceRendering = 37] = "experimentalWhitespaceRendering", t[t.extraEditorClassName = 38] = "extraEditorClassName", t[t.fastScrollSensitivity = 39] = "fastScrollSensitivity", t[t.find = 40] = "find", t[t.fixedOverflowWidgets = 41] = "fixedOverflowWidgets", t[t.folding = 42] = "folding", t[t.foldingStrategy = 43] = "foldingStrategy", t[t.foldingHighlight = 44] = "foldingHighlight", t[t.foldingImportsByDefault = 45] = "foldingImportsByDefault", t[t.foldingMaximumRegions = 46] = "foldingMaximumRegions", t[t.unfoldOnClickAfterEndOfLine = 47] = "unfoldOnClickAfterEndOfLine", t[t.fontFamily = 48] = "fontFamily", t[t.fontInfo = 49] = "fontInfo", t[t.fontLigatures = 50] = "fontLigatures", t[t.fontSize = 51] = "fontSize", t[t.fontWeight = 52] = "fontWeight", t[t.fontVariations = 53] = "fontVariations", t[t.formatOnPaste = 54] = "formatOnPaste", t[t.formatOnType = 55] = "formatOnType", t[t.glyphMargin = 56] = "glyphMargin", t[t.gotoLocation = 57] = "gotoLocation", t[t.hideCursorInOverviewRuler = 58] = "hideCursorInOverviewRuler", t[t.hover = 59] = "hover", t[t.inDiffEditor = 60] = "inDiffEditor", t[t.inlineSuggest = 61] = "inlineSuggest", t[t.letterSpacing = 62] = "letterSpacing", t[t.lightbulb = 63] = "lightbulb", t[t.lineDecorationsWidth = 64] = "lineDecorationsWidth", t[t.lineHeight = 65] = "lineHeight", t[t.lineNumbers = 66] = "lineNumbers", t[t.lineNumbersMinChars = 67] = "lineNumbersMinChars", t[t.linkedEditing = 68] = "linkedEditing", t[t.links = 69] = "links", t[t.matchBrackets = 70] = "matchBrackets", t[t.minimap = 71] = "minimap", t[t.mouseStyle = 72] = "mouseStyle", t[t.mouseWheelScrollSensitivity = 73] = "mouseWheelScrollSensitivity", t[t.mouseWheelZoom = 74] = "mouseWheelZoom", t[t.multiCursorMergeOverlapping = 75] = "multiCursorMergeOverlapping", t[t.multiCursorModifier = 76] = "multiCursorModifier", t[t.multiCursorPaste = 77] = "multiCursorPaste", t[t.multiCursorLimit = 78] = "multiCursorLimit", t[t.occurrencesHighlight = 79] = "occurrencesHighlight", t[t.overviewRulerBorder = 80] = "overviewRulerBorder", t[t.overviewRulerLanes = 81] = "overviewRulerLanes", t[t.padding = 82] = "padding", t[t.pasteAs = 83] = "pasteAs", t[t.parameterHints = 84] = "parameterHints", t[t.peekWidgetDefaultFocus = 85] = "peekWidgetDefaultFocus", t[t.definitionLinkOpensInPeek = 86] = "definitionLinkOpensInPeek", t[t.quickSuggestions = 87] = "quickSuggestions", t[t.quickSuggestionsDelay = 88] = "quickSuggestionsDelay", t[t.readOnly = 89] = "readOnly", t[t.readOnlyMessage = 90] = "readOnlyMessage", t[t.renameOnType = 91] = "renameOnType", t[t.renderControlCharacters = 92] = "renderControlCharacters", t[t.renderFinalNewline = 93] = "renderFinalNewline", t[t.renderLineHighlight = 94] = "renderLineHighlight", t[t.renderLineHighlightOnlyWhenFocus = 95] = "renderLineHighlightOnlyWhenFocus", t[t.renderValidationDecorations = 96] = "renderValidationDecorations", t[t.renderWhitespace = 97] = "renderWhitespace", t[t.revealHorizontalRightPadding = 98] = "revealHorizontalRightPadding", t[t.roundedSelection = 99] = "roundedSelection", t[t.rulers = 100] = "rulers", t[t.scrollbar = 101] = "scrollbar", t[t.scrollBeyondLastColumn = 102] = "scrollBeyondLastColumn", t[t.scrollBeyondLastLine = 103] = "scrollBeyondLastLine", t[t.scrollPredominantAxis = 104] = "scrollPredominantAxis", t[t.selectionClipboard = 105] = "selectionClipboard", t[t.selectionHighlight = 106] = "selectionHighlight", t[t.selectOnLineNumbers = 107] = "selectOnLineNumbers", t[t.showFoldingControls = 108] = "showFoldingControls", t[t.showUnused = 109] = "showUnused", t[t.snippetSuggestions = 110] = "snippetSuggestions", t[t.smartSelect = 111] = "smartSelect", t[t.smoothScrolling = 112] = "smoothScrolling", t[t.stickyScroll = 113] = "stickyScroll", t[t.stickyTabStops = 114] = "stickyTabStops", t[t.stopRenderingLineAfter = 115] = "stopRenderingLineAfter", t[t.suggest = 116] = "suggest", t[t.suggestFontSize = 117] = "suggestFontSize", t[t.suggestLineHeight = 118] = "suggestLineHeight", t[t.suggestOnTriggerCharacters = 119] = "suggestOnTriggerCharacters", t[t.suggestSelection = 120] = "suggestSelection", t[t.tabCompletion = 121] = "tabCompletion", t[t.tabIndex = 122] = "tabIndex", t[t.unicodeHighlighting = 123] = "unicodeHighlighting", t[t.unusualLineTerminators = 124] = "unusualLineTerminators", t[t.useShadowDOM = 125] = "useShadowDOM", t[t.useTabStops = 126] = "useTabStops", t[t.wordBreak = 127] = "wordBreak", t[t.wordSeparators = 128] = "wordSeparators", t[t.wordWrap = 129] = "wordWrap", t[t.wordWrapBreakAfterCharacters = 130] = "wordWrapBreakAfterCharacters", t[t.wordWrapBreakBeforeCharacters = 131] = "wordWrapBreakBeforeCharacters", t[t.wordWrapColumn = 132] = "wordWrapColumn", t[t.wordWrapOverride1 = 133] = "wordWrapOverride1", t[t.wordWrapOverride2 = 134] = "wordWrapOverride2", t[t.wrappingIndent = 135] = "wrappingIndent", t[t.wrappingStrategy = 136] = "wrappingStrategy", t[t.showDeprecated = 137] = "showDeprecated", t[t.inlayHints = 138] = "inlayHints", t[t.editorClassName = 139] = "editorClassName", t[t.pixelRatio = 140] = "pixelRatio", t[t.tabFocusMode = 141] = "tabFocusMode", t[t.layoutInfo = 142] = "layoutInfo", t[t.wrappingInfo = 143] = "wrappingInfo", t[t.defaultColorDecorators = 144] = "defaultColorDecorators", t[t.colorDecoratorsActivatedOn = 145] = "colorDecoratorsActivatedOn"; })(Es || (Es = {})); var Ds; (function(t) { - t[t.LF = 1] = "LF", t[t.CRLF = 2] = "CRLF"; + t[t.TextDefined = 0] = "TextDefined", t[t.LF = 1] = "LF", t[t.CRLF = 2] = "CRLF"; })(Ds || (Ds = {})); var As; (function(t) { - t[t.Text = 0] = "Text", t[t.Read = 1] = "Read", t[t.Write = 2] = "Write"; + t[t.LF = 0] = "LF", t[t.CRLF = 1] = "CRLF"; })(As || (As = {})); var Ms; (function(t) { - t[t.None = 0] = "None", t[t.Keep = 1] = "Keep", t[t.Brackets = 2] = "Brackets", t[t.Advanced = 3] = "Advanced", t[t.Full = 4] = "Full"; + t[t.Left = 1] = "Left", t[t.Right = 2] = "Right"; })(Ms || (Ms = {})); var Ns; (function(t) { - t[t.acceptSuggestionOnCommitCharacter = 0] = "acceptSuggestionOnCommitCharacter", t[t.acceptSuggestionOnEnter = 1] = "acceptSuggestionOnEnter", t[t.accessibilitySupport = 2] = "accessibilitySupport", t[t.accessibilityPageSize = 3] = "accessibilityPageSize", t[t.ariaLabel = 4] = "ariaLabel", t[t.autoClosingBrackets = 5] = "autoClosingBrackets", t[t.screenReaderAnnounceInlineSuggestion = 6] = "screenReaderAnnounceInlineSuggestion", t[t.autoClosingDelete = 7] = "autoClosingDelete", t[t.autoClosingOvertype = 8] = "autoClosingOvertype", t[t.autoClosingQuotes = 9] = "autoClosingQuotes", t[t.autoIndent = 10] = "autoIndent", t[t.automaticLayout = 11] = "automaticLayout", t[t.autoSurround = 12] = "autoSurround", t[t.bracketPairColorization = 13] = "bracketPairColorization", t[t.guides = 14] = "guides", t[t.codeLens = 15] = "codeLens", t[t.codeLensFontFamily = 16] = "codeLensFontFamily", t[t.codeLensFontSize = 17] = "codeLensFontSize", t[t.colorDecorators = 18] = "colorDecorators", t[t.colorDecoratorsLimit = 19] = "colorDecoratorsLimit", t[t.columnSelection = 20] = "columnSelection", t[t.comments = 21] = "comments", t[t.contextmenu = 22] = "contextmenu", t[t.copyWithSyntaxHighlighting = 23] = "copyWithSyntaxHighlighting", t[t.cursorBlinking = 24] = "cursorBlinking", t[t.cursorSmoothCaretAnimation = 25] = "cursorSmoothCaretAnimation", t[t.cursorStyle = 26] = "cursorStyle", t[t.cursorSurroundingLines = 27] = "cursorSurroundingLines", t[t.cursorSurroundingLinesStyle = 28] = "cursorSurroundingLinesStyle", t[t.cursorWidth = 29] = "cursorWidth", t[t.disableLayerHinting = 30] = "disableLayerHinting", t[t.disableMonospaceOptimizations = 31] = "disableMonospaceOptimizations", t[t.domReadOnly = 32] = "domReadOnly", t[t.dragAndDrop = 33] = "dragAndDrop", t[t.dropIntoEditor = 34] = "dropIntoEditor", t[t.emptySelectionClipboard = 35] = "emptySelectionClipboard", t[t.experimentalWhitespaceRendering = 36] = "experimentalWhitespaceRendering", t[t.extraEditorClassName = 37] = "extraEditorClassName", t[t.fastScrollSensitivity = 38] = "fastScrollSensitivity", t[t.find = 39] = "find", t[t.fixedOverflowWidgets = 40] = "fixedOverflowWidgets", t[t.folding = 41] = "folding", t[t.foldingStrategy = 42] = "foldingStrategy", t[t.foldingHighlight = 43] = "foldingHighlight", t[t.foldingImportsByDefault = 44] = "foldingImportsByDefault", t[t.foldingMaximumRegions = 45] = "foldingMaximumRegions", t[t.unfoldOnClickAfterEndOfLine = 46] = "unfoldOnClickAfterEndOfLine", t[t.fontFamily = 47] = "fontFamily", t[t.fontInfo = 48] = "fontInfo", t[t.fontLigatures = 49] = "fontLigatures", t[t.fontSize = 50] = "fontSize", t[t.fontWeight = 51] = "fontWeight", t[t.fontVariations = 52] = "fontVariations", t[t.formatOnPaste = 53] = "formatOnPaste", t[t.formatOnType = 54] = "formatOnType", t[t.glyphMargin = 55] = "glyphMargin", t[t.gotoLocation = 56] = "gotoLocation", t[t.hideCursorInOverviewRuler = 57] = "hideCursorInOverviewRuler", t[t.hover = 58] = "hover", t[t.inDiffEditor = 59] = "inDiffEditor", t[t.inlineSuggest = 60] = "inlineSuggest", t[t.letterSpacing = 61] = "letterSpacing", t[t.lightbulb = 62] = "lightbulb", t[t.lineDecorationsWidth = 63] = "lineDecorationsWidth", t[t.lineHeight = 64] = "lineHeight", t[t.lineNumbers = 65] = "lineNumbers", t[t.lineNumbersMinChars = 66] = "lineNumbersMinChars", t[t.linkedEditing = 67] = "linkedEditing", t[t.links = 68] = "links", t[t.matchBrackets = 69] = "matchBrackets", t[t.minimap = 70] = "minimap", t[t.mouseStyle = 71] = "mouseStyle", t[t.mouseWheelScrollSensitivity = 72] = "mouseWheelScrollSensitivity", t[t.mouseWheelZoom = 73] = "mouseWheelZoom", t[t.multiCursorMergeOverlapping = 74] = "multiCursorMergeOverlapping", t[t.multiCursorModifier = 75] = "multiCursorModifier", t[t.multiCursorPaste = 76] = "multiCursorPaste", t[t.multiCursorLimit = 77] = "multiCursorLimit", t[t.occurrencesHighlight = 78] = "occurrencesHighlight", t[t.overviewRulerBorder = 79] = "overviewRulerBorder", t[t.overviewRulerLanes = 80] = "overviewRulerLanes", t[t.padding = 81] = "padding", t[t.parameterHints = 82] = "parameterHints", t[t.peekWidgetDefaultFocus = 83] = "peekWidgetDefaultFocus", t[t.definitionLinkOpensInPeek = 84] = "definitionLinkOpensInPeek", t[t.quickSuggestions = 85] = "quickSuggestions", t[t.quickSuggestionsDelay = 86] = "quickSuggestionsDelay", t[t.readOnly = 87] = "readOnly", t[t.renameOnType = 88] = "renameOnType", t[t.renderControlCharacters = 89] = "renderControlCharacters", t[t.renderFinalNewline = 90] = "renderFinalNewline", t[t.renderLineHighlight = 91] = "renderLineHighlight", t[t.renderLineHighlightOnlyWhenFocus = 92] = "renderLineHighlightOnlyWhenFocus", t[t.renderValidationDecorations = 93] = "renderValidationDecorations", t[t.renderWhitespace = 94] = "renderWhitespace", t[t.revealHorizontalRightPadding = 95] = "revealHorizontalRightPadding", t[t.roundedSelection = 96] = "roundedSelection", t[t.rulers = 97] = "rulers", t[t.scrollbar = 98] = "scrollbar", t[t.scrollBeyondLastColumn = 99] = "scrollBeyondLastColumn", t[t.scrollBeyondLastLine = 100] = "scrollBeyondLastLine", t[t.scrollPredominantAxis = 101] = "scrollPredominantAxis", t[t.selectionClipboard = 102] = "selectionClipboard", t[t.selectionHighlight = 103] = "selectionHighlight", t[t.selectOnLineNumbers = 104] = "selectOnLineNumbers", t[t.showFoldingControls = 105] = "showFoldingControls", t[t.showUnused = 106] = "showUnused", t[t.snippetSuggestions = 107] = "snippetSuggestions", t[t.smartSelect = 108] = "smartSelect", t[t.smoothScrolling = 109] = "smoothScrolling", t[t.stickyScroll = 110] = "stickyScroll", t[t.stickyTabStops = 111] = "stickyTabStops", t[t.stopRenderingLineAfter = 112] = "stopRenderingLineAfter", t[t.suggest = 113] = "suggest", t[t.suggestFontSize = 114] = "suggestFontSize", t[t.suggestLineHeight = 115] = "suggestLineHeight", t[t.suggestOnTriggerCharacters = 116] = "suggestOnTriggerCharacters", t[t.suggestSelection = 117] = "suggestSelection", t[t.tabCompletion = 118] = "tabCompletion", t[t.tabIndex = 119] = "tabIndex", t[t.unicodeHighlighting = 120] = "unicodeHighlighting", t[t.unusualLineTerminators = 121] = "unusualLineTerminators", t[t.useShadowDOM = 122] = "useShadowDOM", t[t.useTabStops = 123] = "useTabStops", t[t.wordBreak = 124] = "wordBreak", t[t.wordSeparators = 125] = "wordSeparators", t[t.wordWrap = 126] = "wordWrap", t[t.wordWrapBreakAfterCharacters = 127] = "wordWrapBreakAfterCharacters", t[t.wordWrapBreakBeforeCharacters = 128] = "wordWrapBreakBeforeCharacters", t[t.wordWrapColumn = 129] = "wordWrapColumn", t[t.wordWrapOverride1 = 130] = "wordWrapOverride1", t[t.wordWrapOverride2 = 131] = "wordWrapOverride2", t[t.wrappingIndent = 132] = "wrappingIndent", t[t.wrappingStrategy = 133] = "wrappingStrategy", t[t.showDeprecated = 134] = "showDeprecated", t[t.inlayHints = 135] = "inlayHints", t[t.editorClassName = 136] = "editorClassName", t[t.pixelRatio = 137] = "pixelRatio", t[t.tabFocusMode = 138] = "tabFocusMode", t[t.layoutInfo = 139] = "layoutInfo", t[t.wrappingInfo = 140] = "wrappingInfo", t[t.defaultColorDecorators = 141] = "defaultColorDecorators"; + t[t.None = 0] = "None", t[t.Indent = 1] = "Indent", t[t.IndentOutdent = 2] = "IndentOutdent", t[t.Outdent = 3] = "Outdent"; })(Ns || (Ns = {})); var zs; (function(t) { - t[t.TextDefined = 0] = "TextDefined", t[t.LF = 1] = "LF", t[t.CRLF = 2] = "CRLF"; + t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None"; })(zs || (zs = {})); var Ps; (function(t) { - t[t.LF = 0] = "LF", t[t.CRLF = 1] = "CRLF"; + t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter"; })(Ps || (Ps = {})); -var Is; -(function(t) { - t[t.Left = 1] = "Left", t[t.Right = 2] = "Right"; -})(Is || (Is = {})); var Ls; (function(t) { - t[t.None = 0] = "None", t[t.Indent = 1] = "Indent", t[t.IndentOutdent = 2] = "IndentOutdent", t[t.Outdent = 3] = "Outdent"; + t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit"; })(Ls || (Ls = {})); +var Kr; +(function(t) { + t[t.DependsOnKbLayout = -1] = "DependsOnKbLayout", t[t.Unknown = 0] = "Unknown", t[t.Backspace = 1] = "Backspace", t[t.Tab = 2] = "Tab", t[t.Enter = 3] = "Enter", t[t.Shift = 4] = "Shift", t[t.Ctrl = 5] = "Ctrl", t[t.Alt = 6] = "Alt", t[t.PauseBreak = 7] = "PauseBreak", t[t.CapsLock = 8] = "CapsLock", t[t.Escape = 9] = "Escape", t[t.Space = 10] = "Space", t[t.PageUp = 11] = "PageUp", t[t.PageDown = 12] = "PageDown", t[t.End = 13] = "End", t[t.Home = 14] = "Home", t[t.LeftArrow = 15] = "LeftArrow", t[t.UpArrow = 16] = "UpArrow", t[t.RightArrow = 17] = "RightArrow", t[t.DownArrow = 18] = "DownArrow", t[t.Insert = 19] = "Insert", t[t.Delete = 20] = "Delete", t[t.Digit0 = 21] = "Digit0", t[t.Digit1 = 22] = "Digit1", t[t.Digit2 = 23] = "Digit2", t[t.Digit3 = 24] = "Digit3", t[t.Digit4 = 25] = "Digit4", t[t.Digit5 = 26] = "Digit5", t[t.Digit6 = 27] = "Digit6", t[t.Digit7 = 28] = "Digit7", t[t.Digit8 = 29] = "Digit8", t[t.Digit9 = 30] = "Digit9", t[t.KeyA = 31] = "KeyA", t[t.KeyB = 32] = "KeyB", t[t.KeyC = 33] = "KeyC", t[t.KeyD = 34] = "KeyD", t[t.KeyE = 35] = "KeyE", t[t.KeyF = 36] = "KeyF", t[t.KeyG = 37] = "KeyG", t[t.KeyH = 38] = "KeyH", t[t.KeyI = 39] = "KeyI", t[t.KeyJ = 40] = "KeyJ", t[t.KeyK = 41] = "KeyK", t[t.KeyL = 42] = "KeyL", t[t.KeyM = 43] = "KeyM", t[t.KeyN = 44] = "KeyN", t[t.KeyO = 45] = "KeyO", t[t.KeyP = 46] = "KeyP", t[t.KeyQ = 47] = "KeyQ", t[t.KeyR = 48] = "KeyR", t[t.KeyS = 49] = "KeyS", t[t.KeyT = 50] = "KeyT", t[t.KeyU = 51] = "KeyU", t[t.KeyV = 52] = "KeyV", t[t.KeyW = 53] = "KeyW", t[t.KeyX = 54] = "KeyX", t[t.KeyY = 55] = "KeyY", t[t.KeyZ = 56] = "KeyZ", t[t.Meta = 57] = "Meta", t[t.ContextMenu = 58] = "ContextMenu", t[t.F1 = 59] = "F1", t[t.F2 = 60] = "F2", t[t.F3 = 61] = "F3", t[t.F4 = 62] = "F4", t[t.F5 = 63] = "F5", t[t.F6 = 64] = "F6", t[t.F7 = 65] = "F7", t[t.F8 = 66] = "F8", t[t.F9 = 67] = "F9", t[t.F10 = 68] = "F10", t[t.F11 = 69] = "F11", t[t.F12 = 70] = "F12", t[t.F13 = 71] = "F13", t[t.F14 = 72] = "F14", t[t.F15 = 73] = "F15", t[t.F16 = 74] = "F16", t[t.F17 = 75] = "F17", t[t.F18 = 76] = "F18", t[t.F19 = 77] = "F19", t[t.F20 = 78] = "F20", t[t.F21 = 79] = "F21", t[t.F22 = 80] = "F22", t[t.F23 = 81] = "F23", t[t.F24 = 82] = "F24", t[t.NumLock = 83] = "NumLock", t[t.ScrollLock = 84] = "ScrollLock", t[t.Semicolon = 85] = "Semicolon", t[t.Equal = 86] = "Equal", t[t.Comma = 87] = "Comma", t[t.Minus = 88] = "Minus", t[t.Period = 89] = "Period", t[t.Slash = 90] = "Slash", t[t.Backquote = 91] = "Backquote", t[t.BracketLeft = 92] = "BracketLeft", t[t.Backslash = 93] = "Backslash", t[t.BracketRight = 94] = "BracketRight", t[t.Quote = 95] = "Quote", t[t.OEM_8 = 96] = "OEM_8", t[t.IntlBackslash = 97] = "IntlBackslash", t[t.Numpad0 = 98] = "Numpad0", t[t.Numpad1 = 99] = "Numpad1", t[t.Numpad2 = 100] = "Numpad2", t[t.Numpad3 = 101] = "Numpad3", t[t.Numpad4 = 102] = "Numpad4", t[t.Numpad5 = 103] = "Numpad5", t[t.Numpad6 = 104] = "Numpad6", t[t.Numpad7 = 105] = "Numpad7", t[t.Numpad8 = 106] = "Numpad8", t[t.Numpad9 = 107] = "Numpad9", t[t.NumpadMultiply = 108] = "NumpadMultiply", t[t.NumpadAdd = 109] = "NumpadAdd", t[t.NUMPAD_SEPARATOR = 110] = "NUMPAD_SEPARATOR", t[t.NumpadSubtract = 111] = "NumpadSubtract", t[t.NumpadDecimal = 112] = "NumpadDecimal", t[t.NumpadDivide = 113] = "NumpadDivide", t[t.KEY_IN_COMPOSITION = 114] = "KEY_IN_COMPOSITION", t[t.ABNT_C1 = 115] = "ABNT_C1", t[t.ABNT_C2 = 116] = "ABNT_C2", t[t.AudioVolumeMute = 117] = "AudioVolumeMute", t[t.AudioVolumeUp = 118] = "AudioVolumeUp", t[t.AudioVolumeDown = 119] = "AudioVolumeDown", t[t.BrowserSearch = 120] = "BrowserSearch", t[t.BrowserHome = 121] = "BrowserHome", t[t.BrowserBack = 122] = "BrowserBack", t[t.BrowserForward = 123] = "BrowserForward", t[t.MediaTrackNext = 124] = "MediaTrackNext", t[t.MediaTrackPrevious = 125] = "MediaTrackPrevious", t[t.MediaStop = 126] = "MediaStop", t[t.MediaPlayPause = 127] = "MediaPlayPause", t[t.LaunchMediaPlayer = 128] = "LaunchMediaPlayer", t[t.LaunchMail = 129] = "LaunchMail", t[t.LaunchApp2 = 130] = "LaunchApp2", t[t.Clear = 131] = "Clear", t[t.MAX_VALUE = 132] = "MAX_VALUE"; +})(Kr || (Kr = {})); +var Qr; +(function(t) { + t[t.Hint = 1] = "Hint", t[t.Info = 2] = "Info", t[t.Warning = 4] = "Warning", t[t.Error = 8] = "Error"; +})(Qr || (Qr = {})); +var Zr; +(function(t) { + t[t.Unnecessary = 1] = "Unnecessary", t[t.Deprecated = 2] = "Deprecated"; +})(Zr || (Zr = {})); +var Is; +(function(t) { + t[t.Inline = 1] = "Inline", t[t.Gutter = 2] = "Gutter"; +})(Is || (Is = {})); var Ts; (function(t) { - t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None"; + t[t.UNKNOWN = 0] = "UNKNOWN", t[t.TEXTAREA = 1] = "TEXTAREA", t[t.GUTTER_GLYPH_MARGIN = 2] = "GUTTER_GLYPH_MARGIN", t[t.GUTTER_LINE_NUMBERS = 3] = "GUTTER_LINE_NUMBERS", t[t.GUTTER_LINE_DECORATIONS = 4] = "GUTTER_LINE_DECORATIONS", t[t.GUTTER_VIEW_ZONE = 5] = "GUTTER_VIEW_ZONE", t[t.CONTENT_TEXT = 6] = "CONTENT_TEXT", t[t.CONTENT_EMPTY = 7] = "CONTENT_EMPTY", t[t.CONTENT_VIEW_ZONE = 8] = "CONTENT_VIEW_ZONE", t[t.CONTENT_WIDGET = 9] = "CONTENT_WIDGET", t[t.OVERVIEW_RULER = 10] = "OVERVIEW_RULER", t[t.SCROLLBAR = 11] = "SCROLLBAR", t[t.OVERLAY_WIDGET = 12] = "OVERLAY_WIDGET", t[t.OUTSIDE_EDITOR = 13] = "OUTSIDE_EDITOR"; })(Ts || (Ts = {})); var Ws; (function(t) { - t[t.Type = 1] = "Type", t[t.Parameter = 2] = "Parameter"; + t[t.TOP_RIGHT_CORNER = 0] = "TOP_RIGHT_CORNER", t[t.BOTTOM_RIGHT_CORNER = 1] = "BOTTOM_RIGHT_CORNER", t[t.TOP_CENTER = 2] = "TOP_CENTER"; })(Ws || (Ws = {})); var Os; (function(t) { - t[t.Automatic = 0] = "Automatic", t[t.Explicit = 1] = "Explicit"; + t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full"; })(Os || (Os = {})); -var Xr; -(function(t) { - t[t.DependsOnKbLayout = -1] = "DependsOnKbLayout", t[t.Unknown = 0] = "Unknown", t[t.Backspace = 1] = "Backspace", t[t.Tab = 2] = "Tab", t[t.Enter = 3] = "Enter", t[t.Shift = 4] = "Shift", t[t.Ctrl = 5] = "Ctrl", t[t.Alt = 6] = "Alt", t[t.PauseBreak = 7] = "PauseBreak", t[t.CapsLock = 8] = "CapsLock", t[t.Escape = 9] = "Escape", t[t.Space = 10] = "Space", t[t.PageUp = 11] = "PageUp", t[t.PageDown = 12] = "PageDown", t[t.End = 13] = "End", t[t.Home = 14] = "Home", t[t.LeftArrow = 15] = "LeftArrow", t[t.UpArrow = 16] = "UpArrow", t[t.RightArrow = 17] = "RightArrow", t[t.DownArrow = 18] = "DownArrow", t[t.Insert = 19] = "Insert", t[t.Delete = 20] = "Delete", t[t.Digit0 = 21] = "Digit0", t[t.Digit1 = 22] = "Digit1", t[t.Digit2 = 23] = "Digit2", t[t.Digit3 = 24] = "Digit3", t[t.Digit4 = 25] = "Digit4", t[t.Digit5 = 26] = "Digit5", t[t.Digit6 = 27] = "Digit6", t[t.Digit7 = 28] = "Digit7", t[t.Digit8 = 29] = "Digit8", t[t.Digit9 = 30] = "Digit9", t[t.KeyA = 31] = "KeyA", t[t.KeyB = 32] = "KeyB", t[t.KeyC = 33] = "KeyC", t[t.KeyD = 34] = "KeyD", t[t.KeyE = 35] = "KeyE", t[t.KeyF = 36] = "KeyF", t[t.KeyG = 37] = "KeyG", t[t.KeyH = 38] = "KeyH", t[t.KeyI = 39] = "KeyI", t[t.KeyJ = 40] = "KeyJ", t[t.KeyK = 41] = "KeyK", t[t.KeyL = 42] = "KeyL", t[t.KeyM = 43] = "KeyM", t[t.KeyN = 44] = "KeyN", t[t.KeyO = 45] = "KeyO", t[t.KeyP = 46] = "KeyP", t[t.KeyQ = 47] = "KeyQ", t[t.KeyR = 48] = "KeyR", t[t.KeyS = 49] = "KeyS", t[t.KeyT = 50] = "KeyT", t[t.KeyU = 51] = "KeyU", t[t.KeyV = 52] = "KeyV", t[t.KeyW = 53] = "KeyW", t[t.KeyX = 54] = "KeyX", t[t.KeyY = 55] = "KeyY", t[t.KeyZ = 56] = "KeyZ", t[t.Meta = 57] = "Meta", t[t.ContextMenu = 58] = "ContextMenu", t[t.F1 = 59] = "F1", t[t.F2 = 60] = "F2", t[t.F3 = 61] = "F3", t[t.F4 = 62] = "F4", t[t.F5 = 63] = "F5", t[t.F6 = 64] = "F6", t[t.F7 = 65] = "F7", t[t.F8 = 66] = "F8", t[t.F9 = 67] = "F9", t[t.F10 = 68] = "F10", t[t.F11 = 69] = "F11", t[t.F12 = 70] = "F12", t[t.F13 = 71] = "F13", t[t.F14 = 72] = "F14", t[t.F15 = 73] = "F15", t[t.F16 = 74] = "F16", t[t.F17 = 75] = "F17", t[t.F18 = 76] = "F18", t[t.F19 = 77] = "F19", t[t.F20 = 78] = "F20", t[t.F21 = 79] = "F21", t[t.F22 = 80] = "F22", t[t.F23 = 81] = "F23", t[t.F24 = 82] = "F24", t[t.NumLock = 83] = "NumLock", t[t.ScrollLock = 84] = "ScrollLock", t[t.Semicolon = 85] = "Semicolon", t[t.Equal = 86] = "Equal", t[t.Comma = 87] = "Comma", t[t.Minus = 88] = "Minus", t[t.Period = 89] = "Period", t[t.Slash = 90] = "Slash", t[t.Backquote = 91] = "Backquote", t[t.BracketLeft = 92] = "BracketLeft", t[t.Backslash = 93] = "Backslash", t[t.BracketRight = 94] = "BracketRight", t[t.Quote = 95] = "Quote", t[t.OEM_8 = 96] = "OEM_8", t[t.IntlBackslash = 97] = "IntlBackslash", t[t.Numpad0 = 98] = "Numpad0", t[t.Numpad1 = 99] = "Numpad1", t[t.Numpad2 = 100] = "Numpad2", t[t.Numpad3 = 101] = "Numpad3", t[t.Numpad4 = 102] = "Numpad4", t[t.Numpad5 = 103] = "Numpad5", t[t.Numpad6 = 104] = "Numpad6", t[t.Numpad7 = 105] = "Numpad7", t[t.Numpad8 = 106] = "Numpad8", t[t.Numpad9 = 107] = "Numpad9", t[t.NumpadMultiply = 108] = "NumpadMultiply", t[t.NumpadAdd = 109] = "NumpadAdd", t[t.NUMPAD_SEPARATOR = 110] = "NUMPAD_SEPARATOR", t[t.NumpadSubtract = 111] = "NumpadSubtract", t[t.NumpadDecimal = 112] = "NumpadDecimal", t[t.NumpadDivide = 113] = "NumpadDivide", t[t.KEY_IN_COMPOSITION = 114] = "KEY_IN_COMPOSITION", t[t.ABNT_C1 = 115] = "ABNT_C1", t[t.ABNT_C2 = 116] = "ABNT_C2", t[t.AudioVolumeMute = 117] = "AudioVolumeMute", t[t.AudioVolumeUp = 118] = "AudioVolumeUp", t[t.AudioVolumeDown = 119] = "AudioVolumeDown", t[t.BrowserSearch = 120] = "BrowserSearch", t[t.BrowserHome = 121] = "BrowserHome", t[t.BrowserBack = 122] = "BrowserBack", t[t.BrowserForward = 123] = "BrowserForward", t[t.MediaTrackNext = 124] = "MediaTrackNext", t[t.MediaTrackPrevious = 125] = "MediaTrackPrevious", t[t.MediaStop = 126] = "MediaStop", t[t.MediaPlayPause = 127] = "MediaPlayPause", t[t.LaunchMediaPlayer = 128] = "LaunchMediaPlayer", t[t.LaunchMail = 129] = "LaunchMail", t[t.LaunchApp2 = 130] = "LaunchApp2", t[t.Clear = 131] = "Clear", t[t.MAX_VALUE = 132] = "MAX_VALUE"; -})(Xr || (Xr = {})); -var Yr; -(function(t) { - t[t.Hint = 1] = "Hint", t[t.Info = 2] = "Info", t[t.Warning = 4] = "Warning", t[t.Error = 8] = "Error"; -})(Yr || (Yr = {})); -var Kr; -(function(t) { - t[t.Unnecessary = 1] = "Unnecessary", t[t.Deprecated = 2] = "Deprecated"; -})(Kr || (Kr = {})); var Us; (function(t) { - t[t.Inline = 1] = "Inline", t[t.Gutter = 2] = "Gutter"; + t[t.Left = 0] = "Left", t[t.Right = 1] = "Right", t[t.None = 2] = "None", t[t.LeftOfInjectedText = 3] = "LeftOfInjectedText", t[t.RightOfInjectedText = 4] = "RightOfInjectedText"; })(Us || (Us = {})); var Vs; (function(t) { - t[t.UNKNOWN = 0] = "UNKNOWN", t[t.TEXTAREA = 1] = "TEXTAREA", t[t.GUTTER_GLYPH_MARGIN = 2] = "GUTTER_GLYPH_MARGIN", t[t.GUTTER_LINE_NUMBERS = 3] = "GUTTER_LINE_NUMBERS", t[t.GUTTER_LINE_DECORATIONS = 4] = "GUTTER_LINE_DECORATIONS", t[t.GUTTER_VIEW_ZONE = 5] = "GUTTER_VIEW_ZONE", t[t.CONTENT_TEXT = 6] = "CONTENT_TEXT", t[t.CONTENT_EMPTY = 7] = "CONTENT_EMPTY", t[t.CONTENT_VIEW_ZONE = 8] = "CONTENT_VIEW_ZONE", t[t.CONTENT_WIDGET = 9] = "CONTENT_WIDGET", t[t.OVERVIEW_RULER = 10] = "OVERVIEW_RULER", t[t.SCROLLBAR = 11] = "SCROLLBAR", t[t.OVERLAY_WIDGET = 12] = "OVERLAY_WIDGET", t[t.OUTSIDE_EDITOR = 13] = "OUTSIDE_EDITOR"; + t[t.Off = 0] = "Off", t[t.On = 1] = "On", t[t.Relative = 2] = "Relative", t[t.Interval = 3] = "Interval", t[t.Custom = 4] = "Custom"; })(Vs || (Vs = {})); var Bs; (function(t) { - t[t.TOP_RIGHT_CORNER = 0] = "TOP_RIGHT_CORNER", t[t.BOTTOM_RIGHT_CORNER = 1] = "BOTTOM_RIGHT_CORNER", t[t.TOP_CENTER = 2] = "TOP_CENTER"; + t[t.None = 0] = "None", t[t.Text = 1] = "Text", t[t.Blocks = 2] = "Blocks"; })(Bs || (Bs = {})); var js; (function(t) { - t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full"; + t[t.Smooth = 0] = "Smooth", t[t.Immediate = 1] = "Immediate"; })(js || (js = {})); var qs; (function(t) { - t[t.Left = 0] = "Left", t[t.Right = 1] = "Right", t[t.None = 2] = "None", t[t.LeftOfInjectedText = 3] = "LeftOfInjectedText", t[t.RightOfInjectedText = 4] = "RightOfInjectedText"; + t[t.Auto = 1] = "Auto", t[t.Hidden = 2] = "Hidden", t[t.Visible = 3] = "Visible"; })(qs || (qs = {})); +var ei; +(function(t) { + t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL"; +})(ei || (ei = {})); var $s; (function(t) { - t[t.Off = 0] = "Off", t[t.On = 1] = "On", t[t.Relative = 2] = "Relative", t[t.Interval = 3] = "Interval", t[t.Custom = 4] = "Custom"; + t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange"; })($s || ($s = {})); var Hs; (function(t) { - t[t.None = 0] = "None", t[t.Text = 1] = "Text", t[t.Blocks = 2] = "Blocks"; + t[t.File = 0] = "File", t[t.Module = 1] = "Module", t[t.Namespace = 2] = "Namespace", t[t.Package = 3] = "Package", t[t.Class = 4] = "Class", t[t.Method = 5] = "Method", t[t.Property = 6] = "Property", t[t.Field = 7] = "Field", t[t.Constructor = 8] = "Constructor", t[t.Enum = 9] = "Enum", t[t.Interface = 10] = "Interface", t[t.Function = 11] = "Function", t[t.Variable = 12] = "Variable", t[t.Constant = 13] = "Constant", t[t.String = 14] = "String", t[t.Number = 15] = "Number", t[t.Boolean = 16] = "Boolean", t[t.Array = 17] = "Array", t[t.Object = 18] = "Object", t[t.Key = 19] = "Key", t[t.Null = 20] = "Null", t[t.EnumMember = 21] = "EnumMember", t[t.Struct = 22] = "Struct", t[t.Event = 23] = "Event", t[t.Operator = 24] = "Operator", t[t.TypeParameter = 25] = "TypeParameter"; })(Hs || (Hs = {})); var Gs; (function(t) { - t[t.Smooth = 0] = "Smooth", t[t.Immediate = 1] = "Immediate"; + t[t.Deprecated = 1] = "Deprecated"; })(Gs || (Gs = {})); var Js; (function(t) { - t[t.Auto = 1] = "Auto", t[t.Hidden = 2] = "Hidden", t[t.Visible = 3] = "Visible"; + t[t.Hidden = 0] = "Hidden", t[t.Blink = 1] = "Blink", t[t.Smooth = 2] = "Smooth", t[t.Phase = 3] = "Phase", t[t.Expand = 4] = "Expand", t[t.Solid = 5] = "Solid"; })(Js || (Js = {})); -var Qr; -(function(t) { - t[t.LTR = 0] = "LTR", t[t.RTL = 1] = "RTL"; -})(Qr || (Qr = {})); var Xs; (function(t) { - t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange"; + t[t.Line = 1] = "Line", t[t.Block = 2] = "Block", t[t.Underline = 3] = "Underline", t[t.LineThin = 4] = "LineThin", t[t.BlockOutline = 5] = "BlockOutline", t[t.UnderlineThin = 6] = "UnderlineThin"; })(Xs || (Xs = {})); var Ys; (function(t) { - t[t.File = 0] = "File", t[t.Module = 1] = "Module", t[t.Namespace = 2] = "Namespace", t[t.Package = 3] = "Package", t[t.Class = 4] = "Class", t[t.Method = 5] = "Method", t[t.Property = 6] = "Property", t[t.Field = 7] = "Field", t[t.Constructor = 8] = "Constructor", t[t.Enum = 9] = "Enum", t[t.Interface = 10] = "Interface", t[t.Function = 11] = "Function", t[t.Variable = 12] = "Variable", t[t.Constant = 13] = "Constant", t[t.String = 14] = "String", t[t.Number = 15] = "Number", t[t.Boolean = 16] = "Boolean", t[t.Array = 17] = "Array", t[t.Object = 18] = "Object", t[t.Key = 19] = "Key", t[t.Null = 20] = "Null", t[t.EnumMember = 21] = "EnumMember", t[t.Struct = 22] = "Struct", t[t.Event = 23] = "Event", t[t.Operator = 24] = "Operator", t[t.TypeParameter = 25] = "TypeParameter"; + t[t.AlwaysGrowsWhenTypingAtEdges = 0] = "AlwaysGrowsWhenTypingAtEdges", t[t.NeverGrowsWhenTypingAtEdges = 1] = "NeverGrowsWhenTypingAtEdges", t[t.GrowsOnlyWhenTypingBefore = 2] = "GrowsOnlyWhenTypingBefore", t[t.GrowsOnlyWhenTypingAfter = 3] = "GrowsOnlyWhenTypingAfter"; })(Ys || (Ys = {})); var Ks; -(function(t) { - t[t.Deprecated = 1] = "Deprecated"; -})(Ks || (Ks = {})); -var Qs; -(function(t) { - t[t.Hidden = 0] = "Hidden", t[t.Blink = 1] = "Blink", t[t.Smooth = 2] = "Smooth", t[t.Phase = 3] = "Phase", t[t.Expand = 4] = "Expand", t[t.Solid = 5] = "Solid"; -})(Qs || (Qs = {})); -var Zs; -(function(t) { - t[t.Line = 1] = "Line", t[t.Block = 2] = "Block", t[t.Underline = 3] = "Underline", t[t.LineThin = 4] = "LineThin", t[t.BlockOutline = 5] = "BlockOutline", t[t.UnderlineThin = 6] = "UnderlineThin"; -})(Zs || (Zs = {})); -var ea; -(function(t) { - t[t.AlwaysGrowsWhenTypingAtEdges = 0] = "AlwaysGrowsWhenTypingAtEdges", t[t.NeverGrowsWhenTypingAtEdges = 1] = "NeverGrowsWhenTypingAtEdges", t[t.GrowsOnlyWhenTypingBefore = 2] = "GrowsOnlyWhenTypingBefore", t[t.GrowsOnlyWhenTypingAfter = 3] = "GrowsOnlyWhenTypingAfter"; -})(ea || (ea = {})); -var ta; (function(t) { t[t.None = 0] = "None", t[t.Same = 1] = "Same", t[t.Indent = 2] = "Indent", t[t.DeepIndent = 3] = "DeepIndent"; -})(ta || (ta = {})); -class kn { +})(Ks || (Ks = {})); +class En { static chord(e, n) { - return yh(e, n); + return mh(e, n); } } -kn.CtrlCmd = 2048; -kn.Shift = 1024; -kn.Alt = 512; -kn.WinCtrl = 256; -function Ch() { +En.CtrlCmd = 2048; +En.Shift = 1024; +En.Alt = 512; +En.WinCtrl = 256; +function yh() { return { editor: void 0, languages: void 0, - CancellationTokenSource: xc, - Emitter: Ke, - KeyCode: Xr, - KeyMod: kn, - Position: Ge, - Range: Ee, + CancellationTokenSource: dh, + Emitter: Xe, + KeyCode: Kr, + KeyMod: En, + Position: Ke, + Range: De, Selection: Ne, - SelectionDirection: Qr, - MarkerSeverity: Yr, - MarkerTag: Kr, - Uri: Ci, - Token: Sh + SelectionDirection: ei, + MarkerSeverity: Qr, + MarkerTag: Zr, + Uri: _i, + Token: vh }; } -var na; +var Qs; (function(t) { t[t.Left = 1] = "Left", t[t.Center = 2] = "Center", t[t.Right = 4] = "Right", t[t.Full = 7] = "Full"; -})(na || (na = {})); -var ra; +})(Qs || (Qs = {})); +var Zs; (function(t) { t[t.Left = 1] = "Left", t[t.Right = 2] = "Right"; -})(ra || (ra = {})); -var ia; +})(Zs || (Zs = {})); +var ea; (function(t) { t[t.Inline = 1] = "Inline", t[t.Gutter = 2] = "Gutter"; -})(ia || (ia = {})); -var sa; +})(ea || (ea = {})); +var ta; (function(t) { t[t.Both = 0] = "Both", t[t.Right = 1] = "Right", t[t.Left = 2] = "Left", t[t.None = 3] = "None"; -})(sa || (sa = {})); -function kh(t, e, n, r, i) { +})(ta || (ta = {})); +function wh(t, e, n, r, i) { if (r === 0) return !0; const s = e.charCodeAt(r - 1); @@ -5061,7 +4938,7 @@ function kh(t, e, n, r, i) { } return !1; } -function _h(t, e, n, r, i) { +function xh(t, e, n, r, i) { if (r + i === n) return !0; const s = e.charCodeAt(r + i); @@ -5074,10 +4951,10 @@ function _h(t, e, n, r, i) { } return !1; } -function Fh(t, e, n, r, i) { - return kh(t, e, n, r, i) && _h(t, e, n, r, i); +function Sh(t, e, n, r, i) { + return wh(t, e, n, r, i) && xh(t, e, n, r, i); } -class Rh { +class Ch { constructor(e, n) { this._wordSeparators = e, this._searchRegex = n, this._prevMatchStartIndex = -1, this._prevMatchLength = 0; } @@ -5093,24 +4970,24 @@ class Rh { const i = r.index, s = r[0].length; if (i === this._prevMatchStartIndex && s === this._prevMatchLength) { if (s === 0) { - Dc(e, n, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1; + Cc(e, n, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1; continue; } return null; } - if (this._prevMatchStartIndex = i, this._prevMatchLength = s, !this._wordSeparators || Fh(this._wordSeparators, e, n, i, s)) + if (this._prevMatchStartIndex = i, this._prevMatchLength = s, !this._wordSeparators || Sh(this._wordSeparators, e, n, i, s)) return r; } while (r); return null; } } -function Eh(t, e = "Unreachable") { +function kh(t, e = "Unreachable") { throw new Error(e); } -function Ri(t) { +function Qn(t) { if (!t()) { debugger; - t(), Go(new Dt("Assertion Failed")); + t(), Go(new Yt("Assertion Failed")); } } function cl(t, e) { @@ -5123,54 +5000,54 @@ function cl(t, e) { } return !0; } -class Dh { +class _h { static computeUnicodeHighlights(e, n, r) { - const i = r ? r.startLineNumber : 1, s = r ? r.endLineNumber : e.getLineCount(), a = new aa(n), o = a.getCandidateCodePoints(); + const i = r ? r.startLineNumber : 1, s = r ? r.endLineNumber : e.getLineCount(), a = new na(n), o = a.getCandidateCodePoints(); let l; - o === "allNonBasicAscii" ? l = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : l = new RegExp(`${Ah(Array.from(o))}`, "g"); - const c = new Rh(null, l), h = []; - let u = !1, f, m = 0, g = 0, b = 0; + o === "allNonBasicAscii" ? l = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : l = new RegExp(`${Fh(Array.from(o))}`, "g"); + const c = new Ch(null, l), h = []; + let u = !1, m, f = 0, g = 0, b = 0; e: for (let y = i, w = s; y <= w; y++) { const x = e.getLineContent(y), k = x.length; c.reset(0); do - if (f = c.next(x), f) { - let F = f.index, N = f.index + f[0].length; - if (F > 0) { - const P = x.charCodeAt(F - 1); - Vr(P) && F--; + if (m = c.next(x), m) { + let P = m.index, N = m.index + m[0].length; + if (P > 0) { + const D = x.charCodeAt(P - 1); + jr(D) && P--; } if (N + 1 < k) { - const P = x.charCodeAt(N - 1); - Vr(P) && N++; + const D = x.charCodeAt(N - 1); + jr(D) && N++; } - const j = x.substring(F, N); - let H = ki(F + 1, ol, x, 0); - H && H.endColumn <= F + 1 && (H = null); - const B = a.shouldHighlightNonBasicASCII(j, H ? H.word : null); - if (B !== 0) { - B === 3 ? m++ : B === 2 ? g++ : B === 1 ? b++ : Eh(); - const P = 1e3; - if (h.length >= P) { + const V = x.substring(P, N); + let I = Fi(P + 1, al, x, 0); + I && I.endColumn <= P + 1 && (I = null); + const T = a.shouldHighlightNonBasicASCII(V, I ? I.word : null); + if (T !== 0) { + T === 3 ? f++ : T === 2 ? g++ : T === 1 ? b++ : kh(); + const D = 1e3; + if (h.length >= D) { u = !0; break e; } - h.push(new Ee(y, F + 1, y, N + 1)); + h.push(new De(y, P + 1, y, N + 1)); } } - while (f); + while (m); } return { ranges: h, hasMore: u, - ambiguousCharacterCount: m, + ambiguousCharacterCount: f, invisibleCharacterCount: g, nonBasicAsciiCharacterCount: b }; } static computeUnicodeHighlightReason(e, n) { - const r = new aa(n); + const r = new na(n); switch (r.shouldHighlightNonBasicASCII(e, null)) { case 0: return null; @@ -5180,7 +5057,7 @@ class Dh { /* UnicodeHighlighterReasonKind.Invisible */ }; case 3: { - const s = e.codePointAt(0), a = r.ambiguousCharacters.getPrimaryConfusable(s), o = Ve.getLocales().filter((l) => !Ve.getInstance(/* @__PURE__ */ new Set([...n.allowedLocales, l])).isAmbiguous(s)); + const s = e.codePointAt(0), a = r.ambiguousCharacters.getPrimaryConfusable(s), o = Be.getLocales().filter((l) => !Be.getInstance(/* @__PURE__ */ new Set([...n.allowedLocales, l])).isAmbiguous(s)); return { kind: 0, confusableWith: String.fromCodePoint(a), notAmbiguousInLocales: o }; } case 1: @@ -5191,20 +5068,20 @@ class Dh { } } } -function Ah(t, e) { - return `[${Cc(t.map((r) => String.fromCodePoint(r)).join(""))}]`; +function Fh(t, e) { + return `[${bc(t.map((r) => String.fromCodePoint(r)).join(""))}]`; } -class aa { +class na { constructor(e) { - this.options = e, this.allowedCodePoints = new Set(e.allowedCodePoints), this.ambiguousCharacters = Ve.getInstance(new Set(e.allowedLocales)); + this.options = e, this.allowedCodePoints = new Set(e.allowedCodePoints), this.ambiguousCharacters = Be.getInstance(new Set(e.allowedLocales)); } getCandidateCodePoints() { if (this.options.nonBasicASCII) return "allNonBasicAscii"; const e = /* @__PURE__ */ new Set(); if (this.options.invisibleCharacters) - for (const n of bt.codePoints) - oa(String.fromCodePoint(n)) || e.add(n); + for (const n of gt.codePoints) + ra(String.fromCodePoint(n)) || e.add(n); if (this.options.ambiguousCharacters) for (const n of this.ambiguousCharacters.getConfusableCodePoints()) e.add(n); @@ -5221,45 +5098,30 @@ class aa { let i = !1, s = !1; if (n) for (const a of n) { - const o = a.codePointAt(0), l = Mc(a); - i = i || l, !l && !this.ambiguousCharacters.isAmbiguous(o) && !bt.isInvisibleCharacter(o) && (s = !0); + const o = a.codePointAt(0), l = _c(a); + i = i || l, !l && !this.ambiguousCharacters.isAmbiguous(o) && !gt.isInvisibleCharacter(o) && (s = !0); } return ( /* Don't allow mixing weird looking characters with ASCII */ !i && /* Is there an obviously weird looking character? */ - s ? 0 : this.options.invisibleCharacters && !oa(e) && bt.isInvisibleCharacter(r) ? 2 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(r) ? 3 : 0 + s ? 0 : this.options.invisibleCharacters && !ra(e) && gt.isInvisibleCharacter(r) ? 2 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(r) ? 3 : 0 ); } } -function oa(t) { +function ra(t) { return t === " " || t === ` ` || t === " "; } -class hl { - constructor(e, n) { - this.changes = e, this.hitTimeout = n; +class le { + static fromRange(e) { + return new le(e.startLineNumber, e.endLineNumber); } -} -class Kn { - constructor(e, n, r) { - this.originalRange = e, this.modifiedRange = n, this.innerChanges = r; + static subtract(e, n) { + return n ? e.startLineNumber < n.startLineNumber && n.endLineNumberExclusive < e.endLineNumberExclusive ? [ + new le(e.startLineNumber, n.startLineNumber), + new le(n.endLineNumberExclusive, e.endLineNumberExclusive) + ] : n.startLineNumber <= e.startLineNumber && e.endLineNumberExclusive <= n.endLineNumberExclusive ? [] : n.endLineNumberExclusive < e.endLineNumberExclusive ? [new le(Math.max(n.endLineNumberExclusive, e.startLineNumber), e.endLineNumberExclusive)] : [new le(e.startLineNumber, Math.min(n.startLineNumber, e.endLineNumberExclusive))] : [e]; } - toString() { - return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`; - } - get changedLineCount() { - return Math.max(this.originalRange.length, this.modifiedRange.length); - } -} -class dl { - constructor(e, n) { - this.originalRange = e, this.modifiedRange = n; - } - toString() { - return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`; - } -} -class He { /** * @param lineRanges An array of sorted line ranges. */ @@ -5289,13 +5151,22 @@ class He { l.startLineNumber < c.startLineNumber ? (o = l, i++) : (o = c, s++); } else i < e.length ? (o = e[i], i++) : (o = n[s], s++); - a === null ? a = o : a.endLineNumberExclusive >= o.startLineNumber ? a = new He(a.startLineNumber, Math.max(a.endLineNumberExclusive, o.endLineNumberExclusive)) : (r.push(a), a = o); + a === null ? a = o : a.endLineNumberExclusive >= o.startLineNumber ? a = new le(a.startLineNumber, Math.max(a.endLineNumberExclusive, o.endLineNumberExclusive)) : (r.push(a), a = o); } return a !== null && r.push(a), r; } + static ofLength(e, n) { + return new le(e, e + n); + } + /** + * @internal + */ + static deserialize(e) { + return new le(e[0], e[1]); + } constructor(e, n) { if (e > n) - throw new Dt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`); + throw new Yt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`); this.startLineNumber = e, this.endLineNumberExclusive = n; } /** @@ -5314,7 +5185,7 @@ class He { * Moves this line range by the given offset of line numbers. */ delta(e) { - return new He(this.startLineNumber + e, this.endLineNumberExclusive + e); + return new le(this.startLineNumber + e, this.endLineNumberExclusive + e); } /** * The number of lines this line range spans. @@ -5326,7 +5197,7 @@ class He { * Creates a line range that combines this and the given line range. */ join(e) { - return new He(Math.min(this.startLineNumber, e.startLineNumber), Math.max(this.endLineNumberExclusive, e.endLineNumberExclusive)); + return new le(Math.min(this.startLineNumber, e.startLineNumber), Math.max(this.endLineNumberExclusive, e.endLineNumberExclusive)); } toString() { return `[${this.startLineNumber},${this.endLineNumberExclusive})`; @@ -5338,7 +5209,10 @@ class He { intersect(e) { const n = Math.max(this.startLineNumber, e.startLineNumber), r = Math.min(this.endLineNumberExclusive, e.endLineNumberExclusive); if (n <= r) - return new He(n, r); + return new le(n, r); + } + intersectsStrict(e) { + return this.startLineNumber < e.endLineNumberExclusive && e.startLineNumber < this.endLineNumberExclusive; } overlapOrTouch(e) { return this.startLineNumber <= e.endLineNumberExclusive && e.startLineNumber <= this.endLineNumberExclusive; @@ -5346,12 +5220,97 @@ class He { equals(e) { return this.startLineNumber === e.startLineNumber && this.endLineNumberExclusive === e.endLineNumberExclusive; } + toInclusiveRange() { + return this.isEmpty ? null : new De(this.startLineNumber, 1, this.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER); + } + toExclusiveRange() { + return new De(this.startLineNumber, 1, this.endLineNumberExclusive, 1); + } + mapToLineArray(e) { + const n = []; + for (let r = this.startLineNumber; r < this.endLineNumberExclusive; r++) + n.push(e(r)); + return n; + } + forEach(e) { + for (let n = this.startLineNumber; n < this.endLineNumberExclusive; n++) + e(n); + } + /** + * @internal + */ + serialize() { + return [this.startLineNumber, this.endLineNumberExclusive]; + } + includes(e) { + return this.startLineNumber <= e && e < this.endLineNumberExclusive; + } } -const Mh = 3; -class Nh { +class hl { + constructor(e, n, r) { + this.changes = e, this.moves = n, this.hitTimeout = r; + } +} +class st { + static inverse(e, n, r) { + const i = []; + let s = 1, a = 1; + for (const l of e) { + const c = new st(new le(s, l.originalRange.startLineNumber), new le(a, l.modifiedRange.startLineNumber), void 0); + c.modifiedRange.isEmpty || i.push(c), s = l.originalRange.endLineNumberExclusive, a = l.modifiedRange.endLineNumberExclusive; + } + const o = new st(new le(s, n + 1), new le(a, r + 1), void 0); + return o.modifiedRange.isEmpty || i.push(o), i; + } + constructor(e, n, r) { + this.originalRange = e, this.modifiedRange = n, this.innerChanges = r; + } + toString() { + return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`; + } + get changedLineCount() { + return Math.max(this.originalRange.length, this.modifiedRange.length); + } + flip() { + var e; + return new st(this.modifiedRange, this.originalRange, (e = this.innerChanges) === null || e === void 0 ? void 0 : e.map((n) => n.flip())); + } +} +class bn { + constructor(e, n) { + this.originalRange = e, this.modifiedRange = n; + } + toString() { + return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`; + } + flip() { + return new bn(this.modifiedRange, this.originalRange); + } +} +class Di { + constructor(e, n) { + this.original = e, this.modified = n; + } + toString() { + return `{${this.original.toString()}->${this.modified.toString()}}`; + } + flip() { + return new Di(this.modified, this.original); + } +} +class Ai { + constructor(e, n) { + this.lineRangeMapping = e, this.changes = n; + } + flip() { + return new Ai(this.lineRangeMapping.flip(), this.changes.map((e) => e.flip())); + } +} +const Rh = 3; +class Eh { computeDiff(e, n, r) { var i; - const a = new pl(e, n, { + const a = new Mh(e, n, { maxComputationTime: r.maxComputationTimeMs, shouldIgnoreTrimWhitespace: r.ignoreTrimWhitespace, shouldComputeCharChanges: !0, @@ -5361,24 +5320,24 @@ class Nh { let l = null; for (const c of a.changes) { let h; - c.originalEndLineNumber === 0 ? h = new He(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1) : h = new He(c.originalStartLineNumber, c.originalEndLineNumber + 1); + c.originalEndLineNumber === 0 ? h = new le(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1) : h = new le(c.originalStartLineNumber, c.originalEndLineNumber + 1); let u; - c.modifiedEndLineNumber === 0 ? u = new He(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1) : u = new He(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1); - let f = new Kn(h, u, (i = c.charChanges) === null || i === void 0 ? void 0 : i.map((m) => new dl(new Ee(m.originalStartLineNumber, m.originalStartColumn, m.originalEndLineNumber, m.originalEndColumn), new Ee(m.modifiedStartLineNumber, m.modifiedStartColumn, m.modifiedEndLineNumber, m.modifiedEndColumn)))); - l && (l.modifiedRange.endLineNumberExclusive === f.modifiedRange.startLineNumber || l.originalRange.endLineNumberExclusive === f.originalRange.startLineNumber) && (f = new Kn(l.originalRange.join(f.originalRange), l.modifiedRange.join(f.modifiedRange), l.innerChanges && f.innerChanges ? l.innerChanges.concat(f.innerChanges) : void 0), o.pop()), o.push(f), l = f; + c.modifiedEndLineNumber === 0 ? u = new le(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1) : u = new le(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1); + let m = new st(h, u, (i = c.charChanges) === null || i === void 0 ? void 0 : i.map((f) => new bn(new De(f.originalStartLineNumber, f.originalStartColumn, f.originalEndLineNumber, f.originalEndColumn), new De(f.modifiedStartLineNumber, f.modifiedStartColumn, f.modifiedEndLineNumber, f.modifiedEndColumn)))); + l && (l.modifiedRange.endLineNumberExclusive === m.modifiedRange.startLineNumber || l.originalRange.endLineNumberExclusive === m.originalRange.startLineNumber) && (m = new st(l.originalRange.join(m.originalRange), l.modifiedRange.join(m.modifiedRange), l.innerChanges && m.innerChanges ? l.innerChanges.concat(m.innerChanges) : void 0), o.pop()), o.push(m), l = m; } - return Ri(() => cl(o, (c, h) => h.originalRange.startLineNumber - c.originalRange.endLineNumberExclusive === h.modifiedRange.startLineNumber - c.modifiedRange.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined) - c.originalRange.endLineNumberExclusive < h.originalRange.startLineNumber && c.modifiedRange.endLineNumberExclusive < h.modifiedRange.startLineNumber)), new hl(o, a.quitEarly); + return Qn(() => cl(o, (c, h) => h.originalRange.startLineNumber - c.originalRange.endLineNumberExclusive === h.modifiedRange.startLineNumber - c.modifiedRange.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined) + c.originalRange.endLineNumberExclusive < h.originalRange.startLineNumber && c.modifiedRange.endLineNumberExclusive < h.modifiedRange.startLineNumber)), new hl(o, [], a.quitEarly); } } -function ul(t, e, n, r) { +function dl(t, e, n, r) { return new ft(t, e, n).ComputeDiff(r); } -let la = class { +let ia = class { constructor(e) { const n = [], r = []; for (let i = 0, s = e.length; i < s; i++) - n[i] = Zr(e[i], 1), r[i] = ei(e[i], 1); + n[i] = ti(e[i], 1), r[i] = ni(e[i], 1); this.lines = e, this._startColumns = n, this._endColumns = r; } getElements() { @@ -5401,14 +5360,14 @@ let la = class { let o = 0; for (let l = n; l <= r; l++) { const c = this.lines[l], h = e ? this._startColumns[l] : 1, u = e ? this._endColumns[l] : c.length + 1; - for (let f = h; f < u; f++) - i[o] = c.charCodeAt(f - 1), s[o] = l + 1, a[o] = f, o++; + for (let m = h; m < u; m++) + i[o] = c.charCodeAt(m - 1), s[o] = l + 1, a[o] = m, o++; !e && l < r && (i[o] = 10, s[o] = l + 1, a[o] = c.length + 1, o++); } - return new zh(i, s, a); + return new Dh(i, s, a); } }; -class zh { +class Dh { constructor(e, n, r) { this._charCodes = e, this._lineNumbers = n, this._columns = r; } @@ -5444,38 +5403,38 @@ class Vt { return new Vt(i, s, a, o, l, c, h, u); } } -function Ph(t) { +function Ah(t) { if (t.length <= 1) return t; const e = [t[0]]; let n = e[0]; for (let r = 1, i = t.length; r < i; r++) { const s = t[r], a = s.originalStart - (n.originalStart + n.originalLength), o = s.modifiedStart - (n.modifiedStart + n.modifiedLength); - Math.min(a, o) < Mh ? (n.originalLength = s.originalStart + s.originalLength - n.originalStart, n.modifiedLength = s.modifiedStart + s.modifiedLength - n.modifiedStart) : (e.push(s), n = s); + Math.min(a, o) < Rh ? (n.originalLength = s.originalStart + s.originalLength - n.originalStart, n.modifiedLength = s.modifiedStart + s.modifiedLength - n.modifiedStart) : (e.push(s), n = s); } return e; } -class dn { +class un { constructor(e, n, r, i, s) { this.originalStartLineNumber = e, this.originalEndLineNumber = n, this.modifiedStartLineNumber = r, this.modifiedEndLineNumber = i, this.charChanges = s; } static createFromDiffResult(e, n, r, i, s, a, o) { - let l, c, h, u, f; + let l, c, h, u, m; if (n.originalLength === 0 ? (l = r.getStartLineNumber(n.originalStart) - 1, c = 0) : (l = r.getStartLineNumber(n.originalStart), c = r.getEndLineNumber(n.originalStart + n.originalLength - 1)), n.modifiedLength === 0 ? (h = i.getStartLineNumber(n.modifiedStart) - 1, u = 0) : (h = i.getStartLineNumber(n.modifiedStart), u = i.getEndLineNumber(n.modifiedStart + n.modifiedLength - 1)), a && n.originalLength > 0 && n.originalLength < 20 && n.modifiedLength > 0 && n.modifiedLength < 20 && s()) { - const m = r.createCharSequence(e, n.originalStart, n.originalStart + n.originalLength - 1), g = i.createCharSequence(e, n.modifiedStart, n.modifiedStart + n.modifiedLength - 1); - if (m.getElements().length > 0 && g.getElements().length > 0) { - let b = ul(m, g, s, !0).changes; - o && (b = Ph(b)), f = []; + const f = r.createCharSequence(e, n.originalStart, n.originalStart + n.originalLength - 1), g = i.createCharSequence(e, n.modifiedStart, n.modifiedStart + n.modifiedLength - 1); + if (f.getElements().length > 0 && g.getElements().length > 0) { + let b = dl(f, g, s, !0).changes; + o && (b = Ah(b)), m = []; for (let y = 0, w = b.length; y < w; y++) - f.push(Vt.createFromDiffChange(b[y], m, g)); + m.push(Vt.createFromDiffChange(b[y], f, g)); } } - return new dn(l, c, h, u, f); + return new un(l, c, h, u, m); } } -class pl { +class Mh { constructor(e, n, r) { - this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = e, this.modifiedLines = n, this.original = new la(e), this.modified = new la(n), this.continueLineDiff = ca(r.maxComputationTime), this.continueCharDiff = ca(r.maxComputationTime === 0 ? 0 : Math.min(r.maxComputationTime, 5e3)); + this.shouldComputeCharChanges = r.shouldComputeCharChanges, this.shouldPostProcessCharChanges = r.shouldPostProcessCharChanges, this.shouldIgnoreTrimWhitespace = r.shouldIgnoreTrimWhitespace, this.shouldMakePrettyDiff = r.shouldMakePrettyDiff, this.originalLines = e, this.modifiedLines = n, this.original = new ia(e), this.modified = new ia(n), this.continueLineDiff = sa(r.maxComputationTime), this.continueCharDiff = sa(r.maxComputationTime === 0 ? 0 : Math.min(r.maxComputationTime, 5e3)); } computeDiff() { if (this.original.lines.length === 1 && this.original.lines[0].length === 0) @@ -5503,11 +5462,11 @@ class pl { charChanges: void 0 }] }; - const e = ul(this.original, this.modified, this.continueLineDiff, this.shouldMakePrettyDiff), n = e.changes, r = e.quitEarly; + const e = dl(this.original, this.modified, this.continueLineDiff, this.shouldMakePrettyDiff), n = e.changes, r = e.quitEarly; if (this.shouldIgnoreTrimWhitespace) { const o = []; for (let l = 0, c = n.length; l < c; l++) - o.push(dn.createFromDiffResult(this.shouldIgnoreTrimWhitespace, n[l], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)); + o.push(un.createFromDiffResult(this.shouldIgnoreTrimWhitespace, n[l], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)); return { quitEarly: r, changes: o @@ -5518,12 +5477,12 @@ class pl { for (let o = -1, l = n.length; o < l; o++) { const c = o + 1 < l ? n[o + 1] : null, h = c ? c.originalStart : this.originalLines.length, u = c ? c.modifiedStart : this.modifiedLines.length; for (; s < h && a < u; ) { - const f = this.originalLines[s], m = this.modifiedLines[a]; - if (f !== m) { + const m = this.originalLines[s], f = this.modifiedLines[a]; + if (m !== f) { { - let g = Zr(f, 1), b = Zr(m, 1); + let g = ti(m, 1), b = ti(f, 1); for (; g > 1 && b > 1; ) { - const y = f.charCodeAt(g - 2), w = m.charCodeAt(b - 2); + const y = m.charCodeAt(g - 2), w = f.charCodeAt(b - 2); if (y !== w) break; g--, b--; @@ -5531,10 +5490,10 @@ class pl { (g > 1 || b > 1) && this._pushTrimWhitespaceCharChange(i, s + 1, 1, g, a + 1, 1, b); } { - let g = ei(f, 1), b = ei(m, 1); - const y = f.length + 1, w = m.length + 1; + let g = ni(m, 1), b = ni(f, 1); + const y = m.length + 1, w = f.length + 1; for (; g < y && b < w; ) { - const x = f.charCodeAt(g - 1), k = f.charCodeAt(b - 1); + const x = m.charCodeAt(g - 1), k = m.charCodeAt(b - 1); if (x !== k) break; g++, b++; @@ -5544,7 +5503,7 @@ class pl { } s++, a++; } - c && (i.push(dn.createFromDiffResult(this.shouldIgnoreTrimWhitespace, c, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), s += c.originalLength, a += c.modifiedLength); + c && (i.push(un.createFromDiffResult(this.shouldIgnoreTrimWhitespace, c, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), s += c.originalLength, a += c.modifiedLength); } return { quitEarly: r, @@ -5555,7 +5514,7 @@ class pl { if (this._mergeTrimWhitespaceCharChange(e, n, r, i, s, a, o)) return; let l; - this.shouldComputeCharChanges && (l = [new Vt(n, r, n, i, s, a, s, o)]), e.push(new dn(n, n, s, s, l)); + this.shouldComputeCharChanges && (l = [new Vt(n, r, n, i, s, a, s, o)]), e.push(new un(n, n, s, s, l)); } _mergeTrimWhitespaceCharChange(e, n, r, i, s, a, o) { const l = e.length; @@ -5565,21 +5524,21 @@ class pl { return c.originalEndLineNumber === 0 || c.modifiedEndLineNumber === 0 ? !1 : c.originalEndLineNumber === n && c.modifiedEndLineNumber === s ? (this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new Vt(n, r, n, i, s, a, s, o)), !0) : c.originalEndLineNumber + 1 === n && c.modifiedEndLineNumber + 1 === s ? (c.originalEndLineNumber = n, c.modifiedEndLineNumber = s, this.shouldComputeCharChanges && c.charChanges && c.charChanges.push(new Vt(n, r, n, i, s, a, s, o)), !0) : !1; } } -function Zr(t, e) { - const n = _c(t); +function ti(t, e) { + const n = yc(t); return n === -1 ? e : n + 1; } -function ei(t, e) { - const n = Fc(t); +function ni(t, e) { + const n = wc(t); return n === -1 ? e : n + 2; } -function ca(t) { +function sa(t) { if (t === 0) return () => !0; const e = Date.now(); return () => Date.now() - e < t; } -class de { +class te { static addRange(e, n) { let r = 0; for (; r < n.length && n[r].endExclusive < e.start; ) @@ -5591,22 +5550,22 @@ class de { n.splice(r, 0, e); else { const s = Math.min(e.start, n[r].start), a = Math.max(e.endExclusive, n[i - 1].endExclusive); - n.splice(r, i - r, new de(s, a)); + n.splice(r, i - r, new te(s, a)); } } static tryCreate(e, n) { if (!(e > n)) - return new de(e, n); + return new te(e, n); } constructor(e, n) { if (this.start = e, this.endExclusive = n, e > n) - throw new Dt(`Invalid range: ${this.toString()}`); + throw new Yt(`Invalid range: ${this.toString()}`); } get isEmpty() { return this.start === this.endExclusive; } delta(e) { - return new de(this.start + e, this.endExclusive + e); + return new te(this.start + e, this.endExclusive + e); } get length() { return this.endExclusive - this.start; @@ -5628,7 +5587,7 @@ class de { * The joined range is the smallest range that contains both ranges. */ join(e) { - return new de(Math.min(this.start, e.start), Math.max(this.endExclusive, e.endExclusive)); + return new te(Math.min(this.start, e.start), Math.max(this.endExclusive, e.endExclusive)); } /** * for all numbers n: range1.contains(n) and range2.contains(n) <=> range1.intersect(range2).contains(n) @@ -5639,44 +5598,47 @@ class de { intersect(e) { const n = Math.max(this.start, e.start), r = Math.min(this.endExclusive, e.endExclusive); if (n <= r) - return new de(n, r); + return new te(n, r); } } class at { static trivial(e, n) { - return new at([new Be(new de(0, e.length), new de(0, n.length))], !1); + return new at([new Ae(new te(0, e.length), new te(0, n.length))], !1); } static trivialTimedOut(e, n) { - return new at([new Be(new de(0, e.length), new de(0, n.length))], !0); + return new at([new Ae(new te(0, e.length), new te(0, n.length))], !0); } constructor(e, n) { this.diffs = e, this.hitTimeout = n; } } -class Be { +class Ae { constructor(e, n) { this.seq1Range = e, this.seq2Range = n; } reverse() { - return new Be(this.seq2Range, this.seq1Range); + return new Ae(this.seq2Range, this.seq1Range); } toString() { return `${this.seq1Range} <-> ${this.seq2Range}`; } join(e) { - return new Be(this.seq1Range.join(e.seq1Range), this.seq2Range.join(e.seq2Range)); + return new Ae(this.seq1Range.join(e.seq1Range), this.seq2Range.join(e.seq2Range)); + } + delta(e) { + return e === 0 ? this : new Ae(this.seq1Range.delta(e), this.seq2Range.delta(e)); } } -class fn { +class vn { isValid() { return !0; } } -fn.instance = new fn(); -class Ih { +vn.instance = new vn(); +class Nh { constructor(e) { if (this.timeout = e, this.startTime = Date.now(), this.valid = !0, e <= 0) - throw new Dt("timeout must be positive"); + throw new Yt("timeout must be positive"); } // Recommendation: Set a log-point `{this.disable()}` in the body isValid() { @@ -5686,11 +5648,8 @@ class Ih { } return this.valid; } - disable() { - this.timeout = Number.MAX_SAFE_INTEGER, this.isValid = () => !0, this.valid = !0; - } } -class yr { +class xr { constructor(e, n) { this.width = e, this.height = n, this.array = [], this.array = new Array(e * n); } @@ -5701,11 +5660,11 @@ class yr { this.array[e + n * this.width] = r; } } -class Lh { - compute(e, n, r = fn.instance, i) { +class zh { + compute(e, n, r = vn.instance, i) { if (e.length === 0 || n.length === 0) return at.trivial(e, n); - const s = new yr(e.length, n.length), a = new yr(e.length, n.length), o = new yr(e.length, n.length); + const s = new xr(e.length, n.length), a = new xr(e.length, n.length), o = new xr(e.length, n.length); for (let g = 0; g < e.length; g++) for (let b = 0; b < n.length; b++) { if (!r.isValid()) @@ -5715,8 +5674,8 @@ class Lh { e.getElement(g) === n.getElement(b) ? (g === 0 || b === 0 ? x = 0 : x = s.get(g - 1, b - 1), g > 0 && b > 0 && a.get(g - 1, b - 1) === 3 && (x += o.get(g - 1, b - 1)), x += i ? i(g, b) : 1) : x = -1; const k = Math.max(y, w, x); if (k === x) { - const F = g > 0 && b > 0 ? o.get(g - 1, b - 1) : 0; - o.set(g, b, F + 1), a.set(g, b, 3); + const P = g > 0 && b > 0 ? o.get(g - 1, b - 1) : 0; + o.set(g, b, P + 1), a.set(g, b, 3); } else k === y ? (o.set(g, b, 0), a.set(g, b, 1)) : k === w && (o.set(g, b, 0), a.set(g, b, 2)); s.set(g, b, k); @@ -5724,19 +5683,19 @@ class Lh { const l = []; let c = e.length, h = n.length; function u(g, b) { - (g + 1 !== c || b + 1 !== h) && l.push(new Be(new de(g + 1, c), new de(b + 1, h))), c = g, h = b; + (g + 1 !== c || b + 1 !== h) && l.push(new Ae(new te(g + 1, c), new te(b + 1, h))), c = g, h = b; } - let f = e.length - 1, m = n.length - 1; - for (; f >= 0 && m >= 0; ) - a.get(f, m) === 3 ? (u(f, m), f--, m--) : a.get(f, m) === 1 ? f-- : m--; + let m = e.length - 1, f = n.length - 1; + for (; m >= 0 && f >= 0; ) + a.get(m, f) === 3 ? (u(m, f), m--, f--) : a.get(m, f) === 1 ? m-- : f--; return u(-1, -1), l.reverse(), new at(l, !1); } } -function ha(t, e, n) { +function aa(t, e, n) { let r = n; - return r = Wh(t, e, r), r = Oh(t, e, r), r; + return r = Ih(t, e, r), r = Th(t, e, r), r; } -function Th(t, e, n) { +function Ph(t, e, n) { const r = []; for (const i of n) { const s = r[r.length - 1]; @@ -5744,108 +5703,157 @@ function Th(t, e, n) { r.push(i); continue; } - i.seq1Range.start - s.seq1Range.endExclusive <= 2 || i.seq2Range.start - s.seq2Range.endExclusive <= 2 ? r[r.length - 1] = new Be(s.seq1Range.join(i.seq1Range), s.seq2Range.join(i.seq2Range)) : r.push(i); + i.seq1Range.start - s.seq1Range.endExclusive <= 2 || i.seq2Range.start - s.seq2Range.endExclusive <= 2 ? r[r.length - 1] = new Ae(s.seq1Range.join(i.seq1Range), s.seq2Range.join(i.seq2Range)) : r.push(i); } return r; } -function Wh(t, e, n) { - const r = []; - n.length > 0 && r.push(n[0]); - for (let i = 1; i < n.length; i++) { - const s = r[r.length - 1], a = n[i]; - if (a.seq1Range.isEmpty) { - let o = !0; - const l = a.seq1Range.start - s.seq1Range.endExclusive; - for (let c = 1; c <= l; c++) - if (e.getElement(a.seq2Range.start - c) !== e.getElement(a.seq2Range.endExclusive - c)) { - o = !1; - break; +function Lh(t, e, n) { + let r = n; + if (r.length === 0) + return r; + let i = 0, s; + do { + s = !1; + const o = [ + r[0] + ]; + for (let l = 1; l < r.length; l++) { + let u = function(f, g) { + const b = new te(h.seq1Range.endExclusive, c.seq1Range.start); + if (t.countLinesIn(b) > 5 || b.length > 500) + return !1; + const w = t.getText(b).trim(); + if (w.length > 20 || w.split(/\r\n|\r|\n/).length > 1) + return !1; + const x = t.countLinesIn(f.seq1Range), k = f.seq1Range.length, P = e.countLinesIn(f.seq2Range), N = f.seq2Range.length, V = t.countLinesIn(g.seq1Range), I = g.seq1Range.length, T = e.countLinesIn(g.seq2Range), D = g.seq2Range.length, E = 2 * 40 + 50; + function R(F) { + return Math.min(F, E); } - if (o) { - r[r.length - 1] = new Be(s.seq1Range, new de(s.seq2Range.start, a.seq2Range.endExclusive - l)); + return Math.pow(Math.pow(R(x * 40 + k), 1.5) + Math.pow(R(P * 40 + N), 1.5), 1.5) + Math.pow(Math.pow(R(V * 40 + I), 1.5) + Math.pow(R(T * 40 + D), 1.5), 1.5) > Math.pow(Math.pow(E, 1.5), 1.5) * 1.3; + }; + var a = u; + const c = r[l], h = o[o.length - 1]; + u(h, c) ? (s = !0, o[o.length - 1] = o[o.length - 1].join(c)) : o.push(c); + } + r = o; + } while (i++ < 10 && s); + return r; +} +function Ih(t, e, n) { + if (n.length === 0) + return n; + const r = []; + r.push(n[0]); + for (let s = 1; s < n.length; s++) { + const a = r[r.length - 1]; + let o = n[s]; + if (o.seq1Range.isEmpty || o.seq2Range.isEmpty) { + const l = o.seq1Range.start - a.seq1Range.endExclusive; + let c; + for (c = 1; c <= l && !(t.getElement(o.seq1Range.start - c) !== t.getElement(o.seq1Range.endExclusive - c) || e.getElement(o.seq2Range.start - c) !== e.getElement(o.seq2Range.endExclusive - c)); c++) + ; + if (c--, c === l) { + r[r.length - 1] = new Ae(new te(a.seq1Range.start, o.seq1Range.endExclusive - l), new te(a.seq2Range.start, o.seq2Range.endExclusive - l)); continue; } + o = o.delta(-c); } - r.push(a); + r.push(o); } - return r; + const i = []; + for (let s = 0; s < r.length - 1; s++) { + const a = r[s + 1]; + let o = r[s]; + if (o.seq1Range.isEmpty || o.seq2Range.isEmpty) { + const l = a.seq1Range.start - o.seq1Range.endExclusive; + let c; + for (c = 0; c < l && !(t.getElement(o.seq1Range.start + c) !== t.getElement(o.seq1Range.endExclusive + c) || e.getElement(o.seq2Range.start + c) !== e.getElement(o.seq2Range.endExclusive + c)); c++) + ; + if (c === l) { + r[s + 1] = new Ae(new te(o.seq1Range.start + l, a.seq1Range.endExclusive), new te(o.seq2Range.start + l, a.seq2Range.endExclusive)); + continue; + } + c > 0 && (o = o.delta(c)); + } + i.push(o); + } + return r.length > 0 && i.push(r[r.length - 1]), i; } -function Oh(t, e, n) { +function Th(t, e, n) { if (!t.getBoundaryScore || !e.getBoundaryScore) return n; for (let r = 0; r < n.length; r++) { - const i = n[r]; - if (i.seq1Range.isEmpty) { - const s = r > 0 ? n[r - 1].seq2Range.endExclusive : -1, a = r + 1 < n.length ? n[r + 1].seq2Range.start : e.length; - n[r] = da(i, t, e, a, s); - } else if (i.seq2Range.isEmpty) { - const s = r > 0 ? n[r - 1].seq1Range.endExclusive : -1, a = r + 1 < n.length ? n[r + 1].seq1Range.start : t.length; - n[r] = da(i.reverse(), e, t, a, s).reverse(); - } + const i = r > 0 ? n[r - 1] : void 0, s = n[r], a = r + 1 < n.length ? n[r + 1] : void 0, o = new te(i ? i.seq1Range.start + 1 : 0, a ? a.seq1Range.endExclusive - 1 : t.length), l = new te(i ? i.seq2Range.start + 1 : 0, a ? a.seq2Range.endExclusive - 1 : e.length); + s.seq1Range.isEmpty ? n[r] = oa(s, t, e, o, l) : s.seq2Range.isEmpty && (n[r] = oa(s.reverse(), e, t, l, o).reverse()); } return n; } -function da(t, e, n, r, i) { +function oa(t, e, n, r, i) { let a = 1; - for (; t.seq2Range.start - a > i && n.getElement(t.seq2Range.start - a) === n.getElement(t.seq2Range.endExclusive - a) && a < 20; ) + for (; t.seq1Range.start - a >= r.start && t.seq2Range.start - a >= i.start && n.getElement(t.seq2Range.start - a) === n.getElement(t.seq2Range.endExclusive - a) && a < 100; ) a++; a--; let o = 0; - for (; t.seq2Range.start + o < r && n.getElement(t.seq2Range.start + o) === n.getElement(t.seq2Range.endExclusive + o) && o < 20; ) + for (; t.seq1Range.start + o < r.endExclusive && t.seq2Range.endExclusive + o < i.endExclusive && n.getElement(t.seq2Range.start + o) === n.getElement(t.seq2Range.endExclusive + o) && o < 100; ) o++; if (a === 0 && o === 0) return t; let l = 0, c = -1; for (let h = -a; h <= o; h++) { - const u = t.seq2Range.start + h, f = t.seq2Range.endExclusive + h, m = t.seq1Range.start + h, g = e.getBoundaryScore(m) + n.getBoundaryScore(u) + n.getBoundaryScore(f); + const u = t.seq2Range.start + h, m = t.seq2Range.endExclusive + h, f = t.seq1Range.start + h, g = e.getBoundaryScore(f) + n.getBoundaryScore(u) + n.getBoundaryScore(m); g > c && (c = g, l = h); } - return l !== 0 ? new Be(t.seq1Range.delta(l), t.seq2Range.delta(l)) : t; + return t.delta(l); } -class Uh { - compute(e, n, r = fn.instance) { +class Wh { + compute(e, n, r = vn.instance) { if (e.length === 0 || n.length === 0) return at.trivial(e, n); - function i(m, g) { - for (; m < e.length && g < n.length && e.getElement(m) === n.getElement(g); ) - m++, g++; - return m; + function i(f, g) { + for (; f < e.length && g < n.length && e.getElement(f) === n.getElement(g); ) + f++, g++; + return f; } let s = 0; - const a = new Vh(); + const a = new Oh(); a.set(0, i(0, 0)); - const o = new Bh(); - o.set(0, a.get(0) === 0 ? null : new ua(null, 0, 0, a.get(0))); + const o = new Uh(); + o.set(0, a.get(0) === 0 ? null : new la(null, 0, 0, a.get(0))); let l = 0; e: - for (; ; ) - for (s++, l = -s; l <= s; l += 2) { - if (!r.isValid()) - return at.trivialTimedOut(e, n); - const m = l === s ? -1 : a.get(l + 1), g = l === -s ? -1 : a.get(l - 1) + 1, b = Math.min(Math.max(m, g), e.length), y = b - l, w = i(b, y); - a.set(l, w); - const x = b === m ? o.get(l + 1) : o.get(l - 1); - if (o.set(l, w !== b ? new ua(x, b, y, w - b) : x), a.get(l) === e.length && a.get(l) - l === n.length) + for (; ; ) { + if (s++, !r.isValid()) + return at.trivialTimedOut(e, n); + const f = -Math.min(s, n.length + s % 2), g = Math.min(s, e.length + s % 2); + for (l = f; l <= g; l += 2) { + const b = l === g ? -1 : a.get(l + 1), y = l === f ? -1 : a.get(l - 1) + 1, w = Math.min(Math.max(b, y), e.length), x = w - l; + if (w > e.length || x > n.length) + continue; + const k = i(w, x); + a.set(l, k); + const P = w === b ? o.get(l + 1) : o.get(l - 1); + if (o.set(l, k !== w ? new la(P, w, x, k - w) : P), a.get(l) === e.length && a.get(l) - l === n.length) break e; } + } let c = o.get(l); const h = []; - let u = e.length, f = n.length; + let u = e.length, m = n.length; for (; ; ) { - const m = c ? c.x + c.length : 0, g = c ? c.y + c.length : 0; - if ((m !== u || g !== f) && h.push(new Be(new de(m, u), new de(g, f))), !c) + const f = c ? c.x + c.length : 0, g = c ? c.y + c.length : 0; + if ((f !== u || g !== m) && h.push(new Ae(new te(f, u), new te(g, m))), !c) break; - u = c.x, f = c.y, c = c.prev; + u = c.x, m = c.y, c = c.prev; } return h.reverse(), new at(h, !1); } } -class ua { +class la { constructor(e, n, r, i) { this.prev = e, this.x = n, this.y = r, this.length = i; } } -class Vh { +class Oh { constructor() { this.positiveArr = new Int32Array(10), this.negativeArr = new Int32Array(10); } @@ -5868,7 +5876,7 @@ class Vh { } } } -class Bh { +class Uh { constructor() { this.positiveArr = [], this.negativeArr = []; } @@ -5879,82 +5887,126 @@ class Bh { e < 0 ? (e = -e - 1, this.negativeArr[e] = n) : this.positiveArr[e] = n; } } -class jh { +class Vh { constructor() { - this.dynamicProgrammingDiffing = new Lh(), this.myersDiffingAlgorithm = new Uh(); + this.dynamicProgrammingDiffing = new zh(), this.myersDiffingAlgorithm = new Wh(); } computeDiff(e, n, r) { - const i = r.maxComputationTimeMs === 0 ? fn.instance : new Ih(r.maxComputationTimeMs), s = !r.ignoreTrimWhitespace, a = /* @__PURE__ */ new Map(); - function o(F) { - let N = a.get(F); - return N === void 0 && (N = a.size, a.set(F, N)), N; + if (e.length === 1 && e[0].length === 0 || n.length === 1 && n[0].length === 0) + return { + changes: [ + new st(new le(1, e.length + 1), new le(1, n.length + 1), [ + new bn(new De(1, 1, e.length, e[0].length + 1), new De(1, 1, n.length, n[0].length + 1)) + ]) + ], + hitTimeout: !1, + moves: [] + }; + const i = r.maxComputationTimeMs === 0 ? vn.instance : new Nh(r.maxComputationTimeMs), s = !r.ignoreTrimWhitespace, a = /* @__PURE__ */ new Map(); + function o(N) { + let V = a.get(N); + return V === void 0 && (V = a.size, a.set(N, V)), V; } - const l = e.map((F) => o(F.trim())), c = n.map((F) => o(F.trim())), h = new pa(l, e), u = new pa(c, n), f = (() => h.length + u.length < 1500 ? this.dynamicProgrammingDiffing.compute(h, u, i, (F, N) => e[F] === n[N] ? n[N].length === 0 ? 0.1 : 1 + Math.log(1 + n[N].length) : 0.99) : this.myersDiffingAlgorithm.compute(h, u))(); - let m = f.diffs, g = f.hitTimeout; - m = ha(h, u, m); - const b = [], y = (F) => { + const l = e.map((N) => o(N.trim())), c = n.map((N) => o(N.trim())), h = new ha(l, e), u = new ha(c, n), m = (() => h.length + u.length < 1500 ? this.dynamicProgrammingDiffing.compute(h, u, i, (N, V) => e[N] === n[V] ? n[V].length === 0 ? 0.1 : 1 + Math.log(1 + n[V].length) : 0.99) : this.myersDiffingAlgorithm.compute(h, u))(); + let f = m.diffs, g = m.hitTimeout; + f = aa(h, u, f); + const b = [], y = (N) => { if (s) - for (let N = 0; N < F; N++) { - const j = w + N, H = x + N; - if (e[j] !== n[H]) { - const B = this.refineDiff(e, n, new Be(new de(j, j + 1), new de(H, H + 1)), i, s); - for (const P of B.mappings) - b.push(P); - B.hitTimeout && (g = !0); + for (let V = 0; V < N; V++) { + const I = w + V, T = x + V; + if (e[I] !== n[T]) { + const D = this.refineDiff(e, n, new Ae(new te(I, I + 1), new te(T, T + 1)), i, s); + for (const E of D.mappings) + b.push(E); + D.hitTimeout && (g = !0); } } }; let w = 0, x = 0; - for (const F of m) { - Ri(() => F.seq1Range.start - w === F.seq2Range.start - x); - const N = F.seq1Range.start - w; - y(N), w = F.seq1Range.endExclusive, x = F.seq2Range.endExclusive; - const j = this.refineDiff(e, n, F, i, s); - j.hitTimeout && (g = !0); - for (const H of j.mappings) - b.push(H); + for (const N of f) { + Qn(() => N.seq1Range.start - w === N.seq2Range.start - x); + const V = N.seq1Range.start - w; + y(V), w = N.seq1Range.endExclusive, x = N.seq2Range.endExclusive; + const I = this.refineDiff(e, n, N, i, s); + I.hitTimeout && (g = !0); + for (const T of I.mappings) + b.push(T); } y(e.length - w); - const k = Hh(b, e, n); - return new hl(k, g); + const k = ca(b, e, n), P = []; + if (r.computeMoves) { + const N = k.filter((I) => I.modifiedRange.isEmpty && I.originalRange.length >= 3).map((I) => new ga(I.originalRange, e)), V = new Set(k.filter((I) => I.originalRange.isEmpty && I.modifiedRange.length >= 3).map((I) => new ga(I.modifiedRange, n))); + for (const I of N) { + let T = -1, D; + for (const E of V) { + const R = I.computeSimilarity(E); + R > T && (T = R, D = E); + } + if (T > 0.9 && D) { + const E = this.refineDiff(e, n, new Ae(new te(I.range.startLineNumber - 1, I.range.endLineNumberExclusive - 1), new te(D.range.startLineNumber - 1, D.range.endLineNumberExclusive - 1)), i, s), R = ca(E.mappings, e, n, !0); + V.delete(D), P.push(new Ai(new Di(I.range, D.range), R)); + } + } + } + return Qn(() => { + function N(I, T) { + if (I.lineNumber < 1 || I.lineNumber > T.length) + return !1; + const D = T[I.lineNumber - 1]; + return !(I.column < 1 || I.column > D.length + 1); + } + function V(I, T) { + return !(I.startLineNumber < 1 || I.startLineNumber > T.length + 1 || I.endLineNumberExclusive < 1 || I.endLineNumberExclusive > T.length + 1); + } + for (const I of k) { + if (!I.innerChanges) + return !1; + for (const T of I.innerChanges) + if (!(N(T.modifiedRange.getStartPosition(), n) && N(T.modifiedRange.getEndPosition(), n) && N(T.originalRange.getStartPosition(), e) && N(T.originalRange.getEndPosition(), e))) + return !1; + if (!V(I.modifiedRange, n) || !V(I.originalRange, e)) + return !1; + } + return !0; + }), new hl(k, P, g); } refineDiff(e, n, r, i, s) { - const a = new ma(e, r.seq1Range, s), o = new ma(n, r.seq2Range, s), l = a.length + o.length < 500 ? this.dynamicProgrammingDiffing.compute(a, o, i) : this.myersDiffingAlgorithm.compute(a, o, i); + const a = new ua(e, r.seq1Range, s), o = new ua(n, r.seq2Range, s), l = a.length + o.length < 500 ? this.dynamicProgrammingDiffing.compute(a, o, i) : this.myersDiffingAlgorithm.compute(a, o, i); let c = l.diffs; - return c = ha(a, o, c), c = qh(a, o, c), c = Th(a, o, c), { - mappings: c.map((u) => new dl(a.translateRange(u.seq1Range), o.translateRange(u.seq2Range))), + return c = aa(a, o, c), c = Bh(a, o, c), c = Ph(a, o, c), c = Lh(a, o, c), { + mappings: c.map((u) => new bn(a.translateRange(u.seq1Range), o.translateRange(u.seq2Range))), hitTimeout: l.hitTimeout }; } } -function qh(t, e, n) { +function Bh(t, e, n) { const r = []; let i; function s() { if (!i) return; const l = i.s1Range.length - i.deleted; - i.s2Range.length - i.added, Math.max(i.deleted, i.added) + (i.count - 1) > l && r.push(new Be(i.s1Range, i.s2Range)), i = void 0; + i.s2Range.length - i.added, Math.max(i.deleted, i.added) + (i.count - 1) > l && r.push(new Ae(i.s1Range, i.s2Range)), i = void 0; } for (const l of n) { let c = function(g, b) { var y, w, x, k; if (!i || !i.s1Range.containsRange(g) || !i.s2Range.containsRange(b)) if (i && !(i.s1Range.endExclusive < g.start && i.s2Range.endExclusive < b.start)) { - const j = de.tryCreate(i.s1Range.endExclusive, g.start), H = de.tryCreate(i.s2Range.endExclusive, b.start); - i.deleted += (y = j == null ? void 0 : j.length) !== null && y !== void 0 ? y : 0, i.added += (w = H == null ? void 0 : H.length) !== null && w !== void 0 ? w : 0, i.s1Range = i.s1Range.join(g), i.s2Range = i.s2Range.join(b); + const V = te.tryCreate(i.s1Range.endExclusive, g.start), I = te.tryCreate(i.s2Range.endExclusive, b.start); + i.deleted += (y = V == null ? void 0 : V.length) !== null && y !== void 0 ? y : 0, i.added += (w = I == null ? void 0 : I.length) !== null && w !== void 0 ? w : 0, i.s1Range = i.s1Range.join(g), i.s2Range = i.s2Range.join(b); } else s(), i = { added: 0, deleted: 0, count: 0, s1Range: g, s2Range: b }; - const F = g.intersect(l.seq1Range), N = b.intersect(l.seq2Range); - i.count++, i.deleted += (x = F == null ? void 0 : F.length) !== null && x !== void 0 ? x : 0, i.added += (k = N == null ? void 0 : N.length) !== null && k !== void 0 ? k : 0; + const P = g.intersect(l.seq1Range), N = b.intersect(l.seq2Range); + i.count++, i.deleted += (x = P == null ? void 0 : P.length) !== null && x !== void 0 ? x : 0, i.added += (k = N == null ? void 0 : N.length) !== null && k !== void 0 ? k : 0; }; var o = c; - const h = t.findWordContaining(l.seq1Range.start - 1), u = e.findWordContaining(l.seq2Range.start - 1), f = t.findWordContaining(l.seq1Range.endExclusive), m = e.findWordContaining(l.seq2Range.endExclusive); - h && f && u && m && h.equals(f) && u.equals(m) ? c(h, u) : (h && u && c(h, u), f && m && c(f, m)); + const h = t.findWordContaining(l.seq1Range.start - 1), u = e.findWordContaining(l.seq2Range.start - 1), m = t.findWordContaining(l.seq1Range.endExclusive), f = e.findWordContaining(l.seq2Range.endExclusive); + h && m && u && f && h.equals(m) && u.equals(f) ? c(h, u) : (h && u && c(h, u), m && f && c(m, f)); } - return s(), $h(n, r); + return s(), jh(n, r); } -function $h(t, e) { +function jh(t, e) { const n = []; for (; t.length > 0 || e.length > 0; ) { const r = t[0], i = e[0]; @@ -5963,28 +6015,28 @@ function $h(t, e) { } return n; } -function Hh(t, e, n) { - const r = []; - for (const i of Jh(t.map((s) => Gh(s, e, n)), (s, a) => s.originalRange.overlapOrTouch(a.originalRange) || s.modifiedRange.overlapOrTouch(a.modifiedRange))) { - const s = i[0], a = i[i.length - 1]; - r.push(new Kn(s.originalRange.join(a.originalRange), s.modifiedRange.join(a.modifiedRange), i.map((o) => o.innerChanges[0]))); +function ca(t, e, n, r = !1) { + const i = []; + for (const s of $h(t.map((a) => qh(a, e, n)), (a, o) => a.originalRange.overlapOrTouch(o.originalRange) || a.modifiedRange.overlapOrTouch(o.modifiedRange))) { + const a = s[0], o = s[s.length - 1]; + i.push(new st(a.originalRange.join(o.originalRange), a.modifiedRange.join(o.modifiedRange), s.map((l) => l.innerChanges[0]))); } - return Ri(() => cl(r, (i, s) => s.originalRange.startLineNumber - i.originalRange.endLineNumberExclusive === s.modifiedRange.startLineNumber - i.modifiedRange.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined) - i.originalRange.endLineNumberExclusive < s.originalRange.startLineNumber && i.modifiedRange.endLineNumberExclusive < s.modifiedRange.startLineNumber)), r; + return Qn(() => !r && i.length > 0 && i[0].originalRange.startLineNumber !== i[0].modifiedRange.startLineNumber ? !1 : cl(i, (s, a) => a.originalRange.startLineNumber - s.originalRange.endLineNumberExclusive === a.modifiedRange.startLineNumber - s.modifiedRange.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined) + s.originalRange.endLineNumberExclusive < a.originalRange.startLineNumber && s.modifiedRange.endLineNumberExclusive < a.modifiedRange.startLineNumber)), i; } -function Gh(t, e, n) { +function qh(t, e, n) { let r = 0, i = 0; - t.modifiedRange.startColumn - 1 >= n[t.modifiedRange.startLineNumber - 1].length && t.originalRange.startColumn - 1 >= e[t.originalRange.startLineNumber - 1].length && (r = 1), t.modifiedRange.endColumn === 1 && t.originalRange.endColumn === 1 && t.originalRange.startLineNumber + r <= t.originalRange.endLineNumber && t.modifiedRange.startLineNumber + r <= t.modifiedRange.endLineNumber && (i = -1); - const s = new He(t.originalRange.startLineNumber + r, t.originalRange.endLineNumber + 1 + i), a = new He(t.modifiedRange.startLineNumber + r, t.modifiedRange.endLineNumber + 1 + i); - return new Kn(s, a, [t]); + t.modifiedRange.endColumn === 1 && t.originalRange.endColumn === 1 && t.originalRange.startLineNumber + r <= t.originalRange.endLineNumber && t.modifiedRange.startLineNumber + r <= t.modifiedRange.endLineNumber && (i = -1), t.modifiedRange.startColumn - 1 >= n[t.modifiedRange.startLineNumber - 1].length && t.originalRange.startColumn - 1 >= e[t.originalRange.startLineNumber - 1].length && t.originalRange.startLineNumber <= t.originalRange.endLineNumber + i && t.modifiedRange.startLineNumber <= t.modifiedRange.endLineNumber + i && (r = 1); + const s = new le(t.originalRange.startLineNumber + r, t.originalRange.endLineNumber + 1 + i), a = new le(t.modifiedRange.startLineNumber + r, t.modifiedRange.endLineNumber + 1 + i); + return new st(s, a, [t]); } -function* Jh(t, e) { +function* $h(t, e) { let n, r; for (const i of t) r !== void 0 && e(r, i) ? n.push(i) : (n && (yield n), n = [i]), r = i; n && (yield n); } -class pa { +class ha { constructor(e, n) { this.trimmedHash = e, this.lines = n; } @@ -5995,21 +6047,21 @@ class pa { return this.trimmedHash.length; } getBoundaryScore(e) { - const n = e === 0 ? 0 : fa(this.lines[e - 1]), r = e === this.lines.length ? 0 : fa(this.lines[e]); + const n = e === 0 ? 0 : da(this.lines[e - 1]), r = e === this.lines.length ? 0 : da(this.lines[e]); return 1e3 - (n + r); } } -function fa(t) { +function da(t) { let e = 0; for (; e < t.length && (t.charCodeAt(e) === 32 || t.charCodeAt(e) === 9); ) e++; return e; } -class ma { +class ua { constructor(e, n, r) { this.lines = e, this.considerWhitespaceChanges = r, this.elements = [], this.firstCharOffsetByLineMinusOne = [], this.offsetByLine = []; let i = !1; - n.start > 0 && n.endExclusive >= e.length && (n = new de(n.start - 1, n.endExclusive), i = !0), this.lineRange = n; + n.start > 0 && n.endExclusive >= e.length && (n = new te(n.start - 1, n.endExclusive), i = !0), this.lineRange = n; for (let s = this.lineRange.start; s < this.lineRange.endExclusive; s++) { let a = e[s], o = 0; if (i) @@ -6030,7 +6082,10 @@ class ma { return `Slice: "${this.text}"`; } get text() { - return [...this.elements].map((e) => String.fromCharCode(e)).join(""); + return this.getText(new te(0, this.length)); + } + getText(e) { + return this.elements.slice(e.start, e.endExclusive).map((n) => String.fromCharCode(n)).join(""); } getElement(e) { return this.elements[e]; @@ -6039,106 +6094,117 @@ class ma { return this.elements.length; } getBoundaryScore(e) { - const n = ba(e > 0 ? this.elements[e - 1] : -1), r = ba(e < this.elements.length ? this.elements[e] : -1); + const n = fa(e > 0 ? this.elements[e - 1] : -1), r = fa(e < this.elements.length ? this.elements[e] : -1); if (n === 6 && r === 7) return 0; let i = 0; - return n !== r && (i += 10, r === 1 && (i += 1)), i += ga(n), i += ga(r), i; + return n !== r && (i += 10, r === 1 && (i += 1)), i += pa(n), i += pa(r), i; } translateOffset(e) { if (this.lineRange.isEmpty) - return new Ge(this.lineRange.start + 1, 1); + return new Ke(this.lineRange.start + 1, 1); let n = 0, r = this.firstCharOffsetByLineMinusOne.length; for (; n < r; ) { const s = Math.floor((n + r) / 2); this.firstCharOffsetByLineMinusOne[s] > e ? r = s : n = s + 1; } const i = n === 0 ? 0 : this.firstCharOffsetByLineMinusOne[n - 1]; - return new Ge(this.lineRange.start + n + 1, e - i + 1 + this.offsetByLine[n]); + return new Ke(this.lineRange.start + n + 1, e - i + 1 + this.offsetByLine[n]); } translateRange(e) { - return Ee.fromPositions(this.translateOffset(e.start), this.translateOffset(e.endExclusive)); + return De.fromPositions(this.translateOffset(e.start), this.translateOffset(e.endExclusive)); } /** * Finds the word that contains the character at the given offset */ findWordContaining(e) { - if (e < 0 || e >= this.elements.length || !wr(this.elements[e])) + if (e < 0 || e >= this.elements.length || !Sr(this.elements[e])) return; let n = e; - for (; n > 0 && wr(this.elements[n - 1]); ) + for (; n > 0 && Sr(this.elements[n - 1]); ) n--; let r = e; - for (; r < this.elements.length && wr(this.elements[r]); ) + for (; r < this.elements.length && Sr(this.elements[r]); ) r++; - return new de(n, r); + return new te(n, r); + } + countLinesIn(e) { + return this.translateOffset(e.endExclusive).lineNumber - this.translateOffset(e.start).lineNumber; } } -function wr(t) { +function Sr(t) { return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57; } -const Xh = { - [ - 0 - /* CharBoundaryCategory.WordLower */ - ]: 0, - [ - 1 - /* CharBoundaryCategory.WordUpper */ - ]: 0, - [ - 2 - /* CharBoundaryCategory.WordNumber */ - ]: 0, - [ - 3 - /* CharBoundaryCategory.End */ - ]: 10, - [ - 4 - /* CharBoundaryCategory.Other */ - ]: 2, - [ - 5 - /* CharBoundaryCategory.Space */ - ]: 3, - [ - 6 - /* CharBoundaryCategory.LineBreakCR */ - ]: 10, - [ - 7 - /* CharBoundaryCategory.LineBreakLF */ - ]: 10 +const Hh = { + 0: 0, + 1: 0, + 2: 0, + 3: 10, + 4: 2, + 5: 3, + 6: 10, + 7: 10 }; -function ga(t) { - return Xh[t]; +function pa(t) { + return Hh[t]; } -function ba(t) { - return t === 10 ? 7 : t === 13 ? 6 : Yh(t) ? 5 : t >= 97 && t <= 122 ? 0 : t >= 65 && t <= 90 ? 1 : t >= 48 && t <= 57 ? 2 : t === -1 ? 3 : 4; +function fa(t) { + return t === 10 ? 7 : t === 13 ? 6 : Gh(t) ? 5 : t >= 97 && t <= 122 ? 0 : t >= 65 && t <= 90 ? 1 : t >= 48 && t <= 57 ? 2 : t === -1 ? 3 : 4; } -function Yh(t) { +function Gh(t) { return t === 32 || t === 9; } -const xr = { - legacy: new Nh(), - advanced: new jh() +const Cr = /* @__PURE__ */ new Map(); +function ma(t) { + let e = Cr.get(t); + return e === void 0 && (e = Cr.size, Cr.set(t, e)), e; +} +class ga { + constructor(e, n) { + this.range = e, this.lines = n, this.histogram = []; + let r = 0; + for (let i = e.startLineNumber - 1; i < e.endLineNumberExclusive - 1; i++) { + const s = n[i]; + for (let o = 0; o < s.length; o++) { + r++; + const l = s[o], c = ma(l); + this.histogram[c] = (this.histogram[c] || 0) + 1; + } + r++; + const a = ma(` +`); + this.histogram[a] = (this.histogram[a] || 0) + 1; + } + this.totalCount = r; + } + computeSimilarity(e) { + var n, r; + let i = 0; + const s = Math.max(this.histogram.length, e.histogram.length); + for (let a = 0; a < s; a++) + i += Math.abs(((n = this.histogram[a]) !== null && n !== void 0 ? n : 0) - ((r = e.histogram[a]) !== null && r !== void 0 ? r : 0)); + return 1 - i / (this.totalCount + e.totalCount); + } +} +const ba = { + getLegacy: () => new Eh(), + getAdvanced: () => new Vh() }; -function yt(t, e) { +function vt(t, e) { const n = Math.pow(10, e); return Math.round(t * n) / n; } -class he { +class ve { constructor(e, n, r, i = 1) { - this._rgbaBrand = void 0, this.r = Math.min(255, Math.max(0, e)) | 0, this.g = Math.min(255, Math.max(0, n)) | 0, this.b = Math.min(255, Math.max(0, r)) | 0, this.a = yt(Math.max(Math.min(1, i), 0), 3); + this._rgbaBrand = void 0, this.r = Math.min(255, Math.max(0, e)) | 0, this.g = Math.min(255, Math.max(0, n)) | 0, this.b = Math.min(255, Math.max(0, r)) | 0, this.a = vt(Math.max(Math.min(1, i), 0), 3); } static equals(e, n) { return e.r === n.r && e.g === n.g && e.b === n.b && e.a === n.a; } } -class We { +class Oe { constructor(e, n, r, i) { - this._hslaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = yt(Math.max(Math.min(1, n), 0), 3), this.l = yt(Math.max(Math.min(1, r), 0), 3), this.a = yt(Math.max(Math.min(1, i), 0), 3); + this._hslaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = vt(Math.max(Math.min(1, n), 0), 3), this.l = vt(Math.max(Math.min(1, r), 0), 3), this.a = vt(Math.max(Math.min(1, i), 0), 3); } static equals(e, n) { return e.h === n.h && e.s === n.s && e.l === n.l && e.a === n.a; @@ -6167,7 +6233,7 @@ class We { } l *= 60, l = Math.round(l); } - return new We(l, c, h, s); + return new Oe(l, c, h, s); } static _hue2rgb(e, n, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (n - e) * 6 * r : r < 1 / 2 ? n : r < 2 / 3 ? e + (n - e) * (2 / 3 - r) * 6 : e; @@ -6185,14 +6251,14 @@ class We { a = o = l = i; else { const c = i < 0.5 ? i * (1 + r) : i + r - i * r, h = 2 * i - c; - a = We._hue2rgb(h, c, n + 1 / 3), o = We._hue2rgb(h, c, n), l = We._hue2rgb(h, c, n - 1 / 3); + a = Oe._hue2rgb(h, c, n + 1 / 3), o = Oe._hue2rgb(h, c, n), l = Oe._hue2rgb(h, c, n - 1 / 3); } - return new he(Math.round(a * 255), Math.round(o * 255), Math.round(l * 255), s); + return new ve(Math.round(a * 255), Math.round(o * 255), Math.round(l * 255), s); } } -class Ot { +class Wt { constructor(e, n, r, i) { - this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = yt(Math.max(Math.min(1, n), 0), 3), this.v = yt(Math.max(Math.min(1, r), 0), 3), this.a = yt(Math.max(Math.min(1, i), 0), 3); + this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = vt(Math.max(Math.min(1, n), 0), 3), this.v = vt(Math.max(Math.min(1, r), 0), 3), this.a = vt(Math.max(Math.min(1, i), 0), 3); } static equals(e, n) { return e.h === n.h && e.s === n.s && e.v === n.v && e.a === n.a; @@ -6201,71 +6267,56 @@ class Ot { static fromRGBA(e) { const n = e.r / 255, r = e.g / 255, i = e.b / 255, s = Math.max(n, r, i), a = Math.min(n, r, i), o = s - a, l = s === 0 ? 0 : o / s; let c; - return o === 0 ? c = 0 : s === n ? c = ((r - i) / o % 6 + 6) % 6 : s === r ? c = (i - n) / o + 2 : c = (n - r) / o + 4, new Ot(Math.round(c * 60), l, s, e.a); + return o === 0 ? c = 0 : s === n ? c = ((r - i) / o % 6 + 6) % 6 : s === r ? c = (i - n) / o + 2 : c = (n - r) / o + 4, new Wt(Math.round(c * 60), l, s, e.a); } // from http://www.rapidtables.com/convert/color/hsv-to-rgb.htm static toRGBA(e) { const { h: n, s: r, v: i, a: s } = e, a = i * r, o = a * (1 - Math.abs(n / 60 % 2 - 1)), l = i - a; let [c, h, u] = [0, 0, 0]; - return n < 60 ? (c = a, h = o) : n < 120 ? (c = o, h = a) : n < 180 ? (h = a, u = o) : n < 240 ? (h = o, u = a) : n < 300 ? (c = o, u = a) : n <= 360 && (c = a, u = o), c = Math.round((c + l) * 255), h = Math.round((h + l) * 255), u = Math.round((u + l) * 255), new he(c, h, u, s); + return n < 60 ? (c = a, h = o) : n < 120 ? (c = o, h = a) : n < 180 ? (h = a, u = o) : n < 240 ? (h = o, u = a) : n < 300 ? (c = o, u = a) : n <= 360 && (c = a, u = o), c = Math.round((c + l) * 255), h = Math.round((h + l) * 255), u = Math.round((u + l) * 255), new ve(c, h, u, s); } } -let ge = class we { +let me = class Te { static fromHex(e) { - return we.Format.CSS.parseHex(e) || we.red; + return Te.Format.CSS.parseHex(e) || Te.red; } static equals(e, n) { return !e && !n ? !0 : !e || !n ? !1 : e.equals(n); } get hsla() { - return this._hsla ? this._hsla : We.fromRGBA(this.rgba); + return this._hsla ? this._hsla : Oe.fromRGBA(this.rgba); } get hsva() { - return this._hsva ? this._hsva : Ot.fromRGBA(this.rgba); + return this._hsva ? this._hsva : Wt.fromRGBA(this.rgba); } constructor(e) { if (e) - if (e instanceof he) + if (e instanceof ve) this.rgba = e; - else if (e instanceof We) - this._hsla = e, this.rgba = We.toRGBA(e); - else if (e instanceof Ot) - this._hsva = e, this.rgba = Ot.toRGBA(e); + else if (e instanceof Oe) + this._hsla = e, this.rgba = Oe.toRGBA(e); + else if (e instanceof Wt) + this._hsva = e, this.rgba = Wt.toRGBA(e); else throw new Error("Invalid color ctor argument"); else throw new Error("Color needs a value"); } equals(e) { - return !!e && he.equals(this.rgba, e.rgba) && We.equals(this.hsla, e.hsla) && Ot.equals(this.hsva, e.hsva); + return !!e && ve.equals(this.rgba, e.rgba) && Oe.equals(this.hsla, e.hsla) && Wt.equals(this.hsva, e.hsva); } /** * http://www.w3.org/TR/WCAG20/#relativeluminancedef * Returns the number in the set [0, 1]. O => Darkest Black. 1 => Lightest white. */ getRelativeLuminance() { - const e = we._relativeLuminanceForComponent(this.rgba.r), n = we._relativeLuminanceForComponent(this.rgba.g), r = we._relativeLuminanceForComponent(this.rgba.b), i = 0.2126 * e + 0.7152 * n + 0.0722 * r; - return yt(i, 4); + const e = Te._relativeLuminanceForComponent(this.rgba.r), n = Te._relativeLuminanceForComponent(this.rgba.g), r = Te._relativeLuminanceForComponent(this.rgba.b), i = 0.2126 * e + 0.7152 * n + 0.0722 * r; + return vt(i, 4); } static _relativeLuminanceForComponent(e) { const n = e / 255; return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4); } - /** - * http://www.w3.org/TR/WCAG20/#contrast-ratiodef - * Returns the contrast ration number in the set [1, 21]. - */ - getContrastRatio(e) { - const n = this.getRelativeLuminance(), r = e.getRelativeLuminance(); - return n > r ? (n + 0.05) / (r + 0.05) : (r + 0.05) / (n + 0.05); - } - /** - * http://24ways.org/2010/calculating-color-contrast - * Return 'true' if darker color otherwise 'false' - */ - isDarker() { - return (this.rgba.r * 299 + this.rgba.g * 587 + this.rgba.b * 114) / 1e3 < 128; - } /** * http://24ways.org/2010/calculating-color-contrast * Return 'true' if lighter color otherwise 'false' @@ -6282,14 +6333,14 @@ let ge = class we { return n < r; } lighten(e) { - return new we(new We(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * e, this.hsla.a)); + return new Te(new Oe(this.hsla.h, this.hsla.s, this.hsla.l + this.hsla.l * e, this.hsla.a)); } darken(e) { - return new we(new We(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * e, this.hsla.a)); + return new Te(new Oe(this.hsla.h, this.hsla.s, this.hsla.l - this.hsla.l * e, this.hsla.a)); } transparent(e) { const { r: n, g: r, b: i, a: s } = this.rgba; - return new we(new he(n, r, i, s * e)); + return new Te(new ve(n, r, i, s * e)); } isTransparent() { return this.rgba.a === 0; @@ -6298,31 +6349,16 @@ let ge = class we { return this.rgba.a === 1; } opposite() { - return new we(new he(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a)); - } - blend(e) { - const n = e.rgba, r = this.rgba.a, i = n.a, s = r + i * (1 - r); - if (s < 1e-6) - return we.transparent; - const a = this.rgba.r * r / s + n.r * i * (1 - r) / s, o = this.rgba.g * r / s + n.g * i * (1 - r) / s, l = this.rgba.b * r / s + n.b * i * (1 - r) / s; - return new we(new he(a, o, l, s)); + return new Te(new ve(255 - this.rgba.r, 255 - this.rgba.g, 255 - this.rgba.b, this.rgba.a)); } makeOpaque(e) { if (this.isOpaque() || e.rgba.a !== 1) return this; const { r: n, g: r, b: i, a: s } = this.rgba; - return new we(new he(e.rgba.r - s * (e.rgba.r - n), e.rgba.g - s * (e.rgba.g - r), e.rgba.b - s * (e.rgba.b - i), 1)); - } - flatten(...e) { - const n = e.reduceRight((r, i) => we._flatten(i, r)); - return we._flatten(this, n); - } - static _flatten(e, n) { - const r = 1 - e.rgba.a; - return new we(new he(r * n.rgba.r + e.rgba.a * e.rgba.r, r * n.rgba.g + e.rgba.a * e.rgba.g, r * n.rgba.b + e.rgba.a * e.rgba.b)); + return new Te(new ve(e.rgba.r - s * (e.rgba.r - n), e.rgba.g - s * (e.rgba.g - r), e.rgba.b - s * (e.rgba.b - i), 1)); } toString() { - return this._toString || (this._toString = we.Format.CSS.format(this)), this._toString; + return this._toString || (this._toString = Te.Format.CSS.format(this)), this._toString; } static getLighterColor(e, n, r) { if (e.isLighterThan(n)) @@ -6339,74 +6375,74 @@ let ge = class we { return r = r * (i - s) / i, e.darken(r); } }; -ge.white = new ge(new he(255, 255, 255, 1)); -ge.black = new ge(new he(0, 0, 0, 1)); -ge.red = new ge(new he(255, 0, 0, 1)); -ge.blue = new ge(new he(0, 0, 255, 1)); -ge.green = new ge(new he(0, 255, 0, 1)); -ge.cyan = new ge(new he(0, 255, 255, 1)); -ge.lightgrey = new ge(new he(211, 211, 211, 1)); -ge.transparent = new ge(new he(0, 0, 0, 0)); +me.white = new me(new ve(255, 255, 255, 1)); +me.black = new me(new ve(0, 0, 0, 1)); +me.red = new me(new ve(255, 0, 0, 1)); +me.blue = new me(new ve(0, 0, 255, 1)); +me.green = new me(new ve(0, 255, 0, 1)); +me.cyan = new me(new ve(0, 255, 255, 1)); +me.lightgrey = new me(new ve(211, 211, 211, 1)); +me.transparent = new me(new ve(0, 0, 0, 0)); (function(t) { (function(e) { (function(n) { - function r(m) { - return m.rgba.a === 1 ? `rgb(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b})` : t.Format.CSS.formatRGBA(m); + function r(f) { + return f.rgba.a === 1 ? `rgb(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b})` : t.Format.CSS.formatRGBA(f); } n.formatRGB = r; - function i(m) { - return `rgba(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b}, ${+m.rgba.a.toFixed(2)})`; + function i(f) { + return `rgba(${f.rgba.r}, ${f.rgba.g}, ${f.rgba.b}, ${+f.rgba.a.toFixed(2)})`; } n.formatRGBA = i; - function s(m) { - return m.hsla.a === 1 ? `hsl(${m.hsla.h}, ${(m.hsla.s * 100).toFixed(2)}%, ${(m.hsla.l * 100).toFixed(2)}%)` : t.Format.CSS.formatHSLA(m); + function s(f) { + return f.hsla.a === 1 ? `hsl(${f.hsla.h}, ${(f.hsla.s * 100).toFixed(2)}%, ${(f.hsla.l * 100).toFixed(2)}%)` : t.Format.CSS.formatHSLA(f); } n.formatHSL = s; - function a(m) { - return `hsla(${m.hsla.h}, ${(m.hsla.s * 100).toFixed(2)}%, ${(m.hsla.l * 100).toFixed(2)}%, ${m.hsla.a.toFixed(2)})`; + function a(f) { + return `hsla(${f.hsla.h}, ${(f.hsla.s * 100).toFixed(2)}%, ${(f.hsla.l * 100).toFixed(2)}%, ${f.hsla.a.toFixed(2)})`; } n.formatHSLA = a; - function o(m) { - const g = m.toString(16); + function o(f) { + const g = f.toString(16); return g.length !== 2 ? "0" + g : g; } - function l(m) { - return `#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}`; + function l(f) { + return `#${o(f.rgba.r)}${o(f.rgba.g)}${o(f.rgba.b)}`; } n.formatHex = l; - function c(m, g = !1) { - return g && m.rgba.a === 1 ? t.Format.CSS.formatHex(m) : `#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}${o(Math.round(m.rgba.a * 255))}`; + function c(f, g = !1) { + return g && f.rgba.a === 1 ? t.Format.CSS.formatHex(f) : `#${o(f.rgba.r)}${o(f.rgba.g)}${o(f.rgba.b)}${o(Math.round(f.rgba.a * 255))}`; } n.formatHexA = c; - function h(m) { - return m.isOpaque() ? t.Format.CSS.formatHex(m) : t.Format.CSS.formatRGBA(m); + function h(f) { + return f.isOpaque() ? t.Format.CSS.formatHex(f) : t.Format.CSS.formatRGBA(f); } n.format = h; - function u(m) { - const g = m.length; - if (g === 0 || m.charCodeAt(0) !== 35) + function u(f) { + const g = f.length; + if (g === 0 || f.charCodeAt(0) !== 35) return null; if (g === 7) { - const b = 16 * f(m.charCodeAt(1)) + f(m.charCodeAt(2)), y = 16 * f(m.charCodeAt(3)) + f(m.charCodeAt(4)), w = 16 * f(m.charCodeAt(5)) + f(m.charCodeAt(6)); - return new t(new he(b, y, w, 1)); + const b = 16 * m(f.charCodeAt(1)) + m(f.charCodeAt(2)), y = 16 * m(f.charCodeAt(3)) + m(f.charCodeAt(4)), w = 16 * m(f.charCodeAt(5)) + m(f.charCodeAt(6)); + return new t(new ve(b, y, w, 1)); } if (g === 9) { - const b = 16 * f(m.charCodeAt(1)) + f(m.charCodeAt(2)), y = 16 * f(m.charCodeAt(3)) + f(m.charCodeAt(4)), w = 16 * f(m.charCodeAt(5)) + f(m.charCodeAt(6)), x = 16 * f(m.charCodeAt(7)) + f(m.charCodeAt(8)); - return new t(new he(b, y, w, x / 255)); + const b = 16 * m(f.charCodeAt(1)) + m(f.charCodeAt(2)), y = 16 * m(f.charCodeAt(3)) + m(f.charCodeAt(4)), w = 16 * m(f.charCodeAt(5)) + m(f.charCodeAt(6)), x = 16 * m(f.charCodeAt(7)) + m(f.charCodeAt(8)); + return new t(new ve(b, y, w, x / 255)); } if (g === 4) { - const b = f(m.charCodeAt(1)), y = f(m.charCodeAt(2)), w = f(m.charCodeAt(3)); - return new t(new he(16 * b + b, 16 * y + y, 16 * w + w)); + const b = m(f.charCodeAt(1)), y = m(f.charCodeAt(2)), w = m(f.charCodeAt(3)); + return new t(new ve(16 * b + b, 16 * y + y, 16 * w + w)); } if (g === 5) { - const b = f(m.charCodeAt(1)), y = f(m.charCodeAt(2)), w = f(m.charCodeAt(3)), x = f(m.charCodeAt(4)); - return new t(new he(16 * b + b, 16 * y + y, 16 * w + w, (16 * x + x) / 255)); + const b = m(f.charCodeAt(1)), y = m(f.charCodeAt(2)), w = m(f.charCodeAt(3)), x = m(f.charCodeAt(4)); + return new t(new ve(16 * b + b, 16 * y + y, 16 * w + w, (16 * x + x) / 255)); } return null; } n.parseHex = u; - function f(m) { - switch (m) { + function m(f) { + switch (f) { case 48: return 0; case 49: @@ -6456,8 +6492,8 @@ ge.transparent = new ge(new he(0, 0, 0, 0)); } })(e.CSS || (e.CSS = {})); })(t.Format || (t.Format = {})); -})(ge || (ge = {})); -function fl(t) { +})(me || (me = {})); +function ul(t) { const e = []; for (const n of t) { const r = Number(n); @@ -6465,7 +6501,7 @@ function fl(t) { } return e; } -function Ei(t, e, n, r) { +function Mi(t, e, n, r) { return { red: t / 255, blue: n / 255, @@ -6473,7 +6509,7 @@ function Ei(t, e, n, r) { alpha: r }; } -function Qt(t, e) { +function Zt(t, e) { const n = e.index, r = e[0].length; if (!n) return; @@ -6485,39 +6521,39 @@ function Qt(t, e) { endColumn: i.column + r }; } -function Kh(t, e) { +function Jh(t, e) { if (!t) return; - const n = ge.Format.CSS.parseHex(e); + const n = me.Format.CSS.parseHex(e); if (n) return { range: t, - color: Ei(n.rgba.r, n.rgba.g, n.rgba.b, n.rgba.a) + color: Mi(n.rgba.r, n.rgba.g, n.rgba.b, n.rgba.a) }; } function va(t, e, n) { if (!t || e.length !== 1) return; - const i = e[0].values(), s = fl(i); + const i = e[0].values(), s = ul(i); return { range: t, - color: Ei(s[0], s[1], s[2], n ? s[3] : 1) + color: Mi(s[0], s[1], s[2], n ? s[3] : 1) }; } function ya(t, e, n) { if (!t || e.length !== 1) return; - const i = e[0].values(), s = fl(i), a = new ge(new We(s[0], s[1] / 100, s[2] / 100, n ? s[3] : 1)); + const i = e[0].values(), s = ul(i), a = new me(new Oe(s[0], s[1] / 100, s[2] / 100, n ? s[3] : 1)); return { range: t, - color: Ei(a.rgba.r, a.rgba.g, a.rgba.b, a.rgba.a) + color: Mi(a.rgba.r, a.rgba.g, a.rgba.b, a.rgba.a) }; } -function Zt(t, e) { +function en(t, e) { return typeof t == "string" ? [...t.matchAll(e)] : t.findMatches(e); } -function Qh(t) { - const e = [], r = Zt(t, /\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm); +function Xh(t) { + const e = [], r = en(t, /\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm); if (r.length > 0) for (const i of r) { const s = i.filter((c) => c !== void 0), a = s[1], o = s[2]; @@ -6526,26 +6562,26 @@ function Qh(t) { let l; if (a === "rgb") { const c = /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm; - l = va(Qt(t, i), Zt(o, c), !1); + l = va(Zt(t, i), en(o, c), !1); } else if (a === "rgba") { const c = /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm; - l = va(Qt(t, i), Zt(o, c), !0); + l = va(Zt(t, i), en(o, c), !0); } else if (a === "hsl") { const c = /^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm; - l = ya(Qt(t, i), Zt(o, c), !1); + l = ya(Zt(t, i), en(o, c), !1); } else if (a === "hsla") { const c = /^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm; - l = ya(Qt(t, i), Zt(o, c), !0); + l = ya(Zt(t, i), en(o, c), !0); } else - a === "#" && (l = Kh(Qt(t, i), a + o)); + a === "#" && (l = Jh(Zt(t, i), a + o)); l && e.push(l); } return e; } -function Zh(t) { - return !t || typeof t.getValue != "function" || typeof t.positionAt != "function" ? [] : Qh(t); +function Yh(t) { + return !t || typeof t.getValue != "function" || typeof t.positionAt != "function" ? [] : Xh(t); } -var Xe = globalThis && globalThis.__awaiter || function(t, e, n, r) { +var ht = globalThis && globalThis.__awaiter || function(t, e, n, r) { function i(s) { return s instanceof n ? s : new n(function(a) { a(s); @@ -6572,7 +6608,7 @@ var Xe = globalThis && globalThis.__awaiter || function(t, e, n, r) { c((r = r.apply(t, e || [])).next()); }); }; -class ed extends ah { +class Kh extends th { get uri() { return this._uri; } @@ -6585,7 +6621,7 @@ class ed extends ah { findMatches(e) { const n = []; for (let r = 0; r < this._lines.length; r++) { - const i = this._lines[r], s = this.offsetAt(new Ge(r + 1, 1)), a = i.matchAll(e); + const i = this._lines[r], s = this.offsetAt(new Ke(r + 1, 1)), a = i.matchAll(e); for (const o of a) (o.index || o.index === 0) && (o.index = o.index + s), n.push(o); } @@ -6601,20 +6637,8 @@ class ed extends ah { return this._lines[e - 1]; } getWordAtPosition(e, n) { - const r = ki(e.column, ch(n), this._lines[e.lineNumber - 1], 0); - return r ? new Ee(e.lineNumber, r.startColumn, e.lineNumber, r.endColumn) : null; - } - getWordUntilPosition(e, n) { - const r = this.getWordAtPosition(e, n); - return r ? { - word: this._lines[e.lineNumber - 1].substring(r.startColumn - 1, e.column - 1), - startColumn: r.startColumn, - endColumn: e.column - } : { - word: "", - startColumn: e.column, - endColumn: e.column - }; + const r = Fi(e.column, ih(n), this._lines[e.lineNumber - 1], 0); + return r ? new De(e.lineNumber, r.startColumn, e.lineNumber, r.endColumn) : null; } words(e) { const n = this._lines, r = this._wordenize.bind(this); @@ -6679,7 +6703,7 @@ class ed extends ah { } : e; } _validatePosition(e) { - if (!Ge.isIPosition(e)) + if (!Ke.isIPosition(e)) throw new Error("bad position"); let { lineNumber: n, column: r } = e, i = !1; if (n < 1) @@ -6693,7 +6717,7 @@ class ed extends ah { return i ? { lineNumber: n, column: r } : e; } } -class gt { +class Rt { constructor(e, n) { this._host = e, this._models = /* @__PURE__ */ Object.create(null), this._foreignModuleFactory = n, this._foreignModule = null; } @@ -6708,7 +6732,7 @@ class gt { return Object.keys(this._models).forEach((n) => e.push(this._models[n])), e; } acceptNewModel(e) { - this._models[e.url] = new ed(Ci.parse(e.url), e.lines, e.EOL, e.versionId); + this._models[e.url] = new Kh(_i.parse(e.url), e.lines, e.EOL, e.versionId); } acceptModelChanged(e, n) { if (!this._models[e]) @@ -6719,36 +6743,46 @@ class gt { this._models[e] && delete this._models[e]; } computeUnicodeHighlights(e, n, r) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const i = this._getModel(e); - return i ? Dh.computeUnicodeHighlights(i, n, r) : { ranges: [], hasMore: !1, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 }; + return i ? _h.computeUnicodeHighlights(i, n, r) : { ranges: [], hasMore: !1, ambiguousCharacterCount: 0, invisibleCharacterCount: 0, nonBasicAsciiCharacterCount: 0 }; }); } // ---- BEGIN diff -------------------------------------------------------------------------- computeDiff(e, n, r, i) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const s = this._getModel(e), a = this._getModel(n); - return !s || !a ? null : gt.computeDiff(s, a, r, i); + return !s || !a ? null : Rt.computeDiff(s, a, r, i); }); } static computeDiff(e, n, r, i) { - const s = i === "advanced" ? xr.advanced : xr.legacy, a = e.getLinesContent(), o = n.getLinesContent(), l = s.computeDiff(a, o, r); - return { - identical: l.changes.length > 0 ? !1 : this._modelsAreIdentical(e, n), - quitEarly: l.hitTimeout, - changes: l.changes.map((h) => { - var u; - return [h.originalRange.startLineNumber, h.originalRange.endLineNumberExclusive, h.modifiedRange.startLineNumber, h.modifiedRange.endLineNumberExclusive, (u = h.innerChanges) === null || u === void 0 ? void 0 : u.map((f) => [ - f.originalRange.startLineNumber, - f.originalRange.startColumn, - f.originalRange.endLineNumber, - f.originalRange.endColumn, - f.modifiedRange.startLineNumber, - f.modifiedRange.startColumn, - f.modifiedRange.endLineNumber, - f.modifiedRange.endColumn + const s = i === "advanced" ? ba.getAdvanced() : ba.getLegacy(), a = e.getLinesContent(), o = n.getLinesContent(), l = s.computeDiff(a, o, r), c = l.changes.length > 0 ? !1 : this._modelsAreIdentical(e, n); + function h(u) { + return u.map((m) => { + var f; + return [m.originalRange.startLineNumber, m.originalRange.endLineNumberExclusive, m.modifiedRange.startLineNumber, m.modifiedRange.endLineNumberExclusive, (f = m.innerChanges) === null || f === void 0 ? void 0 : f.map((g) => [ + g.originalRange.startLineNumber, + g.originalRange.startColumn, + g.originalRange.endLineNumber, + g.originalRange.endColumn, + g.modifiedRange.startLineNumber, + g.modifiedRange.startColumn, + g.modifiedRange.endLineNumber, + g.modifiedRange.endColumn ])]; - }) + }); + } + return { + identical: c, + quitEarly: l.hitTimeout, + changes: h(l.changes), + moves: l.moves.map((u) => [ + u.lineRangeMapping.original.startLineNumber, + u.lineRangeMapping.original.endLineNumberExclusive, + u.lineRangeMapping.modified.startLineNumber, + u.lineRangeMapping.modified.endLineNumberExclusive, + h(u.changes) + ]) }; } static _modelsAreIdentical(e, n) { @@ -6762,23 +6796,8 @@ class gt { } return !0; } - computeDirtyDiff(e, n, r) { - return Xe(this, void 0, void 0, function* () { - const i = this._getModel(e), s = this._getModel(n); - if (!i || !s) - return null; - const a = i.getLinesContent(), o = s.getLinesContent(); - return new pl(a, o, { - shouldComputeCharChanges: !1, - shouldPostProcessCharChanges: !1, - shouldIgnoreTrimWhitespace: r, - shouldMakePrettyDiff: !0, - maxComputationTime: 1e3 - }).computeDiff().changes; - }); - } computeMoreMinimalEdits(e, n, r) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const i = this._getModel(e); if (!i) return n; @@ -6786,24 +6805,24 @@ class gt { let a; n = n.slice(0).sort((o, l) => { if (o.range && l.range) - return Ee.compareRangesUsingStarts(o.range, l.range); + return De.compareRangesUsingStarts(o.range, l.range); const c = o.range ? 0 : 1, h = l.range ? 0 : 1; return c - h; }); for (let { range: o, text: l, eol: c } of n) { - if (typeof c == "number" && (a = c), Ee.isEmpty(o) && !l) + if (typeof c == "number" && (a = c), De.isEmpty(o) && !l) continue; const h = i.getValueInRange(o); if (l = l.replace(/\r\n|\n|\r/g, i.eol), h === l) continue; - if (Math.max(l.length, h.length) > gt._diffLimit) { + if (Math.max(l.length, h.length) > Rt._diffLimit) { s.push({ range: o, text: l }); continue; } - const u = Vc(h, l, r), f = i.offsetAt(Ee.lift(o).getStartPosition()); - for (const m of u) { - const g = i.positionAt(f + m.originalStart), b = i.positionAt(f + m.originalStart + m.originalLength), y = { - text: l.substr(m.modifiedStart, m.modifiedLength), + const u = Lc(h, l, r), m = i.offsetAt(De.lift(o).getStartPosition()); + for (const f of u) { + const g = i.positionAt(m + f.originalStart), b = i.positionAt(m + f.originalStart + f.originalLength), y = { + text: l.substr(f.modifiedStart, f.modifiedLength), range: { startLineNumber: g.lineNumber, startColumn: g.column, endLineNumber: b.lineNumber, endColumn: b.column } }; i.getValueInRange(y.range) !== y.text && s.push(y); @@ -6812,77 +6831,29 @@ class gt { return typeof a == "number" && s.push({ eol: a, text: "", range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } }), s; }); } - computeHumanReadableDiff(e, n, r) { - return Xe(this, void 0, void 0, function* () { - const i = this._getModel(e); - if (!i) - return n; - const s = []; - let a; - n = n.slice(0).sort((c, h) => { - if (c.range && h.range) - return Ee.compareRangesUsingStarts(c.range, h.range); - const u = c.range ? 0 : 1, f = h.range ? 0 : 1; - return u - f; - }); - for (let { range: c, text: h, eol: u } of n) { - let w = function(k, F) { - return new Ge(k.lineNumber + F.lineNumber - 1, F.lineNumber === 1 ? k.column + F.column - 1 : F.column); - }, x = function(k, F) { - const N = []; - for (let j = F.startLineNumber; j <= F.endLineNumber; j++) { - const H = k[j - 1]; - j === F.startLineNumber && j === F.endLineNumber ? N.push(H.substring(F.startColumn - 1, F.endColumn - 1)) : j === F.startLineNumber ? N.push(H.substring(F.startColumn - 1)) : j === F.endLineNumber ? N.push(H.substring(0, F.endColumn - 1)) : N.push(H); - } - return N; - }; - var o = w, l = x; - if (typeof u == "number" && (a = u), Ee.isEmpty(c) && !h) - continue; - const f = i.getValueInRange(c); - if (h = h.replace(/\r\n|\n|\r/g, i.eol), f === h) - continue; - if (Math.max(h.length, f.length) > gt._diffLimit) { - s.push({ range: c, text: h }); - continue; - } - const m = f.split(/\r\n|\n|\r/), g = h.split(/\r\n|\n|\r/), b = xr.advanced.computeDiff(m, g, r), y = Ee.lift(c).getStartPosition(); - for (const k of b.changes) - if (k.innerChanges) - for (const F of k.innerChanges) - s.push({ - range: Ee.fromPositions(w(y, F.originalRange.getStartPosition()), w(y, F.originalRange.getEndPosition())), - text: x(g, F.modifiedRange).join(i.eol) - }); - else - throw new Dt("The experimental diff algorithm always produces inner changes"); - } - return typeof a == "number" && s.push({ eol: a, text: "", range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } }), s; - }); - } // ---- END minimal edits --------------------------------------------------------------- computeLinks(e) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const n = this._getModel(e); - return n ? mh(n) : null; + return n ? hh(n) : null; }); } // --- BEGIN default document colors ----------------------------------------------------------- computeDefaultDocumentColors(e) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const n = this._getModel(e); - return n ? Zh(n) : null; + return n ? Yh(n) : null; }); } textualSuggest(e, n, r, i) { - return Xe(this, void 0, void 0, function* () { - const s = new ur(!0), a = new RegExp(r, i), o = /* @__PURE__ */ new Set(); + return ht(this, void 0, void 0, function* () { + const s = new ur(), a = new RegExp(r, i), o = /* @__PURE__ */ new Set(); e: for (const l of e) { const c = this._getModel(l); if (c) { for (const h of c.words(a)) - if (!(h === n || !isNaN(Number(h))) && (o.add(h), o.size > gt._suggestionsLimit)) + if (!(h === n || !isNaN(Number(h))) && (o.add(h), o.size > Rt._suggestionsLimit)) break e; } } @@ -6892,7 +6863,7 @@ class gt { // ---- END suggest -------------------------------------------------------------------------- //#region -- word ranges -- computeWordRanges(e, n, r, i) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const s = this._getModel(e); if (!s) return /* @__PURE__ */ Object.create(null); @@ -6916,7 +6887,7 @@ class gt { } //#endregion navigateValueSet(e, n, r, i, s) { - return Xe(this, void 0, void 0, function* () { + return ht(this, void 0, void 0, function* () { const a = this._getModel(e); if (!a) return null; @@ -6931,13 +6902,13 @@ class gt { if (!c) return null; const h = a.getValueInRange(c); - return $r.INSTANCE.navigateValueSet(n, l, c, h, r); + return Gr.INSTANCE.navigateValueSet(n, l, c, h, r); }); } // ---- BEGIN foreign module support -------------------------------------------------------------------------- loadForeignModule(e, n, r) { const a = { - host: wc(r, (o, l) => this._host.fhr(o, l)), + host: oc(r, (o, l) => this._host.fhr(o, l)), getMirrorModels: () => this._getModels() }; return this._foreignModuleFactory ? (this._foreignModule = this._foreignModuleFactory(a, n), Promise.resolve(Ur(this._foreignModule))) : Promise.reject(new Error("Unexpected usage")); @@ -6953,27 +6924,27 @@ class gt { } } } -gt._diffLimit = 1e5; -gt._suggestionsLimit = 1e4; -typeof importScripts == "function" && (globalThis.monaco = Ch()); -let ti = !1; -function ml(t) { - if (ti) +Rt._diffLimit = 1e5; +Rt._suggestionsLimit = 1e4; +typeof importScripts == "function" && (globalThis.monaco = yh()); +let ri = !1; +function pl(t) { + if (ri) return; - ti = !0; - const e = new Oc((n) => { + ri = !0; + const e = new zc((n) => { globalThis.postMessage(n); - }, (n) => new gt(n, t)); + }, (n) => new Rt(n, t)); globalThis.onmessage = (n) => { e.onmessage(n.data); }; } globalThis.onmessage = (t) => { - ti || ml(null); + ri || pl(null); }; /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) + * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/ @@ -7017,38 +6988,38 @@ var wa = function() { this.position++; return this.position - n; }, t; -}(), An = "a".charCodeAt(0), xa = "f".charCodeAt(0), Sa = "z".charCodeAt(0), Mn = "A".charCodeAt(0), Ca = "F".charCodeAt(0), ka = "Z".charCodeAt(0), en = "0".charCodeAt(0), tn = "9".charCodeAt(0), td = "~".charCodeAt(0), nd = "^".charCodeAt(0), nn = "=".charCodeAt(0), rd = "|".charCodeAt(0), xt = "-".charCodeAt(0), _a = "_".charCodeAt(0), id = "%".charCodeAt(0), Sr = "*".charCodeAt(0), gl = "(".charCodeAt(0), bl = ")".charCodeAt(0), sd = "<".charCodeAt(0), ad = ">".charCodeAt(0), od = "@".charCodeAt(0), ld = "#".charCodeAt(0), cd = "$".charCodeAt(0), Cr = "\\".charCodeAt(0), Fa = "/".charCodeAt(0), Pt = ` -`.charCodeAt(0), It = "\r".charCodeAt(0), rn = "\f".charCodeAt(0), Ra = '"'.charCodeAt(0), Ea = "'".charCodeAt(0), kr = " ".charCodeAt(0), _r = " ".charCodeAt(0), hd = ";".charCodeAt(0), dd = ":".charCodeAt(0), ud = "{".charCodeAt(0), pd = "}".charCodeAt(0), fd = "[".charCodeAt(0), md = "]".charCodeAt(0), gd = ",".charCodeAt(0), Da = ".".charCodeAt(0), Aa = "!".charCodeAt(0), bd = "?".charCodeAt(0), vd = "+".charCodeAt(0), et = {}; -et[hd] = p.SemiColon; -et[dd] = p.Colon; -et[ud] = p.CurlyL; -et[pd] = p.CurlyR; -et[md] = p.BracketR; -et[fd] = p.BracketL; -et[gl] = p.ParenthesisL; -et[bl] = p.ParenthesisR; -et[gd] = p.Comma; -var be = {}; -be.em = p.EMS; -be.ex = p.EXS; -be.px = p.Length; -be.cm = p.Length; -be.mm = p.Length; -be.in = p.Length; -be.pt = p.Length; -be.pc = p.Length; -be.deg = p.Angle; -be.rad = p.Angle; -be.grad = p.Angle; -be.ms = p.Time; -be.s = p.Time; -be.hz = p.Freq; -be.khz = p.Freq; -be["%"] = p.Percentage; -be.fr = p.Percentage; -be.dpi = p.Resolution; -be.dpcm = p.Resolution; -var _n = function() { +}(), Pn = "a".charCodeAt(0), xa = "f".charCodeAt(0), Sa = "z".charCodeAt(0), Ln = "A".charCodeAt(0), Ca = "F".charCodeAt(0), ka = "Z".charCodeAt(0), tn = "0".charCodeAt(0), nn = "9".charCodeAt(0), Qh = "~".charCodeAt(0), Zh = "^".charCodeAt(0), rn = "=".charCodeAt(0), ed = "|".charCodeAt(0), xt = "-".charCodeAt(0), _a = "_".charCodeAt(0), td = "%".charCodeAt(0), kr = "*".charCodeAt(0), fl = "(".charCodeAt(0), ml = ")".charCodeAt(0), nd = "<".charCodeAt(0), rd = ">".charCodeAt(0), id = "@".charCodeAt(0), sd = "#".charCodeAt(0), ad = "$".charCodeAt(0), _r = "\\".charCodeAt(0), Fa = "/".charCodeAt(0), zt = ` +`.charCodeAt(0), Pt = "\r".charCodeAt(0), sn = "\f".charCodeAt(0), Ra = '"'.charCodeAt(0), Ea = "'".charCodeAt(0), Fr = " ".charCodeAt(0), Rr = " ".charCodeAt(0), od = ";".charCodeAt(0), ld = ":".charCodeAt(0), cd = "{".charCodeAt(0), hd = "}".charCodeAt(0), dd = "[".charCodeAt(0), ud = "]".charCodeAt(0), pd = ",".charCodeAt(0), Da = ".".charCodeAt(0), Aa = "!".charCodeAt(0), fd = "?".charCodeAt(0), md = "+".charCodeAt(0), Ze = {}; +Ze[od] = p.SemiColon; +Ze[ld] = p.Colon; +Ze[cd] = p.CurlyL; +Ze[hd] = p.CurlyR; +Ze[ud] = p.BracketR; +Ze[dd] = p.BracketL; +Ze[fl] = p.ParenthesisL; +Ze[ml] = p.ParenthesisR; +Ze[pd] = p.Comma; +var ge = {}; +ge.em = p.EMS; +ge.ex = p.EXS; +ge.px = p.Length; +ge.cm = p.Length; +ge.mm = p.Length; +ge.in = p.Length; +ge.pt = p.Length; +ge.pc = p.Length; +ge.deg = p.Angle; +ge.rad = p.Angle; +ge.grad = p.Angle; +ge.ms = p.Time; +ge.s = p.Time; +ge.hz = p.Freq; +ge.khz = p.Freq; +ge["%"] = p.Percentage; +ge.fr = p.Percentage; +ge.dpi = p.Resolution; +ge.dpcm = p.Resolution; +var Dn = function() { function t() { this.stream = new wa(""), this.ignoreComment = !0, this.ignoreWhitespace = !0, this.inURL = !1; } @@ -7082,36 +7053,36 @@ var _n = function() { return this.finishToken(e, p.UnicodeRange); this.stream.goBackTo(e); }, t.prototype.scanNext = function(e) { - if (this.stream.advanceIfChars([sd, Aa, xt, xt])) + if (this.stream.advanceIfChars([nd, Aa, xt, xt])) return this.finishToken(e, p.CDO); - if (this.stream.advanceIfChars([xt, xt, ad])) + if (this.stream.advanceIfChars([xt, xt, rd])) return this.finishToken(e, p.CDC); var n = []; if (this.ident(n)) return this.finishToken(e, p.Ident, n.join("")); - if (this.stream.advanceIfChar(od)) + if (this.stream.advanceIfChar(id)) if (n = ["@"], this._name(n)) { var r = n.join(""); return r === "@charset" ? this.finishToken(e, p.Charset, r) : this.finishToken(e, p.AtKeyword, r); } else return this.finishToken(e, p.Delim); - if (this.stream.advanceIfChar(ld)) + if (this.stream.advanceIfChar(sd)) return n = ["#"], this._name(n) ? this.finishToken(e, p.Hash, n.join("")) : this.finishToken(e, p.Delim); if (this.stream.advanceIfChar(Aa)) return this.finishToken(e, p.Exclamation); if (this._number()) { var i = this.stream.pos(); - if (n = [this.stream.substring(e, i)], this.stream.advanceIfChar(id)) + if (n = [this.stream.substring(e, i)], this.stream.advanceIfChar(td)) return this.finishToken(e, p.Percentage); if (this.ident(n)) { - var s = this.stream.substring(i).toLowerCase(), a = be[s]; + var s = this.stream.substring(i).toLowerCase(), a = ge[s]; return typeof a < "u" ? this.finishToken(e, a, n.join("")) : this.finishToken(e, p.Dimension, n.join("")); } return this.finishToken(e, p.Num); } n = []; var o = this._string(n); - return o !== null ? this.finishToken(e, o, n.join("")) : (o = et[this.stream.peekChar()], typeof o < "u" ? (this.stream.advance(1), this.finishToken(e, o)) : this.stream.peekChar(0) === td && this.stream.peekChar(1) === nn ? (this.stream.advance(2), this.finishToken(e, p.Includes)) : this.stream.peekChar(0) === rd && this.stream.peekChar(1) === nn ? (this.stream.advance(2), this.finishToken(e, p.Dashmatch)) : this.stream.peekChar(0) === Sr && this.stream.peekChar(1) === nn ? (this.stream.advance(2), this.finishToken(e, p.SubstringOperator)) : this.stream.peekChar(0) === nd && this.stream.peekChar(1) === nn ? (this.stream.advance(2), this.finishToken(e, p.PrefixOperator)) : this.stream.peekChar(0) === cd && this.stream.peekChar(1) === nn ? (this.stream.advance(2), this.finishToken(e, p.SuffixOperator)) : (this.stream.nextChar(), this.finishToken(e, p.Delim))); + return o !== null ? this.finishToken(e, o, n.join("")) : (o = Ze[this.stream.peekChar()], typeof o < "u" ? (this.stream.advance(1), this.finishToken(e, o)) : this.stream.peekChar(0) === Qh && this.stream.peekChar(1) === rn ? (this.stream.advance(2), this.finishToken(e, p.Includes)) : this.stream.peekChar(0) === ed && this.stream.peekChar(1) === rn ? (this.stream.advance(2), this.finishToken(e, p.Dashmatch)) : this.stream.peekChar(0) === kr && this.stream.peekChar(1) === rn ? (this.stream.advance(2), this.finishToken(e, p.SubstringOperator)) : this.stream.peekChar(0) === Zh && this.stream.peekChar(1) === rn ? (this.stream.advance(2), this.finishToken(e, p.PrefixOperator)) : this.stream.peekChar(0) === ad && this.stream.peekChar(1) === rn ? (this.stream.advance(2), this.finishToken(e, p.SuffixOperator)) : (this.stream.nextChar(), this.finishToken(e, p.Delim))); }, t.prototype.trivia = function() { for (; ; ) { var e = this.stream.pos(); @@ -7125,33 +7096,33 @@ var _n = function() { return null; } }, t.prototype.comment = function() { - if (this.stream.advanceIfChars([Fa, Sr])) { + if (this.stream.advanceIfChars([Fa, kr])) { var e = !1, n = !1; return this.stream.advanceWhileChar(function(r) { - return n && r === Fa ? (e = !0, !1) : (n = r === Sr, !0); + return n && r === Fa ? (e = !0, !1) : (n = r === kr, !0); }), e && this.stream.advance(1), !0; } return !1; }, t.prototype._number = function() { var e = 0, n; - return this.stream.peekChar() === Da && (e = 1), n = this.stream.peekChar(e), n >= en && n <= tn ? (this.stream.advance(e + 1), this.stream.advanceWhileChar(function(r) { - return r >= en && r <= tn || e === 0 && r === Da; + return this.stream.peekChar() === Da && (e = 1), n = this.stream.peekChar(e), n >= tn && n <= nn ? (this.stream.advance(e + 1), this.stream.advanceWhileChar(function(r) { + return r >= tn && r <= nn || e === 0 && r === Da; }), !0) : !1; }, t.prototype._newline = function(e) { var n = this.stream.peekChar(); switch (n) { - case It: - case rn: case Pt: - return this.stream.advance(1), e.push(String.fromCharCode(n)), n === It && this.stream.advanceIfChar(Pt) && e.push(` + case sn: + case zt: + return this.stream.advance(1), e.push(String.fromCharCode(n)), n === Pt && this.stream.advanceIfChar(zt) && e.push(` `), !0; } return !1; }, t.prototype._escape = function(e, n) { var r = this.stream.peekChar(); - if (r === Cr) { + if (r === _r) { this.stream.advance(1), r = this.stream.peekChar(); - for (var i = 0; i < 6 && (r >= en && r <= tn || r >= An && r <= xa || r >= Mn && r <= Ca); ) + for (var i = 0; i < 6 && (r >= tn && r <= nn || r >= Pn && r <= xa || r >= Ln && r <= Ca); ) this.stream.advance(1), r = this.stream.peekChar(), i++; if (i > 0) { try { @@ -7159,9 +7130,9 @@ var _n = function() { s && e.push(String.fromCharCode(s)); } catch { } - return r === kr || r === _r ? this.stream.advance(1) : this._newline([]), !0; + return r === Fr || r === Rr ? this.stream.advance(1) : this._newline([]), !0; } - if (r !== It && r !== rn && r !== Pt) + if (r !== Pt && r !== sn && r !== zt) return this.stream.advance(1), e.push(String.fromCharCode(r)), !0; if (n) return this._newline(e); @@ -7169,7 +7140,7 @@ var _n = function() { return !1; }, t.prototype._stringChar = function(e, n) { var r = this.stream.peekChar(); - return r !== 0 && r !== e && r !== Cr && r !== It && r !== rn && r !== Pt ? (this.stream.advance(1), n.push(String.fromCharCode(r)), !0) : !1; + return r !== 0 && r !== e && r !== _r && r !== Pt && r !== sn && r !== zt ? (this.stream.advance(1), n.push(String.fromCharCode(r)), !0) : !1; }, t.prototype._string = function(e) { if (this.stream.peekChar() === Ea || this.stream.peekChar() === Ra) { var n = this.stream.nextChar(); @@ -7180,14 +7151,14 @@ var _n = function() { return null; }, t.prototype._unquotedChar = function(e) { var n = this.stream.peekChar(); - return n !== 0 && n !== Cr && n !== Ea && n !== Ra && n !== gl && n !== bl && n !== kr && n !== _r && n !== Pt && n !== rn && n !== It ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; + return n !== 0 && n !== _r && n !== Ea && n !== Ra && n !== fl && n !== ml && n !== Fr && n !== Rr && n !== zt && n !== sn && n !== Pt ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; }, t.prototype._unquotedString = function(e) { for (var n = !1; this._unquotedChar(e) || this._escape(e); ) n = !0; return n; }, t.prototype._whitespace = function() { var e = this.stream.advanceWhileChar(function(n) { - return n === kr || n === _r || n === Pt || n === rn || n === It; + return n === Fr || n === Rr || n === zt || n === sn || n === Pt; }); return e > 0; }, t.prototype._name = function(e) { @@ -7210,19 +7181,19 @@ var _n = function() { return this.stream.goBackTo(n), !1; }, t.prototype._identFirstChar = function(e) { var n = this.stream.peekChar(); - return n === _a || n >= An && n <= Sa || n >= Mn && n <= ka || n >= 128 && n <= 65535 ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; + return n === _a || n >= Pn && n <= Sa || n >= Ln && n <= ka || n >= 128 && n <= 65535 ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; }, t.prototype._minus = function(e) { var n = this.stream.peekChar(); return n === xt ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; }, t.prototype._identChar = function(e) { var n = this.stream.peekChar(); - return n === _a || n === xt || n >= An && n <= Sa || n >= Mn && n <= ka || n >= en && n <= tn || n >= 128 && n <= 65535 ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; + return n === _a || n === xt || n >= Pn && n <= Sa || n >= Ln && n <= ka || n >= tn && n <= nn || n >= 128 && n <= 65535 ? (this.stream.advance(1), e.push(String.fromCharCode(n)), !0) : !1; }, t.prototype._unicodeRange = function() { - if (this.stream.advanceIfChar(vd)) { + if (this.stream.advanceIfChar(md)) { var e = function(i) { - return i >= en && i <= tn || i >= An && i <= xa || i >= Mn && i <= Ca; + return i >= tn && i <= nn || i >= Pn && i <= xa || i >= Ln && i <= Ca; }, n = this.stream.advanceWhileChar(e) + this.stream.advanceWhileChar(function(i) { - return i === bd; + return i === fd; }); if (n >= 1 && n <= 6) if (this.stream.advanceIfChar(xt)) { @@ -7243,11 +7214,11 @@ function fe(t, e) { return !1; return !0; } -function vl(t, e) { +function gl(t, e) { var n = t.length - e.length; return n > 0 ? t.lastIndexOf(e) === n : n === 0 ? t === e : !1; } -function yd(t, e, n) { +function gd(t, e, n) { n === void 0 && (n = 4); var r = Math.abs(t.length - e.length); if (r > n) @@ -7265,7 +7236,7 @@ function yd(t, e, n) { function Ma(t, e) { return e === void 0 && (e = !0), t ? t.length < 140 ? t : t.slice(0, 140) + (e ? "…" : "") : ""; } -function wd(t, e) { +function bd(t, e) { var n = e.exec(t); return n && n[0].length ? t.substr(0, t.length - n[0].length) : t; } @@ -7274,7 +7245,7 @@ function Na(t, e) { (e & 1) === 1 && (n += t), t += t, e = e >>> 1; return n; } -var T = function() { +var O = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -7300,22 +7271,22 @@ var Y; (function(t) { t[t.Mixin = 0] = "Mixin", t[t.Rule = 1] = "Rule", t[t.Variable = 2] = "Variable", t[t.Function = 3] = "Function", t[t.Keyframe = 4] = "Keyframe", t[t.Unknown = 5] = "Unknown", t[t.Module = 6] = "Module", t[t.Forward = 7] = "Forward", t[t.ForwardVisibility = 8] = "ForwardVisibility"; })(Y || (Y = {})); -function ni(t, e) { +function ii(t, e) { var n = null; return !t || e < t.offset || e > t.end ? null : (t.accept(function(r) { return r.offset === -1 && r.length === -1 ? !0 : r.offset <= e && r.end >= e ? (n ? r.length <= n.length && (n = r) : n = r, !0) : !1; }), n); } -function Di(t, e) { - for (var n = ni(t, e), r = []; n; ) +function Ni(t, e) { + for (var n = ii(t, e), r = []; n; ) r.unshift(n), n = n.parent; return r; } -function xd(t) { +function vd(t) { var e = t.findParent(v.Declaration), n = e && e.getValue(); return n && n.encloses(t) ? e : null; } -var W = function() { +var U = function() { function t(e, n, r) { e === void 0 && (e = -1), n === void 0 && (n = -1), this.parent = null, this.offset = e, this.length = n, r && (this.nodeType = r); } @@ -7410,7 +7381,7 @@ var W = function() { }, t.prototype.encloses = function(e) { return this.offset <= e.offset && this.offset + this.length >= e.offset + e.length; }, t.prototype.getParent = function() { - for (var e = this.parent; e instanceof Ce; ) + for (var e = this.parent; e instanceof Se; ) e = e.parent; return e; }, t.prototype.findParent = function(e) { @@ -7430,16 +7401,16 @@ var W = function() { }, t.prototype.getData = function(e) { return !this.options || !this.options.hasOwnProperty(e) ? null : this.options[e]; }, t; -}(), Ce = function(t) { - T(e, t); +}(), Se = function(t) { + O(e, t); function e(n, r) { r === void 0 && (r = -1); var i = t.call(this, -1, -1) || this; return i.attachTo(n, r), i.offset = -1, i.length = -1, i; } return e; -}(W), Sd = function(t) { - T(e, t); +}(U), yd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7458,8 +7429,8 @@ var W = function() { }, e.prototype.getRangeEnd = function() { return this.rangeEnd; }, e; -}(W), Oe = function(t) { - T(e, t); +}(U), Ue = function(t) { + O(e, t); function e(n, r) { var i = t.call(this, n, r) || this; return i.isCustomProperty = !1, i; @@ -7473,8 +7444,8 @@ var W = function() { }), e.prototype.containsInterpolation = function() { return this.hasChildren(); }, e; -}(W), Cd = function(t) { - T(e, t); +}(U), wd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7485,8 +7456,8 @@ var W = function() { enumerable: !1, configurable: !0 }), e; -}(W), Ai = function(t) { - T(e, t); +}(U), zi = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7497,8 +7468,8 @@ var W = function() { enumerable: !1, configurable: !0 }), e; -}(W), ae = function(t) { - T(e, t); +}(U), ce = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7507,8 +7478,8 @@ var W = function() { }, e.prototype.setDeclarations = function(n) { return this.setNode("declarations", n); }, e; -}(W), Bt = function(t) { - T(e, t); +}(U), Bt = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7519,12 +7490,12 @@ var W = function() { enumerable: !1, configurable: !0 }), e.prototype.getSelectors = function() { - return this.selectors || (this.selectors = new Ce(this)), this.selectors; + return this.selectors || (this.selectors = new Se(this)), this.selectors; }, e.prototype.isNested = function() { return !!this.parent && this.parent.findParent(v.Declarations) !== null; }, e; -}(ae), Fn = function(t) { - T(e, t); +}(ce), An = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7535,8 +7506,8 @@ var W = function() { enumerable: !1, configurable: !0 }), e; -}(W), jt = function(t) { - T(e, t); +}(U), jt = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7547,9 +7518,9 @@ var W = function() { enumerable: !1, configurable: !0 }), e; -}(W); +}(U); (function(t) { - T(e, t); + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7566,15 +7537,15 @@ var W = function() { }, e.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, e; -})(W); -var Mi = function(t) { - T(e, t); +})(U); +var Pi = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } return e; -}(W), kd = function(t) { - T(e, t); +}(U), xd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7585,8 +7556,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), Ze = function(t) { - T(e, t); +}(ce), Qe = function(t) { + O(e, t); function e(n, r) { var i = t.call(this, n, r) || this; return i.property = null, i; @@ -7603,7 +7574,7 @@ var Mi = function(t) { return this.property; }, e.prototype.getFullPropertyName = function() { var n = this.property ? this.property.getName() : "unknown"; - if (this.parent instanceof Ai && this.parent.getParent() instanceof wl) { + if (this.parent instanceof zi && this.parent.getParent() instanceof vl) { var r = this.parent.getParent().getParent(); if (r instanceof e) return r.getFullPropertyName() + n; @@ -7626,8 +7597,8 @@ var Mi = function(t) { }, e.prototype.getNestedProperties = function() { return this.nestedProperties; }, e; -}(Mi), _d = function(t) { - T(e, t); +}(Pi), Sd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7642,8 +7613,8 @@ var Mi = function(t) { }, e.prototype.getPropertySet = function() { return this.propertySet; }, e; -}(Ze), Ni = function(t) { - T(e, t); +}(Qe), Li = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7658,12 +7629,12 @@ var Mi = function(t) { }, e.prototype.getIdentifier = function() { return this.identifier; }, e.prototype.getName = function() { - return wd(this.getText(), /[_\+]+$/); + return bd(this.getText(), /[_\+]+$/); }, e.prototype.isCustomProperty = function() { return !!this.identifier && this.identifier.isCustomProperty; }, e; -}(W), Fd = function(t) { - T(e, t); +}(U), Cd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7674,10 +7645,10 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getArguments = function() { - return this.arguments || (this.arguments = new Ce(this)), this.arguments; + return this.arguments || (this.arguments = new Se(this)), this.arguments; }, e; -}(W), Rn = function(t) { - T(e, t); +}(U), Mn = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7694,8 +7665,8 @@ var Mi = function(t) { }, e.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, e; -}(Fd), pr = function(t) { - T(e, t); +}(Cd), pr = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7716,8 +7687,8 @@ var Mi = function(t) { }, e.prototype.getDefaultValue = function() { return this.defaultValue; }, e; -}(W), Gt = function(t) { - T(e, t); +}(U), Gt = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7738,8 +7709,8 @@ var Mi = function(t) { }, e.prototype.getValue = function() { return this.value; }, e; -}(W), Rd = function(t) { - T(e, t); +}(U), kd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7754,8 +7725,8 @@ var Mi = function(t) { }, e.prototype.setElseClause = function(n) { return this.setNode("elseClause", n); }, e; -}(ae), Ed = function(t) { - T(e, t); +}(ce), _d = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7768,8 +7739,8 @@ var Mi = function(t) { }), e.prototype.setVariable = function(n) { return this.setNode("variable", n, 0); }, e; -}(ae), Dd = function(t) { - T(e, t); +}(ce), Fd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7780,10 +7751,10 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getVariables = function() { - return this.variables || (this.variables = new Ce(this)), this.variables; + return this.variables || (this.variables = new Se(this)), this.variables; }, e; -}(ae), Ad = function(t) { - T(e, t); +}(ce), Rd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7794,8 +7765,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), Md = function(t) { - T(e, t); +}(ce), Ed = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7806,8 +7777,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), Qn = function(t) { - T(e, t); +}(ce), Zn = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7824,10 +7795,10 @@ var Mi = function(t) { }, e.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, e.prototype.getParameters = function() { - return this.parameters || (this.parameters = new Ce(this)), this.parameters; + return this.parameters || (this.parameters = new Se(this)), this.parameters; }, e; -}(ae), Nd = function(t) { - T(e, t); +}(ce), Dd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7838,8 +7809,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), yl = function(t) { - T(e, t); +}(ce), bl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7850,8 +7821,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), wl = function(t) { - T(e, t); +}(ce), vl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7862,8 +7833,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), xl = function(t) { - T(e, t); +}(ce), yl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7884,8 +7855,8 @@ var Mi = function(t) { }, e.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, e; -}(ae), za = function(t) { - T(e, t); +}(ce), za = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7896,8 +7867,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), zi = function(t) { - T(e, t); +}(ce), Ii = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7910,8 +7881,8 @@ var Mi = function(t) { }), e.prototype.setMedialist = function(n) { return n ? (n.attachTo(this), !0) : !1; }, e; -}(W), zd = function(t) { - T(e, t); +}(U), Ad = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } @@ -7922,14 +7893,14 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getParameters = function() { - return this.parameters || (this.parameters = new Ce(this)), this.parameters; + return this.parameters || (this.parameters = new Se(this)), this.parameters; }, e.prototype.setIdentifier = function(n) { return this.setNode("identifier", n, 0); }, e.prototype.getIdentifier = function() { return this.identifier; }, e; -}(W), Pd = function(t) { - T(e, t); +}(U), Md = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } @@ -7950,8 +7921,8 @@ var Mi = function(t) { }, e.prototype.getValue = function() { return this.value; }, e; -}(W), Id = function(t) { - T(e, t); +}(U), Nd = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } @@ -7966,12 +7937,12 @@ var Mi = function(t) { }, e.prototype.getIdentifier = function() { return this.identifier; }, e.prototype.getMembers = function() { - return this.members || (this.members = new Ce(this)), this.members; + return this.members || (this.members = new Se(this)), this.members; }, e.prototype.getParameters = function() { - return this.parameters || (this.parameters = new Ce(this)), this.parameters; + return this.parameters || (this.parameters = new Se(this)), this.parameters; }, e; -}(W), Ld = function(t) { - T(e, t); +}(U), zd = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } @@ -7986,8 +7957,8 @@ var Mi = function(t) { }, e.prototype.getIdentifier = function() { return this.identifier; }, e; -}(W), Td = function(t) { - T(e, t); +}(U), Pd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -7998,8 +7969,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Sl = function(t) { - T(e, t); +}(U), wl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8010,8 +7981,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), ri = function(t) { - T(e, t); +}(ce), si = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8022,8 +7993,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), Wd = function(t) { - T(e, t); +}(ce), Ld = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8034,16 +8005,16 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), Cl = function(t) { - T(e, t); +}(ce), xl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } return e.prototype.getMediums = function() { - return this.mediums || (this.mediums = new Ce(this)), this.mediums; + return this.mediums || (this.mediums = new Se(this)), this.mediums; }, e; -}(W), kl = function(t) { - T(e, t); +}(U), Sl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8054,8 +8025,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Od = function(t) { - T(e, t); +}(U), Id = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8066,8 +8037,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Ud = function(t) { - T(e, t); +}(U), Td = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8078,8 +8049,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), un = function(t) { - T(e, t); +}(U), pn = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8090,8 +8061,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Vd = function(t) { - T(e, t); +}(U), Wd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8102,8 +8073,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), Bd = function(t) { - T(e, t); +}(ce), Od = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8114,8 +8085,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(ae), _l = function(t) { - T(e, t); +}(ce), Cl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8126,8 +8097,8 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Pi = function(t) { - T(e, t); +}(U), Ti = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8150,8 +8121,8 @@ var Mi = function(t) { }, e.prototype.getOperator = function() { return this.operator; }, e; -}(W), jd = function(t) { - T(e, t); +}(U), Ud = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8170,8 +8141,8 @@ var Mi = function(t) { }, e.prototype.getExpression = function() { return this.expression; }, e; -}(W), qd = function(t) { - T(e, t); +}(U), Vd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8198,9 +8169,9 @@ var Mi = function(t) { }, e.prototype.getValue = function() { return this.value; }, e; -}(W); +}(U); (function(t) { - T(e, t); + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8211,9 +8182,9 @@ var Mi = function(t) { enumerable: !1, configurable: !0 }), e; -})(W); -var Ii = function(t) { - T(e, t); +})(U); +var Wi = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8224,8 +8195,8 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), $d = function(t) { - T(e, t); +}(U), Bd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8236,8 +8207,8 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Hd = ".".charCodeAt(0), Gd = "0".charCodeAt(0), Jd = "9".charCodeAt(0), Li = function(t) { - T(e, t); +}(U), jd = ".".charCodeAt(0), qd = "0".charCodeAt(0), $d = "9".charCodeAt(0), Oi = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8248,15 +8219,15 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getValue = function() { - for (var n = this.getText(), r = 0, i, s = 0, a = n.length; s < a && (i = n.charCodeAt(s), Gd <= i && i <= Jd || i === Hd); s++) + for (var n = this.getText(), r = 0, i, s = 0, a = n.length; s < a && (i = n.charCodeAt(s), qd <= i && i <= $d || i === jd); s++) r += 1; return { value: n.substring(0, r), unit: r < n.length ? n.substring(r) : void 0 }; }, e; -}(W), fr = function(t) { - T(e, t); +}(U), fr = function(t) { + O(e, t); function e(n, r) { var i = t.call(this, n, r) || this; return i.variable = null, i.value = null, i.needsSemicolon = !0, i; @@ -8278,8 +8249,8 @@ var Ii = function(t) { }, e.prototype.getValue = function() { return this.value; }, e; -}(Mi), ii = function(t) { - T(e, t); +}(Pi), ai = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8290,8 +8261,8 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e; -}(W), Ti = function(t) { - T(e, t); +}(U), Ui = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8304,8 +8275,8 @@ var Ii = function(t) { }), e.prototype.getName = function() { return this.getText(); }, e; -}(W), mn = function(t) { - T(e, t); +}(U), yn = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8316,10 +8287,10 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getSelectors = function() { - return this.selectors || (this.selectors = new Ce(this)), this.selectors; + return this.selectors || (this.selectors = new Se(this)), this.selectors; }, e; -}(W), Xd = function(t) { - T(e, t); +}(U), Hd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8330,10 +8301,10 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getArguments = function() { - return this.arguments || (this.arguments = new Ce(this)), this.arguments; + return this.arguments || (this.arguments = new Se(this)), this.arguments; }, e; -}(W), Yd = function(t) { - T(e, t); +}(U), Gd = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8344,10 +8315,10 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getParameters = function() { - return this.parameters || (this.parameters = new Ce(this)), this.parameters; + return this.parameters || (this.parameters = new Se(this)), this.parameters; }, e; -}(ae), Zn = function(t) { - T(e, t); +}(ce), er = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8358,7 +8329,7 @@ var Ii = function(t) { enumerable: !1, configurable: !0 }), e.prototype.getNamespaces = function() { - return this.namespaces || (this.namespaces = new Ce(this)), this.namespaces; + return this.namespaces || (this.namespaces = new Se(this)), this.namespaces; }, e.prototype.setIdentifier = function(n) { return this.setNode("identifier", n, 0); }, e.prototype.getIdentifier = function() { @@ -8366,14 +8337,14 @@ var Ii = function(t) { }, e.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, e.prototype.getArguments = function() { - return this.arguments || (this.arguments = new Ce(this)), this.arguments; + return this.arguments || (this.arguments = new Se(this)), this.arguments; }, e.prototype.setContent = function(n) { return this.setNode("content", n); }, e.prototype.getContent = function() { return this.content; }, e; -}(W), gn = function(t) { - T(e, t); +}(U), wn = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8390,12 +8361,12 @@ var Ii = function(t) { }, e.prototype.getName = function() { return this.identifier ? this.identifier.getText() : ""; }, e.prototype.getParameters = function() { - return this.parameters || (this.parameters = new Ce(this)), this.parameters; + return this.parameters || (this.parameters = new Se(this)), this.parameters; }, e.prototype.setGuard = function(n) { return n && (n.attachTo(this), this.guard = n), !1; }, e; -}(ae), Fl = function(t) { - T(e, t); +}(ce), kl = function(t) { + O(e, t); function e(n, r) { return t.call(this, n, r) || this; } @@ -8410,8 +8381,8 @@ var Ii = function(t) { }, e.prototype.getAtRuleName = function() { return this.atRuleName; }, e; -}(ae), Kd = function(t) { - T(e, t); +}(ce), Jd = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } @@ -8426,24 +8397,24 @@ var Ii = function(t) { }, e.prototype.setValue = function(n) { return this.setNode("value", n, 1); }, e; -}(W), Qd = function(t) { - T(e, t); +}(U), Xd = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } return e.prototype.getConditions = function() { - return this.conditions || (this.conditions = new Ce(this)), this.conditions; + return this.conditions || (this.conditions = new Se(this)), this.conditions; }, e; -}(W), Zd = function(t) { - T(e, t); +}(U), Yd = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } return e.prototype.setVariable = function(n) { return this.setNode("variable", n); }, e; -}(W), Pa = function(t) { - T(e, t); +}(U), Pa = function(t) { + O(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } @@ -8458,11 +8429,11 @@ var Ii = function(t) { }, e.prototype.getIdentifier = function() { return this.identifier; }, e; -}(W), Pe; +}(U), Pe; (function(t) { t[t.Ignore = 1] = "Ignore", t[t.Warning = 2] = "Warning", t[t.Error = 4] = "Error"; })(Pe || (Pe = {})); -var Rl = function() { +var _l = function() { function t(e, n, r, i, s, a) { s === void 0 && (s = e.offset), a === void 0 && (a = e.length), this.node = e, this.rule = n, this.level = r, this.message = i || n.message, this.offset = s, this.length = a; } @@ -8479,7 +8450,7 @@ var Rl = function() { }, t.prototype.getMessage = function() { return this.message; }, t; -}(), eu = function() { +}(), Kd = function() { function t() { this.entries = []; } @@ -8490,20 +8461,20 @@ var Rl = function() { return e.isErroneous() && e.collectIssues(this.entries), !0; }, t; }(); -function tu(t, e) { +function Qd(t, e) { let n; return e.length === 0 ? n = t : n = t.replace(/\{(\d+)\}/g, (r, i) => { let s = i[0]; return typeof e[s] < "u" ? e[s] : r; }), n; } -function nu(t, e, ...n) { - return tu(e, n); +function Zd(t, e, ...n) { + return Qd(e, n); } -function Je(t) { - return nu; +function Ge(t) { + return Zd; } -var Q = Je(), Z = function() { +var Q = Ge(), Z = function() { function t(e, n) { this.id = e, this.message = n; } @@ -8542,18 +8513,18 @@ var Q = Je(), Z = function() { IdentifierOrWildcardExpected: new Z("css-idorwildcardexpected", Q("expected.idorwildcard", "identifier or wildcard expected")), WildcardExpected: new Z("css-wildcardexpected", Q("expected.wildcard", "wildcard expected")), IdentifierOrVariableExpected: new Z("css-idorvarexpected", Q("expected.idorvar", "identifier or variable expected")) -}, Ia; +}, La; (function(t) { t.MIN_VALUE = -2147483648, t.MAX_VALUE = 2147483647; -})(Ia || (Ia = {})); -var er; +})(La || (La = {})); +var tr; (function(t) { t.MIN_VALUE = 0, t.MAX_VALUE = 2147483647; -})(er || (er = {})); -var Fe; +})(tr || (tr = {})); +var _e; (function(t) { function e(r, i) { - return r === Number.MAX_VALUE && (r = er.MAX_VALUE), i === Number.MAX_VALUE && (i = er.MAX_VALUE), { line: r, character: i }; + return r === Number.MAX_VALUE && (r = tr.MAX_VALUE), i === Number.MAX_VALUE && (i = tr.MAX_VALUE), { line: r, character: i }; } t.create = e; function n(r) { @@ -8561,24 +8532,24 @@ var Fe; return _.objectLiteral(i) && _.uinteger(i.line) && _.uinteger(i.character); } t.is = n; -})(Fe || (Fe = {})); -var te; +})(_e || (_e = {})); +var ne; (function(t) { function e(r, i, s, a) { if (_.uinteger(r) && _.uinteger(i) && _.uinteger(s) && _.uinteger(a)) - return { start: Fe.create(r, i), end: Fe.create(s, a) }; - if (Fe.is(r) && Fe.is(i)) + return { start: _e.create(r, i), end: _e.create(s, a) }; + if (_e.is(r) && _e.is(i)) return { start: r, end: i }; throw new Error("Range#create called with invalid arguments[" + r + ", " + i + ", " + s + ", " + a + "]"); } t.create = e; function n(r) { var i = r; - return _.objectLiteral(i) && Fe.is(i.start) && Fe.is(i.end); + return _.objectLiteral(i) && _e.is(i.start) && _e.is(i.end); } t.is = n; -})(te || (te = {})); -var bn; +})(ne || (ne = {})); +var xn; (function(t) { function e(r, i) { return { uri: r, range: i }; @@ -8586,11 +8557,11 @@ var bn; t.create = e; function n(r) { var i = r; - return _.defined(i) && te.is(i.range) && (_.string(i.uri) || _.undefined(i.uri)); + return _.defined(i) && ne.is(i.range) && (_.string(i.uri) || _.undefined(i.uri)); } t.is = n; -})(bn || (bn = {})); -var La; +})(xn || (xn = {})); +var Ia; (function(t) { function e(r, i, s, a) { return { targetUri: r, targetRange: i, targetSelectionRange: s, originSelectionRange: a }; @@ -8598,11 +8569,11 @@ var La; t.create = e; function n(r) { var i = r; - return _.defined(i) && te.is(i.targetRange) && _.string(i.targetUri) && (te.is(i.targetSelectionRange) || _.undefined(i.targetSelectionRange)) && (te.is(i.originSelectionRange) || _.undefined(i.originSelectionRange)); + return _.defined(i) && ne.is(i.targetRange) && _.string(i.targetUri) && (ne.is(i.targetSelectionRange) || _.undefined(i.targetSelectionRange)) && (ne.is(i.originSelectionRange) || _.undefined(i.originSelectionRange)); } t.is = n; -})(La || (La = {})); -var si; +})(Ia || (Ia = {})); +var oi; (function(t) { function e(r, i, s, a) { return { @@ -8618,7 +8589,7 @@ var si; return _.numberRange(i.red, 0, 1) && _.numberRange(i.green, 0, 1) && _.numberRange(i.blue, 0, 1) && _.numberRange(i.alpha, 0, 1); } t.is = n; -})(si || (si = {})); +})(oi || (oi = {})); var Ta; (function(t) { function e(r, i) { @@ -8630,7 +8601,7 @@ var Ta; t.create = e; function n(r) { var i = r; - return te.is(i.range) && si.is(i.color); + return ne.is(i.range) && oi.is(i.color); } t.is = n; })(Ta || (Ta = {})); @@ -8646,7 +8617,7 @@ var Wa; t.create = e; function n(r) { var i = r; - return _.string(i.label) && (_.undefined(i.textEdit) || $.is(i)) && (_.undefined(i.additionalTextEdits) || _.typedArray(i.additionalTextEdits, $.is)); + return _.string(i.label) && (_.undefined(i.textEdit) || H.is(i)) && (_.undefined(i.additionalTextEdits) || _.typedArray(i.additionalTextEdits, H.is)); } t.is = n; })(Wa || (Wa = {})); @@ -8670,7 +8641,7 @@ var Ua; } t.is = n; })(Ua || (Ua = {})); -var ai; +var li; (function(t) { function e(r, i) { return { @@ -8681,14 +8652,14 @@ var ai; t.create = e; function n(r) { var i = r; - return _.defined(i) && bn.is(i.location) && _.string(i.message); + return _.defined(i) && xn.is(i.location) && _.string(i.message); } t.is = n; -})(ai || (ai = {})); -var tr; +})(li || (li = {})); +var nr; (function(t) { t.Error = 1, t.Warning = 2, t.Information = 3, t.Hint = 4; -})(tr || (tr = {})); +})(nr || (nr = {})); var Va; (function(t) { t.Unnecessary = 1, t.Deprecated = 2; @@ -8701,7 +8672,7 @@ var Ba; } t.is = e; })(Ba || (Ba = {})); -var nr; +var rr; (function(t) { function e(r, i, s, a, o, l) { var c = { range: r, message: i }; @@ -8710,10 +8681,10 @@ var nr; t.create = e; function n(r) { var i, s = r; - return _.defined(s) && te.is(s.range) && _.string(s.message) && (_.number(s.severity) || _.undefined(s.severity)) && (_.integer(s.code) || _.string(s.code) || _.undefined(s.code)) && (_.undefined(s.codeDescription) || _.string((i = s.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (_.string(s.source) || _.undefined(s.source)) && (_.undefined(s.relatedInformation) || _.typedArray(s.relatedInformation, ai.is)); + return _.defined(s) && ne.is(s.range) && _.string(s.message) && (_.number(s.severity) || _.undefined(s.severity)) && (_.integer(s.code) || _.string(s.code) || _.undefined(s.code)) && (_.undefined(s.codeDescription) || _.string((i = s.codeDescription) === null || i === void 0 ? void 0 : i.href)) && (_.string(s.source) || _.undefined(s.source)) && (_.undefined(s.relatedInformation) || _.typedArray(s.relatedInformation, li.is)); } t.is = n; -})(nr || (nr = {})); +})(rr || (rr = {})); var Jt; (function(t) { function e(r, i) { @@ -8729,7 +8700,7 @@ var Jt; } t.is = n; })(Jt || (Jt = {})); -var $; +var H; (function(t) { function e(s, a) { return { range: s, newText: a }; @@ -8745,10 +8716,10 @@ var $; t.del = r; function i(s) { var a = s; - return _.objectLiteral(a) && _.string(a.newText) && te.is(a.range); + return _.objectLiteral(a) && _.string(a.newText) && ne.is(a.range); } t.is = i; -})($ || ($ = {})); +})(H || (H = {})); var qt; (function(t) { function e(r, i, s) { @@ -8762,14 +8733,14 @@ var qt; } t.is = n; })(qt || (qt = {})); -var _e; +var ke; (function(t) { function e(n) { var r = n; return typeof r == "string"; } t.is = e; -})(_e || (_e = {})); +})(ke || (ke = {})); var pt; (function(t) { function e(s, a, o) { @@ -8786,11 +8757,11 @@ var pt; t.del = r; function i(s) { var a = s; - return $.is(a) && (qt.is(a.annotationId) || _e.is(a.annotationId)); + return H.is(a) && (qt.is(a.annotationId) || ke.is(a.annotationId)); } t.is = i; })(pt || (pt = {})); -var vn; +var Sn; (function(t) { function e(r, i) { return { textDocument: r, edits: i }; @@ -8798,11 +8769,11 @@ var vn; t.create = e; function n(r) { var i = r; - return _.defined(i) && rr.is(i.textDocument) && Array.isArray(i.edits); + return _.defined(i) && ir.is(i.textDocument) && Array.isArray(i.edits); } t.is = n; -})(vn || (vn = {})); -var yn; +})(Sn || (Sn = {})); +var Cn; (function(t) { function e(r, i, s) { var a = { @@ -8814,11 +8785,11 @@ var yn; t.create = e; function n(r) { var i = r; - return i && i.kind === "create" && _.string(i.uri) && (i.options === void 0 || (i.options.overwrite === void 0 || _.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || _.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || _e.is(i.annotationId)); + return i && i.kind === "create" && _.string(i.uri) && (i.options === void 0 || (i.options.overwrite === void 0 || _.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || _.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || ke.is(i.annotationId)); } t.is = n; -})(yn || (yn = {})); -var wn; +})(Cn || (Cn = {})); +var kn; (function(t) { function e(r, i, s, a) { var o = { @@ -8831,11 +8802,11 @@ var wn; t.create = e; function n(r) { var i = r; - return i && i.kind === "rename" && _.string(i.oldUri) && _.string(i.newUri) && (i.options === void 0 || (i.options.overwrite === void 0 || _.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || _.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || _e.is(i.annotationId)); + return i && i.kind === "rename" && _.string(i.oldUri) && _.string(i.newUri) && (i.options === void 0 || (i.options.overwrite === void 0 || _.boolean(i.options.overwrite)) && (i.options.ignoreIfExists === void 0 || _.boolean(i.options.ignoreIfExists))) && (i.annotationId === void 0 || ke.is(i.annotationId)); } t.is = n; -})(wn || (wn = {})); -var xn; +})(kn || (kn = {})); +var _n; (function(t) { function e(r, i, s) { var a = { @@ -8847,35 +8818,35 @@ var xn; t.create = e; function n(r) { var i = r; - return i && i.kind === "delete" && _.string(i.uri) && (i.options === void 0 || (i.options.recursive === void 0 || _.boolean(i.options.recursive)) && (i.options.ignoreIfNotExists === void 0 || _.boolean(i.options.ignoreIfNotExists))) && (i.annotationId === void 0 || _e.is(i.annotationId)); + return i && i.kind === "delete" && _.string(i.uri) && (i.options === void 0 || (i.options.recursive === void 0 || _.boolean(i.options.recursive)) && (i.options.ignoreIfNotExists === void 0 || _.boolean(i.options.ignoreIfNotExists))) && (i.annotationId === void 0 || ke.is(i.annotationId)); } t.is = n; -})(xn || (xn = {})); -var oi; +})(_n || (_n = {})); +var ci; (function(t) { function e(n) { var r = n; return r && (r.changes !== void 0 || r.documentChanges !== void 0) && (r.documentChanges === void 0 || r.documentChanges.every(function(i) { - return _.string(i.kind) ? yn.is(i) || wn.is(i) || xn.is(i) : vn.is(i); + return _.string(i.kind) ? Cn.is(i) || kn.is(i) || _n.is(i) : Sn.is(i); })); } t.is = e; -})(oi || (oi = {})); -var Nn = function() { +})(ci || (ci = {})); +var In = function() { function t(e, n) { this.edits = e, this.changeAnnotations = n; } return t.prototype.insert = function(e, n, r) { var i, s; - if (r === void 0 ? i = $.insert(e, n) : _e.is(r) ? (s = r, i = pt.insert(e, n, r)) : (this.assertChangeAnnotations(this.changeAnnotations), s = this.changeAnnotations.manage(r), i = pt.insert(e, n, s)), this.edits.push(i), s !== void 0) + if (r === void 0 ? i = H.insert(e, n) : ke.is(r) ? (s = r, i = pt.insert(e, n, r)) : (this.assertChangeAnnotations(this.changeAnnotations), s = this.changeAnnotations.manage(r), i = pt.insert(e, n, s)), this.edits.push(i), s !== void 0) return s; }, t.prototype.replace = function(e, n, r) { var i, s; - if (r === void 0 ? i = $.replace(e, n) : _e.is(r) ? (s = r, i = pt.replace(e, n, r)) : (this.assertChangeAnnotations(this.changeAnnotations), s = this.changeAnnotations.manage(r), i = pt.replace(e, n, s)), this.edits.push(i), s !== void 0) + if (r === void 0 ? i = H.replace(e, n) : ke.is(r) ? (s = r, i = pt.replace(e, n, r)) : (this.assertChangeAnnotations(this.changeAnnotations), s = this.changeAnnotations.manage(r), i = pt.replace(e, n, s)), this.edits.push(i), s !== void 0) return s; }, t.prototype.delete = function(e, n) { var r, i; - if (n === void 0 ? r = $.del(e) : _e.is(n) ? (i = n, r = pt.del(e, n)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(n), r = pt.del(e, i)), this.edits.push(r), i !== void 0) + if (n === void 0 ? r = H.del(e) : ke.is(n) ? (i = n, r = pt.del(e, n)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(n), r = pt.del(e, i)), this.edits.push(r), i !== void 0) return i; }, t.prototype.add = function(e) { this.edits.push(e); @@ -8901,7 +8872,7 @@ var Nn = function() { configurable: !0 }), t.prototype.manage = function(e, n) { var r; - if (_e.is(e) ? r = e : (r = this.nextId(), n = e), this._annotations[r] !== void 0) + if (ke.is(e) ? r = e : (r = this.nextId(), n = e), this._annotations[r] !== void 0) throw new Error("Id " + r + " is already in use."); if (n === void 0) throw new Error("No annotation provided for id " + r); @@ -8914,12 +8885,12 @@ var Nn = function() { function t(e) { var n = this; this._textEditChanges = /* @__PURE__ */ Object.create(null), e !== void 0 ? (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new ja(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach(function(r) { - if (vn.is(r)) { - var i = new Nn(r.edits, n._changeAnnotations); + if (Sn.is(r)) { + var i = new In(r.edits, n._changeAnnotations); n._textEditChanges[r.textDocument.uri] = i; } })) : e.changes && Object.keys(e.changes).forEach(function(r) { - var i = new Nn(e.changes[r]); + var i = new In(e.changes[r]); n._textEditChanges[r] = i; })) : this._workspaceEdit = {}; } @@ -8930,7 +8901,7 @@ var Nn = function() { enumerable: !1, configurable: !0 }), t.prototype.getTextEditChange = function(e) { - if (rr.is(e)) { + if (ir.is(e)) { if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes."); var n = { uri: e.uri, version: e.version }, r = this._textEditChanges[n.uri]; @@ -8939,7 +8910,7 @@ var Nn = function() { textDocument: n, edits: i }; - this._workspaceEdit.documentChanges.push(s), r = new Nn(i, this._changeAnnotations), this._textEditChanges[n.uri] = r; + this._workspaceEdit.documentChanges.push(s), r = new In(i, this._changeAnnotations), this._textEditChanges[n.uri] = r; } return r; } else { @@ -8948,7 +8919,7 @@ var Nn = function() { var r = this._textEditChanges[e]; if (!r) { var i = []; - this._workspaceEdit.changes[e] = i, r = new Nn(i), this._textEditChanges[e] = r; + this._workspaceEdit.changes[e] = i, r = new In(i), this._textEditChanges[e] = r; } return r; } @@ -8960,25 +8931,25 @@ var Nn = function() { if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes."); var i; - qt.is(n) || _e.is(n) ? i = n : r = n; + qt.is(n) || ke.is(n) ? i = n : r = n; var s, a; - if (i === void 0 ? s = yn.create(e, r) : (a = _e.is(i) ? i : this._changeAnnotations.manage(i), s = yn.create(e, r, a)), this._workspaceEdit.documentChanges.push(s), a !== void 0) + if (i === void 0 ? s = Cn.create(e, r) : (a = ke.is(i) ? i : this._changeAnnotations.manage(i), s = Cn.create(e, r, a)), this._workspaceEdit.documentChanges.push(s), a !== void 0) return a; }, t.prototype.renameFile = function(e, n, r, i) { if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes."); var s; - qt.is(r) || _e.is(r) ? s = r : i = r; + qt.is(r) || ke.is(r) ? s = r : i = r; var a, o; - if (s === void 0 ? a = wn.create(e, n, i) : (o = _e.is(s) ? s : this._changeAnnotations.manage(s), a = wn.create(e, n, i, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0) + if (s === void 0 ? a = kn.create(e, n, i) : (o = ke.is(s) ? s : this._changeAnnotations.manage(s), a = kn.create(e, n, i, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0) return o; }, t.prototype.deleteFile = function(e, n, r) { if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes."); var i; - qt.is(n) || _e.is(n) ? i = n : r = n; + qt.is(n) || ke.is(n) ? i = n : r = n; var s, a; - if (i === void 0 ? s = xn.create(e, r) : (a = _e.is(i) ? i : this._changeAnnotations.manage(i), s = xn.create(e, r, a)), this._workspaceEdit.documentChanges.push(s), a !== void 0) + if (i === void 0 ? s = _n.create(e, r) : (a = ke.is(i) ? i : this._changeAnnotations.manage(i), s = _n.create(e, r, a)), this._workspaceEdit.documentChanges.push(s), a !== void 0) return a; }, t; })(); @@ -8994,7 +8965,7 @@ var qa; } t.is = n; })(qa || (qa = {})); -var li; +var hi; (function(t) { function e(r, i) { return { uri: r, version: i }; @@ -9005,8 +8976,8 @@ var li; return _.defined(i) && _.string(i.uri) && _.integer(i.version); } t.is = n; -})(li || (li = {})); -var rr; +})(hi || (hi = {})); +var ir; (function(t) { function e(r, i) { return { uri: r, version: i }; @@ -9017,7 +8988,7 @@ var rr; return _.defined(i) && _.string(i.uri) && (i.version === null || _.integer(i.version)); } t.is = n; -})(rr || (rr = {})); +})(ir || (ir = {})); var $a; (function(t) { function e(r, i, s, a) { @@ -9030,29 +9001,29 @@ var $a; } t.is = n; })($a || ($a = {})); -var Ue; +var Ve; (function(t) { t.PlainText = "plaintext", t.Markdown = "markdown"; -})(Ue || (Ue = {})); +})(Ve || (Ve = {})); (function(t) { function e(n) { var r = n; return r === t.PlainText || r === t.Markdown; } t.is = e; -})(Ue || (Ue = {})); -var ci; +})(Ve || (Ve = {})); +var di; (function(t) { function e(n) { var r = n; - return _.objectLiteral(n) && Ue.is(r.kind) && _.string(r.value); + return _.objectLiteral(n) && Ve.is(r.kind) && _.string(r.value); } t.is = e; -})(ci || (ci = {})); -var q; +})(di || (di = {})); +var $; (function(t) { t.Text = 1, t.Method = 2, t.Function = 3, t.Constructor = 4, t.Field = 5, t.Variable = 6, t.Class = 7, t.Interface = 8, t.Module = 9, t.Property = 10, t.Unit = 11, t.Value = 12, t.Enum = 13, t.Keyword = 14, t.Snippet = 15, t.Color = 16, t.File = 17, t.Reference = 18, t.Folder = 19, t.EnumMember = 20, t.Constant = 21, t.Struct = 22, t.Event = 23, t.Operator = 24, t.TypeParameter = 25; -})(q || (q = {})); +})($ || ($ = {})); var ze; (function(t) { t.PlainText = 1, t.Snippet = 2; @@ -9069,7 +9040,7 @@ var Ha; t.create = e; function n(r) { var i = r; - return i && _.string(i.newText) && te.is(i.insert) && te.is(i.replace); + return i && _.string(i.newText) && ne.is(i.insert) && ne.is(i.replace); } t.is = n; })(Ha || (Ha = {})); @@ -9091,7 +9062,7 @@ var Xa; } t.create = e; })(Xa || (Xa = {})); -var ir; +var sr; (function(t) { function e(r) { return r.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); @@ -9102,12 +9073,12 @@ var ir; return _.string(i) || _.objectLiteral(i) && _.string(i.language) && _.string(i.value); } t.is = n; -})(ir || (ir = {})); +})(sr || (sr = {})); var Ya; (function(t) { function e(n) { var r = n; - return !!r && _.objectLiteral(r) && (ci.is(r.contents) || ir.is(r.contents) || _.typedArray(r.contents, ir.is)) && (n.range === void 0 || te.is(n.range)); + return !!r && _.objectLiteral(r) && (di.is(r.contents) || sr.is(r.contents) || _.typedArray(r.contents, sr.is)) && (n.range === void 0 || ne.is(n.range)); } t.is = e; })(Ya || (Ya = {})); @@ -9128,10 +9099,10 @@ var Qa; } t.create = e; })(Qa || (Qa = {})); -var Ut; +var Ot; (function(t) { t.Text = 1, t.Read = 2, t.Write = 3; -})(Ut || (Ut = {})); +})(Ot || (Ot = {})); var Za; (function(t) { function e(n, r) { @@ -9175,14 +9146,14 @@ var no; t.create = e; function n(r) { var i = r; - return i && _.string(i.name) && _.number(i.kind) && te.is(i.range) && te.is(i.selectionRange) && (i.detail === void 0 || _.string(i.detail)) && (i.deprecated === void 0 || _.boolean(i.deprecated)) && (i.children === void 0 || Array.isArray(i.children)) && (i.tags === void 0 || Array.isArray(i.tags)); + return i && _.string(i.name) && _.number(i.kind) && ne.is(i.range) && ne.is(i.selectionRange) && (i.detail === void 0 || _.string(i.detail)) && (i.deprecated === void 0 || _.boolean(i.deprecated)) && (i.children === void 0 || Array.isArray(i.children)) && (i.tags === void 0 || Array.isArray(i.tags)); } t.is = n; })(no || (no = {})); -var hi; +var ui; (function(t) { t.Empty = "", t.QuickFix = "quickfix", t.Refactor = "refactor", t.RefactorExtract = "refactor.extract", t.RefactorInline = "refactor.inline", t.RefactorRewrite = "refactor.rewrite", t.Source = "source", t.SourceOrganizeImports = "source.organizeImports", t.SourceFixAll = "source.fixAll"; -})(hi || (hi = {})); +})(ui || (ui = {})); var ro; (function(t) { function e(r, i) { @@ -9192,11 +9163,11 @@ var ro; t.create = e; function n(r) { var i = r; - return _.defined(i) && _.typedArray(i.diagnostics, nr.is) && (i.only === void 0 || _.typedArray(i.only, _.string)); + return _.defined(i) && _.typedArray(i.diagnostics, rr.is) && (i.only === void 0 || _.typedArray(i.only, _.string)); } t.is = n; })(ro || (ro = {})); -var di; +var pi; (function(t) { function e(r, i, s) { var a = { title: r }, o = !0; @@ -9205,10 +9176,10 @@ var di; t.create = e; function n(r) { var i = r; - return i && _.string(i.title) && (i.diagnostics === void 0 || _.typedArray(i.diagnostics, nr.is)) && (i.kind === void 0 || _.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || Jt.is(i.command)) && (i.isPreferred === void 0 || _.boolean(i.isPreferred)) && (i.edit === void 0 || oi.is(i.edit)); + return i && _.string(i.title) && (i.diagnostics === void 0 || _.typedArray(i.diagnostics, rr.is)) && (i.kind === void 0 || _.string(i.kind)) && (i.edit !== void 0 || i.command !== void 0) && (i.command === void 0 || Jt.is(i.command)) && (i.isPreferred === void 0 || _.boolean(i.isPreferred)) && (i.edit === void 0 || ci.is(i.edit)); } t.is = n; -})(di || (di = {})); +})(pi || (pi = {})); var io; (function(t) { function e(r, i) { @@ -9218,7 +9189,7 @@ var io; t.create = e; function n(r) { var i = r; - return _.defined(i) && te.is(i.range) && (_.undefined(i.command) || Jt.is(i.command)); + return _.defined(i) && ne.is(i.range) && (_.undefined(i.command) || Jt.is(i.command)); } t.is = n; })(io || (io = {})); @@ -9242,11 +9213,11 @@ var ao; t.create = e; function n(r) { var i = r; - return _.defined(i) && te.is(i.range) && (_.undefined(i.target) || _.string(i.target)); + return _.defined(i) && ne.is(i.range) && (_.undefined(i.target) || _.string(i.target)); } t.is = n; })(ao || (ao = {})); -var sr; +var ar; (function(t) { function e(r, i) { return { range: r, parent: i }; @@ -9254,14 +9225,14 @@ var sr; t.create = e; function n(r) { var i = r; - return i !== void 0 && te.is(i.range) && (i.parent === void 0 || t.is(i.parent)); + return i !== void 0 && ne.is(i.range) && (i.parent === void 0 || t.is(i.parent)); } t.is = n; -})(sr || (sr = {})); +})(ar || (ar = {})); var oo; (function(t) { function e(s, a, o, l) { - return new ru(s, a, o, l); + return new eu(s, a, o, l); } t.create = e; function n(s) { @@ -9274,12 +9245,12 @@ var oo; var y = g.range.start.line - b.range.start.line; return y === 0 ? g.range.start.character - b.range.start.character : y; }), c = o.length, h = l.length - 1; h >= 0; h--) { - var u = l[h], f = s.offsetAt(u.range.start), m = s.offsetAt(u.range.end); - if (m <= c) - o = o.substring(0, f) + u.newText + o.substring(m, o.length); + var u = l[h], m = s.offsetAt(u.range.start), f = s.offsetAt(u.range.end); + if (f <= c) + o = o.substring(0, m) + u.newText + o.substring(f, o.length); else throw new Error("Overlapping edit"); - c = f; + c = m; } return o; } @@ -9289,18 +9260,18 @@ var oo; return s; var o = s.length / 2 | 0, l = s.slice(0, o), c = s.slice(o); i(l, a), i(c, a); - for (var h = 0, u = 0, f = 0; h < l.length && u < c.length; ) { - var m = a(l[h], c[u]); - m <= 0 ? s[f++] = l[h++] : s[f++] = c[u++]; + for (var h = 0, u = 0, m = 0; h < l.length && u < c.length; ) { + var f = a(l[h], c[u]); + f <= 0 ? s[m++] = l[h++] : s[m++] = c[u++]; } for (; h < l.length; ) - s[f++] = l[h++]; + s[m++] = l[h++]; for (; u < c.length; ) - s[f++] = c[u++]; + s[m++] = c[u++]; return s; } })(oo || (oo = {})); -var ru = function() { +var eu = function() { function t(e, n, r, i) { this._uri = e, this._languageId = n, this._version = r, this._content = i, this._lineOffsets = void 0; } @@ -9346,13 +9317,13 @@ var ru = function() { e = Math.max(Math.min(e, this._content.length), 0); var n = this.getLineOffsets(), r = 0, i = n.length; if (i === 0) - return Fe.create(0, e); + return _e.create(0, e); for (; r < i; ) { var s = Math.floor((r + i) / 2); n[s] > e ? i = s : r = s + 1; } var a = r - 1; - return Fe.create(a, e - n[a]); + return _e.create(a, e - n[a]); }, t.prototype.offsetAt = function(e) { var n = this.getLineOffsets(); if (e.line >= n.length) @@ -9371,52 +9342,52 @@ var ru = function() { }(), _; (function(t) { var e = Object.prototype.toString; - function n(m) { - return typeof m < "u"; + function n(f) { + return typeof f < "u"; } t.defined = n; - function r(m) { - return typeof m > "u"; + function r(f) { + return typeof f > "u"; } t.undefined = r; - function i(m) { - return m === !0 || m === !1; + function i(f) { + return f === !0 || f === !1; } t.boolean = i; - function s(m) { - return e.call(m) === "[object String]"; + function s(f) { + return e.call(f) === "[object String]"; } t.string = s; - function a(m) { - return e.call(m) === "[object Number]"; + function a(f) { + return e.call(f) === "[object Number]"; } t.number = a; - function o(m, g, b) { - return e.call(m) === "[object Number]" && g <= m && m <= b; + function o(f, g, b) { + return e.call(f) === "[object Number]" && g <= f && f <= b; } t.numberRange = o; - function l(m) { - return e.call(m) === "[object Number]" && -2147483648 <= m && m <= 2147483647; + function l(f) { + return e.call(f) === "[object Number]" && -2147483648 <= f && f <= 2147483647; } t.integer = l; - function c(m) { - return e.call(m) === "[object Number]" && 0 <= m && m <= 2147483647; + function c(f) { + return e.call(f) === "[object Number]" && 0 <= f && f <= 2147483647; } t.uinteger = c; - function h(m) { - return e.call(m) === "[object Function]"; + function h(f) { + return e.call(f) === "[object Function]"; } t.func = h; - function u(m) { - return m !== null && typeof m == "object"; + function u(f) { + return f !== null && typeof f == "object"; } t.objectLiteral = u; - function f(m, g) { - return Array.isArray(m) && m.every(g); + function m(f, g) { + return Array.isArray(f) && f.every(g); } - t.typedArray = f; + t.typedArray = m; })(_ || (_ = {})); -var ar = class { +var or = class { constructor(t, e, n, r) { this._uri = t, this._languageId = e, this._version = n, this._content = r, this._lineOffsets = void 0; } @@ -9438,22 +9409,22 @@ var ar = class { } update(t, e) { for (let n of t) - if (ar.isIncremental(n)) { - const r = El(n.range), i = this.offsetAt(r.start), s = this.offsetAt(r.end); + if (or.isIncremental(n)) { + const r = Fl(n.range), i = this.offsetAt(r.start), s = this.offsetAt(r.end); this._content = this._content.substring(0, i) + n.text + this._content.substring(s, this._content.length); const a = Math.max(r.start.line, 0), o = Math.max(r.end.line, 0); let l = this._lineOffsets; const c = lo(n.text, !1, i); if (o - a === c.length) - for (let u = 0, f = c.length; u < f; u++) + for (let u = 0, m = c.length; u < m; u++) l[u + a + 1] = c[u]; else c.length < 1e4 ? l.splice(a + 1, o - a, ...c) : this._lineOffsets = l = l.slice(0, a + 1).concat(c, l.slice(o + 1)); const h = n.text.length - (s - i); if (h !== 0) - for (let u = a + 1 + c.length, f = l.length; u < f; u++) + for (let u = a + 1 + c.length, m = l.length; u < m; u++) l[u] = l[u] + h; - } else if (ar.isFull(n)) + } else if (or.isFull(n)) this._content = n.text, this._lineOffsets = void 0; else throw new Error("Unknown change event received"); @@ -9494,22 +9465,22 @@ var ar = class { let e = t; return e != null && typeof e.text == "string" && e.range === void 0 && e.rangeLength === void 0; } -}, ui; +}, fi; (function(t) { function e(i, s, a, o) { - return new ar(i, s, a, o); + return new or(i, s, a, o); } t.create = e; function n(i, s, a) { - if (i instanceof ar) + if (i instanceof or) return i.update(s, a), i; throw new Error("TextDocument.update: document must be created by TextDocument.create"); } t.update = n; function r(i, s) { - let a = i.getText(), o = pi(s.map(iu), (h, u) => { - let f = h.range.start.line - u.range.start.line; - return f === 0 ? h.range.start.character - u.range.start.character : f; + let a = i.getText(), o = mi(s.map(tu), (h, u) => { + let m = h.range.start.line - u.range.start.line; + return m === 0 ? h.range.start.character - u.range.start.character : m; }), l = 0; const c = []; for (const h of o) { @@ -9521,12 +9492,12 @@ var ar = class { return c.push(a.substr(l)), c.join(""); } t.applyEdits = r; -})(ui || (ui = {})); -function pi(t, e) { +})(fi || (fi = {})); +function mi(t, e) { if (t.length <= 1) return t; const n = t.length / 2 | 0, r = t.slice(0, n), i = t.slice(n); - pi(r, e), pi(i, e); + mi(r, e), mi(i, e); let s = 0, a = 0, o = 0; for (; s < r.length && a < i.length; ) e(r[s], i[a]) <= 0 ? t[o++] = r[s++] : t[o++] = i[a++]; @@ -9544,12 +9515,12 @@ function lo(t, e, n = 0) { } return r; } -function El(t) { +function Fl(t) { const e = t.start, n = t.end; return e.line > n.line || e.line === n.line && e.character > n.character ? { start: n, end: e } : t; } -function iu(t) { - const e = El(t.range); +function tu(t) { + const e = Fl(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } var co; @@ -9558,19 +9529,19 @@ var co; textDocument: { completion: { completionItem: { - documentationFormat: [Ue.Markdown, Ue.PlainText] + documentationFormat: [Ve.Markdown, Ve.PlainText] } }, hover: { - contentFormat: [Ue.Markdown, Ue.PlainText] + contentFormat: [Ve.Markdown, Ve.PlainText] } } }; })(co || (co = {})); -var Sn; +var Fn; (function(t) { t[t.Unknown = 0] = "Unknown", t[t.File = 1] = "File", t[t.Directory = 2] = "Directory", t[t.SymbolicLink = 64] = "SymbolicLink"; -})(Sn || (Sn = {})); +})(Fn || (Fn = {})); var ho = { E: "Edge", FF: "Firefox", @@ -9579,7 +9550,7 @@ var ho = { IE: "IE", O: "Opera" }; -function Dl(t) { +function Rl(t) { switch (t) { case "experimental": return `⚠️ Property is experimental. Be cautious when using it.️ @@ -9601,25 +9572,25 @@ function mt(t, e, n) { var r; if (e ? r = { kind: "markdown", - value: au(t, n) + value: ru(t, n) } : r = { kind: "plaintext", - value: su(t, n) + value: nu(t, n) }, r.value !== "") return r; } -function zn(t) { +function Tn(t) { return t = t.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"), t.replace(//g, ">"); } -function su(t, e) { +function nu(t, e) { if (!t.description || t.description === "") return ""; if (typeof t.description != "string") return t.description.value; var n = ""; if ((e == null ? void 0 : e.documentation) !== !1) { - t.status && (n += Dl(t.status)), n += t.description; - var r = Al(t.browsers); + t.status && (n += Rl(t.status)), n += t.description; + var r = El(t.browsers); r && (n += ` (` + r + ")"), "syntax" in t && (n += ` @@ -9631,18 +9602,18 @@ Syntax: `.concat(t.syntax)); return "".concat(i.name, ": ").concat(i.url); }).join(" | ")), n; } -function au(t, e) { +function ru(t, e) { if (!t.description || t.description === "") return ""; var n = ""; if ((e == null ? void 0 : e.documentation) !== !1) { - t.status && (n += Dl(t.status)), typeof t.description == "string" ? n += zn(t.description) : n += t.description.kind === Ue.Markdown ? t.description.value : zn(t.description.value); - var r = Al(t.browsers); + t.status && (n += Rl(t.status)), typeof t.description == "string" ? n += Tn(t.description) : n += t.description.kind === Ve.Markdown ? t.description.value : Tn(t.description.value); + var r = El(t.browsers); r && (n += ` -(` + zn(r) + ")"), "syntax" in t && t.syntax && (n += ` +(` + Tn(r) + ")"), "syntax" in t && t.syntax && (n += ` -Syntax: `.concat(zn(t.syntax))); +Syntax: `.concat(Tn(t.syntax))); } return t.references && t.references.length > 0 && (e == null ? void 0 : e.references) !== !1 && (n.length > 0 && (n += ` @@ -9650,19 +9621,19 @@ Syntax: `.concat(zn(t.syntax))); return "[".concat(i.name, "](").concat(i.url, ")"); }).join(" | ")), n; } -function Al(t) { +function El(t) { return t === void 0 && (t = []), t.length === 0 ? null : t.map(function(e) { var n = "", r = e.match(/([A-Z]+)(\d+)?/), i = r[1], s = r[2]; return i in ho && (n += ho[i]), s && (n += " " + s), n; }).join(", "); } -var sn = Je(), ou = [ - { func: "rgb($red, $green, $blue)", desc: sn("css.builtin.rgb", "Creates a Color from red, green, and blue values.") }, - { func: "rgba($red, $green, $blue, $alpha)", desc: sn("css.builtin.rgba", "Creates a Color from red, green, blue, and alpha values.") }, - { func: "hsl($hue, $saturation, $lightness)", desc: sn("css.builtin.hsl", "Creates a Color from hue, saturation, and lightness values.") }, - { func: "hsla($hue, $saturation, $lightness, $alpha)", desc: sn("css.builtin.hsla", "Creates a Color from hue, saturation, lightness, and alpha values.") }, - { func: "hwb($hue $white $black)", desc: sn("css.builtin.hwb", "Creates a Color from hue, white and black.") } -], or = { +var an = Ge(), iu = [ + { func: "rgb($red, $green, $blue)", desc: an("css.builtin.rgb", "Creates a Color from red, green, and blue values.") }, + { func: "rgba($red, $green, $blue, $alpha)", desc: an("css.builtin.rgba", "Creates a Color from red, green, blue, and alpha values.") }, + { func: "hsl($hue, $saturation, $lightness)", desc: an("css.builtin.hsl", "Creates a Color from hue, saturation, and lightness values.") }, + { func: "hsla($hue, $saturation, $lightness, $alpha)", desc: an("css.builtin.hsla", "Creates a Color from hue, saturation, lightness, and alpha values.") }, + { func: "hwb($hue $white $black)", desc: an("css.builtin.hwb", "Creates a Color from hue, white and black.") } +], lr = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", @@ -9843,13 +9814,13 @@ function po(t) { } throw new Error(); } -function lu(t) { +function su(t) { var e = t.getName(); return e ? /^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e) : !1; } -var fo = 48, cu = 57, hu = 65, Pn = 97, du = 102; -function le(t) { - return t < fo ? 0 : t <= cu ? t - fo : (t < Pn && (t += Pn - hu), t >= Pn && t <= du ? t - Pn + 10 : 0); +var fo = 48, au = 57, ou = 65, Wn = 97, lu = 102; +function de(t) { + return t < fo ? 0 : t <= au ? t - fo : (t < Wn && (t += Wn - ou), t >= Wn && t <= lu ? t - Wn + 10 : 0); } function mo(t) { if (t[0] !== "#") @@ -9857,36 +9828,36 @@ function mo(t) { switch (t.length) { case 4: return { - red: le(t.charCodeAt(1)) * 17 / 255, - green: le(t.charCodeAt(2)) * 17 / 255, - blue: le(t.charCodeAt(3)) * 17 / 255, + red: de(t.charCodeAt(1)) * 17 / 255, + green: de(t.charCodeAt(2)) * 17 / 255, + blue: de(t.charCodeAt(3)) * 17 / 255, alpha: 1 }; case 5: return { - red: le(t.charCodeAt(1)) * 17 / 255, - green: le(t.charCodeAt(2)) * 17 / 255, - blue: le(t.charCodeAt(3)) * 17 / 255, - alpha: le(t.charCodeAt(4)) * 17 / 255 + red: de(t.charCodeAt(1)) * 17 / 255, + green: de(t.charCodeAt(2)) * 17 / 255, + blue: de(t.charCodeAt(3)) * 17 / 255, + alpha: de(t.charCodeAt(4)) * 17 / 255 }; case 7: return { - red: (le(t.charCodeAt(1)) * 16 + le(t.charCodeAt(2))) / 255, - green: (le(t.charCodeAt(3)) * 16 + le(t.charCodeAt(4))) / 255, - blue: (le(t.charCodeAt(5)) * 16 + le(t.charCodeAt(6))) / 255, + red: (de(t.charCodeAt(1)) * 16 + de(t.charCodeAt(2))) / 255, + green: (de(t.charCodeAt(3)) * 16 + de(t.charCodeAt(4))) / 255, + blue: (de(t.charCodeAt(5)) * 16 + de(t.charCodeAt(6))) / 255, alpha: 1 }; case 9: return { - red: (le(t.charCodeAt(1)) * 16 + le(t.charCodeAt(2))) / 255, - green: (le(t.charCodeAt(3)) * 16 + le(t.charCodeAt(4))) / 255, - blue: (le(t.charCodeAt(5)) * 16 + le(t.charCodeAt(6))) / 255, - alpha: (le(t.charCodeAt(7)) * 16 + le(t.charCodeAt(8))) / 255 + red: (de(t.charCodeAt(1)) * 16 + de(t.charCodeAt(2))) / 255, + green: (de(t.charCodeAt(3)) * 16 + de(t.charCodeAt(4))) / 255, + blue: (de(t.charCodeAt(5)) * 16 + de(t.charCodeAt(6))) / 255, + alpha: (de(t.charCodeAt(7)) * 16 + de(t.charCodeAt(8))) / 255 }; } return null; } -function Ml(t, e, n, r) { +function Dl(t, e, n, r) { if (r === void 0 && (r = 1), t = t / 60, e === 0) return { red: n, green: n, blue: n, alpha: r }; var i = function(o, l, c) { @@ -9898,7 +9869,7 @@ function Ml(t, e, n, r) { }, s = n <= 0.5 ? n * (e + 1) : n + e - n * e, a = n * 2 - s; return { red: i(a, s, t + 2), green: i(a, s, t), blue: i(a, s, t - 2), alpha: r }; } -function Nl(t) { +function Al(t) { var e = t.red, n = t.green, r = t.blue, i = t.alpha, s = Math.max(e, n, r), a = Math.min(e, n, r), o = 0, l = 0, c = (a + s) / 2, h = s - a; if (h > 0) { switch (l = Math.min(c <= 0.5 ? h / (2 * c) : h / (2 - 2 * c), 1), s) { @@ -9916,12 +9887,12 @@ function Nl(t) { } return { h: o, s: l, l: c, a: i }; } -function uu(t, e, n, r) { +function cu(t, e, n, r) { if (r === void 0 && (r = 1), e + n >= 1) { var i = e / (e + n); return { red: i, green: i, blue: i, alpha: r }; } - var s = Ml(t, 1, 0.5, r), a = s.red; + var s = Dl(t, 1, 0.5, r), a = s.red; a *= 1 - e - n, a += e; var o = s.green; o *= 1 - e - n, o += e; @@ -9933,8 +9904,8 @@ function uu(t, e, n, r) { alpha: r }; } -function pu(t) { - var e = Nl(t), n = Math.min(t.red, t.green, t.blue), r = 1 - Math.max(t.red, t.green, t.blue); +function hu(t) { + var e = Al(t), n = Math.min(t.red, t.green, t.blue), r = 1 - Math.max(t.red, t.green, t.blue); return { h: e.h, w: n, @@ -9942,7 +9913,7 @@ function pu(t) { a: e.a }; } -function fu(t) { +function du(t) { if (t.type === v.HexColorValue) { var e = t.getText(); return mo(e); @@ -9952,7 +9923,7 @@ function fu(t) { var s = i[0].getChildren(); if (s.length === 1 && s[0].type === v.Expression && (i = s[0].getChildren(), i.length === 3)) { var a = i[2]; - if (a instanceof Pi) { + if (a instanceof Ti) { var o = a.getLeft(), l = a.getRight(), c = a.getOperator(); o && l && c && c.matches("/") && (i = [i[0], i[1], o, l]); } @@ -9970,11 +9941,11 @@ function fu(t) { alpha: h }; if (r === "hsl" || r === "hsla") { - var u = po(i[0]), f = dt(i[1], 100), m = dt(i[2], 100); - return Ml(u, f, m, h); + var u = po(i[0]), m = dt(i[1], 100), f = dt(i[2], 100); + return Dl(u, m, f, h); } else if (r === "hwb") { var u = po(i[0]), g = dt(i[1], 100), b = dt(i[2], 100); - return uu(u, g, b, h); + return cu(u, g, b, h); } } catch { return null; @@ -9991,7 +9962,7 @@ function fu(t) { var x = t.getText().toLowerCase(); if (x === "none") return null; - var k = or[x]; + var k = lr[x]; if (k) return mo(k); } @@ -10021,7 +9992,7 @@ var go = { outset: "Looks as if the content on the inside of the border is coming out of the canvas.", ridge: "Looks as if it were coming out of the canvas.", solid: "A single line segment." -}, mu = ["medium", "thick", "thin"], yo = { +}, uu = ["medium", "thick", "thin"], yo = { "border-box": "The background is painted within (clipped to) the border box.", "content-box": "The background is painted within (clipped to) the content box.", "padding-box": "The background is painted within (clipped to) the padding box." @@ -10099,14 +10070,14 @@ var go = { "ellipse()": "Defines an ellipse.", "inset()": "Defines an inset rectangle.", "polygon()": "Defines a polygon." -}, zl = { +}, Ml = { length: ["em", "rem", "ex", "px", "cm", "mm", "in", "pt", "pc", "ch", "vw", "vh", "vmin", "vmax"], angle: ["deg", "rad", "grad", "turn"], time: ["ms", "s"], frequency: ["Hz", "kHz"], resolution: ["dpi", "dpcm", "dppx"], percentage: ["%", "fr"] -}, gu = [ +}, pu = [ "a", "abbr", "address", @@ -10222,7 +10193,7 @@ var go = { "const", "video", "wbr" -], bu = [ +], fu = [ "circle", "clipPath", "cursor", @@ -10286,7 +10257,7 @@ var go = { "tspan", "use", "view" -], vu = [ +], mu = [ "@bottom-center", "@bottom-left", "@bottom-left-corner", @@ -10304,12 +10275,12 @@ var go = { "@top-right", "@top-right-corner" ]; -function In(t) { +function On(t) { return Object.keys(t).map(function(e) { return t[e]; }); } -function Te(t) { +function We(t) { return typeof t < "u"; } var Fo = function(t, e, n) { @@ -10317,9 +10288,9 @@ var Fo = function(t, e, n) { for (var r = 0, i = e.length, s; r < i; r++) (s || !(r in e)) && (s || (s = Array.prototype.slice.call(e, 0, r)), s[r] = e[r]); return t.concat(s || Array.prototype.slice.call(e)); -}, Wi = function() { +}, Vi = function() { function t(e) { - e === void 0 && (e = new _n()), this.keyframeRegex = /^@(\-(webkit|ms|moz|o)\-)?keyframes$/i, this.scanner = e, this.token = { type: p.EOF, offset: -1, len: 0, text: "" }, this.prevToken = void 0; + e === void 0 && (e = new Dn()), this.keyframeRegex = /^@(\-(webkit|ms|moz|o)\-)?keyframes$/i, this.scanner = e, this.token = { type: p.EOF, offset: -1, len: 0, text: "" }, this.prevToken = void 0; } return t.prototype.peekIdent = function(e) { return p.Ident === this.token.type && e.length === this.token.text.length && e === this.token.text.toLowerCase(); @@ -10393,17 +10364,17 @@ var Fo = function(t, e, n) { this.token = this.scanner.scan(); } }, t.prototype.createNode = function(e) { - return new W(this.token.offset, this.token.len, e); + return new U(this.token.offset, this.token.len, e); }, t.prototype.create = function(e) { return new e(this.token.offset, this.token.len); }, t.prototype.finish = function(e, n, r, i) { - if (!(e instanceof Ce) && (n && this.markError(e, n, r, i), this.prevToken)) { + if (!(e instanceof Se) && (n && this.markError(e, n, r, i), this.prevToken)) { var s = this.prevToken.offset + this.prevToken.len; e.length = s > e.offset ? s - e.offset : 0; } return e; }, t.prototype.markError = function(e, n, r, i) { - this.token !== this.lastErrorToken && (e.addIssue(new Rl(e, n, Pe.Error, void 0, this.token.offset, this.token.len)), this.lastErrorToken = this.token), (r || i) && this.resync(r, i); + this.token !== this.lastErrorToken && (e.addIssue(new _l(e, n, Pe.Error, void 0, this.token.offset, this.token.len)), this.lastErrorToken = this.token), (r || i) && this.resync(r, i); }, t.prototype.parseStylesheet = function(e) { var n = e.version, r = e.getText(), i = function(s, a) { if (e.version !== n) @@ -10418,7 +10389,7 @@ var Fo = function(t, e, n) { return e.substr(s, a); }), i; }, t.prototype._parseStylesheet = function() { - for (var e = this.create(Cd); e.addChild(this._parseStylesheetStart()); ) + for (var e = this.create(wd); e.addChild(this._parseStylesheetStart()); ) ; var n = !1; do { @@ -10495,7 +10466,7 @@ var Fo = function(t, e, n) { } return !1; }, t.prototype._parseDeclarations = function(e) { - var n = this.create(Ai); + var n = this.create(zi); if (!this.accept(p.CurlyL)) return null; for (var r = e(); n.addChild(r) && !this.peek(p.CurlyR); ) { @@ -10509,7 +10480,7 @@ var Fo = function(t, e, n) { }, t.prototype._parseBody = function(e, n) { return e.setDeclarations(this._parseDeclarations(n)) ? this.finish(e) : this.finish(e, S.LeftCurlyExpected, [p.CurlyR, p.SemiColon]); }, t.prototype._parseSelector = function(e) { - var n = this.create(Fn), r = !1; + var n = this.create(An), r = !1; for (e && (r = n.addChild(this._parseCombinator())); n.addChild(this._parseSimpleSelector()); ) r = !0, n.addChild(this._parseCombinator()); return r ? this.finish(n) : null; @@ -10517,12 +10488,12 @@ var Fo = function(t, e, n) { var n = this._tryParseCustomPropertyDeclaration(e); if (n) return n; - var r = this.create(Ze); + var r = this.create(Qe); return r.setProperty(this._parseProperty()) ? this.accept(p.Colon) ? (this.prevToken && (r.colonPosition = this.prevToken.offset), r.setValue(this._parseExpr()) ? (r.addChild(this._parsePrio()), this.peek(p.SemiColon) && (r.semicolonPosition = this.token.offset), this.finish(r)) : this.finish(r, S.PropertyValueExpected)) : this.finish(r, S.ColonExpected, [p.Colon], e || [p.SemiColon]) : null; }, t.prototype._tryParseCustomPropertyDeclaration = function(e) { if (!this.peekRegExp(p.Ident, /^--/)) return null; - var n = this.create(_d); + var n = this.create(Sd); if (!n.setProperty(this._parseProperty())) return null; if (!this.accept(p.Colon)) @@ -10530,17 +10501,17 @@ var Fo = function(t, e, n) { this.prevToken && (n.colonPosition = this.prevToken.offset); var r = this.mark(); if (this.peek(p.CurlyL)) { - var i = this.create(kd), s = this._parseDeclarations(this._parseRuleSetDeclaration.bind(this)); + var i = this.create(xd), s = this._parseDeclarations(this._parseRuleSetDeclaration.bind(this)); if (i.setDeclarations(s) && !s.isErroneous(!0) && (i.addChild(this._parsePrio()), this.peek(p.SemiColon))) return this.finish(i), n.setPropertySet(i), n.semicolonPosition = this.token.offset, this.finish(n); this.restoreAtMark(r); } var a = this._parseExpr(); - return a && !a.isErroneous(!0) && (this._parsePrio(), this.peekOne.apply(this, Fo(Fo([], e || [], !1), [p.SemiColon, p.EOF], !1))) ? (n.setValue(a), this.peek(p.SemiColon) && (n.semicolonPosition = this.token.offset), this.finish(n)) : (this.restoreAtMark(r), n.addChild(this._parseCustomPropertyValue(e)), n.addChild(this._parsePrio()), Te(n.colonPosition) && this.token.offset === n.colonPosition + 1 ? this.finish(n, S.PropertyValueExpected) : this.finish(n)); + return a && !a.isErroneous(!0) && (this._parsePrio(), this.peekOne.apply(this, Fo(Fo([], e || [], !1), [p.SemiColon, p.EOF], !1))) ? (n.setValue(a), this.peek(p.SemiColon) && (n.semicolonPosition = this.token.offset), this.finish(n)) : (this.restoreAtMark(r), n.addChild(this._parseCustomPropertyValue(e)), n.addChild(this._parsePrio()), We(n.colonPosition) && this.token.offset === n.colonPosition + 1 ? this.finish(n, S.PropertyValueExpected) : this.finish(n)); }, t.prototype._parseCustomPropertyValue = function(e) { var n = this; e === void 0 && (e = [p.CurlyR]); - var r = this.create(W), i = function() { + var r = this.create(U), i = function() { return a === 0 && o === 0 && l === 0; }, s = function() { return e.indexOf(n.token.type) !== -1; @@ -10596,39 +10567,39 @@ var Fo = function(t, e, n) { var n = this.mark(); return this._parseProperty() && this.accept(p.Colon) ? (this.restoreAtMark(n), this._parseDeclaration(e)) : (this.restoreAtMark(n), null); }, t.prototype._parseProperty = function() { - var e = this.create(Ni), n = this.mark(); + var e = this.create(Li), n = this.mark(); return (this.acceptDelim("*") || this.acceptDelim("_")) && this.hasWhitespace() ? (this.restoreAtMark(n), null) : e.setIdentifier(this._parsePropertyIdentifier()) ? this.finish(e) : null; }, t.prototype._parsePropertyIdentifier = function() { return this._parseIdent(); }, t.prototype._parseCharset = function() { if (!this.peek(p.Charset)) return null; - var e = this.create(W); + var e = this.create(U); return this.consumeToken(), this.accept(p.String) ? this.accept(p.SemiColon) ? this.finish(e) : this.finish(e, S.SemiColonExpected) : this.finish(e, S.IdentifierExpected); }, t.prototype._parseImport = function() { if (!this.peekKeyword("@import")) return null; - var e = this.create(zi); + var e = this.create(Ii); return this.consumeToken(), !e.addChild(this._parseURILiteral()) && !e.addChild(this._parseStringLiteral()) ? this.finish(e, S.URIOrStringExpected) : (!this.peek(p.SemiColon) && !this.peek(p.EOF) && e.setMedialist(this._parseMediaQueryList()), this.finish(e)); }, t.prototype._parseNamespace = function() { if (!this.peekKeyword("@namespace")) return null; - var e = this.create(Td); + var e = this.create(Pd); return this.consumeToken(), !e.addChild(this._parseURILiteral()) && (e.addChild(this._parseIdent()), !e.addChild(this._parseURILiteral()) && !e.addChild(this._parseStringLiteral())) ? this.finish(e, S.URIExpected, [p.SemiColon]) : this.accept(p.SemiColon) ? this.finish(e) : this.finish(e, S.SemiColonExpected); }, t.prototype._parseFontFace = function() { if (!this.peekKeyword("@font-face")) return null; - var e = this.create(yl); + var e = this.create(bl); return this.consumeToken(), this._parseBody(e, this._parseRuleSetDeclaration.bind(this)); }, t.prototype._parseViewPort = function() { if (!this.peekKeyword("@-ms-viewport") && !this.peekKeyword("@-o-viewport") && !this.peekKeyword("@viewport")) return null; - var e = this.create(Nd); + var e = this.create(Dd); return this.consumeToken(), this._parseBody(e, this._parseRuleSetDeclaration.bind(this)); }, t.prototype._parseKeyframe = function() { if (!this.peekRegExp(p.AtKeyword, this.keyframeRegex)) return null; - var e = this.create(xl), n = this.create(W); + var e = this.create(yl), n = this.create(U); return this.consumeToken(), e.setKeyword(this.finish(n)), n.matches("@-ms-keyframes") && this.markError(n, S.UnknownKeyword), e.setIdentifier(this._parseKeyframeIdent()) ? this._parseBody(e, this._parseKeyframeSelector.bind(this)) : this.finish(e, S.IdentifierExpected, [p.CurlyR]); }, t.prototype._parseKeyframeIdent = function() { return this._parseIdent([Y.Keyframe]); @@ -10651,12 +10622,12 @@ var Fo = function(t, e, n) { }, t.prototype._parseSupports = function(e) { if (e === void 0 && (e = !1), !this.peekKeyword("@supports")) return null; - var n = this.create(ri); + var n = this.create(si); return this.consumeToken(), n.addChild(this._parseSupportsCondition()), this._parseBody(n, this._parseSupportsDeclaration.bind(this, e)); }, t.prototype._parseSupportsDeclaration = function(e) { return e === void 0 && (e = !1), e ? this._tryParseRuleset(!0) || this._tryToParseDeclaration() || this._parseStylesheetStatement(!0) : this._parseStylesheetStatement(!1); }, t.prototype._parseSupportsCondition = function() { - var e = this.create(un); + var e = this.create(pn); if (this.acceptIdent("not")) e.addChild(this._parseSupportsConditionInParens()); else if (e.addChild(this._parseSupportsConditionInParens()), this.peekRegExp(p.Ident, /^(and|or)$/i)) @@ -10664,7 +10635,7 @@ var Fo = function(t, e, n) { e.addChild(this._parseSupportsConditionInParens()); return this.finish(e); }, t.prototype._parseSupportsConditionInParens = function() { - var e = this.create(un); + var e = this.create(pn); if (this.accept(p.ParenthesisL)) return this.prevToken && (e.lParent = this.prevToken.offset), !e.addChild(this._tryToParseDeclaration([p.ParenthesisR])) && !this._parseSupportsCondition() ? this.finish(e, S.ConditionExpected) : this.accept(p.ParenthesisR) ? (this.prevToken && (e.rParent = this.prevToken.offset), this.finish(e)) : this.finish(e, S.RightParenthesisExpected, [p.ParenthesisR], []); if (this.peek(p.Ident)) { @@ -10682,10 +10653,10 @@ var Fo = function(t, e, n) { }, t.prototype._parseMedia = function(e) { if (e === void 0 && (e = !1), !this.peekKeyword("@media")) return null; - var n = this.create(Sl); + var n = this.create(wl); return this.consumeToken(), n.addChild(this._parseMediaQueryList()) ? this._parseBody(n, this._parseMediaDeclaration.bind(this, e)) : this.finish(n, S.MediaQueryExpected); }, t.prototype._parseMediaQueryList = function() { - var e = this.create(Cl); + var e = this.create(xl); if (!e.addChild(this._parseMediaQuery())) return this.finish(e, S.MediaQueryExpected); for (; this.accept(p.Comma); ) @@ -10693,7 +10664,7 @@ var Fo = function(t, e, n) { return this.finish(e, S.MediaQueryExpected); return this.finish(e); }, t.prototype._parseMediaQuery = function() { - var e = this.create(kl), n = this.mark(); + var e = this.create(Sl), n = this.mark(); if (this.acceptIdent("not"), this.peek(p.ParenthesisL)) this.restoreAtMark(n), e.addChild(this._parseMediaCondition()); else { @@ -10703,10 +10674,10 @@ var Fo = function(t, e, n) { } return this.finish(e); }, t.prototype._parseRatio = function() { - var e = this.mark(), n = this.create($d); + var e = this.mark(), n = this.create(Bd); return this._parseNumeric() ? this.acceptDelim("/") ? this._parseNumeric() ? this.finish(n) : this.finish(n, S.NumberExpected) : (this.restoreAtMark(e), null) : null; }, t.prototype._parseMediaCondition = function() { - var e = this.create(Od); + var e = this.create(Id); this.acceptIdent("not"); for (var n = !0; n; ) { if (!this.accept(p.ParenthesisL)) @@ -10717,7 +10688,7 @@ var Fo = function(t, e, n) { } return this.finish(e); }, t.prototype._parseMediaFeature = function() { - var e = this, n = [p.ParenthesisR], r = this.create(Ud), i = function() { + var e = this, n = [p.ParenthesisR], r = this.create(Td), i = function() { return e.acceptDelim("<") || e.acceptDelim(">") ? (e.hasWhitespace() || e.acceptDelim("="), !0) : !!e.acceptDelim("="); }; if (r.addChild(this._parseMediaFeatureName())) { @@ -10745,14 +10716,14 @@ var Fo = function(t, e, n) { }, t.prototype._parseMediaFeatureValue = function() { return this._parseRatio() || this._parseTermExpression(); }, t.prototype._parseMedium = function() { - var e = this.create(W); + var e = this.create(U); return e.addChild(this._parseIdent()) ? this.finish(e) : null; }, t.prototype._parsePageDeclaration = function() { return this._parsePageMarginBox() || this._parseRuleSetDeclaration(); }, t.prototype._parsePage = function() { if (!this.peekKeyword("@page")) return null; - var e = this.create(Vd); + var e = this.create(Wd); if (this.consumeToken(), e.addChild(this._parsePageSelector())) { for (; this.accept(p.Comma); ) if (!e.addChild(this._parsePageSelector())) @@ -10762,22 +10733,22 @@ var Fo = function(t, e, n) { }, t.prototype._parsePageMarginBox = function() { if (!this.peek(p.AtKeyword)) return null; - var e = this.create(Bd); - return this.acceptOneKeyword(vu) || this.markError(e, S.UnknownAtRule, [], [p.CurlyL]), this._parseBody(e, this._parseRuleSetDeclaration.bind(this)); + var e = this.create(Od); + return this.acceptOneKeyword(mu) || this.markError(e, S.UnknownAtRule, [], [p.CurlyL]), this._parseBody(e, this._parseRuleSetDeclaration.bind(this)); }, t.prototype._parsePageSelector = function() { if (!this.peek(p.Ident) && !this.peek(p.Colon)) return null; - var e = this.create(W); + var e = this.create(U); return e.addChild(this._parseIdent()), this.accept(p.Colon) && !e.addChild(this._parseIdent()) ? this.finish(e, S.IdentifierExpected) : this.finish(e); }, t.prototype._parseDocument = function() { if (!this.peekKeyword("@-moz-document")) return null; - var e = this.create(Wd); + var e = this.create(Ld); return this.consumeToken(), this.resync([], [p.CurlyL]), this._parseBody(e, this._parseStylesheetStatement.bind(this)); }, t.prototype._parseUnknownAtRule = function() { if (!this.peek(p.AtKeyword)) return null; - var e = this.create(Fl); + var e = this.create(kl); e.addChild(this._parseUnknownAtRuleName()); var n = function() { return i === 0 && s === 0 && a === 0; @@ -10827,7 +10798,7 @@ var Fo = function(t, e, n) { } return e; }, t.prototype._parseUnknownAtRuleName = function() { - var e = this.create(W); + var e = this.create(U); return this.accept(p.AtKeyword) ? this.finish(e) : e; }, t.prototype._parseOperator = function() { if (this.peekDelim("/") || this.peekDelim("*") || this.peekDelim("+") || this.peekDelim("-") || this.peek(p.Dashmatch) || this.peek(p.Includes) || this.peek(p.SubstringOperator) || this.peek(p.PrefixOperator) || this.peek(p.SuffixOperator) || this.peekDelim("=")) { @@ -10838,11 +10809,11 @@ var Fo = function(t, e, n) { }, t.prototype._parseUnaryOperator = function() { if (!this.peekDelim("+") && !this.peekDelim("-")) return null; - var e = this.create(W); + var e = this.create(U); return this.consumeToken(), this.finish(e); }, t.prototype._parseCombinator = function() { if (this.peekDelim(">")) { - var e = this.create(W); + var e = this.create(U); this.consumeToken(); var n = this.mark(); if (!this.hasWhitespace() && this.acceptDelim(">")) { @@ -10852,13 +10823,13 @@ var Fo = function(t, e, n) { } return e.type = v.SelectorCombinatorParent, this.finish(e); } else if (this.peekDelim("+")) { - var e = this.create(W); + var e = this.create(U); return this.consumeToken(), e.type = v.SelectorCombinatorSibling, this.finish(e); } else if (this.peekDelim("~")) { - var e = this.create(W); + var e = this.create(U); return this.consumeToken(), e.type = v.SelectorCombinatorAllSiblings, this.finish(e); } else if (this.peekDelim("/")) { - var e = this.create(W); + var e = this.create(U); this.consumeToken(); var n = this.mark(); if (!this.hasWhitespace() && this.acceptIdent("deep") && !this.hasWhitespace() && this.acceptDelim("/")) @@ -10899,14 +10870,14 @@ var Fo = function(t, e, n) { }, t.prototype._parseAttrib = function() { if (!this.peek(p.BracketL)) return null; - var e = this.create(qd); + var e = this.create(Vd); return this.consumeToken(), e.setNamespacePrefix(this._parseNamespacePrefix()), e.setIdentifier(this._parseIdent()) ? (e.setOperator(this._parseOperator()) && (e.setValue(this._parseBinaryExpr()), this.acceptIdent("i"), this.acceptIdent("s")), this.accept(p.BracketR) ? this.finish(e) : this.finish(e, S.RightSquareBracketExpected)) : this.finish(e, S.IdentifierExpected); }, t.prototype._parsePseudo = function() { var e = this, n = this._tryParsePseudoIdentifier(); if (n) { if (!this.hasWhitespace() && this.accept(p.ParenthesisL)) { var r = function() { - var i = e.create(W); + var i = e.create(U); if (!i.addChild(e._parseSelector(!1))) return null; for (; e.accept(p.Comma) && i.addChild(e._parseSelector(!1)); ) @@ -10934,7 +10905,7 @@ var Fo = function(t, e, n) { return this.accept(p.Exclamation) && this.acceptIdent("important") ? this.finish(e) : null; }, t.prototype._parseExpr = function(e) { e === void 0 && (e = !1); - var n = this.create(_l); + var n = this.create(Cl); if (!n.addChild(this._parseBinaryExpr())) return null; for (; ; ) { @@ -10951,7 +10922,7 @@ var Fo = function(t, e, n) { }, t.prototype._parseUnicodeRange = function() { if (!this.peekIdent("u")) return null; - var e = this.create(Sd); + var e = this.create(yd); return this.acceptUnicodeRange() ? this.finish(e) : null; }, t.prototype._parseNamedLine = function() { if (!this.peek(p.BracketL)) @@ -10961,7 +10932,7 @@ var Fo = function(t, e, n) { ; return this.accept(p.BracketR) ? this.finish(e) : this.finish(e, S.RightSquareBracketExpected); }, t.prototype._parseBinaryExpr = function(e, n) { - var r = this.create(Pi); + var r = this.create(Ti); if (!r.setLeft(e || this._parseTerm())) return null; if (!r.setOperator(n || this._parseOperator())) @@ -10972,18 +10943,18 @@ var Fo = function(t, e, n) { var i = this._parseOperator(); return i && (r = this._parseBinaryExpr(r, i)), this.finish(r); }, t.prototype._parseTerm = function() { - var e = this.create(jd); + var e = this.create(Ud); return e.setOperator(this._parseUnaryOperator()), e.setExpression(this._parseTermExpression()) ? this.finish(e) : null; }, t.prototype._parseTermExpression = function() { return this._parseURILiteral() || this._parseUnicodeRange() || this._parseFunction() || this._parseIdent() || this._parseStringLiteral() || this._parseNumeric() || this._parseHexColor() || this._parseOperation() || this._parseNamedLine(); }, t.prototype._parseOperation = function() { if (!this.peek(p.ParenthesisL)) return null; - var e = this.create(W); + var e = this.create(U); return this.consumeToken(), e.addChild(this._parseExpr()), this.accept(p.ParenthesisR) ? this.finish(e) : this.finish(e, S.RightParenthesisExpected); }, t.prototype._parseNumeric = function() { if (this.peek(p.Num) || this.peek(p.Percentage) || this.peek(p.Resolution) || this.peek(p.Length) || this.peek(p.EMS) || this.peek(p.EXS) || this.peek(p.Angle) || this.peek(p.Time) || this.peek(p.Dimension) || this.peek(p.Freq)) { - var e = this.create(Li); + var e = this.create(Oi); return this.consumeToken(), this.finish(e); } return null; @@ -10998,15 +10969,15 @@ var Fo = function(t, e, n) { var e = this.mark(), n = this.createNode(v.URILiteral); return this.accept(p.Ident), this.hasWhitespace() || !this.peek(p.ParenthesisL) ? (this.restoreAtMark(e), null) : (this.scanner.inURL = !0, this.consumeToken(), n.addChild(this._parseURLArgument()), this.scanner.inURL = !1, this.accept(p.ParenthesisR) ? this.finish(n) : this.finish(n, S.RightParenthesisExpected)); }, t.prototype._parseURLArgument = function() { - var e = this.create(W); + var e = this.create(U); return !this.accept(p.String) && !this.accept(p.BadString) && !this.acceptUnquotedString() ? null : this.finish(e); }, t.prototype._parseIdent = function(e) { if (!this.peek(p.Ident)) return null; - var n = this.create(Oe); + var n = this.create(Ue); return e && (n.referenceTypes = e), n.isCustomProperty = this.peekRegExp(p.Ident, /^--/), this.consumeToken(), this.finish(n); }, t.prototype._parseFunction = function() { - var e = this.mark(), n = this.create(Rn); + var e = this.mark(), n = this.create(Mn); if (!n.setIdentifier(this._parseFunctionIdentifier())) return null; if (this.hasWhitespace() || !this.accept(p.ParenthesisL)) @@ -11018,7 +10989,7 @@ var Fo = function(t, e, n) { }, t.prototype._parseFunctionIdentifier = function() { if (!this.peek(p.Ident)) return null; - var e = this.create(Oe); + var e = this.create(Ue); if (e.referenceTypes = [Y.Function], this.acceptIdent("progid")) { if (this.accept(p.Colon)) for (; this.accept(p.Ident) && this.acceptDelim("."); ) @@ -11031,13 +11002,13 @@ var Fo = function(t, e, n) { return e.setValue(this._parseExpr(!0)) ? this.finish(e) : null; }, t.prototype._parseHexColor = function() { if (this.peekRegExp(p.Hash, /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)) { - var e = this.create(Ii); + var e = this.create(Wi); return this.consumeToken(), this.finish(e); } else return null; }, t; }(); -function yu(t, e) { +function gu(t, e) { var n = 0, r = t.length; if (r === 0) return 0; @@ -11047,20 +11018,20 @@ function yu(t, e) { } return n; } -function Pl(t, e) { +function Nl(t, e) { return t.indexOf(e) !== -1; } -function Ln() { +function Un() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; for (var n = [], r = 0, i = t; r < i.length; r++) for (var s = i[r], a = 0, o = s; a < o.length; a++) { var l = o[a]; - Pl(n, l) || n.push(l); + Nl(n, l) || n.push(l); } return n; } -var wu = function() { +var bu = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -11078,7 +11049,7 @@ var wu = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), Il = function() { +}(), zl = function() { function t(e, n) { this.offset = e, this.length = n, this.symbols = [], this.parent = null, this.children = []; } @@ -11090,7 +11061,7 @@ var wu = function() { return n === void 0 && (n = 0), this.offset <= e && this.offset + this.length > e + n || this.offset === e && this.length === n ? this.findInScope(e, n) : null; }, t.prototype.findInScope = function(e, n) { n === void 0 && (n = 0); - var r = e + n, i = yu(this.children, function(a) { + var r = e + n, i = gu(this.children, function(a) { return a.offset > r; }); if (i === 0) @@ -11109,31 +11080,31 @@ var wu = function() { }, t.prototype.getSymbols = function() { return this.symbols; }, t; -}(), xu = function(t) { - wu(e, t); +}(), vu = function(t) { + bu(e, t); function e() { return t.call(this, 0, Number.MAX_VALUE) || this; } return e; -}(Il), Tn = function() { +}(zl), Vn = function() { function t(e, n, r, i) { this.name = e, this.value = n, this.node = r, this.type = i; } return t; -}(), Su = function() { +}(), yu = function() { function t(e) { this.scope = e; } return t.prototype.addSymbol = function(e, n, r, i) { if (e.offset !== -1) { var s = this.scope.findScope(e.offset, e.length); - s && s.addSymbol(new Tn(n, r, e, i)); + s && s.addSymbol(new Vn(n, r, e, i)); } }, t.prototype.addScope = function(e) { if (e.offset !== -1) { var n = this.scope.findScope(e.offset, e.length); if (n && (n.offset !== e.offset || n.length !== e.length)) { - var r = new Il(e.offset, e.length); + var r = new zl(e.offset, e.length); return n.addChild(r), r; } return n; @@ -11142,7 +11113,7 @@ var wu = function() { }, t.prototype.addSymbolToChildScope = function(e, n, r, i, s) { if (e && e.offset !== -1) { var a = this.addScope(e); - a && a.addSymbol(new Tn(r, i, n, s)); + a && a.addSymbol(new Vn(r, i, n, s)); } }, t.prototype.visitNode = function(e) { switch (e.type) { @@ -11181,7 +11152,7 @@ var wu = function() { if (n) for (var r = 0, i = e.getSelectors().getChildren(); r < i.length; r++) { var s = i[r]; - s instanceof Fn && s.getChildren().length === 1 && n.addSymbol(new Tn(s.getChild(0).getText(), void 0, s, Y.Rule)); + s instanceof An && s.getChildren().length === 1 && n.addSymbol(new Vn(s.getChild(0).getText(), void 0, s, Y.Rule)); } return !0; }, t.prototype.visitVariableDeclarationNode = function(e) { @@ -11198,11 +11169,11 @@ var wu = function() { var n = e.getValue() ? e.getValue().getText() : ""; return this.addCSSVariable(e.getProperty(), e.getProperty().getName(), n, Y.Variable), !0; }, t.prototype.addCSSVariable = function(e, n, r, i) { - e.offset !== -1 && this.scope.addSymbol(new Tn(n, r, e, i)); + e.offset !== -1 && this.scope.addSymbol(new Vn(n, r, e, i)); }, t; -}(), fi = function() { +}(), gi = function() { function t(e) { - this.global = new xu(), e.acceptVisitor(new Su(this.global)); + this.global = new vu(), e.acceptVisitor(new yu(this.global)); } return t.prototype.findSymbolsAtOffset = function(e, n) { for (var r = this.global.findScope(e, 0), i = [], s = {}; r; ) { @@ -11215,7 +11186,7 @@ var wu = function() { return i; }, t.prototype.internalFindSymbol = function(e, n) { var r = e; - if (e.parent instanceof pr && e.parent.getParent() instanceof ae && (r = e.parent.getParent().getDeclarations()), e.parent instanceof Gt && e.parent.getParent() instanceof Rn) { + if (e.parent instanceof pr && e.parent.getParent() instanceof ce && (r = e.parent.getParent().getDeclarations()), e.parent instanceof Gt && e.parent.getParent() instanceof Mn) { var i = e.parent.getParent().getIdentifier(); if (i) { var s = this.internalFindSymbol(i, [Y.Function]); @@ -11234,19 +11205,19 @@ var wu = function() { } return null; }, t.prototype.evaluateReferenceTypes = function(e) { - if (e instanceof Oe) { + if (e instanceof Ue) { var n = e.referenceTypes; if (n) return n; if (e.isCustomProperty) return [Y.Variable]; - var r = xd(e); + var r = vd(e); if (r) { var i = r.getNonPrefixedPropertyName(); if ((i === "animation" || i === "animation-name") && r.getValue() && r.getValue().offset === e.offset) return [Y.Keyframe]; } - } else if (e instanceof Ti) + } else if (e instanceof Ui) return [Y.Variable]; var s = e.findAParent(v.Selector, v.ExtendsReference); return s ? [Y.Rule] : null; @@ -11278,15 +11249,15 @@ var wu = function() { } return null; }, t; -}(), Ll; -Ll = (() => { +}(), Pl; +Pl = (() => { var t = { 470: (r) => { function i(o) { if (typeof o != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(o)); } function s(o, l) { - for (var c, h = "", u = 0, f = -1, m = 0, g = 0; g <= o.length; ++g) { + for (var c, h = "", u = 0, m = -1, f = 0, g = 0; g <= o.length; ++g) { if (g < o.length) c = o.charCodeAt(g); else { @@ -11295,26 +11266,26 @@ Ll = (() => { c = 47; } if (c === 47) { - if (!(f === g - 1 || m === 1)) - if (f !== g - 1 && m === 2) { + if (!(m === g - 1 || f === 1)) + if (m !== g - 1 && f === 2) { if (h.length < 2 || u !== 2 || h.charCodeAt(h.length - 1) !== 46 || h.charCodeAt(h.length - 2) !== 46) { if (h.length > 2) { var b = h.lastIndexOf("/"); if (b !== h.length - 1) { - b === -1 ? (h = "", u = 0) : u = (h = h.slice(0, b)).length - 1 - h.lastIndexOf("/"), f = g, m = 0; + b === -1 ? (h = "", u = 0) : u = (h = h.slice(0, b)).length - 1 - h.lastIndexOf("/"), m = g, f = 0; continue; } } else if (h.length === 2 || h.length === 1) { - h = "", u = 0, f = g, m = 0; + h = "", u = 0, m = g, f = 0; continue; } } l && (h.length > 0 ? h += "/.." : h = "..", u = 2); } else - h.length > 0 ? h += "/" + o.slice(f + 1, g) : h = o.slice(f + 1, g), u = g - f - 1; - f = g, m = 0; + h.length > 0 ? h += "/" + o.slice(m + 1, g) : h = o.slice(m + 1, g), u = g - m - 1; + m = g, f = 0; } else - c === 46 && m !== -1 ? ++m : m = -1; + c === 46 && f !== -1 ? ++f : f = -1; } return h; } @@ -11344,37 +11315,37 @@ Ll = (() => { return ""; for (var c = 1; c < o.length && o.charCodeAt(c) === 47; ++c) ; - for (var h = o.length, u = h - c, f = 1; f < l.length && l.charCodeAt(f) === 47; ++f) + for (var h = o.length, u = h - c, m = 1; m < l.length && l.charCodeAt(m) === 47; ++m) ; - for (var m = l.length - f, g = u < m ? u : m, b = -1, y = 0; y <= g; ++y) { + for (var f = l.length - m, g = u < f ? u : f, b = -1, y = 0; y <= g; ++y) { if (y === g) { - if (m > g) { - if (l.charCodeAt(f + y) === 47) - return l.slice(f + y + 1); + if (f > g) { + if (l.charCodeAt(m + y) === 47) + return l.slice(m + y + 1); if (y === 0) - return l.slice(f + y); + return l.slice(m + y); } else u > g && (o.charCodeAt(c + y) === 47 ? b = y : y === 0 && (b = 0)); break; } var w = o.charCodeAt(c + y); - if (w !== l.charCodeAt(f + y)) + if (w !== l.charCodeAt(m + y)) break; w === 47 && (b = y); } var x = ""; for (y = c + b + 1; y <= h; ++y) y !== h && o.charCodeAt(y) !== 47 || (x.length === 0 ? x += ".." : x += "/.."); - return x.length > 0 ? x + l.slice(f + b) : (f += b, l.charCodeAt(f) === 47 && ++f, l.slice(f)); + return x.length > 0 ? x + l.slice(m + b) : (m += b, l.charCodeAt(m) === 47 && ++m, l.slice(m)); }, _makeLong: function(o) { return o; }, dirname: function(o) { if (i(o), o.length === 0) return "."; - for (var l = o.charCodeAt(0), c = l === 47, h = -1, u = !0, f = o.length - 1; f >= 1; --f) - if ((l = o.charCodeAt(f)) === 47) { + for (var l = o.charCodeAt(0), c = l === 47, h = -1, u = !0, m = o.length - 1; m >= 1; --m) + if ((l = o.charCodeAt(m)) === 47) { if (!u) { - h = f; + h = m; break; } } else @@ -11384,44 +11355,44 @@ Ll = (() => { if (l !== void 0 && typeof l != "string") throw new TypeError('"ext" argument must be a string'); i(o); - var c, h = 0, u = -1, f = !0; + var c, h = 0, u = -1, m = !0; if (l !== void 0 && l.length > 0 && l.length <= o.length) { if (l.length === o.length && l === o) return ""; - var m = l.length - 1, g = -1; + var f = l.length - 1, g = -1; for (c = o.length - 1; c >= 0; --c) { var b = o.charCodeAt(c); if (b === 47) { - if (!f) { + if (!m) { h = c + 1; break; } } else - g === -1 && (f = !1, g = c + 1), m >= 0 && (b === l.charCodeAt(m) ? --m == -1 && (u = c) : (m = -1, u = g)); + g === -1 && (m = !1, g = c + 1), f >= 0 && (b === l.charCodeAt(f) ? --f == -1 && (u = c) : (f = -1, u = g)); } return h === u ? u = g : u === -1 && (u = o.length), o.slice(h, u); } for (c = o.length - 1; c >= 0; --c) if (o.charCodeAt(c) === 47) { - if (!f) { + if (!m) { h = c + 1; break; } } else - u === -1 && (f = !1, u = c + 1); + u === -1 && (m = !1, u = c + 1); return u === -1 ? "" : o.slice(h, u); }, extname: function(o) { i(o); - for (var l = -1, c = 0, h = -1, u = !0, f = 0, m = o.length - 1; m >= 0; --m) { - var g = o.charCodeAt(m); + for (var l = -1, c = 0, h = -1, u = !0, m = 0, f = o.length - 1; f >= 0; --f) { + var g = o.charCodeAt(f); if (g !== 47) - h === -1 && (u = !1, h = m + 1), g === 46 ? l === -1 ? l = m : f !== 1 && (f = 1) : l !== -1 && (f = -1); + h === -1 && (u = !1, h = f + 1), g === 46 ? l === -1 ? l = f : m !== 1 && (m = 1) : l !== -1 && (m = -1); else if (!u) { - c = m + 1; + c = f + 1; break; } } - return l === -1 || h === -1 || f === 0 || f === 1 && l === h - 1 && l === c + 1 ? "" : o.slice(l, h); + return l === -1 || h === -1 || m === 0 || m === 1 && l === h - 1 && l === c + 1 ? "" : o.slice(l, h); }, format: function(o) { if (o === null || typeof o != "object") throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof o); @@ -11436,199 +11407,199 @@ Ll = (() => { return l; var c, h = o.charCodeAt(0), u = h === 47; u ? (l.root = "/", c = 1) : c = 0; - for (var f = -1, m = 0, g = -1, b = !0, y = o.length - 1, w = 0; y >= c; --y) + for (var m = -1, f = 0, g = -1, b = !0, y = o.length - 1, w = 0; y >= c; --y) if ((h = o.charCodeAt(y)) !== 47) - g === -1 && (b = !1, g = y + 1), h === 46 ? f === -1 ? f = y : w !== 1 && (w = 1) : f !== -1 && (w = -1); + g === -1 && (b = !1, g = y + 1), h === 46 ? m === -1 ? m = y : w !== 1 && (w = 1) : m !== -1 && (w = -1); else if (!b) { - m = y + 1; + f = y + 1; break; } - return f === -1 || g === -1 || w === 0 || w === 1 && f === g - 1 && f === m + 1 ? g !== -1 && (l.base = l.name = m === 0 && u ? o.slice(1, g) : o.slice(m, g)) : (m === 0 && u ? (l.name = o.slice(1, f), l.base = o.slice(1, g)) : (l.name = o.slice(m, f), l.base = o.slice(m, g)), l.ext = o.slice(f, g)), m > 0 ? l.dir = o.slice(0, m - 1) : u && (l.dir = "/"), l; + return m === -1 || g === -1 || w === 0 || w === 1 && m === g - 1 && m === f + 1 ? g !== -1 && (l.base = l.name = f === 0 && u ? o.slice(1, g) : o.slice(f, g)) : (f === 0 && u ? (l.name = o.slice(1, m), l.base = o.slice(1, g)) : (l.name = o.slice(f, m), l.base = o.slice(f, g)), l.ext = o.slice(m, g)), f > 0 ? l.dir = o.slice(0, f - 1) : u && (l.dir = "/"), l; }, sep: "/", delimiter: ":", win32: null, posix: null }; a.posix = a, r.exports = a; }, 447: (r, i, s) => { var a; - if (s.r(i), s.d(i, { URI: () => x, Utils: () => L }), typeof process == "object") + if (s.r(i), s.d(i, { URI: () => x, Utils: () => W }), typeof process == "object") a = process.platform === "win32"; else if (typeof navigator == "object") { var o = navigator.userAgent; a = o.indexOf("Windows") >= 0; } - var l, c, h = (l = function(E, C) { - return (l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(D, I) { - D.__proto__ = I; - } || function(D, I) { - for (var X in I) - Object.prototype.hasOwnProperty.call(I, X) && (D[X] = I[X]); - })(E, C); - }, function(E, C) { + var l, c, h = (l = function(A, C) { + return (l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, L) { + M.__proto__ = L; + } || function(M, L) { + for (var X in L) + Object.prototype.hasOwnProperty.call(L, X) && (M[X] = L[X]); + })(A, C); + }, function(A, C) { if (typeof C != "function" && C !== null) throw new TypeError("Class extends value " + String(C) + " is not a constructor or null"); - function D() { - this.constructor = E; + function M() { + this.constructor = A; } - l(E, C), E.prototype = C === null ? Object.create(C) : (D.prototype = C.prototype, new D()); - }), u = /^\w[\w\d+.-]*$/, f = /^\//, m = /^\/\//; - function g(E, C) { - if (!E.scheme && C) - throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(E.authority, '", path: "').concat(E.path, '", query: "').concat(E.query, '", fragment: "').concat(E.fragment, '"}')); - if (E.scheme && !u.test(E.scheme)) + l(A, C), A.prototype = C === null ? Object.create(C) : (M.prototype = C.prototype, new M()); + }), u = /^\w[\w\d+.-]*$/, m = /^\//, f = /^\/\//; + function g(A, C) { + if (!A.scheme && C) + throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(A.authority, '", path: "').concat(A.path, '", query: "').concat(A.query, '", fragment: "').concat(A.fragment, '"}')); + if (A.scheme && !u.test(A.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); - if (E.path) { - if (E.authority) { - if (!f.test(E.path)) + if (A.path) { + if (A.authority) { + if (!m.test(A.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 (m.test(E.path)) + } else if (f.test(A.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'); } } var b = "", y = "/", w = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, x = function() { - function E(C, D, I, X, G, ee) { - ee === void 0 && (ee = !1), typeof C == "object" ? (this.scheme = C.scheme || b, this.authority = C.authority || b, this.path = C.path || b, this.query = C.query || b, this.fragment = C.fragment || b) : (this.scheme = function(Ie, ke) { - return Ie || ke ? Ie : "file"; - }(C, ee), this.authority = D || b, this.path = function(Ie, ke) { - switch (Ie) { + function A(C, M, L, X, G, ee) { + ee === void 0 && (ee = !1), typeof C == "object" ? (this.scheme = C.scheme || b, this.authority = C.authority || b, this.path = C.path || b, this.query = C.query || b, this.fragment = C.fragment || b) : (this.scheme = function(Le, Ce) { + return Le || Ce ? Le : "file"; + }(C, ee), this.authority = M || b, this.path = function(Le, Ce) { + switch (Le) { case "https": case "http": case "file": - ke ? ke[0] !== y && (ke = y + ke) : ke = y; + Ce ? Ce[0] !== y && (Ce = y + Ce) : Ce = y; } - return ke; - }(this.scheme, I || b), this.query = X || b, this.fragment = G || b, g(this, ee)); + return Ce; + }(this.scheme, L || b), this.query = X || b, this.fragment = G || b, g(this, ee)); } - return E.isUri = function(C) { - return C instanceof E || !!C && typeof C.authority == "string" && typeof C.fragment == "string" && typeof C.path == "string" && typeof C.query == "string" && typeof C.scheme == "string" && typeof C.fsPath == "string" && typeof C.with == "function" && typeof C.toString == "function"; - }, Object.defineProperty(E.prototype, "fsPath", { get: function() { - return B(this, !1); - }, enumerable: !1, configurable: !0 }), E.prototype.with = function(C) { + return A.isUri = function(C) { + return C instanceof A || !!C && typeof C.authority == "string" && typeof C.fragment == "string" && typeof C.path == "string" && typeof C.query == "string" && typeof C.scheme == "string" && typeof C.fsPath == "string" && typeof C.with == "function" && typeof C.toString == "function"; + }, Object.defineProperty(A.prototype, "fsPath", { get: function() { + return T(this, !1); + }, enumerable: !1, configurable: !0 }), A.prototype.with = function(C) { if (!C) return this; - var D = C.scheme, I = C.authority, X = C.path, G = C.query, ee = C.fragment; - return D === void 0 ? D = this.scheme : D === null && (D = b), I === void 0 ? I = this.authority : I === null && (I = b), X === void 0 ? X = this.path : X === null && (X = b), G === void 0 ? G = this.query : G === null && (G = b), ee === void 0 ? ee = this.fragment : ee === null && (ee = b), D === this.scheme && I === this.authority && X === this.path && G === this.query && ee === this.fragment ? this : new F(D, I, X, G, ee); - }, E.parse = function(C, D) { - D === void 0 && (D = !1); - var I = w.exec(C); - return I ? new F(I[2] || b, R(I[4] || b), R(I[5] || b), R(I[7] || b), R(I[9] || b), D) : new F(b, b, b, b, b); - }, E.file = function(C) { - var D = b; + var M = C.scheme, L = C.authority, X = C.path, G = C.query, ee = C.fragment; + return M === void 0 ? M = this.scheme : M === null && (M = b), L === void 0 ? L = this.authority : L === null && (L = b), X === void 0 ? X = this.path : X === null && (X = b), G === void 0 ? G = this.query : G === null && (G = b), ee === void 0 ? ee = this.fragment : ee === null && (ee = b), M === this.scheme && L === this.authority && X === this.path && G === this.query && ee === this.fragment ? this : new P(M, L, X, G, ee); + }, A.parse = function(C, M) { + M === void 0 && (M = !1); + var L = w.exec(C); + return L ? new P(L[2] || b, F(L[4] || b), F(L[5] || b), F(L[7] || b), F(L[9] || b), M) : new P(b, b, b, b, b); + }, A.file = function(C) { + var M = b; if (a && (C = C.replace(/\\/g, y)), C[0] === y && C[1] === y) { - var I = C.indexOf(y, 2); - I === -1 ? (D = C.substring(2), C = y) : (D = C.substring(2, I), C = C.substring(I) || y); + var L = C.indexOf(y, 2); + L === -1 ? (M = C.substring(2), C = y) : (M = C.substring(2, L), C = C.substring(L) || y); } - return new F("file", D, C, b, b); - }, E.from = function(C) { - var D = new F(C.scheme, C.authority, C.path, C.query, C.fragment); - return g(D, !0), D; - }, E.prototype.toString = function(C) { - return C === void 0 && (C = !1), P(this, C); - }, E.prototype.toJSON = function() { + return new P("file", M, C, b, b); + }, A.from = function(C) { + var M = new P(C.scheme, C.authority, C.path, C.query, C.fragment); + return g(M, !0), M; + }, A.prototype.toString = function(C) { + return C === void 0 && (C = !1), D(this, C); + }, A.prototype.toJSON = function() { return this; - }, E.revive = function(C) { + }, A.revive = function(C) { if (C) { - if (C instanceof E) + if (C instanceof A) return C; - var D = new F(C); - return D._formatted = C.external, D._fsPath = C._sep === k ? C.fsPath : null, D; + var M = new P(C); + return M._formatted = C.external, M._fsPath = C._sep === k ? C.fsPath : null, M; } return C; - }, E; - }(), k = a ? 1 : void 0, F = function(E) { + }, A; + }(), k = a ? 1 : void 0, P = function(A) { function C() { - var D = E !== null && E.apply(this, arguments) || this; - return D._formatted = null, D._fsPath = null, D; + var M = A !== null && A.apply(this, arguments) || this; + return M._formatted = null, M._fsPath = null, M; } - return h(C, E), Object.defineProperty(C.prototype, "fsPath", { get: function() { - return this._fsPath || (this._fsPath = B(this, !1)), this._fsPath; - }, enumerable: !1, configurable: !0 }), C.prototype.toString = function(D) { - return D === void 0 && (D = !1), D ? P(this, !0) : (this._formatted || (this._formatted = P(this, !1)), this._formatted); + return h(C, A), Object.defineProperty(C.prototype, "fsPath", { get: function() { + return this._fsPath || (this._fsPath = T(this, !1)), this._fsPath; + }, enumerable: !1, configurable: !0 }), C.prototype.toString = function(M) { + return M === void 0 && (M = !1), M ? D(this, !0) : (this._formatted || (this._formatted = D(this, !1)), this._formatted); }, C.prototype.toJSON = function() { - var D = { $mid: 1 }; - return this._fsPath && (D.fsPath = this._fsPath, D._sep = k), this._formatted && (D.external = this._formatted), this.path && (D.path = this.path), this.scheme && (D.scheme = this.scheme), this.authority && (D.authority = this.authority), this.query && (D.query = this.query), this.fragment && (D.fragment = this.fragment), D; + var M = { $mid: 1 }; + return this._fsPath && (M.fsPath = this._fsPath, M._sep = k), this._formatted && (M.external = this._formatted), this.path && (M.path = this.path), this.scheme && (M.scheme = this.scheme), this.authority && (M.authority = this.authority), this.query && (M.query = this.query), this.fragment && (M.fragment = this.fragment), M; }, C; }(x), N = ((c = {})[58] = "%3A", c[47] = "%2F", c[63] = "%3F", c[35] = "%23", c[91] = "%5B", c[93] = "%5D", c[64] = "%40", c[33] = "%21", c[36] = "%24", c[38] = "%26", c[39] = "%27", c[40] = "%28", c[41] = "%29", c[42] = "%2A", c[43] = "%2B", c[44] = "%2C", c[59] = "%3B", c[61] = "%3D", c[32] = "%20", c); - function j(E, C) { - for (var D = void 0, I = -1, X = 0; X < E.length; X++) { - var G = E.charCodeAt(X); + function V(A, C) { + for (var M = void 0, L = -1, X = 0; X < A.length; X++) { + var G = A.charCodeAt(X); if (G >= 97 && G <= 122 || G >= 65 && G <= 90 || G >= 48 && G <= 57 || G === 45 || G === 46 || G === 95 || G === 126 || C && G === 47) - I !== -1 && (D += encodeURIComponent(E.substring(I, X)), I = -1), D !== void 0 && (D += E.charAt(X)); + L !== -1 && (M += encodeURIComponent(A.substring(L, X)), L = -1), M !== void 0 && (M += A.charAt(X)); else { - D === void 0 && (D = E.substr(0, X)); + M === void 0 && (M = A.substr(0, X)); var ee = N[G]; - ee !== void 0 ? (I !== -1 && (D += encodeURIComponent(E.substring(I, X)), I = -1), D += ee) : I === -1 && (I = X); + ee !== void 0 ? (L !== -1 && (M += encodeURIComponent(A.substring(L, X)), L = -1), M += ee) : L === -1 && (L = X); } } - return I !== -1 && (D += encodeURIComponent(E.substring(I))), D !== void 0 ? D : E; + return L !== -1 && (M += encodeURIComponent(A.substring(L))), M !== void 0 ? M : A; } - function H(E) { - for (var C = void 0, D = 0; D < E.length; D++) { - var I = E.charCodeAt(D); - I === 35 || I === 63 ? (C === void 0 && (C = E.substr(0, D)), C += N[I]) : C !== void 0 && (C += E[D]); + function I(A) { + for (var C = void 0, M = 0; M < A.length; M++) { + var L = A.charCodeAt(M); + L === 35 || L === 63 ? (C === void 0 && (C = A.substr(0, M)), C += N[L]) : C !== void 0 && (C += A[M]); } - return C !== void 0 ? C : E; + return C !== void 0 ? C : A; } - function B(E, C) { - var D; - return D = E.authority && E.path.length > 1 && E.scheme === "file" ? "//".concat(E.authority).concat(E.path) : E.path.charCodeAt(0) === 47 && (E.path.charCodeAt(1) >= 65 && E.path.charCodeAt(1) <= 90 || E.path.charCodeAt(1) >= 97 && E.path.charCodeAt(1) <= 122) && E.path.charCodeAt(2) === 58 ? C ? E.path.substr(1) : E.path[1].toLowerCase() + E.path.substr(2) : E.path, a && (D = D.replace(/\//g, "\\")), D; + function T(A, C) { + var M; + return M = A.authority && A.path.length > 1 && A.scheme === "file" ? "//".concat(A.authority).concat(A.path) : A.path.charCodeAt(0) === 47 && (A.path.charCodeAt(1) >= 65 && A.path.charCodeAt(1) <= 90 || A.path.charCodeAt(1) >= 97 && A.path.charCodeAt(1) <= 122) && A.path.charCodeAt(2) === 58 ? C ? A.path.substr(1) : A.path[1].toLowerCase() + A.path.substr(2) : A.path, a && (M = M.replace(/\//g, "\\")), M; } - function P(E, C) { - var D = C ? H : j, I = "", X = E.scheme, G = E.authority, ee = E.path, Ie = E.query, ke = E.fragment; - if (X && (I += X, I += ":"), (G || X === "file") && (I += y, I += y), G) { + function D(A, C) { + var M = C ? I : V, L = "", X = A.scheme, G = A.authority, ee = A.path, Le = A.query, Ce = A.fragment; + if (X && (L += X, L += ":"), (G || X === "file") && (L += y, L += y), G) { var Me = G.indexOf("@"); if (Me !== -1) { var wt = G.substr(0, Me); - G = G.substr(Me + 1), (Me = wt.indexOf(":")) === -1 ? I += D(wt, !1) : (I += D(wt.substr(0, Me), !1), I += ":", I += D(wt.substr(Me + 1), !1)), I += "@"; + G = G.substr(Me + 1), (Me = wt.indexOf(":")) === -1 ? L += M(wt, !1) : (L += M(wt.substr(0, Me), !1), L += ":", L += M(wt.substr(Me + 1), !1)), L += "@"; } - (Me = (G = G.toLowerCase()).indexOf(":")) === -1 ? I += D(G, !1) : (I += D(G.substr(0, Me), !1), I += G.substr(Me)); + (Me = (G = G.toLowerCase()).indexOf(":")) === -1 ? L += M(G, !1) : (L += M(G.substr(0, Me), !1), L += G.substr(Me)); } if (ee) { if (ee.length >= 3 && ee.charCodeAt(0) === 47 && ee.charCodeAt(2) === 58) - (tt = ee.charCodeAt(1)) >= 65 && tt <= 90 && (ee = "/".concat(String.fromCharCode(tt + 32), ":").concat(ee.substr(3))); + (et = ee.charCodeAt(1)) >= 65 && et <= 90 && (ee = "/".concat(String.fromCharCode(et + 32), ":").concat(ee.substr(3))); else if (ee.length >= 2 && ee.charCodeAt(1) === 58) { - var tt; - (tt = ee.charCodeAt(0)) >= 65 && tt <= 90 && (ee = "".concat(String.fromCharCode(tt + 32), ":").concat(ee.substr(2))); + var et; + (et = ee.charCodeAt(0)) >= 65 && et <= 90 && (ee = "".concat(String.fromCharCode(et + 32), ":").concat(ee.substr(2))); } - I += D(ee, !0); + L += M(ee, !0); } - return Ie && (I += "?", I += D(Ie, !1)), ke && (I += "#", I += C ? ke : j(ke, !1)), I; + return Le && (L += "?", L += M(Le, !1)), Ce && (L += "#", L += C ? Ce : V(Ce, !1)), L; } - function z(E) { + function E(A) { try { - return decodeURIComponent(E); + return decodeURIComponent(A); } catch { - return E.length > 3 ? E.substr(0, 3) + z(E.substr(3)) : E; + return A.length > 3 ? A.substr(0, 3) + E(A.substr(3)) : A; } } - var A = /(%[0-9A-Za-z][0-9A-Za-z])+/g; - function R(E) { - return E.match(A) ? E.replace(A, function(C) { - return z(C); - }) : E; + var R = /(%[0-9A-Za-z][0-9A-Za-z])+/g; + function F(A) { + return A.match(R) ? A.replace(R, function(C) { + return E(C); + }) : A; } - var L, O = s(470), K = function(E, C, D) { - if (D || arguments.length === 2) - for (var I, X = 0, G = C.length; X < G; X++) - !I && X in C || (I || (I = Array.prototype.slice.call(C, 0, X)), I[X] = C[X]); - return E.concat(I || Array.prototype.slice.call(C)); - }, re = O.posix || O; - (function(E) { - E.joinPath = function(C) { - for (var D = [], I = 1; I < arguments.length; I++) - D[I - 1] = arguments[I]; - return C.with({ path: re.join.apply(re, K([C.path], D, !1)) }); - }, E.resolvePath = function(C) { - for (var D = [], I = 1; I < arguments.length; I++) - D[I - 1] = arguments[I]; + var W, B = s(470), K = function(A, C, M) { + if (M || arguments.length === 2) + for (var L, X = 0, G = C.length; X < G; X++) + !L && X in C || (L || (L = Array.prototype.slice.call(C, 0, X)), L[X] = C[X]); + return A.concat(L || Array.prototype.slice.call(C)); + }, ie = B.posix || B; + (function(A) { + A.joinPath = function(C) { + for (var M = [], L = 1; L < arguments.length; L++) + M[L - 1] = arguments[L]; + return C.with({ path: ie.join.apply(ie, K([C.path], M, !1)) }); + }, A.resolvePath = function(C) { + for (var M = [], L = 1; L < arguments.length; L++) + M[L - 1] = arguments[L]; var X = C.path || "/"; - return C.with({ path: re.resolve.apply(re, K([X], D, !1)) }); - }, E.dirname = function(C) { - var D = re.dirname(C.path); - return D.length === 1 && D.charCodeAt(0) === 46 ? C : C.with({ path: D }); - }, E.basename = function(C) { - return re.basename(C.path); - }, E.extname = function(C) { - return re.extname(C.path); + return C.with({ path: ie.resolve.apply(ie, K([X], M, !1)) }); + }, A.dirname = function(C) { + var M = ie.dirname(C.path); + return M.length === 1 && M.charCodeAt(0) === 46 ? C : C.with({ path: M }); + }, A.basename = function(C) { + return ie.basename(C.path); + }, A.extname = function(C) { + return ie.extname(C.path); }; - })(L || (L = {})); + })(W || (W = {})); } }, e = {}; function n(r) { if (e[r]) @@ -11643,19 +11614,19 @@ Ll = (() => { typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(r, "__esModule", { value: !0 }); }, n(447); })(); -var { URI: Oi, Utils: mi } = Ll, Cu = function(t, e, n) { +var { URI: Bi, Utils: bi } = Pl, wu = function(t, e, n) { if (n || arguments.length === 2) for (var r = 0, i = e.length, s; r < i; r++) (s || !(r in e)) && (s || (s = Array.prototype.slice.call(e, 0, r)), s[r] = e[r]); return t.concat(s || Array.prototype.slice.call(e)); }; -function Fr(t) { - return mi.dirname(Oi.parse(t)).toString(); +function Er(t) { + return bi.dirname(Bi.parse(t)).toString(); } -function gi(t) { +function vi(t) { for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; - return mi.joinPath.apply(mi, Cu([Oi.parse(t)], e, !1)).toString(); + return bi.joinPath.apply(bi, wu([Bi.parse(t)], e, !1)).toString(); } var Ro = function(t, e, n, r) { function i(s) { @@ -11747,7 +11718,7 @@ var Ro = function(t, e, n, r) { throw c[1]; return { value: c[0] ? c[1] : void 0, done: !0 }; } -}, ku = function() { +}, xu = function() { function t(e) { this.readDirectory = e, this.literalCompletions = [], this.importCompletions = []; } @@ -11757,33 +11728,33 @@ var Ro = function(t, e, n, r) { this.importCompletions.push(e); }, t.prototype.computeCompletions = function(e, n) { return Ro(this, void 0, void 0, function() { - var r, i, s, a, o, b, l, c, h, k, u, f, m, g, b, y, w, x, k; - return Eo(this, function(F) { - switch (F.label) { + var r, i, s, a, o, b, l, c, h, k, u, m, f, g, b, y, w, x, k; + return Eo(this, function(P) { + switch (P.label) { case 0: - r = { items: [], isIncomplete: !1 }, i = 0, s = this.literalCompletions, F.label = 1; + r = { items: [], isIncomplete: !1 }, i = 0, s = this.literalCompletions, P.label = 1; case 1: - return i < s.length ? (a = s[i], o = a.uriValue, b = Rr(o), b === "." || b === ".." ? (r.isIncomplete = !0, [3, 4]) : [3, 2]) : [3, 5]; + return i < s.length ? (a = s[i], o = a.uriValue, b = Dr(o), b === "." || b === ".." ? (r.isIncomplete = !0, [3, 4]) : [3, 2]) : [3, 5]; case 2: return [4, this.providePathSuggestions(o, a.position, a.range, e, n)]; case 3: - for (l = F.sent(), c = 0, h = l; c < h.length; c++) + for (l = P.sent(), c = 0, h = l; c < h.length; c++) k = h[c], r.items.push(k); - F.label = 4; + P.label = 4; case 4: return i++, [3, 1]; case 5: - u = 0, f = this.importCompletions, F.label = 6; + u = 0, m = this.importCompletions, P.label = 6; case 6: - return u < f.length ? (m = f[u], g = m.pathValue, b = Rr(g), b === "." || b === ".." ? (r.isIncomplete = !0, [3, 9]) : [3, 7]) : [3, 10]; + return u < m.length ? (f = m[u], g = f.pathValue, b = Dr(g), b === "." || b === ".." ? (r.isIncomplete = !0, [3, 9]) : [3, 7]) : [3, 10]; case 7: - return [4, this.providePathSuggestions(g, m.position, m.range, e, n)]; + return [4, this.providePathSuggestions(g, f.position, f.range, e, n)]; case 8: - for (y = F.sent(), e.languageId === "scss" && y.forEach(function(N) { - fe(N.label, "_") && vl(N.label, ".scss") && (N.textEdit ? N.textEdit.newText = N.label.slice(1, -5) : N.label = N.label.slice(1, -5)); + for (y = P.sent(), e.languageId === "scss" && y.forEach(function(N) { + fe(N.label, "_") && gl(N.label, ".scss") && (N.textEdit ? N.textEdit.newText = N.label.slice(1, -5) : N.label = N.label.slice(1, -5)); }), w = 0, x = y; w < x.length; w++) k = x[w], r.items.push(k); - F.label = 9; + P.label = 9; case 9: return u++, [3, 6]; case 10: @@ -11793,18 +11764,18 @@ var Ro = function(t, e, n, r) { }); }, t.prototype.providePathSuggestions = function(e, n, r, i, s) { return Ro(this, void 0, void 0, function() { - var a, o, l, c, h, u, f, m, g, b, y, w, x, k, F; + var a, o, l, c, h, u, m, f, g, b, y, w, x, k, P; return Eo(this, function(N) { switch (N.label) { case 0: - if (a = Rr(e), o = fe(e, "'") || fe(e, '"'), l = o ? a.slice(0, n.character - (r.start.character + 1)) : a.slice(0, n.character - r.start.character), c = i.uri, h = o ? Eu(r, 1, -1) : r, u = Fu(l, a, h), f = l.substring(0, l.lastIndexOf("/") + 1), m = s.resolveReference(f || ".", c), !m) + if (a = Dr(e), o = fe(e, "'") || fe(e, '"'), l = o ? a.slice(0, n.character - (r.start.character + 1)) : a.slice(0, n.character - r.start.character), c = i.uri, h = o ? _u(r, 1, -1) : r, u = Cu(l, a, h), m = l.substring(0, l.lastIndexOf("/") + 1), f = s.resolveReference(m || ".", c), !f) return [3, 4]; N.label = 1; case 1: - return N.trys.push([1, 3, , 4]), g = [], [4, this.readDirectory(m)]; + return N.trys.push([1, 3, , 4]), g = [], [4, this.readDirectory(f)]; case 2: for (b = N.sent(), y = 0, w = b; y < w.length; y++) - x = w[y], k = x[0], F = x[1], k.charCodeAt(0) !== _u && (F === Sn.Directory || gi(m, k) !== c) && g.push(Ru(k, F === Sn.Directory, u)); + x = w[y], k = x[0], P = x[1], k.charCodeAt(0) !== Su && (P === Fn.Directory || vi(f, k) !== c) && g.push(ku(k, P === Fn.Directory, u)); return [2, g]; case 3: return N.sent(), [3, 4]; @@ -11814,46 +11785,46 @@ var Ro = function(t, e, n, r) { }); }); }, t; -}(), _u = ".".charCodeAt(0); -function Rr(t) { +}(), Su = ".".charCodeAt(0); +function Dr(t) { return fe(t, "'") || fe(t, '"') ? t.slice(1, -1) : t; } -function Fu(t, e, n) { +function Cu(t, e, n) { var r, i = t.lastIndexOf("/"); if (i === -1) r = n; else { - var s = e.slice(i + 1), a = lr(n.end, -s.length), o = s.indexOf(" "), l = void 0; - o !== -1 ? l = lr(a, o) : l = n.end, r = te.create(a, l); + var s = e.slice(i + 1), a = cr(n.end, -s.length), o = s.indexOf(" "), l = void 0; + o !== -1 ? l = cr(a, o) : l = n.end, r = ne.create(a, l); } return r; } -function Ru(t, e, n) { +function ku(t, e, n) { return e ? (t = t + "/", { - label: Wn(t), - kind: q.Folder, - textEdit: $.replace(n, Wn(t)), + label: Bn(t), + kind: $.Folder, + textEdit: H.replace(n, Bn(t)), command: { title: "Suggest", command: "editor.action.triggerSuggest" } }) : { - label: Wn(t), - kind: q.File, - textEdit: $.replace(n, Wn(t)) + label: Bn(t), + kind: $.File, + textEdit: H.replace(n, Bn(t)) }; } -function Wn(t) { +function Bn(t) { return t.replace(/(\s|\(|\)|,|"|')/g, "\\$1"); } -function lr(t, e) { - return Fe.create(t.line, t.character + e); +function cr(t, e) { + return _e.create(t.line, t.character + e); } -function Eu(t, e, n) { - var r = lr(t.start, e), i = lr(t.end, n); - return te.create(r, i); +function _u(t, e, n) { + var r = cr(t.start, e), i = cr(t.end, n); + return ne.create(r, i); } -var Du = function(t, e, n, r) { +var Fu = function(t, e, n, r) { function i(s) { return s instanceof n ? s : new n(function(a) { a(s); @@ -11879,7 +11850,7 @@ var Du = function(t, e, n, r) { } c((r = r.apply(t, e || [])).next()); }); -}, Au = function(t, e) { +}, Ru = function(t, e) { var n = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; @@ -11943,32 +11914,32 @@ var Du = function(t, e, n, r) { throw c[1]; return { value: c[0] ? c[1] : void 0, done: !0 }; } -}, Mu = Je(), nt = ze.Snippet, Do = { +}, Eu = Ge(), tt = ze.Snippet, Do = { title: "Suggest", command: "editor.action.triggerSuggest" -}, Ye; +}, Je; (function(t) { t.Enums = " ", t.Normal = "d", t.VendorPrefixed = "x", t.Term = "y", t.Variable = "z"; -})(Ye || (Ye = {})); -var Ui = function() { +})(Je || (Je = {})); +var ji = function() { function t(e, n, r) { e === void 0 && (e = null), this.variablePrefix = e, this.lsOptions = n, this.cssDataManager = r, this.completionParticipants = []; } return t.prototype.configure = function(e) { this.defaultSettings = e; }, t.prototype.getSymbolContext = function() { - return this.symbolContext || (this.symbolContext = new fi(this.styleSheet)), this.symbolContext; + return this.symbolContext || (this.symbolContext = new gi(this.styleSheet)), this.symbolContext; }, t.prototype.setCompletionParticipants = function(e) { this.completionParticipants = e || []; }, t.prototype.doComplete2 = function(e, n, r, i, s) { - return s === void 0 && (s = this.defaultSettings), Du(this, void 0, void 0, function() { + return s === void 0 && (s = this.defaultSettings), Fu(this, void 0, void 0, function() { var a, o, l, c; - return Au(this, function(h) { + return Ru(this, function(h) { switch (h.label) { case 0: if (!this.lsOptions.fileSystemProvider || !this.lsOptions.fileSystemProvider.readDirectory) return [2, this.doComplete(e, n, r, s)]; - a = new ku(this.lsOptions.fileSystemProvider.readDirectory), o = this.completionParticipants, this.completionParticipants = [a].concat(o), l = this.doComplete(e, n, r, s), h.label = 1; + a = new xu(this.lsOptions.fileSystemProvider.readDirectory), o = this.completionParticipants, this.completionParticipants = [a].concat(o), l = this.doComplete(e, n, r, s), h.label = 1; case 1: return h.trys.push([1, , 3, 4]), [4, a.computeCompletions(e, i)]; case 2: @@ -11984,16 +11955,16 @@ var Ui = function() { }); }); }, t.prototype.doComplete = function(e, n, r, i) { - this.offset = e.offsetAt(n), this.position = n, this.currentWord = Iu(e, this.offset), this.defaultReplaceRange = te.create(Fe.create(this.position.line, this.position.character - this.currentWord.length), this.position), this.textDocument = e, this.styleSheet = r, this.documentSettings = i; + this.offset = e.offsetAt(n), this.position = n, this.currentWord = Nu(e, this.offset), this.defaultReplaceRange = ne.create(_e.create(this.position.line, this.position.character - this.currentWord.length), this.position), this.textDocument = e, this.styleSheet = r, this.documentSettings = i; try { var s = { isIncomplete: !1, items: [] }; - this.nodePath = Di(this.styleSheet, this.offset); + this.nodePath = Ni(this.styleSheet, this.offset); for (var a = this.nodePath.length - 1; a >= 0; a--) { var o = this.nodePath[a]; - if (o instanceof Ni) + if (o instanceof Li) this.getCompletionsForDeclarationProperty(o.getParent(), s); - else if (o instanceof _l) - o.parent instanceof ii ? this.getVariableProposals(null, s) : this.getCompletionsForExpression(o, s); + else if (o instanceof Cl) + o.parent instanceof ai ? this.getVariableProposals(null, s) : this.getCompletionsForExpression(o, s); else if (o instanceof jt) { var l = o.findAParent(v.ExtendsReference, v.Ruleset); if (l) @@ -12005,25 +11976,25 @@ var Ui = function() { } } else if (o instanceof Gt) this.getCompletionsForFunctionArgument(o, o.getParent(), s); - else if (o instanceof Ai) + else if (o instanceof zi) this.getCompletionsForDeclarations(o, s); else if (o instanceof fr) this.getCompletionsForVariableDeclaration(o, s); else if (o instanceof Bt) this.getCompletionsForRuleSet(o, s); - else if (o instanceof ii) + else if (o instanceof ai) this.getCompletionsForInterpolation(o, s); - else if (o instanceof Qn) - this.getCompletionsForFunctionDeclaration(o, s); else if (o instanceof Zn) + this.getCompletionsForFunctionDeclaration(o, s); + else if (o instanceof er) this.getCompletionsForMixinReference(o, s); - else if (o instanceof Rn) + else if (o instanceof Mn) this.getCompletionsForFunctionArgument(null, o, s); - else if (o instanceof ri) + else if (o instanceof si) this.getCompletionsForSupports(o, s); - else if (o instanceof un) + else if (o instanceof pn) this.getCompletionsForSupportsCondition(o, s); - else if (o instanceof mn) + else if (o instanceof yn) this.getCompletionsForExtendsReference(o, null, s); else if (o.type === v.URILiteral) this.getCompletionForUriLiteralValue(o, s); @@ -12059,18 +12030,18 @@ var Ui = function() { var r = this, i = this.isTriggerPropertyValueCompletionEnabled, s = this.isCompletePropertyWithSemicolonEnabled, a = this.cssDataManager.getProperties(); return a.forEach(function(o) { var l, c, h = !1; - e ? (l = r.getCompletionRange(e.getProperty()), c = o.name, Te(e.colonPosition) || (c += ": ", h = !0)) : (l = r.getCompletionRange(null), c = o.name + ": ", h = !0), !e && s && (c += "$0;"), e && !e.semicolonPosition && s && r.offset >= r.textDocument.offsetAt(l.end) && (c += "$0;"); + e ? (l = r.getCompletionRange(e.getProperty()), c = o.name, We(e.colonPosition) || (c += ": ", h = !0)) : (l = r.getCompletionRange(null), c = o.name + ": ", h = !0), !e && s && (c += "$0;"), e && !e.semicolonPosition && s && r.offset >= r.textDocument.offsetAt(l.end) && (c += "$0;"); var u = { label: o.name, documentation: mt(o, r.doesSupportMarkdown()), - tags: an(o) ? [_t.Deprecated] : [], - textEdit: $.replace(l, c), + tags: on(o) ? [_t.Deprecated] : [], + textEdit: H.replace(l, c), insertTextFormat: ze.Snippet, - kind: q.Property + kind: $.Property }; o.restrictions || (h = !1), i && h && (u.command = Do); - var f = typeof o.relevance == "number" ? Math.min(Math.max(o.relevance, 0), 99) : 50, m = (255 - f).toString(16), g = fe(o.name, "-") ? Ye.VendorPrefixed : Ye.Normal; - u.sortText = g + "_" + m, n.items.push(u); + var m = typeof o.relevance == "number" ? Math.min(Math.max(o.relevance, 0), 99) : 50, f = (255 - m).toString(16), g = fe(o.name, "-") ? Je.VendorPrefixed : Je.Normal; + u.sortText = g + "_" + f, n.items.push(u); }), this.completionParticipants.forEach(function(o) { o.onCssProperty && o.onCssProperty({ propertyName: r.currentWord, @@ -12139,12 +12110,12 @@ var Ui = function() { } this.getValueEnumProposals(s, a, n), this.getCSSWideKeywordProposals(s, a, n), this.getUnitProposals(s, a, n); } else - for (var h = Nu(this.styleSheet, e), u = 0, f = h.getEntries(); u < f.length; u++) { - var m = f[u]; + for (var h = Du(this.styleSheet, e), u = 0, m = h.getEntries(); u < m.length; u++) { + var f = m[u]; n.items.push({ - label: m, - textEdit: $.replace(this.getCompletionRange(a), m), - kind: q.Value + label: f, + textEdit: H.replace(this.getCompletionRange(a), f), + kind: $.Value }); } return this.getVariableProposals(a, n), this.getTermProposals(s, a, n), n; @@ -12152,19 +12123,19 @@ var Ui = function() { if (e.values) for (var i = 0, s = e.values; i < s.length; i++) { var a = s[i], o = a.name, l = void 0; - if (vl(o, ")")) { + if (gl(o, ")")) { var c = o.lastIndexOf("("); - c !== -1 && (o = o.substr(0, c) + "($1)", l = nt); + c !== -1 && (o = o.substr(0, c) + "($1)", l = tt); } - var h = Ye.Enums; - fe(a.name, "-") && (h += Ye.VendorPrefixed); + var h = Je.Enums; + fe(a.name, "-") && (h += Je.VendorPrefixed); var u = { label: a.name, documentation: mt(a, this.doesSupportMarkdown()), - tags: an(e) ? [_t.Deprecated] : [], - textEdit: $.replace(this.getCompletionRange(n), o), + tags: on(e) ? [_t.Deprecated] : [], + textEdit: H.replace(this.getCompletionRange(n), o), sortText: h, - kind: q.Value, + kind: $.Value, insertTextFormat: l }; r.items.push(u); @@ -12175,17 +12146,17 @@ var Ui = function() { r.items.push({ label: i, documentation: xo[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); for (var s in So) { var a = Lt(s); r.items.push({ label: s, documentation: So[s], - textEdit: $.replace(this.getCompletionRange(n), a), - kind: q.Function, - insertTextFormat: nt, + textEdit: H.replace(this.getCompletionRange(n), a), + kind: $.Function, + insertTextFormat: tt, command: fe(s, "var") ? Do : void 0 }); } @@ -12197,30 +12168,30 @@ var Ui = function() { var a = s[i], o = fe(a.name, "--") ? "var(".concat(a.name, ")") : a.name, l = { label: a.name, documentation: a.value ? Ma(a.value) : a.value, - textEdit: $.replace(this.getCompletionRange(e), o), - kind: q.Variable, - sortText: Ye.Variable + textEdit: H.replace(this.getCompletionRange(e), o), + kind: $.Variable, + sortText: Je.Variable }; - if (typeof l.documentation == "string" && Ao(l.documentation) && (l.kind = q.Color), a.node.type === v.FunctionParameter) { + if (typeof l.documentation == "string" && Ao(l.documentation) && (l.kind = $.Color), a.node.type === v.FunctionParameter) { var c = a.node.getParent(); - c.type === v.MixinDeclaration && (l.detail = Mu("completion.argument", "argument from '{0}'", c.getName())); + c.type === v.MixinDeclaration && (l.detail = Eu("completion.argument", "argument from '{0}'", c.getName())); } n.items.push(l); } return n; }, t.prototype.getVariableProposalsForCSSVarFunction = function(e) { - var n = new bi(); - this.styleSheet.acceptVisitor(new Pu(n, this.offset)); + var n = new yi(); + this.styleSheet.acceptVisitor(new Mu(n, this.offset)); for (var r = this.getSymbolContext().findSymbolsAtOffset(this.offset, Y.Variable), i = 0, s = r; i < s.length; i++) { var a = s[i]; if (fe(a.name, "--")) { var o = { label: a.name, documentation: a.value ? Ma(a.value) : a.value, - textEdit: $.replace(this.getCompletionRange(null), a.name), - kind: q.Variable + textEdit: H.replace(this.getCompletionRange(null), a.name), + kind: $.Variable }; - typeof o.documentation == "string" && Ao(o.documentation) && (o.kind = q.Color), e.items.push(o); + typeof o.documentation == "string" && Ao(o.documentation) && (o.kind = $.Color), e.items.push(o); } n.remove(a.name); } @@ -12229,8 +12200,8 @@ var Ui = function() { if (fe(h, "--")) { var o = { label: h, - textEdit: $.replace(this.getCompletionRange(null), h), - kind: q.Variable + textEdit: H.replace(this.getCompletionRange(null), h), + kind: $.Variable }; e.items.push(o); } @@ -12245,14 +12216,14 @@ var Ui = function() { this.currentWord.length === 0 && (r.isIncomplete = !0); if (n && n.parent && n.parent.type === v.Term && (n = n.getParent()), e.restrictions) for (var a = 0, o = e.restrictions; a < o.length; a++) { - var l = o[a], c = zl[l]; + var l = o[a], c = Ml[l]; if (c) for (var h = 0, u = c; h < u.length; h++) { - var f = u[h], m = i + f; + var m = u[h], f = i + m; r.items.push({ - label: m, - textEdit: $.replace(this.getCompletionRange(n), m), - kind: q.Unit + label: f, + textEdit: H.replace(this.getCompletionRange(n), f), + kind: $.Unit }); } } @@ -12261,49 +12232,49 @@ var Ui = function() { if (e && e.offset <= this.offset && this.offset <= e.end) { var n = e.end !== -1 ? this.textDocument.positionAt(e.end) : this.position, r = this.textDocument.positionAt(e.offset); if (r.line === n.line) - return te.create(r, n); + return ne.create(r, n); } return this.defaultReplaceRange; }, t.prototype.getColorProposals = function(e, n, r) { - for (var i in or) + for (var i in lr) r.items.push({ label: i, - documentation: or[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Color + documentation: lr[i], + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Color }); for (var i in uo) r.items.push({ label: i, documentation: uo[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); - var s = new bi(); - this.styleSheet.acceptVisitor(new zu(s, this.offset)); + var s = new yi(); + this.styleSheet.acceptVisitor(new Au(s, this.offset)); for (var a = 0, o = s.getEntries(); a < o.length; a++) { var i = o[a]; r.items.push({ label: i, - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Color + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Color }); } - for (var l = function(m) { + for (var l = function(f) { var g = 1, b = function(w, x) { return "${" + g++ + ":" + x + "}"; - }, y = m.func.replace(/\[?\$(\w+)\]?/g, b); + }, y = f.func.replace(/\[?\$(\w+)\]?/g, b); r.items.push({ - label: m.func.substr(0, m.func.indexOf("(")), - detail: m.func, - documentation: m.desc, - textEdit: $.replace(c.getCompletionRange(n), y), - insertTextFormat: nt, - kind: q.Function + label: f.func.substr(0, f.func.indexOf("(")), + detail: f.func, + documentation: f.desc, + textEdit: H.replace(c.getCompletionRange(n), y), + insertTextFormat: tt, + kind: $.Function }); - }, c = this, h = 0, u = ou; h < u.length; h++) { - var f = u[h]; - l(f); + }, c = this, h = 0, u = iu; h < u.length; h++) { + var m = u[h]; + l(m); } return r; }, t.prototype.getPositionProposals = function(e, n, r) { @@ -12311,8 +12282,8 @@ var Ui = function() { r.items.push({ label: i, documentation: go[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); return r; }, t.prototype.getRepeatStyleProposals = function(e, n, r) { @@ -12320,8 +12291,8 @@ var Ui = function() { r.items.push({ label: i, documentation: bo[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); return r; }, t.prototype.getLineStyleProposals = function(e, n, r) { @@ -12329,17 +12300,17 @@ var Ui = function() { r.items.push({ label: i, documentation: vo[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); return r; }, t.prototype.getLineWidthProposals = function(e, n, r) { - for (var i = 0, s = mu; i < s.length; i++) { + for (var i = 0, s = uu; i < s.length; i++) { var a = s[i]; r.items.push({ label: a, - textEdit: $.replace(this.getCompletionRange(n), a), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), a), + kind: $.Value }); } return r; @@ -12348,8 +12319,8 @@ var Ui = function() { r.items.push({ label: i, documentation: wo[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); return r; }, t.prototype.getBoxProposals = function(e, n, r) { @@ -12357,8 +12328,8 @@ var Ui = function() { r.items.push({ label: i, documentation: yo[i], - textEdit: $.replace(this.getCompletionRange(n), i), - kind: q.Value + textEdit: H.replace(this.getCompletionRange(n), i), + kind: $.Value }); return r; }, t.prototype.getImageProposals = function(e, n, r) { @@ -12367,9 +12338,9 @@ var Ui = function() { r.items.push({ label: i, documentation: Co[i], - textEdit: $.replace(this.getCompletionRange(n), s), - kind: q.Function, - insertTextFormat: i !== s ? nt : void 0 + textEdit: H.replace(this.getCompletionRange(n), s), + kind: $.Function, + insertTextFormat: i !== s ? tt : void 0 }); } return r; @@ -12379,9 +12350,9 @@ var Ui = function() { r.items.push({ label: i, documentation: ko[i], - textEdit: $.replace(this.getCompletionRange(n), s), - kind: q.Function, - insertTextFormat: i !== s ? nt : void 0 + textEdit: H.replace(this.getCompletionRange(n), s), + kind: $.Function, + insertTextFormat: i !== s ? tt : void 0 }); } return r; @@ -12391,24 +12362,24 @@ var Ui = function() { r.items.push({ label: i, documentation: _o[i], - textEdit: $.replace(this.getCompletionRange(n), s), - kind: q.Function, - insertTextFormat: i !== s ? nt : void 0 + textEdit: H.replace(this.getCompletionRange(n), s), + kind: $.Function, + insertTextFormat: i !== s ? tt : void 0 }); } return r; }, t.prototype.getCompletionsForStylesheet = function(e) { var n = this.styleSheet.findFirstChildBeforeOffset(this.offset); - return n ? n instanceof Bt ? this.getCompletionsForRuleSet(n, e) : n instanceof ri ? this.getCompletionsForSupports(n, e) : e : this.getCompletionForTopLevel(e); + return n ? n instanceof Bt ? this.getCompletionsForRuleSet(n, e) : n instanceof si ? this.getCompletionsForSupports(n, e) : e : this.getCompletionForTopLevel(e); }, t.prototype.getCompletionForTopLevel = function(e) { var n = this; return this.cssDataManager.getAtDirectives().forEach(function(r) { e.items.push({ label: r.name, - textEdit: $.replace(n.getCompletionRange(null), r.name), + textEdit: H.replace(n.getCompletionRange(null), r.name), documentation: mt(r, n.doesSupportMarkdown()), - tags: an(r) ? [_t.Deprecated] : [], - kind: q.Keyword + tags: on(r) ? [_t.Deprecated] : [], + kind: $.Keyword }); }), this.getCompletionsForSelector(null, !1, e), e; }, t.prototype.getCompletionsForRuleSet = function(e, n) { @@ -12419,58 +12390,58 @@ var Ui = function() { return s ? this.getCompletionsForSelector(e, e.isNested(), n) : this.getCompletionsForDeclarations(e.getDeclarations(), n); }, t.prototype.getCompletionsForSelector = function(e, n, r) { var i = this, s = this.findInNodePath(v.PseudoSelector, v.IdentifierSelector, v.ClassSelector, v.ElementNameSelector); - !s && this.hasCharacterAtPosition(this.offset - this.currentWord.length - 1, ":") && (this.currentWord = ":" + this.currentWord, this.hasCharacterAtPosition(this.offset - this.currentWord.length - 1, ":") && (this.currentWord = ":" + this.currentWord), this.defaultReplaceRange = te.create(Fe.create(this.position.line, this.position.character - this.currentWord.length), this.position)); + !s && this.hasCharacterAtPosition(this.offset - this.currentWord.length - 1, ":") && (this.currentWord = ":" + this.currentWord, this.hasCharacterAtPosition(this.offset - this.currentWord.length - 1, ":") && (this.currentWord = ":" + this.currentWord), this.defaultReplaceRange = ne.create(_e.create(this.position.line, this.position.character - this.currentWord.length), this.position)); var a = this.cssDataManager.getPseudoClasses(); a.forEach(function(y) { var w = Lt(y.name), x = { label: y.name, - textEdit: $.replace(i.getCompletionRange(s), w), + textEdit: H.replace(i.getCompletionRange(s), w), documentation: mt(y, i.doesSupportMarkdown()), - tags: an(y) ? [_t.Deprecated] : [], - kind: q.Function, - insertTextFormat: y.name !== w ? nt : void 0 + tags: on(y) ? [_t.Deprecated] : [], + kind: $.Function, + insertTextFormat: y.name !== w ? tt : void 0 }; - fe(y.name, ":-") && (x.sortText = Ye.VendorPrefixed), r.items.push(x); + fe(y.name, ":-") && (x.sortText = Je.VendorPrefixed), r.items.push(x); }); var o = this.cssDataManager.getPseudoElements(); if (o.forEach(function(y) { var w = Lt(y.name), x = { label: y.name, - textEdit: $.replace(i.getCompletionRange(s), w), + textEdit: H.replace(i.getCompletionRange(s), w), documentation: mt(y, i.doesSupportMarkdown()), - tags: an(y) ? [_t.Deprecated] : [], - kind: q.Function, - insertTextFormat: y.name !== w ? nt : void 0 + tags: on(y) ? [_t.Deprecated] : [], + kind: $.Function, + insertTextFormat: y.name !== w ? tt : void 0 }; - fe(y.name, "::-") && (x.sortText = Ye.VendorPrefixed), r.items.push(x); + fe(y.name, "::-") && (x.sortText = Je.VendorPrefixed), r.items.push(x); }), !n) { - for (var l = 0, c = gu; l < c.length; l++) { + for (var l = 0, c = pu; l < c.length; l++) { var h = c[l]; r.items.push({ label: h, - textEdit: $.replace(this.getCompletionRange(s), h), - kind: q.Keyword + textEdit: H.replace(this.getCompletionRange(s), h), + kind: $.Keyword }); } - for (var u = 0, f = bu; u < f.length; u++) { - var h = f[u]; + for (var u = 0, m = fu; u < m.length; u++) { + var h = m[u]; r.items.push({ label: h, - textEdit: $.replace(this.getCompletionRange(s), h), - kind: q.Keyword + textEdit: H.replace(this.getCompletionRange(s), h), + kind: $.Keyword }); } } - var m = {}; - m[this.currentWord] = !0; + var f = {}; + f[this.currentWord] = !0; var g = this.textDocument.getText(); if (this.styleSheet.accept(function(y) { if (y.type === v.SimpleSelector && y.length > 0) { var w = g.substr(y.offset, y.length); - return w.charAt(0) === "." && !m[w] && (m[w] = !0, r.items.push({ + return w.charAt(0) === "." && !f[w] && (f[w] = !0, r.items.push({ label: w, - textEdit: $.replace(i.getCompletionRange(s), w), - kind: q.Keyword + textEdit: H.replace(i.getCompletionRange(s), w), + kind: $.Keyword })), !1; } return !0; @@ -12485,19 +12456,19 @@ var Ui = function() { var r = e.findFirstChildBeforeOffset(this.offset); if (!r) return this.getCompletionsForDeclarationProperty(null, n); - if (r instanceof Mi) { + if (r instanceof Pi) { var i = r; - if (!Te(i.colonPosition) || this.offset <= i.colonPosition) + if (!We(i.colonPosition) || this.offset <= i.colonPosition) return this.getCompletionsForDeclarationProperty(i, n); - if (Te(i.semicolonPosition) && i.semicolonPosition < this.offset) + if (We(i.semicolonPosition) && i.semicolonPosition < this.offset) return this.offset === i.semicolonPosition + 1 ? n : this.getCompletionsForDeclarationProperty(null, n); - if (i instanceof Ze) + if (i instanceof Qe) return this.getCompletionsForDeclarationValue(i, n); } else - r instanceof mn ? this.getCompletionsForExtendsReference(r, null, n) : this.currentWord && this.currentWord[0] === "@" ? this.getCompletionsForDeclarationProperty(null, n) : r instanceof Bt && this.getCompletionsForDeclarationProperty(null, n); + r instanceof yn ? this.getCompletionsForExtendsReference(r, null, n) : this.currentWord && this.currentWord[0] === "@" ? this.getCompletionsForDeclarationProperty(null, n) : r instanceof Bt && this.getCompletionsForDeclarationProperty(null, n); return n; }, t.prototype.getCompletionsForVariableDeclaration = function(e, n) { - return this.offset && Te(e.colonPosition) && this.offset > e.colonPosition && this.getVariableProposals(e.getValue(), n), n; + return this.offset && We(e.colonPosition) && this.offset > e.colonPosition && this.getVariableProposals(e.getValue(), n), n; }, t.prototype.getCompletionsForExpression = function(e, n) { var r = e.getParent(); if (r instanceof Gt) @@ -12506,7 +12477,7 @@ var Ui = function() { if (!i) return this.getTermProposals(void 0, null, n), n; var s = e.findChildAtOffset(this.offset, !0); - return s ? s instanceof Li || s instanceof Oe ? this.getCompletionsForDeclarationValue(i, n) : n : this.getCompletionsForDeclarationValue(i, n); + return s ? s instanceof Oi || s instanceof Ue ? this.getCompletionsForDeclarationValue(i, n) : n : this.getCompletionsForDeclarationValue(i, n); }, t.prototype.getCompletionsForFunctionArgument = function(e, n, r) { var i = n.getIdentifier(); return i && i.matches("var") && (!n.getArguments().hasChildren() || n.getArguments().getChild(0) === e) && this.getVariableProposalsForCSSVarFunction(r), r; @@ -12516,7 +12487,7 @@ var Ui = function() { }, t.prototype.getCompletionsForMixinReference = function(e, n) { for (var r = this, i = this.getSymbolContext().findSymbolsAtOffset(this.offset, Y.Mixin), s = 0, a = i; s < a.length; s++) { var o = a[s]; - o.node instanceof gn && n.items.push(this.makeTermProposal(o, o.node.getParameters(), null)); + o.node instanceof wn && n.items.push(this.makeTermProposal(o, o.node.getParameters(), null)); } var l = e.getIdentifier() || null; return this.completionParticipants.forEach(function(c) { @@ -12528,7 +12499,7 @@ var Ui = function() { }, t.prototype.getTermProposals = function(e, n, r) { for (var i = this.getSymbolContext().findSymbolsAtOffset(this.offset, Y.Function), s = 0, a = i; s < a.length; s++) { var o = a[s]; - o.node instanceof Qn && r.items.push(this.makeTermProposal(o, o.node.getParameters(), n)); + o.node instanceof Zn && r.items.push(this.makeTermProposal(o, o.node.getParameters(), n)); } return r; }, t.prototype.makeTermProposal = function(e, n, r) { @@ -12541,25 +12512,25 @@ var Ui = function() { return { label: e.name, detail: e.name + "(" + i.join(", ") + ")", - textEdit: $.replace(this.getCompletionRange(r), s), - insertTextFormat: nt, - kind: q.Function, - sortText: Ye.Term + textEdit: H.replace(this.getCompletionRange(r), s), + insertTextFormat: tt, + kind: $.Function, + sortText: Je.Term }; }, t.prototype.getCompletionsForSupportsCondition = function(e, n) { var r = e.findFirstChildBeforeOffset(this.offset); if (r) { - if (r instanceof Ze) - return !Te(r.colonPosition) || this.offset <= r.colonPosition ? this.getCompletionsForDeclarationProperty(r, n) : this.getCompletionsForDeclarationValue(r, n); - if (r instanceof un) + if (r instanceof Qe) + return !We(r.colonPosition) || this.offset <= r.colonPosition ? this.getCompletionsForDeclarationProperty(r, n) : this.getCompletionsForDeclarationValue(r, n); + if (r instanceof pn) return this.getCompletionsForSupportsCondition(r, n); } - return Te(e.lParent) && this.offset > e.lParent && (!Te(e.rParent) || this.offset <= e.rParent) ? this.getCompletionsForDeclarationProperty(null, n) : n; + return We(e.lParent) && this.offset > e.lParent && (!We(e.rParent) || this.offset <= e.rParent) ? this.getCompletionsForDeclarationProperty(null, n) : n; }, t.prototype.getCompletionsForSupports = function(e, n) { var r = e.getDeclarations(), i = !r || this.offset <= r.offset; if (i) { var s = e.findFirstChildBeforeOffset(this.offset); - return s instanceof un ? this.getCompletionsForSupportsCondition(s, n) : n; + return s instanceof pn ? this.getCompletionsForSupportsCondition(s, n) : n; } return this.getCompletionForTopLevel(n); }, t.prototype.getCompletionsForExtendsReference = function(e, n, r) { @@ -12572,7 +12543,7 @@ var Ui = function() { } else { r = "", i = this.position; var a = this.textDocument.positionAt(e.offset + 4); - s = te.create(a, a); + s = ne.create(a, a); } return this.completionParticipants.forEach(function(l) { l.onCssURILiteralValue && l.onCssURILiteralValue({ @@ -12595,19 +12566,19 @@ var Ui = function() { return e >= 0 && e < r.length && r.charAt(e) === n; }, t.prototype.doesSupportMarkdown = function() { var e, n, r; - if (!Te(this.supportsMarkdown)) { - if (!Te(this.lsOptions.clientCapabilities)) + if (!We(this.supportsMarkdown)) { + if (!We(this.lsOptions.clientCapabilities)) return this.supportsMarkdown = !0, this.supportsMarkdown; var i = (r = (n = (e = this.lsOptions.clientCapabilities.textDocument) === null || e === void 0 ? void 0 : e.completion) === null || n === void 0 ? void 0 : n.completionItem) === null || r === void 0 ? void 0 : r.documentationFormat; - this.supportsMarkdown = Array.isArray(i) && i.indexOf(Ue.Markdown) !== -1; + this.supportsMarkdown = Array.isArray(i) && i.indexOf(Ve.Markdown) !== -1; } return this.supportsMarkdown; }, t; }(); -function an(t) { +function on(t) { return !!(t.status && (t.status === "nonstandard" || t.status === "obsolete")); } -var bi = function() { +var yi = function() { function t() { this.entries = {}; } @@ -12622,17 +12593,17 @@ var bi = function() { function Lt(t) { return t.replace(/\(\)$/, "($1)"); } -function Nu(t, e) { - var n = e.getFullPropertyName(), r = new bi(); +function Du(t, e) { + var n = e.getFullPropertyName(), r = new yi(); function i(o) { - return (o instanceof Oe || o instanceof Li || o instanceof Ii) && r.add(o.getText()), !0; + return (o instanceof Ue || o instanceof Oi || o instanceof Wi) && r.add(o.getText()), !0; } function s(o) { var l = o.getFullPropertyName(); return n === l; } function a(o) { - if (o instanceof Ze && o !== e && s(o)) { + if (o instanceof Qe && o !== e && s(o)) { var l = o.getValue(); l && l.accept(i); } @@ -12640,31 +12611,31 @@ function Nu(t, e) { } return t.accept(a), r; } -var zu = function() { +var Au = function() { function t(e, n) { this.entries = e, this.currentOffset = n; } return t.prototype.visitNode = function(e) { - return (e instanceof Ii || e instanceof Rn && lu(e)) && (this.currentOffset < e.offset || e.end < this.currentOffset) && this.entries.add(e.getText()), !0; + return (e instanceof Wi || e instanceof Mn && su(e)) && (this.currentOffset < e.offset || e.end < this.currentOffset) && this.entries.add(e.getText()), !0; }, t; -}(), Pu = function() { +}(), Mu = function() { function t(e, n) { this.entries = e, this.currentOffset = n; } return t.prototype.visitNode = function(e) { - return e instanceof Oe && e.isCustomProperty && (this.currentOffset < e.offset || e.end < this.currentOffset) && this.entries.add(e.getText()), !0; + return e instanceof Ue && e.isCustomProperty && (this.currentOffset < e.offset || e.end < this.currentOffset) && this.entries.add(e.getText()), !0; }, t; }(); -function Iu(t, e) { +function Nu(t, e) { for (var n = e - 1, r = t.getText(); n >= 0 && ` \r":{[()]},*>+`.indexOf(r.charAt(n)) === -1; ) n--; return r.substring(n + 1, e); } function Ao(t) { - return t.toLowerCase() in or || /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t); + return t.toLowerCase() in lr || /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t); } -var Tl = function() { +var Ll = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -12682,7 +12653,7 @@ var Tl = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), Lu = Je(), Vi = function() { +}(), zu = Ge(), qi = function() { function t() { this.parent = null, this.children = null, this.attributes = null; } @@ -12752,19 +12723,19 @@ var Tl = function() { return e; }, t; }(), Xt = function(t) { - Tl(e, t); + Ll(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } return e; -}(Vi), vi = function(t) { - Tl(e, t); +}(qi), wi = function(t) { + Ll(e, t); function e(n) { var r = t.call(this) || this; return r.addAttr("name", n), r; } return e; -}(Vi), Mo = function() { +}(qi), Mo = function() { function t(e) { this.quote = e, this.result = []; } @@ -12783,7 +12754,7 @@ var Tl = function() { this.result.push(r + n); }, t.prototype.doPrintElement = function(e, n) { var r = e.findAttribute("name"); - if (e instanceof vi || r === "…") { + if (e instanceof wi || r === "…") { this.writeLine(n, r); return; } @@ -12794,12 +12765,12 @@ var Tl = function() { if (o.name !== "name") { i.push(" "), i.push(o.name); var l = o.value; - l && (i.push("="), i.push(st.ensure(l, this.quote))); + l && (i.push("="), i.push(it.ensure(l, this.quote))); } } i.push(">"), this.writeLine(n, i.join("")); }, t; -}(), st; +}(), it; (function(t) { function e(r, i) { return i + n(r) + i; @@ -12810,15 +12781,15 @@ var Tl = function() { return i ? i[1] : r; } t.remove = n; -})(st || (st = {})); +})(it || (it = {})); var No = function() { function t() { this.id = 0, this.attr = 0, this.tag = 0; } return t; }(); -function Wl(t, e) { - for (var n = new Vi(), r = 0, i = t.getChildren(); r < i.length; r++) { +function Il(t, e) { + for (var n = new qi(), r = 0, i = t.getChildren(); r < i.length; r++) { var s = i[r]; switch (s.type) { case v.SelectorCombinator: @@ -12846,71 +12817,71 @@ function Wl(t, e) { return n; case v.ElementNameSelector: var h = s.getText(); - n.addAttr("name", h === "*" ? "element" : Le(h)); + n.addAttr("name", h === "*" ? "element" : Ie(h)); break; case v.ClassSelector: - n.addAttr("class", Le(s.getText().substring(1))); + n.addAttr("class", Ie(s.getText().substring(1))); break; case v.IdentifierSelector: - n.addAttr("id", Le(s.getText().substring(1))); + n.addAttr("id", Ie(s.getText().substring(1))); break; case v.MixinDeclaration: n.addAttr("class", s.getName()); break; case v.PseudoSelector: - n.addAttr(Le(s.getText()), ""); + n.addAttr(Ie(s.getText()), ""); break; case v.AttributeSelector: - var u = s, f = u.getIdentifier(); - if (f) { - var m = u.getValue(), g = u.getOperator(), b = void 0; - if (m && g) - switch (Le(g.getText())) { + var u = s, m = u.getIdentifier(); + if (m) { + var f = u.getValue(), g = u.getOperator(), b = void 0; + if (f && g) + switch (Ie(g.getText())) { case "|=": - b = "".concat(st.remove(Le(m.getText())), "-…"); + b = "".concat(it.remove(Ie(f.getText())), "-…"); break; case "^=": - b = "".concat(st.remove(Le(m.getText())), "…"); + b = "".concat(it.remove(Ie(f.getText())), "…"); break; case "$=": - b = "…".concat(st.remove(Le(m.getText()))); + b = "…".concat(it.remove(Ie(f.getText()))); break; case "~=": - b = " … ".concat(st.remove(Le(m.getText())), " … "); + b = " … ".concat(it.remove(Ie(f.getText())), " … "); break; case "*=": - b = "…".concat(st.remove(Le(m.getText())), "…"); + b = "…".concat(it.remove(Ie(f.getText())), "…"); break; default: - b = st.remove(Le(m.getText())); + b = it.remove(Ie(f.getText())); break; } - n.addAttr(Le(f.getText()), b); + n.addAttr(Ie(m.getText()), b); } break; } } return n; } -function Le(t) { - var e = new _n(); +function Ie(t) { + var e = new Dn(); e.setSource(t); var n = e.scanUnquotedString(); return n ? n.text : t; } -var Tu = function() { +var Pu = function() { function t(e) { this.cssDataManager = e; } return t.prototype.selectorToMarkedString = function(e) { - var n = Uu(e); + var n = Tu(e); if (n) { var r = new Mo('"').print(n); return r.push(this.selectorToSpecificityMarkedString(e)), r; } else return []; }, t.prototype.simpleSelectorToMarkedString = function(e) { - var n = Wl(e), r = new Mo('"').print(n); + var n = Il(e), r = new Mo('"').print(n); return r.push(this.selectorToSpecificityMarkedString(e)), r; }, t.prototype.isPseudoElementIdentifier = function(e) { var n = e.match(/^::?([\w-]+)/); @@ -12943,8 +12914,8 @@ var Tu = function() { if (h.match(/^:where/i)) continue e; if (h.match(/^:(not|has|is)/i) && c.getChildren().length > 0) { - for (var u = new No(), f = 0, m = c.getChildren(); f < m.length; f++) { - var g = m[f]; + for (var u = new No(), m = 0, f = c.getChildren(); m < f.length; m++) { + var g = f[m]; g.type === v.Undefined && g.getChildren(); for (var b = 0, y = g.getChildren(); b < y.length; b++) { var w = y[b], x = r(w); @@ -12977,9 +12948,9 @@ var Tu = function() { } return a; }, i = r(e); - return Lu("specificity", "[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})", i.id, i.attr, i.tag); + return zu("specificity", "[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})", i.id, i.attr, i.tag); }, t; -}(), Wu = function() { +}(), Lu = function() { function t(e) { this.prev = null, this.element = e; } @@ -12995,19 +12966,19 @@ var Tu = function() { var a = s[i]; if (a instanceof jt) { if (this.prev instanceof jt) { - var o = new vi("…"); + var o = new wi("…"); this.element.addChild(o), this.element = o; } else this.prev && (this.prev.matches("+") || this.prev.matches("~")) && this.element.parent && (this.element = this.element.parent); - this.prev && this.prev.matches("~") && this.element.addChild(new vi("⋮")); - var l = Wl(a, n), c = l.findRoot(); + this.prev && this.prev.matches("~") && this.element.addChild(new wi("⋮")); + var l = Il(a, n), c = l.findRoot(); this.element.addChild(c), this.element = l; } (a instanceof jt || a.type === v.SelectorCombinatorParent || a.type === v.SelectorCombinatorShadowPiercingDescendant || a.type === v.SelectorCombinatorSibling || a.type === v.SelectorCombinatorAllSiblings) && (this.prev = a); } }, t; }(); -function Ou(t) { +function Iu(t) { switch (t.type) { case v.MixinDeclaration: case v.Stylesheet: @@ -13015,12 +12986,12 @@ function Ou(t) { } return !1; } -function Uu(t) { +function Tu(t) { if (t.matches("@at-root")) return null; var e = new Xt(), n = [], r = t.getParent(); if (r instanceof Bt) - for (var i = r.getParent(); i && !Ou(i); ) { + for (var i = r.getParent(); i && !Iu(i); ) { if (i instanceof Bt) { if (i.getSelectors().matches("@at-root")) break; @@ -13028,26 +12999,26 @@ function Uu(t) { } i = i.getParent(); } - for (var s = new Wu(e), a = n.length - 1; a >= 0; a--) { + for (var s = new Lu(e), a = n.length - 1; a >= 0; a--) { var o = n[a].getSelectors().getChild(0); o && s.processSelector(o); } return s.processSelector(t), e; } -var Bi = function() { +var $i = function() { function t(e, n) { - this.clientCapabilities = e, this.cssDataManager = n, this.selectorPrinting = new Tu(n); + this.clientCapabilities = e, this.cssDataManager = n, this.selectorPrinting = new Pu(n); } return t.prototype.configure = function(e) { this.defaultSettings = e; }, t.prototype.doHover = function(e, n, r, i) { i === void 0 && (i = this.defaultSettings); function s(y) { - return te.create(e.positionAt(y.offset), e.positionAt(y.end)); + return ne.create(e.positionAt(y.offset), e.positionAt(y.end)); } - for (var a = e.offsetAt(n), o = Di(r, a), l = null, c = 0; c < o.length; c++) { + for (var a = e.offsetAt(n), o = Ni(r, a), l = null, c = 0; c < o.length; c++) { var h = o[c]; - if (h instanceof Fn) { + if (h instanceof An) { l = { contents: this.selectorPrinting.selectorToMarkedString(h), range: s(h) @@ -13061,34 +13032,34 @@ var Bi = function() { }); break; } - if (h instanceof Ze) { - var u = h.getFullPropertyName(), f = this.cssDataManager.getProperty(u); - if (f) { - var m = mt(f, this.doesSupportMarkdown(), i); - m ? l = { - contents: m, + if (h instanceof Qe) { + var u = h.getFullPropertyName(), m = this.cssDataManager.getProperty(u); + if (m) { + var f = mt(m, this.doesSupportMarkdown(), i); + f ? l = { + contents: f, range: s(h) } : l = null; } continue; } - if (h instanceof Fl) { - var g = h.getText(), f = this.cssDataManager.getAtDirective(g); - if (f) { - var m = mt(f, this.doesSupportMarkdown(), i); - m ? l = { - contents: m, + if (h instanceof kl) { + var g = h.getText(), m = this.cssDataManager.getAtDirective(g); + if (m) { + var f = mt(m, this.doesSupportMarkdown(), i); + f ? l = { + contents: f, range: s(h) } : l = null; } continue; } - if (h instanceof W && h.type === v.PseudoSelector) { - var b = h.getText(), f = b.slice(0, 2) === "::" ? this.cssDataManager.getPseudoElement(b) : this.cssDataManager.getPseudoClass(b); - if (f) { - var m = mt(f, this.doesSupportMarkdown(), i); - m ? l = { - contents: m, + if (h instanceof U && h.type === v.PseudoSelector) { + var b = h.getText(), m = b.slice(0, 2) === "::" ? this.cssDataManager.getPseudoElement(b) : this.cssDataManager.getPseudoClass(b); + if (m) { + var f = mt(m, this.doesSupportMarkdown(), i); + f ? l = { + contents: f, range: s(h) } : l = null; } @@ -13104,15 +13075,15 @@ var Bi = function() { return typeof n == "string" ? n : n.value; }) : e.value; }, t.prototype.doesSupportMarkdown = function() { - if (!Te(this.supportsMarkdown)) { - if (!Te(this.clientCapabilities)) + if (!We(this.supportsMarkdown)) { + if (!We(this.clientCapabilities)) return this.supportsMarkdown = !0, this.supportsMarkdown; var e = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.hover; - this.supportsMarkdown = e && e.contentFormat && Array.isArray(e.contentFormat) && e.contentFormat.indexOf(Ue.Markdown) !== -1; + this.supportsMarkdown = e && e.contentFormat && Array.isArray(e.contentFormat) && e.contentFormat.indexOf(Ve.Markdown) !== -1; } return this.supportsMarkdown; }, t; -}(), on = function(t, e, n, r) { +}(), ln = function(t, e, n, r) { function i(s) { return s instanceof n ? s : new n(function(a) { a(s); @@ -13138,7 +13109,7 @@ var Bi = function() { } c((r = r.apply(t, e || [])).next()); }); -}, ln = function(t, e) { +}, cn = function(t, e) { var n = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; @@ -13202,12 +13173,12 @@ var Bi = function() { throw c[1]; return { value: c[0] ? c[1] : void 0, done: !0 }; } -}, zo = Je(), Po = /^\w+:\/\//, Io = /^data:/, ji = function() { +}, zo = Ge(), Po = /^\w+:\/\//, Lo = /^data:/, Hi = function() { function t(e, n) { this.fileSystemProvider = e, this.resolveModuleReferences = n; } return t.prototype.findDefinition = function(e, n, r) { - var i = new fi(r), s = e.offsetAt(n), a = ni(r, s); + var i = new gi(r), s = e.offsetAt(n), a = ii(r, s); if (!a) return null; var o = i.findSymbolFromNode(a); @@ -13224,21 +13195,21 @@ var Bi = function() { }; }); }, t.prototype.findDocumentHighlights = function(e, n, r) { - var i = [], s = e.offsetAt(n), a = ni(r, s); + var i = [], s = e.offsetAt(n), a = ii(r, s); if (!a || a.type === v.Stylesheet || a.type === v.Declarations) return i; a.type === v.Identifier && a.parent && a.parent.type === v.ClassSelector && (a = a.parent); - var o = new fi(r), l = o.findSymbolFromNode(a), c = a.getText(); + var o = new gi(r), l = o.findSymbolFromNode(a), c = a.getText(); return r.accept(function(h) { if (l) { if (o.matchesSymbol(h, l)) return i.push({ - kind: Lo(h), + kind: Io(h), range: kt(h, e) }), !1; } else a && a.type === h.type && h.matches(c) && i.push({ - kind: Lo(h), + kind: Io(h), range: kt(h, e) }); return !0; @@ -13248,7 +13219,7 @@ var Bi = function() { }, t.prototype.findDocumentLinks = function(e, n, r) { for (var i = this.findUnresolvedLinks(e, n), s = [], a = 0, o = i; a < o.length; a++) { var l = o[a], c = l.link, h = c.target; - if (!(!h || Io.test(h))) + if (!(!h || Lo.test(h))) if (Po.test(h)) s.push(c); else { @@ -13258,20 +13229,20 @@ var Bi = function() { } return s; }, t.prototype.findDocumentLinks2 = function(e, n, r) { - return on(this, void 0, void 0, function() { + return ln(this, void 0, void 0, function() { var i, s, a, o, l, c, h, u; - return ln(this, function(f) { - switch (f.label) { + return cn(this, function(m) { + switch (m.label) { case 0: - i = this.findUnresolvedLinks(e, n), s = [], a = 0, o = i, f.label = 1; + i = this.findUnresolvedLinks(e, n), s = [], a = 0, o = i, m.label = 1; case 1: - return a < o.length ? (l = o[a], c = l.link, h = c.target, !h || Io.test(h) ? [3, 5] : [3, 2]) : [3, 6]; + return a < o.length ? (l = o[a], c = l.link, h = c.target, !h || Lo.test(h) ? [3, 5] : [3, 2]) : [3, 6]; case 2: return Po.test(h) ? (s.push(c), [3, 5]) : [3, 3]; case 3: return [4, this.resolveRelativeReference(h, e.uri, r, l.isRawLink)]; case 4: - u = f.sent(), u !== void 0 && (c.target = u, s.push(c)), f.label = 5; + u = m.sent(), u !== void 0 && (c.target = u, s.push(c)), m.label = 5; case 5: return a++, [3, 1]; case 6: @@ -13307,54 +13278,54 @@ var Bi = function() { kind: Ft.Class, location: null }, a = i; - if (i instanceof Fn) - return s.name = i.getText(), a = i.findAParent(v.Ruleset, v.ExtendsReference), a && (s.location = bn.create(e.uri, kt(a, e)), r.push(s)), !1; + if (i instanceof An) + return s.name = i.getText(), a = i.findAParent(v.Ruleset, v.ExtendsReference), a && (s.location = xn.create(e.uri, kt(a, e)), r.push(s)), !1; if (i instanceof fr) s.name = i.getName(), s.kind = Ft.Variable; - else if (i instanceof gn) + else if (i instanceof wn) s.name = i.getName(), s.kind = Ft.Method; - else if (i instanceof Qn) + else if (i instanceof Zn) s.name = i.getName(), s.kind = Ft.Function; - else if (i instanceof xl) - s.name = zo("literal.keyframes", "@keyframes {0}", i.getName()); else if (i instanceof yl) + s.name = zo("literal.keyframes", "@keyframes {0}", i.getName()); + else if (i instanceof bl) s.name = zo("literal.fontface", "@font-face"); - else if (i instanceof Sl) { + else if (i instanceof wl) { var o = i.getChild(0); - o instanceof Cl && (s.name = "@media " + o.getText(), s.kind = Ft.Module); + o instanceof xl && (s.name = "@media " + o.getText(), s.kind = Ft.Module); } - return s.name && (s.location = bn.create(e.uri, kt(a, e)), r.push(s)), !0; + return s.name && (s.location = xn.create(e.uri, kt(a, e)), r.push(s)), !0; }), r; }, t.prototype.findDocumentColors = function(e, n) { var r = []; return n.accept(function(i) { - var s = Vu(i, e); + var s = Wu(i, e); return s && r.push(s), !0; }), r; }, t.prototype.getColorPresentations = function(e, n, r, i) { var s = [], a = Math.round(r.red * 255), o = Math.round(r.green * 255), l = Math.round(r.blue * 255), c; - r.alpha === 1 ? c = "rgb(".concat(a, ", ").concat(o, ", ").concat(l, ")") : c = "rgba(".concat(a, ", ").concat(o, ", ").concat(l, ", ").concat(r.alpha, ")"), s.push({ label: c, textEdit: $.replace(i, c) }), r.alpha === 1 ? c = "#".concat(St(a)).concat(St(o)).concat(St(l)) : c = "#".concat(St(a)).concat(St(o)).concat(St(l)).concat(St(Math.round(r.alpha * 255))), s.push({ label: c, textEdit: $.replace(i, c) }); - var h = Nl(r); - h.a === 1 ? c = "hsl(".concat(h.h, ", ").concat(Math.round(h.s * 100), "%, ").concat(Math.round(h.l * 100), "%)") : c = "hsla(".concat(h.h, ", ").concat(Math.round(h.s * 100), "%, ").concat(Math.round(h.l * 100), "%, ").concat(h.a, ")"), s.push({ label: c, textEdit: $.replace(i, c) }); - var u = pu(r); - return u.a === 1 ? c = "hwb(".concat(u.h, " ").concat(Math.round(u.w * 100), "% ").concat(Math.round(u.b * 100), "%)") : c = "hwb(".concat(u.h, " ").concat(Math.round(u.w * 100), "% ").concat(Math.round(u.b * 100), "% / ").concat(u.a, ")"), s.push({ label: c, textEdit: $.replace(i, c) }), s; + r.alpha === 1 ? c = "rgb(".concat(a, ", ").concat(o, ", ").concat(l, ")") : c = "rgba(".concat(a, ", ").concat(o, ", ").concat(l, ", ").concat(r.alpha, ")"), s.push({ label: c, textEdit: H.replace(i, c) }), r.alpha === 1 ? c = "#".concat(St(a)).concat(St(o)).concat(St(l)) : c = "#".concat(St(a)).concat(St(o)).concat(St(l)).concat(St(Math.round(r.alpha * 255))), s.push({ label: c, textEdit: H.replace(i, c) }); + var h = Al(r); + h.a === 1 ? c = "hsl(".concat(h.h, ", ").concat(Math.round(h.s * 100), "%, ").concat(Math.round(h.l * 100), "%)") : c = "hsla(".concat(h.h, ", ").concat(Math.round(h.s * 100), "%, ").concat(Math.round(h.l * 100), "%, ").concat(h.a, ")"), s.push({ label: c, textEdit: H.replace(i, c) }); + var u = hu(r); + return u.a === 1 ? c = "hwb(".concat(u.h, " ").concat(Math.round(u.w * 100), "% ").concat(Math.round(u.b * 100), "%)") : c = "hwb(".concat(u.h, " ").concat(Math.round(u.w * 100), "% ").concat(Math.round(u.b * 100), "% / ").concat(u.a, ")"), s.push({ label: c, textEdit: H.replace(i, c) }), s; }, t.prototype.doRename = function(e, n, r, i) { var s, a = this.findDocumentHighlights(e, n, i), o = a.map(function(l) { - return $.replace(l.range, r); + return H.replace(l.range, r); }); return { changes: (s = {}, s[e.uri] = o, s) }; }, t.prototype.resolveModuleReference = function(e, n, r) { - return on(this, void 0, void 0, function() { + return ln(this, void 0, void 0, function() { var i, s, a, o, l; - return ln(this, function(c) { + return cn(this, function(c) { switch (c.label) { case 0: - return fe(n, "file://") ? (i = Bu(e), s = r.resolveReference("/", n), a = Fr(n), [4, this.resolvePathToModule(i, a, s)]) : [3, 2]; + return fe(n, "file://") ? (i = Ou(e), s = r.resolveReference("/", n), a = Er(n), [4, this.resolvePathToModule(i, a, s)]) : [3, 2]; case 1: if (o = c.sent(), o) - return l = e.substring(i.length + 1), [2, gi(o, l)]; + return l = e.substring(i.length + 1), [2, vi(o, l)]; c.label = 2; case 2: return [2, void 0]; @@ -13362,9 +13333,9 @@ var Bi = function() { }); }); }, t.prototype.resolveRelativeReference = function(e, n, r, i) { - return on(this, void 0, void 0, function() { + return ln(this, void 0, void 0, function() { var s, a; - return ln(this, function(o) { + return cn(this, function(o) { switch (o.label) { case 0: return s = r.resolveReference(e, n), e[0] === "~" && e[1] !== "/" && this.fileSystemProvider ? (e = e.substring(1), [4, this.resolveModuleReference(e, n, r)]) : [3, 2]; @@ -13386,21 +13357,21 @@ var Bi = function() { }); }); }, t.prototype.resolvePathToModule = function(e, n, r) { - return on(this, void 0, void 0, function() { + return ln(this, void 0, void 0, function() { var i; - return ln(this, function(s) { + return cn(this, function(s) { switch (s.label) { case 0: - return i = gi(n, "node_modules", e, "package.json"), [4, this.fileExists(i)]; + return i = vi(n, "node_modules", e, "package.json"), [4, this.fileExists(i)]; case 1: - return s.sent() ? [2, Fr(i)] : r && n.startsWith(r) && n.length !== r.length ? [2, this.resolvePathToModule(e, Fr(n), r)] : [2, void 0]; + return s.sent() ? [2, Er(i)] : r && n.startsWith(r) && n.length !== r.length ? [2, this.resolvePathToModule(e, Er(n), r)] : [2, void 0]; } }); }); }, t.prototype.fileExists = function(e) { - return on(this, void 0, void 0, function() { + return ln(this, void 0, void 0, function() { var n; - return ln(this, function(r) { + return cn(this, function(r) { switch (r.label) { case 0: if (!this.fileSystemProvider) @@ -13409,7 +13380,7 @@ var Bi = function() { case 1: return r.trys.push([1, 3, , 4]), [4, this.fileSystemProvider.stat(e)]; case 2: - return n = r.sent(), n.type === Sn.Unknown && n.size === -1 ? [2, !1] : [2, !0]; + return n = r.sent(), n.type === Fn.Unknown && n.size === -1 ? [2, !1] : [2, !0]; case 3: return r.sent(), [2, !1]; case 4: @@ -13419,8 +13390,8 @@ var Bi = function() { }); }, t; }(); -function Vu(t, e) { - var n = fu(t); +function Wu(t, e) { + var n = du(t); if (n) { var r = kt(t, e); return { color: n, range: r }; @@ -13428,11 +13399,11 @@ function Vu(t, e) { return null; } function kt(t, e) { - return te.create(e.positionAt(t.offset), e.positionAt(t.end)); + return ne.create(e.positionAt(t.offset), e.positionAt(t.end)); } -function Lo(t) { - if (t.type === v.Selector || t instanceof Oe && t.parent && t.parent instanceof Ni && t.isCustomProperty) - return Ut.Write; +function Io(t) { + if (t.type === v.Selector || t instanceof Ue && t.parent && t.parent instanceof Li && t.isCustomProperty) + return Ot.Write; if (t.parent) switch (t.parent.type) { case v.FunctionDeclaration: @@ -13440,56 +13411,56 @@ function Lo(t) { case v.Keyframe: case v.VariableDeclaration: case v.FunctionParameter: - return Ut.Write; + return Ot.Write; } - return Ut.Read; + return Ot.Read; } function St(t) { var e = t.toString(16); return e.length !== 2 ? "0" + e : e; } -function Bu(t) { +function Ou(t) { return t[0] === "@" ? t.substring(0, t.indexOf("/", t.indexOf("/") + 1)) : t.substring(0, t.indexOf("/")); } -var pe = Je(), Tt = Pe.Warning, To = Pe.Error, je = Pe.Ignore, ve = function() { +var pe = Ge(), It = Pe.Warning, To = Pe.Error, je = Pe.Ignore, be = function() { function t(e, n, r) { this.id = e, this.message = n, this.defaultValue = r; } return t; -}(), ju = function() { +}(), Uu = function() { function t(e, n, r) { this.id = e, this.message = n, this.defaultValue = r; } return t; -}(), ne = { - AllVendorPrefixes: new ve("compatibleVendorPrefixes", pe("rule.vendorprefixes.all", "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"), je), - IncludeStandardPropertyWhenUsingVendorPrefix: new ve("vendorPrefix", pe("rule.standardvendorprefix.all", "When using a vendor-specific prefix also include the standard property"), Tt), - DuplicateDeclarations: new ve("duplicateProperties", pe("rule.duplicateDeclarations", "Do not use duplicate style definitions"), je), - EmptyRuleSet: new ve("emptyRules", pe("rule.emptyRuleSets", "Do not use empty rulesets"), Tt), - ImportStatemement: new ve("importStatement", pe("rule.importDirective", "Import statements do not load in parallel"), je), - BewareOfBoxModelSize: new ve("boxModel", pe("rule.bewareOfBoxModelSize", "Do not use width or height when using padding or border"), je), - UniversalSelector: new ve("universalSelector", pe("rule.universalSelector", "The universal selector (*) is known to be slow"), je), - ZeroWithUnit: new ve("zeroUnits", pe("rule.zeroWidthUnit", "No unit for zero needed"), je), - RequiredPropertiesForFontFace: new ve("fontFaceProperties", pe("rule.fontFaceProperties", "@font-face rule must define 'src' and 'font-family' properties"), Tt), - HexColorLength: new ve("hexColorLength", pe("rule.hexColor", "Hex colors must consist of three, four, six or eight hex numbers"), To), - ArgsInColorFunction: new ve("argumentsInColorFunction", pe("rule.colorFunction", "Invalid number of parameters"), To), - UnknownProperty: new ve("unknownProperties", pe("rule.unknownProperty", "Unknown property."), Tt), - UnknownAtRules: new ve("unknownAtRules", pe("rule.unknownAtRules", "Unknown at-rule."), Tt), - IEStarHack: new ve("ieHack", pe("rule.ieHack", "IE hacks are only necessary when supporting IE7 and older"), je), - UnknownVendorSpecificProperty: new ve("unknownVendorSpecificProperties", pe("rule.unknownVendorSpecificProperty", "Unknown vendor specific property."), je), - PropertyIgnoredDueToDisplay: new ve("propertyIgnoredDueToDisplay", pe("rule.propertyIgnoredDueToDisplay", "Property is ignored due to the display."), Tt), - AvoidImportant: new ve("important", pe("rule.avoidImportant", "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."), je), - AvoidFloat: new ve("float", pe("rule.avoidFloat", "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."), je), - AvoidIdSelector: new ve("idSelector", pe("rule.avoidIdSelector", "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."), je) -}, qu = { - ValidProperties: new ju("validProperties", pe("rule.validProperties", "A list of properties that are not validated against the `unknownProperties` rule."), []) -}, $u = function() { +}(), re = { + AllVendorPrefixes: new be("compatibleVendorPrefixes", pe("rule.vendorprefixes.all", "When using a vendor-specific prefix make sure to also include all other vendor-specific properties"), je), + IncludeStandardPropertyWhenUsingVendorPrefix: new be("vendorPrefix", pe("rule.standardvendorprefix.all", "When using a vendor-specific prefix also include the standard property"), It), + DuplicateDeclarations: new be("duplicateProperties", pe("rule.duplicateDeclarations", "Do not use duplicate style definitions"), je), + EmptyRuleSet: new be("emptyRules", pe("rule.emptyRuleSets", "Do not use empty rulesets"), It), + ImportStatemement: new be("importStatement", pe("rule.importDirective", "Import statements do not load in parallel"), je), + BewareOfBoxModelSize: new be("boxModel", pe("rule.bewareOfBoxModelSize", "Do not use width or height when using padding or border"), je), + UniversalSelector: new be("universalSelector", pe("rule.universalSelector", "The universal selector (*) is known to be slow"), je), + ZeroWithUnit: new be("zeroUnits", pe("rule.zeroWidthUnit", "No unit for zero needed"), je), + RequiredPropertiesForFontFace: new be("fontFaceProperties", pe("rule.fontFaceProperties", "@font-face rule must define 'src' and 'font-family' properties"), It), + HexColorLength: new be("hexColorLength", pe("rule.hexColor", "Hex colors must consist of three, four, six or eight hex numbers"), To), + ArgsInColorFunction: new be("argumentsInColorFunction", pe("rule.colorFunction", "Invalid number of parameters"), To), + UnknownProperty: new be("unknownProperties", pe("rule.unknownProperty", "Unknown property."), It), + UnknownAtRules: new be("unknownAtRules", pe("rule.unknownAtRules", "Unknown at-rule."), It), + IEStarHack: new be("ieHack", pe("rule.ieHack", "IE hacks are only necessary when supporting IE7 and older"), je), + UnknownVendorSpecificProperty: new be("unknownVendorSpecificProperties", pe("rule.unknownVendorSpecificProperty", "Unknown vendor specific property."), je), + PropertyIgnoredDueToDisplay: new be("propertyIgnoredDueToDisplay", pe("rule.propertyIgnoredDueToDisplay", "Property is ignored due to the display."), It), + AvoidImportant: new be("important", pe("rule.avoidImportant", "Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."), je), + AvoidFloat: new be("float", pe("rule.avoidFloat", "Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."), je), + AvoidIdSelector: new be("idSelector", pe("rule.avoidIdSelector", "Selectors should not contain IDs because these rules are too tightly coupled with the HTML."), je) +}, Vu = { + ValidProperties: new Uu("validProperties", pe("rule.validProperties", "A list of properties that are not validated against the `unknownProperties` rule."), []) +}, Bu = function() { function t(e) { e === void 0 && (e = {}), this.conf = e; } return t.prototype.getRule = function(e) { if (this.conf.hasOwnProperty(e.id)) { - var n = Hu(this.conf[e.id]); + var n = ju(this.conf[e.id]); if (n) return n; } @@ -13498,7 +13469,7 @@ var pe = Je(), Tt = Pe.Warning, To = Pe.Error, je = Pe.Ignore, ve = function() { return this.conf[e.id]; }, t; }(); -function Hu(t) { +function ju(t) { switch (t) { case "ignore": return Pe.Ignore; @@ -13509,7 +13480,7 @@ function Hu(t) { } return null; } -var Gu = Je(), qi = function() { +var qu = Ge(), Gi = function() { function t(e) { this.cssDataManager = e; } @@ -13529,21 +13500,21 @@ var Gu = Je(), qi = function() { }, t.prototype.getFixesForUnknownProperty = function(e, n, r, i) { var s = n.getName(), a = []; this.cssDataManager.getProperties().forEach(function(w) { - var x = yd(s, w.name); + var x = gd(s, w.name); x >= s.length / 2 && a.push({ property: w.name, score: x }); }), a.sort(function(w, x) { return x.score - w.score || w.property.localeCompare(x.property); }); for (var o = 3, l = 0, c = a; l < c.length; l++) { - var h = c[l], u = h.property, f = Gu("css.codeaction.rename", "Rename to '{0}'", u), m = $.replace(r.range, u), g = li.create(e.uri, e.version), b = { documentChanges: [vn.create(g, [m])] }, y = di.create(f, b, hi.QuickFix); + var h = c[l], u = h.property, m = qu("css.codeaction.rename", "Rename to '{0}'", u), f = H.replace(r.range, u), g = hi.create(e.uri, e.version), b = { documentChanges: [Sn.create(g, [f])] }, y = pi.create(m, b, ui.QuickFix); if (y.diagnostics = [r], i.push(y), --o <= 0) return; } }, t.prototype.appendFixesForMarker = function(e, n, r, i) { - if (r.code === ne.UnknownProperty.id) - for (var s = e.offsetAt(r.range.start), a = e.offsetAt(r.range.end), o = Di(n, s), l = o.length - 1; l >= 0; l--) { + if (r.code === re.UnknownProperty.id) + for (var s = e.offsetAt(r.range.start), a = e.offsetAt(r.range.end), o = Ni(n, s), l = o.length - 1; l >= 0; l--) { var c = o[l]; - if (c instanceof Ze) { + if (c instanceof Qe) { var h = c.getProperty(); if (h && h.offset === s && h.end === a) { this.getFixesForUnknownProperty(e, h, r, i); @@ -13552,39 +13523,39 @@ var Gu = Je(), qi = function() { } } }, t; -}(), Ju = function() { +}(), $u = function() { function t(e) { this.fullPropertyName = e.getFullPropertyName().toLowerCase(), this.node = e; } return t; }(); -function hn(t, e, n, r) { +function dn(t, e, n, r) { var i = t[e]; - i.value = n, n && (Pl(i.properties, r) || i.properties.push(r)); + i.value = n, n && (Nl(i.properties, r) || i.properties.push(r)); } -function Xu(t, e, n) { - hn(t, "top", e, n), hn(t, "right", e, n), hn(t, "bottom", e, n), hn(t, "left", e, n); +function Hu(t, e, n) { + dn(t, "top", e, n), dn(t, "right", e, n), dn(t, "bottom", e, n), dn(t, "left", e, n); } -function xe(t, e, n, r) { - e === "top" || e === "right" || e === "bottom" || e === "left" ? hn(t, e, n, r) : Xu(t, n, r); +function we(t, e, n, r) { + e === "top" || e === "right" || e === "bottom" || e === "left" ? dn(t, e, n, r) : Hu(t, n, r); } -function Er(t, e, n) { +function Ar(t, e, n) { switch (e.length) { case 1: - xe(t, void 0, e[0], n); + we(t, void 0, e[0], n); break; case 2: - xe(t, "top", e[0], n), xe(t, "bottom", e[0], n), xe(t, "right", e[1], n), xe(t, "left", e[1], n); + we(t, "top", e[0], n), we(t, "bottom", e[0], n), we(t, "right", e[1], n), we(t, "left", e[1], n); break; case 3: - xe(t, "top", e[0], n), xe(t, "right", e[1], n), xe(t, "left", e[1], n), xe(t, "bottom", e[2], n); + we(t, "top", e[0], n), we(t, "right", e[1], n), we(t, "left", e[1], n), we(t, "bottom", e[2], n); break; case 4: - xe(t, "top", e[0], n), xe(t, "right", e[1], n), xe(t, "bottom", e[2], n), xe(t, "left", e[3], n); + we(t, "top", e[0], n), we(t, "right", e[1], n), we(t, "bottom", e[2], n), we(t, "left", e[3], n); break; } } -function yi(t, e) { +function xi(t, e) { for (var n = 0, r = e; n < r.length; n++) { var i = r[n]; if (t.matches(i)) @@ -13592,36 +13563,36 @@ function yi(t, e) { } return !1; } -function Cn(t, e) { - return e === void 0 && (e = !0), e && yi(t, ["initial", "unset"]) ? !1 : parseFloat(t.getText()) !== 0; +function Rn(t, e) { + return e === void 0 && (e = !0), e && xi(t, ["initial", "unset"]) ? !1 : parseFloat(t.getText()) !== 0; } function Wo(t, e) { return e === void 0 && (e = !0), t.map(function(n) { - return Cn(n, e); + return Rn(n, e); }); } -function cr(t, e) { - return e === void 0 && (e = !0), !(yi(t, ["none", "hidden"]) || e && yi(t, ["initial", "unset"])); +function hr(t, e) { + return e === void 0 && (e = !0), !(xi(t, ["none", "hidden"]) || e && xi(t, ["initial", "unset"])); } -function Yu(t, e) { +function Gu(t, e) { return e === void 0 && (e = !0), t.map(function(n) { - return cr(n, e); + return hr(n, e); }); } -function Ku(t) { +function Ju(t) { var e = t.getChildren(); if (e.length === 1) { var n = e[0]; - return Cn(n) && cr(n); + return Rn(n) && hr(n); } for (var r = 0, i = e; r < i.length; r++) { var s = i[r], n = s; - if (!Cn(n, !1) || !cr(n, !1)) + if (!Rn(n, !1) || !hr(n, !1)) return !1; } return !0; } -function Qu(t) { +function Xu(t) { for (var e = { top: { value: !1, properties: [] }, right: { value: !1, properties: [] }, @@ -13656,26 +13627,26 @@ function Qu(t) { case "left": switch (a[2]) { case void 0: - xe(e, a[1], Ku(s), i); + we(e, a[1], Ju(s), i); break; case "width": - xe(e, a[1], Cn(s, !1), i); + we(e, a[1], Rn(s, !1), i); break; case "style": - xe(e, a[1], cr(s, !0), i); + we(e, a[1], hr(s, !0), i); break; } break; case "width": - Er(e, Wo(s.getChildren(), !1), i); + Ar(e, Wo(s.getChildren(), !1), i); break; case "style": - Er(e, Yu(s.getChildren(), !0), i); + Ar(e, Gu(s.getChildren(), !0), i); break; } break; case "padding": - a.length === 1 ? Er(e, Wo(s.getChildren(), !0), i) : xe(e, a[1], Cn(s, !0), i); + a.length === 1 ? Ar(e, Wo(s.getChildren(), !0), i) : we(e, a[1], Rn(s, !0), i); break; } break; @@ -13683,7 +13654,7 @@ function Qu(t) { } return e; } -var rt = Je(), Oo = function() { +var nt = Ge(), Oo = function() { function t() { this.data = {}; } @@ -13691,11 +13662,11 @@ var rt = Je(), Oo = function() { var i = this.data[e]; i || (i = { nodes: [], names: [] }, this.data[e] = i), i.names.push(n), r && i.nodes.push(r); }, t; -}(), Zu = function() { +}(), Yu = function() { function t(e, n, r) { var i = this; this.cssDataManager = r, this.warnings = [], this.settings = n, this.documentText = e.getText(), this.keyframes = new Oo(), this.validProperties = {}; - var s = n.getSetting(qu.ValidProperties); + var s = n.getSetting(Vu.ValidProperties); Array.isArray(s) && s.forEach(function(a) { if (typeof a == "string") { var o = a.trim().toLowerCase(); @@ -13734,7 +13705,7 @@ var rt = Je(), Oo = function() { return (n.getLevel() & e) !== 0; }); }, t.prototype.addEntry = function(e, n, r) { - var i = new Rl(e, n, this.settings.getRule(n), r); + var i = new _l(e, n, this.settings.getRule(n), r); this.warnings.push(i); }, t.prototype.getMissingNames = function(e, n) { for (var r = e.slice(0), i = 0; i < n.length; i++) { @@ -13743,7 +13714,7 @@ var rt = Je(), Oo = function() { } for (var a = null, i = 0; i < r.length; i++) { var o = r[i]; - o && (a === null ? a = rt("namelist.single", "'{0}'", o) : a = rt("namelist.concatenated", "{0}, '{1}'", a, o)); + o && (a === null ? a = nt("namelist.single", "'{0}'", o) : a = nt("namelist.concatenated", "{0}, '{1}'", a, o)); } return a; }, t.prototype.visitNode = function(e) { @@ -13779,7 +13750,7 @@ var rt = Je(), Oo = function() { if (!n) return !1; var r = this.cssDataManager.getAtDirective(n.getText()); - return r ? !1 : (this.addEntry(n, ne.UnknownAtRules, "Unknown at rule ".concat(n.getText())), !0); + return r ? !1 : (this.addEntry(n, re.UnknownAtRules, "Unknown at rule ".concat(n.getText())), !0); }, t.prototype.visitKeyframe = function(e) { var n = e.getKeyword(); if (!n) @@ -13796,12 +13767,12 @@ var rt = Je(), Oo = function() { for (var a = 0, o = this.keyframes.data[n].nodes; a < o.length; a++) { var l = o[a]; if (i) { - var c = rt("keyframes.standardrule.missing", "Always define standard rule '@keyframes' when defining keyframes."); - this.addEntry(l, ne.IncludeStandardPropertyWhenUsingVendorPrefix, c); + var c = nt("keyframes.standardrule.missing", "Always define standard rule '@keyframes' when defining keyframes."); + this.addEntry(l, re.IncludeStandardPropertyWhenUsingVendorPrefix, c); } if (s) { - var c = rt("keyframes.vendorspecific.missing", "Always include all vendor specific rules: Missing: {0}", s); - this.addEntry(l, ne.AllVendorPrefixes, c); + var c = nt("keyframes.vendorspecific.missing", "Always include all vendor specific rules: Missing: {0}", s); + this.addEntry(l, re.AllVendorPrefixes, c); } } } @@ -13809,106 +13780,106 @@ var rt = Je(), Oo = function() { return !0; }, t.prototype.visitSimpleSelector = function(e) { var n = this.documentText.charAt(e.offset); - return e.length === 1 && n === "*" && this.addEntry(e, ne.UniversalSelector), !0; + return e.length === 1 && n === "*" && this.addEntry(e, re.UniversalSelector), !0; }, t.prototype.visitIdentifierSelector = function(e) { - return this.addEntry(e, ne.AvoidIdSelector), !0; + return this.addEntry(e, re.AvoidIdSelector), !0; }, t.prototype.visitImport = function(e) { - return this.addEntry(e, ne.ImportStatemement), !0; + return this.addEntry(e, re.ImportStatemement), !0; }, t.prototype.visitRuleSet = function(e) { var n = e.getDeclarations(); if (!n) return !1; - n.hasChildren() || this.addEntry(e.getSelectors(), ne.EmptyRuleSet); + n.hasChildren() || this.addEntry(e.getSelectors(), re.EmptyRuleSet); for (var r = [], i = 0, s = n.getChildren(); i < s.length; i++) { var a = s[i]; - a instanceof Ze && r.push(new Ju(a)); + a instanceof Qe && r.push(new $u(a)); } - var o = Qu(r); + var o = Xu(r); if (o.width) { var l = []; - if (o.right.value && (l = Ln(l, o.right.properties)), o.left.value && (l = Ln(l, o.left.properties)), l.length !== 0) { + if (o.right.value && (l = Un(l, o.right.properties)), o.left.value && (l = Un(l, o.left.properties)), l.length !== 0) { for (var c = 0, h = l; c < h.length; c++) { var u = h[c]; - this.addEntry(u.node, ne.BewareOfBoxModelSize); + this.addEntry(u.node, re.BewareOfBoxModelSize); } - this.addEntry(o.width.node, ne.BewareOfBoxModelSize); + this.addEntry(o.width.node, re.BewareOfBoxModelSize); } } if (o.height) { var l = []; - if (o.top.value && (l = Ln(l, o.top.properties)), o.bottom.value && (l = Ln(l, o.bottom.properties)), l.length !== 0) { - for (var f = 0, m = l; f < m.length; f++) { - var u = m[f]; - this.addEntry(u.node, ne.BewareOfBoxModelSize); + if (o.top.value && (l = Un(l, o.top.properties)), o.bottom.value && (l = Un(l, o.bottom.properties)), l.length !== 0) { + for (var m = 0, f = l; m < f.length; m++) { + var u = f[m]; + this.addEntry(u.node, re.BewareOfBoxModelSize); } - this.addEntry(o.height.node, ne.BewareOfBoxModelSize); + this.addEntry(o.height.node, re.BewareOfBoxModelSize); } } var g = this.fetchWithValue(r, "display", "inline-block"); if (g.length > 0) for (var b = this.fetch(r, "float"), y = 0; y < b.length; y++) { var w = b[y].node, x = w.getValue(); - x && !x.matches("none") && this.addEntry(w, ne.PropertyIgnoredDueToDisplay, rt("rule.propertyIgnoredDueToDisplayInlineBlock", "inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'")); + x && !x.matches("none") && this.addEntry(w, re.PropertyIgnoredDueToDisplay, nt("rule.propertyIgnoredDueToDisplayInlineBlock", "inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'")); } if (g = this.fetchWithValue(r, "display", "block"), g.length > 0) for (var b = this.fetch(r, "vertical-align"), y = 0; y < b.length; y++) - this.addEntry(b[y].node, ne.PropertyIgnoredDueToDisplay, rt("rule.propertyIgnoredDueToDisplayBlock", "Property is ignored due to the display. With 'display: block', vertical-align should not be used.")); + this.addEntry(b[y].node, re.PropertyIgnoredDueToDisplay, nt("rule.propertyIgnoredDueToDisplayBlock", "Property is ignored due to the display. With 'display: block', vertical-align should not be used.")); for (var k = this.fetch(r, "float"), y = 0; y < k.length; y++) { var a = k[y]; - this.isValidPropertyDeclaration(a) || this.addEntry(a.node, ne.AvoidFloat); + this.isValidPropertyDeclaration(a) || this.addEntry(a.node, re.AvoidFloat); } - for (var F = 0; F < r.length; F++) { - var a = r[F]; + for (var P = 0; P < r.length; P++) { + var a = r[P]; if (a.fullPropertyName !== "background" && !this.validProperties[a.fullPropertyName]) { var x = a.node.getValue(); if (x && this.documentText.charAt(x.offset) !== "-") { var N = this.fetch(r, a.fullPropertyName); if (N.length > 1) - for (var j = 0; j < N.length; j++) { - var H = N[j].node.getValue(); - H && this.documentText.charAt(H.offset) !== "-" && N[j] !== a && this.addEntry(a.node, ne.DuplicateDeclarations); + for (var V = 0; V < N.length; V++) { + var I = N[V].node.getValue(); + I && this.documentText.charAt(I.offset) !== "-" && N[V] !== a && this.addEntry(a.node, re.DuplicateDeclarations); } } } } - var B = e.getSelectors().matches(":export"); - if (!B) { - for (var P = new Oo(), z = !1, A = 0, R = r; A < R.length; A++) { - var a = R[A], L = a.node; - if (this.isCSSDeclaration(L)) { - var O = a.fullPropertyName, K = O.charAt(0); + var T = e.getSelectors().matches(":export"); + if (!T) { + for (var D = new Oo(), E = !1, R = 0, F = r; R < F.length; R++) { + var a = F[R], W = a.node; + if (this.isCSSDeclaration(W)) { + var B = a.fullPropertyName, K = B.charAt(0); if (K === "-") { - if (O.charAt(1) !== "-") { - !this.cssDataManager.isKnownProperty(O) && !this.validProperties[O] && this.addEntry(L.getProperty(), ne.UnknownVendorSpecificProperty); - var re = L.getNonPrefixedPropertyName(); - P.add(re, O, L.getProperty()); + if (B.charAt(1) !== "-") { + !this.cssDataManager.isKnownProperty(B) && !this.validProperties[B] && this.addEntry(W.getProperty(), re.UnknownVendorSpecificProperty); + var ie = W.getNonPrefixedPropertyName(); + D.add(ie, B, W.getProperty()); } } else { - var E = O; - (K === "*" || K === "_") && (this.addEntry(L.getProperty(), ne.IEStarHack), O = O.substr(1)), !this.cssDataManager.isKnownProperty(E) && !this.cssDataManager.isKnownProperty(O) && (this.validProperties[O] || this.addEntry(L.getProperty(), ne.UnknownProperty, rt("property.unknownproperty.detailed", "Unknown property: '{0}'", L.getFullPropertyName()))), P.add(O, O, null); + var A = B; + (K === "*" || K === "_") && (this.addEntry(W.getProperty(), re.IEStarHack), B = B.substr(1)), !this.cssDataManager.isKnownProperty(A) && !this.cssDataManager.isKnownProperty(B) && (this.validProperties[B] || this.addEntry(W.getProperty(), re.UnknownProperty, nt("property.unknownproperty.detailed", "Unknown property: '{0}'", W.getFullPropertyName()))), D.add(B, B, null); } } else - z = !0; + E = !0; } - if (!z) - for (var C in P.data) { - var D = P.data[C], I = D.names, X = this.cssDataManager.isStandardProperty(C) && I.indexOf(C) === -1; - if (!(!X && I.length === 1)) { - for (var G = [], F = 0, ee = t.prefixes.length; F < ee; F++) { - var Ie = t.prefixes[F]; - this.cssDataManager.isStandardProperty(Ie + C) && G.push(Ie + C); + if (!E) + for (var C in D.data) { + var M = D.data[C], L = M.names, X = this.cssDataManager.isStandardProperty(C) && L.indexOf(C) === -1; + if (!(!X && L.length === 1)) { + for (var G = [], P = 0, ee = t.prefixes.length; P < ee; P++) { + var Le = t.prefixes[P]; + this.cssDataManager.isStandardProperty(Le + C) && G.push(Le + C); } - var ke = this.getMissingNames(G, I); - if (ke || X) - for (var Me = 0, wt = D.nodes; Me < wt.length; Me++) { - var tt = wt[Me]; + var Ce = this.getMissingNames(G, L); + if (Ce || X) + for (var Me = 0, wt = M.nodes; Me < wt.length; Me++) { + var et = wt[Me]; if (X) { - var mr = rt("property.standard.missing", "Also define the standard property '{0}' for compatibility", C); - this.addEntry(tt, ne.IncludeStandardPropertyWhenUsingVendorPrefix, mr); + var mr = nt("property.standard.missing", "Also define the standard property '{0}' for compatibility", C); + this.addEntry(et, re.IncludeStandardPropertyWhenUsingVendorPrefix, mr); } - if (ke) { - var mr = rt("property.vendorspecific.missing", "Always include all vendor specific properties: Missing: {0}", ke); - this.addEntry(tt, ne.AllVendorPrefixes, mr); + if (Ce) { + var mr = nt("property.vendorspecific.missing", "Always include all vendor specific properties: Missing: {0}", Ce); + this.addEntry(et, re.AllVendorPrefixes, mr); } } } @@ -13916,7 +13887,7 @@ var rt = Je(), Oo = function() { } return !0; }, t.prototype.visitPrio = function(e) { - return this.addEntry(e, ne.AvoidImportant), !0; + return this.addEntry(e, re.AvoidImportant), !0; }, t.prototype.visitNumericValue = function(e) { var n = e.findParent(v.Function); if (n && n.getName() === "calc") @@ -13926,9 +13897,9 @@ var rt = Je(), Oo = function() { var i = r.getValue(); if (i) { var s = e.getValue(); - if (!s.unit || zl.length.indexOf(s.unit.toLowerCase()) === -1) + if (!s.unit || Ml.length.indexOf(s.unit.toLowerCase()) === -1) return !0; - parseFloat(s.value) === 0 && s.unit && !this.validProperties[r.getFullPropertyName()] && this.addEntry(e, ne.ZeroWithUnit); + parseFloat(s.value) === 0 && s.unit && !this.validProperties[r.getFullPropertyName()] && this.addEntry(e, re.ZeroWithUnit); } } return !0; @@ -13944,9 +13915,9 @@ var rt = Je(), Oo = function() { } else s = !0; } - return !s && (!r || !i) && this.addEntry(e, ne.RequiredPropertiesForFontFace), !0; + return !s && (!r || !i) && this.addEntry(e, re.RequiredPropertiesForFontFace), !0; }, t.prototype.isCSSDeclaration = function(e) { - if (e instanceof Ze) { + if (e instanceof Qe) { if (!e.getValue()) return !1; var n = e.getProperty(); @@ -13958,7 +13929,7 @@ var rt = Je(), Oo = function() { return !1; }, t.prototype.visitHexColorValue = function(e) { var n = e.length; - return n !== 9 && n !== 7 && n !== 5 && n !== 4 && this.addEntry(e, ne.HexColorLength), !1; + return n !== 9 && n !== 7 && n !== 5 && n !== 4 && this.addEntry(e, re.HexColorLength), !1; }, t.prototype.visitFunction = function(e) { var n = e.getName().toLowerCase(), r = -1, i = 0; switch (n) { @@ -13972,15 +13943,15 @@ var rt = Je(), Oo = function() { break; } return r !== -1 && (e.getArguments().accept(function(s) { - return s instanceof Pi ? (i += 1, !1) : !0; - }), i !== r && this.addEntry(e, ne.ArgsInColorFunction)), !0; + return s instanceof Ti ? (i += 1, !1) : !0; + }), i !== r && this.addEntry(e, re.ArgsInColorFunction)), !0; }, t.prefixes = [ "-ms-", "-moz-", "-o-", "-webkit-" ], t; -}(), $i = function() { +}(), Ji = function() { function t(e) { this.cssDataManager = e; } @@ -13990,17 +13961,17 @@ var rt = Je(), Oo = function() { if (r === void 0 && (r = this.settings), r && r.validate === !1) return []; var i = []; - i.push.apply(i, eu.entries(n)), i.push.apply(i, Zu.entries(n, e, new $u(r && r.lint), this.cssDataManager)); + i.push.apply(i, Kd.entries(n)), i.push.apply(i, Yu.entries(n, e, new Bu(r && r.lint), this.cssDataManager)); var s = []; - for (var a in ne) - s.push(ne[a].id); + for (var a in re) + s.push(re[a].id); function o(l) { - var c = te.create(e.positionAt(l.getOffset()), e.positionAt(l.getOffset() + l.getLength())), h = e.languageId; + var c = ne.create(e.positionAt(l.getOffset()), e.positionAt(l.getOffset() + l.getLength())), h = e.languageId; return { code: l.getRule().id, source: h, message: l.getMessage(), - severity: l.getLevel() === Pe.Warning ? tr.Warning : tr.Error, + severity: l.getLevel() === Pe.Warning ? nr.Warning : nr.Error, range: c }; } @@ -14008,7 +13979,7 @@ var rt = Je(), Oo = function() { return l.getLevel() !== Pe.Ignore; }).map(o); }, t; -}(), ep = function() { +}(), Ku = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -14026,46 +13997,46 @@ var rt = Je(), Oo = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), Uo = "/".charCodeAt(0), tp = ` -`.charCodeAt(0), np = "\r".charCodeAt(0), rp = "\f".charCodeAt(0), ip = "$".charCodeAt(0), sp = "#".charCodeAt(0), ap = "{".charCodeAt(0), cn = "=".charCodeAt(0), op = "!".charCodeAt(0), lp = "<".charCodeAt(0), cp = ">".charCodeAt(0), Dr = ".".charCodeAt(0), ot = p.CustomToken, wi = ot++, hr = ot++; +}(), Uo = "/".charCodeAt(0), Qu = ` +`.charCodeAt(0), Zu = "\r".charCodeAt(0), ep = "\f".charCodeAt(0), tp = "$".charCodeAt(0), np = "#".charCodeAt(0), rp = "{".charCodeAt(0), hn = "=".charCodeAt(0), ip = "!".charCodeAt(0), sp = "<".charCodeAt(0), ap = ">".charCodeAt(0), Mr = ".".charCodeAt(0), ot = p.CustomToken, Si = ot++, dr = ot++; ot++; -var Ol = ot++, Ul = ot++, Vl = ot++, Bl = ot++, jn = ot++; +var Tl = ot++, Wl = ot++, Ol = ot++, Ul = ot++, Hn = ot++; ot++; -var jl = function(t) { - ep(e, t); +var Vl = function(t) { + Ku(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } return e.prototype.scanNext = function(n) { - if (this.stream.advanceIfChar(ip)) { + if (this.stream.advanceIfChar(tp)) { var r = ["$"]; if (this.ident(r)) - return this.finishToken(n, wi, r.join("")); + return this.finishToken(n, Si, r.join("")); this.stream.goBackTo(n); } - return this.stream.advanceIfChars([sp, ap]) ? this.finishToken(n, hr) : this.stream.advanceIfChars([cn, cn]) ? this.finishToken(n, Ol) : this.stream.advanceIfChars([op, cn]) ? this.finishToken(n, Ul) : this.stream.advanceIfChar(lp) ? this.stream.advanceIfChar(cn) ? this.finishToken(n, Bl) : this.finishToken(n, p.Delim) : this.stream.advanceIfChar(cp) ? this.stream.advanceIfChar(cn) ? this.finishToken(n, Vl) : this.finishToken(n, p.Delim) : this.stream.advanceIfChars([Dr, Dr, Dr]) ? this.finishToken(n, jn) : t.prototype.scanNext.call(this, n); + return this.stream.advanceIfChars([np, rp]) ? this.finishToken(n, dr) : this.stream.advanceIfChars([hn, hn]) ? this.finishToken(n, Tl) : this.stream.advanceIfChars([ip, hn]) ? this.finishToken(n, Wl) : this.stream.advanceIfChar(sp) ? this.stream.advanceIfChar(hn) ? this.finishToken(n, Ul) : this.finishToken(n, p.Delim) : this.stream.advanceIfChar(ap) ? this.stream.advanceIfChar(hn) ? this.finishToken(n, Ol) : this.finishToken(n, p.Delim) : this.stream.advanceIfChars([Mr, Mr, Mr]) ? this.finishToken(n, Hn) : t.prototype.scanNext.call(this, n); }, e.prototype.comment = function() { return t.prototype.comment.call(this) ? !0 : !this.inURL && this.stream.advanceIfChars([Uo, Uo]) ? (this.stream.advanceWhileChar(function(n) { switch (n) { - case tp: - case np: - case rp: + case Qu: + case Zu: + case ep: return !1; default: return !0; } }), !0) : !1; }, e; -}(_n), Ar = Je(), Mr = function() { +}(Dn), Nr = Ge(), zr = function() { function t(e, n) { this.id = e, this.message = n; } return t; -}(), Nr = { - FromExpected: new Mr("scss-fromexpected", Ar("expected.from", "'from' expected")), - ThroughOrToExpected: new Mr("scss-throughexpected", Ar("expected.through", "'through' or 'to' expected")), - InExpected: new Mr("scss-fromexpected", Ar("expected.in", "'in' expected")) -}, hp = function() { +}(), Pr = { + FromExpected: new zr("scss-fromexpected", Nr("expected.from", "'from' expected")), + ThroughOrToExpected: new zr("scss-throughexpected", Nr("expected.through", "'through' or 'to' expected")), + InExpected: new zr("scss-fromexpected", Nr("expected.in", "'in' expected")) +}, op = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -14083,17 +14054,17 @@ var jl = function(t) { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), dp = function(t) { - hp(e, t); +}(), lp = function(t) { + op(e, t); function e() { - return t.call(this, new jl()) || this; + return t.call(this, new Vl()) || this; } return e.prototype._parseStylesheetStatement = function(n) { return n === void 0 && (n = !1), this.peek(p.AtKeyword) ? this._parseWarnAndDebug() || this._parseControlStatement() || this._parseMixinDeclaration() || this._parseMixinContent() || this._parseMixinReference() || this._parseFunctionDeclaration() || this._parseForward() || this._parseUse() || this._parseRuleset(n) || t.prototype._parseStylesheetAtStatement.call(this, n) : this._parseRuleset(!0) || this._parseVariableDeclaration(); }, e.prototype._parseImport = function() { if (!this.peekKeyword("@import")) return null; - var n = this.create(zi); + var n = this.create(Ii); if (this.consumeToken(), !n.addChild(this._parseURILiteral()) && !n.addChild(this._parseStringLiteral())) return this.finish(n, S.URIOrStringExpected); for (; this.accept(p.Comma); ) @@ -14101,7 +14072,7 @@ var jl = function(t) { return this.finish(n, S.URIOrStringExpected); return !this.peek(p.SemiColon) && !this.peek(p.EOF) && n.setMedialist(this._parseMediaQueryList()), this.finish(n); }, e.prototype._parseVariableDeclaration = function(n) { - if (n === void 0 && (n = []), !this.peek(wi)) + if (n === void 0 && (n = []), !this.peek(Si)) return null; var r = this.create(fr); if (!r.setVariable(this._parseVariable())) @@ -14124,18 +14095,18 @@ var jl = function(t) { }, e.prototype._parseKeyframeSelector = function() { return this._tryParseKeyframeSelector() || this._parseControlStatement(this._parseKeyframeSelector.bind(this)) || this._parseVariableDeclaration() || this._parseMixinContent(); }, e.prototype._parseVariable = function() { - if (!this.peek(wi)) + if (!this.peek(Si)) return null; - var n = this.create(Ti); + var n = this.create(Ui); return this.consumeToken(), n; }, e.prototype._parseModuleMember = function() { var n = this.mark(), r = this.create(Pa); return r.setIdentifier(this._parseIdent([Y.Module])) ? this.hasWhitespace() || !this.acceptDelim(".") || this.hasWhitespace() ? (this.restoreAtMark(n), null) : r.addChild(this._parseVariable() || this._parseFunction()) ? r : this.finish(r, S.IdentifierOrVariableExpected) : null; }, e.prototype._parseIdent = function(n) { var r = this; - if (!this.peek(p.Ident) && !this.peek(hr) && !this.peekDelim("-")) + if (!this.peek(p.Ident) && !this.peek(dr) && !this.peekDelim("-")) return null; - var i = this.create(Oe); + var i = this.create(Ue); i.referenceTypes = n, i.isCustomProperty = this.peekRegExp(p.Ident, /^--/); for (var s = !1, a = function() { var o = r.mark(); @@ -14146,20 +14117,20 @@ var jl = function(t) { }, e.prototype._parseTermExpression = function() { return this._parseModuleMember() || this._parseVariable() || this._parseSelectorCombinator() || t.prototype._parseTermExpression.call(this); }, e.prototype._parseInterpolation = function() { - if (this.peek(hr)) { - var n = this.create(ii); + if (this.peek(dr)) { + var n = this.create(ai); return this.consumeToken(), !n.addChild(this._parseExpr()) && !this._parseSelectorCombinator() ? this.accept(p.CurlyR) ? this.finish(n) : this.finish(n, S.ExpressionExpected) : this.accept(p.CurlyR) ? this.finish(n) : this.finish(n, S.RightCurlyExpected); } return null; }, e.prototype._parseOperator = function() { - if (this.peek(Ol) || this.peek(Ul) || this.peek(Vl) || this.peek(Bl) || this.peekDelim(">") || this.peekDelim("<") || this.peekIdent("and") || this.peekIdent("or") || this.peekDelim("%")) { + if (this.peek(Tl) || this.peek(Wl) || this.peek(Ol) || this.peek(Ul) || this.peekDelim(">") || this.peekDelim("<") || this.peekIdent("and") || this.peekIdent("or") || this.peekDelim("%")) { var n = this.createNode(v.Operator); return this.consumeToken(), this.finish(n); } return t.prototype._parseOperator.call(this); }, e.prototype._parseUnaryOperator = function() { if (this.peekIdent("not")) { - var n = this.create(W); + var n = this.create(U); return this.consumeToken(), this.finish(n); } return t.prototype._parseUnaryOperator.call(this); @@ -14169,7 +14140,7 @@ var jl = function(t) { var r = this._tryParseCustomPropertyDeclaration(n); if (r) return r; - var i = this.create(Ze); + var i = this.create(Qe); if (!i.setProperty(this._parseProperty())) return null; if (!this.accept(p.Colon)) @@ -14182,11 +14153,11 @@ var jl = function(t) { return this.finish(i, S.PropertyValueExpected); return this.peek(p.SemiColon) && (i.semicolonPosition = this.token.offset), this.finish(i); }, e.prototype._parseNestedProperties = function() { - var n = this.create(wl); + var n = this.create(vl); return this._parseBody(n, this._parseDeclaration.bind(this)); }, e.prototype._parseExtends = function() { if (this.peekKeyword("@extend")) { - var n = this.create(mn); + var n = this.create(yn); if (this.consumeToken(), !n.getSelectors().addChild(this._parseSimpleSelector())) return this.finish(n, S.SelectorExpected); for (; this.accept(p.Comma); ) @@ -14228,14 +14199,14 @@ var jl = function(t) { }, e.prototype._parseIfStatement = function(n) { return this.peekKeyword("@if") ? this._internalParseIfStatement(n) : null; }, e.prototype._internalParseIfStatement = function(n) { - var r = this.create(Rd); + var r = this.create(kd); if (this.consumeToken(), !r.setExpression(this._parseExpr(!0))) return this.finish(r, S.ExpressionExpected); if (this._parseBody(r, n), this.acceptKeyword("@else")) { if (this.peekIdent("if")) r.setElseClause(this._internalParseIfStatement(n)); else if (this.peek(p.CurlyL)) { - var i = this.create(Md); + var i = this.create(Ed); this._parseBody(i, n), r.setElseClause(i); } } @@ -14243,12 +14214,12 @@ var jl = function(t) { }, e.prototype._parseForStatement = function(n) { if (!this.peekKeyword("@for")) return null; - var r = this.create(Ed); - return this.consumeToken(), r.setVariable(this._parseVariable()) ? this.acceptIdent("from") ? r.addChild(this._parseBinaryExpr()) ? !this.acceptIdent("to") && !this.acceptIdent("through") ? this.finish(r, Nr.ThroughOrToExpected, [p.CurlyR]) : r.addChild(this._parseBinaryExpr()) ? this._parseBody(r, n) : this.finish(r, S.ExpressionExpected, [p.CurlyR]) : this.finish(r, S.ExpressionExpected, [p.CurlyR]) : this.finish(r, Nr.FromExpected, [p.CurlyR]) : this.finish(r, S.VariableNameExpected, [p.CurlyR]); + var r = this.create(_d); + return this.consumeToken(), r.setVariable(this._parseVariable()) ? this.acceptIdent("from") ? r.addChild(this._parseBinaryExpr()) ? !this.acceptIdent("to") && !this.acceptIdent("through") ? this.finish(r, Pr.ThroughOrToExpected, [p.CurlyR]) : r.addChild(this._parseBinaryExpr()) ? this._parseBody(r, n) : this.finish(r, S.ExpressionExpected, [p.CurlyR]) : this.finish(r, S.ExpressionExpected, [p.CurlyR]) : this.finish(r, Pr.FromExpected, [p.CurlyR]) : this.finish(r, S.VariableNameExpected, [p.CurlyR]); }, e.prototype._parseEachStatement = function(n) { if (!this.peekKeyword("@each")) return null; - var r = this.create(Dd); + var r = this.create(Fd); this.consumeToken(); var i = r.getVariables(); if (!i.addChild(this._parseVariable())) @@ -14256,18 +14227,18 @@ var jl = function(t) { for (; this.accept(p.Comma); ) if (!i.addChild(this._parseVariable())) return this.finish(r, S.VariableNameExpected, [p.CurlyR]); - return this.finish(i), this.acceptIdent("in") ? r.addChild(this._parseExpr()) ? this._parseBody(r, n) : this.finish(r, S.ExpressionExpected, [p.CurlyR]) : this.finish(r, Nr.InExpected, [p.CurlyR]); + return this.finish(i), this.acceptIdent("in") ? r.addChild(this._parseExpr()) ? this._parseBody(r, n) : this.finish(r, S.ExpressionExpected, [p.CurlyR]) : this.finish(r, Pr.InExpected, [p.CurlyR]); }, e.prototype._parseWhileStatement = function(n) { if (!this.peekKeyword("@while")) return null; - var r = this.create(Ad); + var r = this.create(Rd); return this.consumeToken(), r.addChild(this._parseBinaryExpr()) ? this._parseBody(r, n) : this.finish(r, S.ExpressionExpected, [p.CurlyR]); }, e.prototype._parseFunctionBodyDeclaration = function() { return this._parseVariableDeclaration() || this._parseReturnStatement() || this._parseWarnAndDebug() || this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this)); }, e.prototype._parseFunctionDeclaration = function() { if (!this.peekKeyword("@function")) return null; - var n = this.create(Qn); + var n = this.create(Zn); if (this.consumeToken(), !n.setIdentifier(this._parseIdent([Y.Function]))) return this.finish(n, S.IdentifierExpected, [p.CurlyR]); if (!this.accept(p.ParenthesisL)) @@ -14286,7 +14257,7 @@ var jl = function(t) { }, e.prototype._parseMixinDeclaration = function() { if (!this.peekKeyword("@mixin")) return null; - var n = this.create(gn); + var n = this.create(wn); if (this.consumeToken(), !n.setIdentifier(this._parseIdent([Y.Mixin]))) return this.finish(n, S.IdentifierExpected, [p.CurlyR]); if (this.accept(p.ParenthesisL)) { @@ -14301,11 +14272,11 @@ var jl = function(t) { return this._parseBody(n, this._parseRuleSetDeclaration.bind(this)); }, e.prototype._parseParameterDeclaration = function() { var n = this.create(pr); - return n.setIdentifier(this._parseVariable()) ? (this.accept(jn), this.accept(p.Colon) && !n.setDefaultValue(this._parseExpr(!0)) ? this.finish(n, S.VariableValueExpected, [], [p.Comma, p.ParenthesisR]) : this.finish(n)) : null; + return n.setIdentifier(this._parseVariable()) ? (this.accept(Hn), this.accept(p.Colon) && !n.setDefaultValue(this._parseExpr(!0)) ? this.finish(n, S.VariableValueExpected, [], [p.Comma, p.ParenthesisR]) : this.finish(n)) : null; }, e.prototype._parseMixinContent = function() { if (!this.peekKeyword("@content")) return null; - var n = this.create(Xd); + var n = this.create(Hd); if (this.consumeToken(), this.accept(p.ParenthesisL)) { if (n.getArguments().addChild(this._parseFunctionArgument())) { for (; this.accept(p.Comma) && !this.peek(p.ParenthesisR); ) @@ -14319,7 +14290,7 @@ var jl = function(t) { }, e.prototype._parseMixinReference = function() { if (!this.peekKeyword("@include")) return null; - var n = this.create(Zn); + var n = this.create(er); this.consumeToken(); var r = this._parseIdent([Y.Mixin]); if (!n.setIdentifier(r)) @@ -14342,7 +14313,7 @@ var jl = function(t) { } return (this.peekIdent("using") || this.peek(p.CurlyL)) && n.setContent(this._parseMixinContentDeclaration()), this.finish(n); }, e.prototype._parseMixinContentDeclaration = function() { - var n = this.create(Yd); + var n = this.create(Gd); if (this.acceptIdent("using")) { if (!this.accept(p.ParenthesisL)) return this.finish(n, S.LeftParenthesisExpected, [p.CurlyL]); @@ -14363,28 +14334,28 @@ var jl = function(t) { if (this.accept(p.Colon)) n.setIdentifier(i); else { - if (this.accept(jn)) + if (this.accept(Hn)) return n.setValue(i), this.finish(n); this.restoreAtMark(r); } - return n.setValue(this._parseExpr(!0)) ? (this.accept(jn), n.addChild(this._parsePrio()), this.finish(n)) : n.setValue(this._tryParsePrio()) ? this.finish(n) : null; + return n.setValue(this._parseExpr(!0)) ? (this.accept(Hn), n.addChild(this._parsePrio()), this.finish(n)) : n.setValue(this._tryParsePrio()) ? this.finish(n) : null; }, e.prototype._parseURLArgument = function() { var n = this.mark(), r = t.prototype._parseURLArgument.call(this); if (!r || !this.peek(p.ParenthesisR)) { this.restoreAtMark(n); - var i = this.create(W); + var i = this.create(U); return i.addChild(this._parseBinaryExpr()), this.finish(i); } return r; }, e.prototype._parseOperation = function() { if (!this.peek(p.ParenthesisL)) return null; - var n = this.create(W); + var n = this.create(U); for (this.consumeToken(); n.addChild(this._parseListElement()); ) this.accept(p.Comma); return this.accept(p.ParenthesisR) ? this.finish(n) : this.finish(n, S.RightParenthesisExpected); }, e.prototype._parseListElement = function() { - var n = this.create(Kd), r = this._parseBinaryExpr(); + var n = this.create(Jd), r = this._parseBinaryExpr(); if (!r) return null; if (this.accept(p.Colon)) { @@ -14396,7 +14367,7 @@ var jl = function(t) { }, e.prototype._parseUse = function() { if (!this.peekKeyword("@use")) return null; - var n = this.create(zd); + var n = this.create(Ad); if (this.consumeToken(), !n.addChild(this._parseStringLiteral())) return this.finish(n, S.StringLiteralExpected); if (!this.peek(p.SemiColon) && !this.peek(p.EOF)) { @@ -14418,12 +14389,12 @@ var jl = function(t) { } return !this.accept(p.SemiColon) && !this.accept(p.EOF) ? this.finish(n, S.SemiColonExpected) : this.finish(n); }, e.prototype._parseModuleConfigDeclaration = function() { - var n = this.create(Pd); + var n = this.create(Md); return n.setIdentifier(this._parseVariable()) ? !this.accept(p.Colon) || !n.setValue(this._parseExpr(!0)) ? this.finish(n, S.VariableValueExpected, [], [p.Comma, p.ParenthesisR]) : this.accept(p.Exclamation) && (this.hasWhitespace() || !this.acceptIdent("default")) ? this.finish(n, S.UnknownKeyword) : this.finish(n) : null; }, e.prototype._parseForward = function() { if (!this.peekKeyword("@forward")) return null; - var n = this.create(Id); + var n = this.create(Nd); if (this.consumeToken(), !n.addChild(this._parseStringLiteral())) return this.finish(n, S.StringLiteralExpected); if (this.acceptIdent("with")) { @@ -14452,14 +14423,14 @@ var jl = function(t) { } return !this.accept(p.SemiColon) && !this.accept(p.EOF) ? this.finish(n, S.SemiColonExpected) : this.finish(n); }, e.prototype._parseForwardVisibility = function() { - var n = this.create(Ld); + var n = this.create(zd); for (n.setIdentifier(this._parseIdent()); n.addChild(this._parseVariable() || this._parseIdent()); ) this.accept(p.Comma); return n.getChildren().length > 1 ? n : null; }, e.prototype._parseSupportsCondition = function() { return this._parseInterpolation() || t.prototype._parseSupportsCondition.call(this); }, e; -}(Wi), up = function() { +}(Vi), cp = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -14477,8 +14448,8 @@ var jl = function(t) { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), M = Je(), pp = function(t) { - up(e, t); +}(), z = Ge(), hp = function(t) { + cp(e, t); function e(n, r) { var i = t.call(this, "$", n, r) || this; return Vo(e.scssModuleLoaders), Vo(e.scssModuleBuiltIns), i; @@ -14492,8 +14463,8 @@ var jl = function(t) { var o = a[s], l = { label: o.label, documentation: o.documentation, - textEdit: $.replace(this.getCompletionRange(n), "'".concat(o.label, "'")), - kind: q.Module + textEdit: H.replace(this.getCompletionRange(n), "'".concat(o.label, "'")), + kind: $.Module }; r.items.push(l); } @@ -14509,9 +14480,9 @@ var jl = function(t) { label: h, detail: l.func, documentation: l.desc, - textEdit: $.replace(this.getCompletionRange(r), c), + textEdit: H.replace(this.getCompletionRange(r), c), insertTextFormat: ze.Snippet, - kind: q.Function + kind: $.Function }; i && (u.sortText = "z"), s.items.push(u); } @@ -14531,8 +14502,8 @@ var jl = function(t) { for (var s = this.getSymbolContext().findSymbolsAtOffset(this.offset, Y.Rule), a = 0, o = s; a < o.length; a++) { var l = o[a], c = { label: l.name, - textEdit: $.replace(this.getCompletionRange(r), l.name), - kind: q.Function + textEdit: H.replace(this.getCompletionRange(r), l.name), + kind: $.Function }; i.items.push(c); } @@ -14562,216 +14533,216 @@ var jl = function(t) { $number: "0", $limit: "1" }, e.colorProposals = [ - { func: "red($color)", desc: M("scss.builtin.red", "Gets the red component of a color.") }, - { func: "green($color)", desc: M("scss.builtin.green", "Gets the green component of a color.") }, - { func: "blue($color)", desc: M("scss.builtin.blue", "Gets the blue component of a color.") }, - { func: "mix($color, $color, [$weight])", desc: M("scss.builtin.mix", "Mixes two colors together.") }, - { func: "hue($color)", desc: M("scss.builtin.hue", "Gets the hue component of a color.") }, - { func: "saturation($color)", desc: M("scss.builtin.saturation", "Gets the saturation component of a color.") }, - { func: "lightness($color)", desc: M("scss.builtin.lightness", "Gets the lightness component of a color.") }, - { func: "adjust-hue($color, $degrees)", desc: M("scss.builtin.adjust-hue", "Changes the hue of a color.") }, - { func: "lighten($color, $amount)", desc: M("scss.builtin.lighten", "Makes a color lighter.") }, - { func: "darken($color, $amount)", desc: M("scss.builtin.darken", "Makes a color darker.") }, - { func: "saturate($color, $amount)", desc: M("scss.builtin.saturate", "Makes a color more saturated.") }, - { func: "desaturate($color, $amount)", desc: M("scss.builtin.desaturate", "Makes a color less saturated.") }, - { func: "grayscale($color)", desc: M("scss.builtin.grayscale", "Converts a color to grayscale.") }, - { func: "complement($color)", desc: M("scss.builtin.complement", "Returns the complement of a color.") }, - { func: "invert($color)", desc: M("scss.builtin.invert", "Returns the inverse of a color.") }, - { func: "alpha($color)", desc: M("scss.builtin.alpha", "Gets the opacity component of a color.") }, + { func: "red($color)", desc: z("scss.builtin.red", "Gets the red component of a color.") }, + { func: "green($color)", desc: z("scss.builtin.green", "Gets the green component of a color.") }, + { func: "blue($color)", desc: z("scss.builtin.blue", "Gets the blue component of a color.") }, + { func: "mix($color, $color, [$weight])", desc: z("scss.builtin.mix", "Mixes two colors together.") }, + { func: "hue($color)", desc: z("scss.builtin.hue", "Gets the hue component of a color.") }, + { func: "saturation($color)", desc: z("scss.builtin.saturation", "Gets the saturation component of a color.") }, + { func: "lightness($color)", desc: z("scss.builtin.lightness", "Gets the lightness component of a color.") }, + { func: "adjust-hue($color, $degrees)", desc: z("scss.builtin.adjust-hue", "Changes the hue of a color.") }, + { func: "lighten($color, $amount)", desc: z("scss.builtin.lighten", "Makes a color lighter.") }, + { func: "darken($color, $amount)", desc: z("scss.builtin.darken", "Makes a color darker.") }, + { func: "saturate($color, $amount)", desc: z("scss.builtin.saturate", "Makes a color more saturated.") }, + { func: "desaturate($color, $amount)", desc: z("scss.builtin.desaturate", "Makes a color less saturated.") }, + { func: "grayscale($color)", desc: z("scss.builtin.grayscale", "Converts a color to grayscale.") }, + { func: "complement($color)", desc: z("scss.builtin.complement", "Returns the complement of a color.") }, + { func: "invert($color)", desc: z("scss.builtin.invert", "Returns the inverse of a color.") }, + { func: "alpha($color)", desc: z("scss.builtin.alpha", "Gets the opacity component of a color.") }, { func: "opacity($color)", desc: "Gets the alpha component (opacity) of a color." }, - { func: "rgba($color, $alpha)", desc: M("scss.builtin.rgba", "Changes the alpha component for a color.") }, - { func: "opacify($color, $amount)", desc: M("scss.builtin.opacify", "Makes a color more opaque.") }, - { func: "fade-in($color, $amount)", desc: M("scss.builtin.fade-in", "Makes a color more opaque.") }, - { func: "transparentize($color, $amount)", desc: M("scss.builtin.transparentize", "Makes a color more transparent.") }, - { func: "fade-out($color, $amount)", desc: M("scss.builtin.fade-out", "Makes a color more transparent.") }, - { func: "adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: M("scss.builtin.adjust-color", "Increases or decreases one or more components of a color.") }, - { func: "scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])", desc: M("scss.builtin.scale-color", "Fluidly scales one or more properties of a color.") }, - { func: "change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: M("scss.builtin.change-color", "Changes one or more properties of a color.") }, - { func: "ie-hex-str($color)", desc: M("scss.builtin.ie-hex-str", "Converts a color into the format understood by IE filters.") } + { func: "rgba($color, $alpha)", desc: z("scss.builtin.rgba", "Changes the alpha component for a color.") }, + { func: "opacify($color, $amount)", desc: z("scss.builtin.opacify", "Makes a color more opaque.") }, + { func: "fade-in($color, $amount)", desc: z("scss.builtin.fade-in", "Makes a color more opaque.") }, + { func: "transparentize($color, $amount)", desc: z("scss.builtin.transparentize", "Makes a color more transparent.") }, + { func: "fade-out($color, $amount)", desc: z("scss.builtin.fade-out", "Makes a color more transparent.") }, + { func: "adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: z("scss.builtin.adjust-color", "Increases or decreases one or more components of a color.") }, + { func: "scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])", desc: z("scss.builtin.scale-color", "Fluidly scales one or more properties of a color.") }, + { func: "change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])", desc: z("scss.builtin.change-color", "Changes one or more properties of a color.") }, + { func: "ie-hex-str($color)", desc: z("scss.builtin.ie-hex-str", "Converts a color into the format understood by IE filters.") } ], e.selectorFuncs = [ - { func: "selector-nest($selectors…)", desc: M("scss.builtin.selector-nest", "Nests selector beneath one another like they would be nested in the stylesheet.") }, - { func: "selector-append($selectors…)", desc: M("scss.builtin.selector-append", "Appends selectors to one another without spaces in between.") }, - { func: "selector-extend($selector, $extendee, $extender)", desc: M("scss.builtin.selector-extend", "Extends $extendee with $extender within $selector.") }, - { func: "selector-replace($selector, $original, $replacement)", desc: M("scss.builtin.selector-replace", "Replaces $original with $replacement within $selector.") }, - { func: "selector-unify($selector1, $selector2)", desc: M("scss.builtin.selector-unify", "Unifies two selectors to produce a selector that matches elements matched by both.") }, - { func: "is-superselector($super, $sub)", desc: M("scss.builtin.is-superselector", "Returns whether $super matches all the elements $sub does, and possibly more.") }, - { func: "simple-selectors($selector)", desc: M("scss.builtin.simple-selectors", "Returns the simple selectors that comprise a compound selector.") }, - { func: "selector-parse($selector)", desc: M("scss.builtin.selector-parse", "Parses a selector into the format returned by &.") } + { func: "selector-nest($selectors…)", desc: z("scss.builtin.selector-nest", "Nests selector beneath one another like they would be nested in the stylesheet.") }, + { func: "selector-append($selectors…)", desc: z("scss.builtin.selector-append", "Appends selectors to one another without spaces in between.") }, + { func: "selector-extend($selector, $extendee, $extender)", desc: z("scss.builtin.selector-extend", "Extends $extendee with $extender within $selector.") }, + { func: "selector-replace($selector, $original, $replacement)", desc: z("scss.builtin.selector-replace", "Replaces $original with $replacement within $selector.") }, + { func: "selector-unify($selector1, $selector2)", desc: z("scss.builtin.selector-unify", "Unifies two selectors to produce a selector that matches elements matched by both.") }, + { func: "is-superselector($super, $sub)", desc: z("scss.builtin.is-superselector", "Returns whether $super matches all the elements $sub does, and possibly more.") }, + { func: "simple-selectors($selector)", desc: z("scss.builtin.simple-selectors", "Returns the simple selectors that comprise a compound selector.") }, + { func: "selector-parse($selector)", desc: z("scss.builtin.selector-parse", "Parses a selector into the format returned by &.") } ], e.builtInFuncs = [ - { func: "unquote($string)", desc: M("scss.builtin.unquote", "Removes quotes from a string.") }, - { func: "quote($string)", desc: M("scss.builtin.quote", "Adds quotes to a string.") }, - { func: "str-length($string)", desc: M("scss.builtin.str-length", "Returns the number of characters in a string.") }, - { func: "str-insert($string, $insert, $index)", desc: M("scss.builtin.str-insert", "Inserts $insert into $string at $index.") }, - { func: "str-index($string, $substring)", desc: M("scss.builtin.str-index", "Returns the index of the first occurance of $substring in $string.") }, - { func: "str-slice($string, $start-at, [$end-at])", desc: M("scss.builtin.str-slice", "Extracts a substring from $string.") }, - { func: "to-upper-case($string)", desc: M("scss.builtin.to-upper-case", "Converts a string to upper case.") }, - { func: "to-lower-case($string)", desc: M("scss.builtin.to-lower-case", "Converts a string to lower case.") }, - { func: "percentage($number)", desc: M("scss.builtin.percentage", "Converts a unitless number to a percentage."), type: "percentage" }, - { func: "round($number)", desc: M("scss.builtin.round", "Rounds a number to the nearest whole number.") }, - { func: "ceil($number)", desc: M("scss.builtin.ceil", "Rounds a number up to the next whole number.") }, - { func: "floor($number)", desc: M("scss.builtin.floor", "Rounds a number down to the previous whole number.") }, - { func: "abs($number)", desc: M("scss.builtin.abs", "Returns the absolute value of a number.") }, - { func: "min($numbers)", desc: M("scss.builtin.min", "Finds the minimum of several numbers.") }, - { func: "max($numbers)", desc: M("scss.builtin.max", "Finds the maximum of several numbers.") }, - { func: "random([$limit])", desc: M("scss.builtin.random", "Returns a random number.") }, - { func: "length($list)", desc: M("scss.builtin.length", "Returns the length of a list.") }, - { func: "nth($list, $n)", desc: M("scss.builtin.nth", "Returns a specific item in a list.") }, - { func: "set-nth($list, $n, $value)", desc: M("scss.builtin.set-nth", "Replaces the nth item in a list.") }, - { func: "join($list1, $list2, [$separator])", desc: M("scss.builtin.join", "Joins together two lists into one.") }, - { func: "append($list1, $val, [$separator])", desc: M("scss.builtin.append", "Appends a single value onto the end of a list.") }, - { func: "zip($lists)", desc: M("scss.builtin.zip", "Combines several lists into a single multidimensional list.") }, - { func: "index($list, $value)", desc: M("scss.builtin.index", "Returns the position of a value within a list.") }, - { func: "list-separator(#list)", desc: M("scss.builtin.list-separator", "Returns the separator of a list.") }, - { func: "map-get($map, $key)", desc: M("scss.builtin.map-get", "Returns the value in a map associated with a given key.") }, - { func: "map-merge($map1, $map2)", desc: M("scss.builtin.map-merge", "Merges two maps together into a new map.") }, - { func: "map-remove($map, $keys)", desc: M("scss.builtin.map-remove", "Returns a new map with keys removed.") }, - { func: "map-keys($map)", desc: M("scss.builtin.map-keys", "Returns a list of all keys in a map.") }, - { func: "map-values($map)", desc: M("scss.builtin.map-values", "Returns a list of all values in a map.") }, - { func: "map-has-key($map, $key)", desc: M("scss.builtin.map-has-key", "Returns whether a map has a value associated with a given key.") }, - { func: "keywords($args)", desc: M("scss.builtin.keywords", "Returns the keywords passed to a function that takes variable arguments.") }, - { func: "feature-exists($feature)", desc: M("scss.builtin.feature-exists", "Returns whether a feature exists in the current Sass runtime.") }, - { func: "variable-exists($name)", desc: M("scss.builtin.variable-exists", "Returns whether a variable with the given name exists in the current scope.") }, - { func: "global-variable-exists($name)", desc: M("scss.builtin.global-variable-exists", "Returns whether a variable with the given name exists in the global scope.") }, - { func: "function-exists($name)", desc: M("scss.builtin.function-exists", "Returns whether a function with the given name exists.") }, - { func: "mixin-exists($name)", desc: M("scss.builtin.mixin-exists", "Returns whether a mixin with the given name exists.") }, - { func: "inspect($value)", desc: M("scss.builtin.inspect", "Returns the string representation of a value as it would be represented in Sass.") }, - { func: "type-of($value)", desc: M("scss.builtin.type-of", "Returns the type of a value.") }, - { func: "unit($number)", desc: M("scss.builtin.unit", "Returns the unit(s) associated with a number.") }, - { func: "unitless($number)", desc: M("scss.builtin.unitless", "Returns whether a number has units.") }, - { func: "comparable($number1, $number2)", desc: M("scss.builtin.comparable", "Returns whether two numbers can be added, subtracted, or compared.") }, - { func: "call($name, $args…)", desc: M("scss.builtin.call", "Dynamically calls a Sass function.") } + { func: "unquote($string)", desc: z("scss.builtin.unquote", "Removes quotes from a string.") }, + { func: "quote($string)", desc: z("scss.builtin.quote", "Adds quotes to a string.") }, + { func: "str-length($string)", desc: z("scss.builtin.str-length", "Returns the number of characters in a string.") }, + { func: "str-insert($string, $insert, $index)", desc: z("scss.builtin.str-insert", "Inserts $insert into $string at $index.") }, + { func: "str-index($string, $substring)", desc: z("scss.builtin.str-index", "Returns the index of the first occurance of $substring in $string.") }, + { func: "str-slice($string, $start-at, [$end-at])", desc: z("scss.builtin.str-slice", "Extracts a substring from $string.") }, + { func: "to-upper-case($string)", desc: z("scss.builtin.to-upper-case", "Converts a string to upper case.") }, + { func: "to-lower-case($string)", desc: z("scss.builtin.to-lower-case", "Converts a string to lower case.") }, + { func: "percentage($number)", desc: z("scss.builtin.percentage", "Converts a unitless number to a percentage."), type: "percentage" }, + { func: "round($number)", desc: z("scss.builtin.round", "Rounds a number to the nearest whole number.") }, + { func: "ceil($number)", desc: z("scss.builtin.ceil", "Rounds a number up to the next whole number.") }, + { func: "floor($number)", desc: z("scss.builtin.floor", "Rounds a number down to the previous whole number.") }, + { func: "abs($number)", desc: z("scss.builtin.abs", "Returns the absolute value of a number.") }, + { func: "min($numbers)", desc: z("scss.builtin.min", "Finds the minimum of several numbers.") }, + { func: "max($numbers)", desc: z("scss.builtin.max", "Finds the maximum of several numbers.") }, + { func: "random([$limit])", desc: z("scss.builtin.random", "Returns a random number.") }, + { func: "length($list)", desc: z("scss.builtin.length", "Returns the length of a list.") }, + { func: "nth($list, $n)", desc: z("scss.builtin.nth", "Returns a specific item in a list.") }, + { func: "set-nth($list, $n, $value)", desc: z("scss.builtin.set-nth", "Replaces the nth item in a list.") }, + { func: "join($list1, $list2, [$separator])", desc: z("scss.builtin.join", "Joins together two lists into one.") }, + { func: "append($list1, $val, [$separator])", desc: z("scss.builtin.append", "Appends a single value onto the end of a list.") }, + { func: "zip($lists)", desc: z("scss.builtin.zip", "Combines several lists into a single multidimensional list.") }, + { func: "index($list, $value)", desc: z("scss.builtin.index", "Returns the position of a value within a list.") }, + { func: "list-separator(#list)", desc: z("scss.builtin.list-separator", "Returns the separator of a list.") }, + { func: "map-get($map, $key)", desc: z("scss.builtin.map-get", "Returns the value in a map associated with a given key.") }, + { func: "map-merge($map1, $map2)", desc: z("scss.builtin.map-merge", "Merges two maps together into a new map.") }, + { func: "map-remove($map, $keys)", desc: z("scss.builtin.map-remove", "Returns a new map with keys removed.") }, + { func: "map-keys($map)", desc: z("scss.builtin.map-keys", "Returns a list of all keys in a map.") }, + { func: "map-values($map)", desc: z("scss.builtin.map-values", "Returns a list of all values in a map.") }, + { func: "map-has-key($map, $key)", desc: z("scss.builtin.map-has-key", "Returns whether a map has a value associated with a given key.") }, + { func: "keywords($args)", desc: z("scss.builtin.keywords", "Returns the keywords passed to a function that takes variable arguments.") }, + { func: "feature-exists($feature)", desc: z("scss.builtin.feature-exists", "Returns whether a feature exists in the current Sass runtime.") }, + { func: "variable-exists($name)", desc: z("scss.builtin.variable-exists", "Returns whether a variable with the given name exists in the current scope.") }, + { func: "global-variable-exists($name)", desc: z("scss.builtin.global-variable-exists", "Returns whether a variable with the given name exists in the global scope.") }, + { func: "function-exists($name)", desc: z("scss.builtin.function-exists", "Returns whether a function with the given name exists.") }, + { func: "mixin-exists($name)", desc: z("scss.builtin.mixin-exists", "Returns whether a mixin with the given name exists.") }, + { func: "inspect($value)", desc: z("scss.builtin.inspect", "Returns the string representation of a value as it would be represented in Sass.") }, + { func: "type-of($value)", desc: z("scss.builtin.type-of", "Returns the type of a value.") }, + { func: "unit($number)", desc: z("scss.builtin.unit", "Returns the unit(s) associated with a number.") }, + { func: "unitless($number)", desc: z("scss.builtin.unitless", "Returns whether a number has units.") }, + { func: "comparable($number1, $number2)", desc: z("scss.builtin.comparable", "Returns whether two numbers can be added, subtracted, or compared.") }, + { func: "call($name, $args…)", desc: z("scss.builtin.call", "Dynamically calls a Sass function.") } ], e.scssAtDirectives = [ { label: "@extend", - documentation: M("scss.builtin.@extend", "Inherits the styles of another selector."), - kind: q.Keyword + documentation: z("scss.builtin.@extend", "Inherits the styles of another selector."), + kind: $.Keyword }, { label: "@at-root", - documentation: M("scss.builtin.@at-root", "Causes one or more rules to be emitted at the root of the document."), - kind: q.Keyword + documentation: z("scss.builtin.@at-root", "Causes one or more rules to be emitted at the root of the document."), + kind: $.Keyword }, { label: "@debug", - documentation: M("scss.builtin.@debug", "Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."), - kind: q.Keyword + documentation: z("scss.builtin.@debug", "Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."), + kind: $.Keyword }, { label: "@warn", - documentation: M("scss.builtin.@warn", "Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."), - kind: q.Keyword + documentation: z("scss.builtin.@warn", "Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."), + kind: $.Keyword }, { label: "@error", - documentation: M("scss.builtin.@error", "Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."), - kind: q.Keyword + documentation: z("scss.builtin.@error", "Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."), + kind: $.Keyword }, { label: "@if", - documentation: M("scss.builtin.@if", "Includes the body if the expression does not evaluate to `false` or `null`."), + documentation: z("scss.builtin.@if", "Includes the body if the expression does not evaluate to `false` or `null`."), insertText: `@if \${1:expr} { $0 }`, insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword }, { label: "@for", - documentation: M("scss.builtin.@for", "For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."), + documentation: z("scss.builtin.@for", "For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."), insertText: "@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}", insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword }, { label: "@each", - documentation: M("scss.builtin.@each", "Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."), + documentation: z("scss.builtin.@each", "Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."), insertText: "@each \\$${1:var} in ${2:list} {\n $0\n}", insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword }, { label: "@while", - documentation: M("scss.builtin.@while", "While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."), + documentation: z("scss.builtin.@while", "While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."), insertText: `@while \${1:condition} { $0 }`, insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword }, { label: "@mixin", - documentation: M("scss.builtin.@mixin", "Defines styles that can be re-used throughout the stylesheet with `@include`."), + documentation: z("scss.builtin.@mixin", "Defines styles that can be re-used throughout the stylesheet with `@include`."), insertText: `@mixin \${1:name} { $0 }`, insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword }, { label: "@include", - documentation: M("scss.builtin.@include", "Includes the styles defined by another mixin into the current rule."), - kind: q.Keyword + documentation: z("scss.builtin.@include", "Includes the styles defined by another mixin into the current rule."), + kind: $.Keyword }, { label: "@function", - documentation: M("scss.builtin.@function", "Defines complex operations that can be re-used throughout stylesheets."), - kind: q.Keyword + documentation: z("scss.builtin.@function", "Defines complex operations that can be re-used throughout stylesheets."), + kind: $.Keyword } ], e.scssModuleLoaders = [ { label: "@use", - documentation: M("scss.builtin.@use", "Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."), + documentation: z("scss.builtin.@use", "Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/at-rules/use" }], insertText: "@use $0;", insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword }, { label: "@forward", - documentation: M("scss.builtin.@forward", "Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."), + documentation: z("scss.builtin.@forward", "Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/at-rules/forward" }], insertText: "@forward $0;", insertTextFormat: ze.Snippet, - kind: q.Keyword + kind: $.Keyword } ], e.scssModuleBuiltIns = [ { label: "sass:math", - documentation: M("scss.builtin.sass:math", "Provides functions that operate on numbers."), + documentation: z("scss.builtin.sass:math", "Provides functions that operate on numbers."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/math" }] }, { label: "sass:string", - documentation: M("scss.builtin.sass:string", "Makes it easy to combine, search, or split apart strings."), + documentation: z("scss.builtin.sass:string", "Makes it easy to combine, search, or split apart strings."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/string" }] }, { label: "sass:color", - documentation: M("scss.builtin.sass:color", "Generates new colors based on existing ones, making it easy to build color themes."), + documentation: z("scss.builtin.sass:color", "Generates new colors based on existing ones, making it easy to build color themes."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/color" }] }, { label: "sass:list", - documentation: M("scss.builtin.sass:list", "Lets you access and modify values in lists."), + documentation: z("scss.builtin.sass:list", "Lets you access and modify values in lists."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/list" }] }, { label: "sass:map", - documentation: M("scss.builtin.sass:map", "Makes it possible to look up the value associated with a key in a map, and much more."), + documentation: z("scss.builtin.sass:map", "Makes it possible to look up the value associated with a key in a map, and much more."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/map" }] }, { label: "sass:selector", - documentation: M("scss.builtin.sass:selector", "Provides access to Sass’s powerful selector engine."), + documentation: z("scss.builtin.sass:selector", "Provides access to Sass’s powerful selector engine."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/selector" }] }, { label: "sass:meta", - documentation: M("scss.builtin.sass:meta", "Exposes the details of Sass’s inner workings."), + documentation: z("scss.builtin.sass:meta", "Exposes the details of Sass’s inner workings."), references: [{ name: "Sass documentation", url: "https://sass-lang.com/documentation/modules/meta" }] } ], e; -}(Ui); +}(ji); function Vo(t) { t.forEach(function(e) { if (e.documentation && e.references && e.references.length > 0) { @@ -14784,7 +14755,7 @@ function Vo(t) { } }); } -var fp = function() { +var dp = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -14802,21 +14773,21 @@ var fp = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), Bo = "/".charCodeAt(0), mp = ` -`.charCodeAt(0), gp = "\r".charCodeAt(0), bp = "\f".charCodeAt(0), zr = "`".charCodeAt(0), Pr = ".".charCodeAt(0), vp = p.CustomToken, xi = vp++, ql = function(t) { - fp(e, t); +}(), Bo = "/".charCodeAt(0), up = ` +`.charCodeAt(0), pp = "\r".charCodeAt(0), fp = "\f".charCodeAt(0), Lr = "`".charCodeAt(0), Ir = ".".charCodeAt(0), mp = p.CustomToken, Ci = mp++, Bl = function(t) { + dp(e, t); function e() { return t !== null && t.apply(this, arguments) || this; } return e.prototype.scanNext = function(n) { var r = this.escapedJavaScript(); - return r !== null ? this.finishToken(n, r) : this.stream.advanceIfChars([Pr, Pr, Pr]) ? this.finishToken(n, xi) : t.prototype.scanNext.call(this, n); + return r !== null ? this.finishToken(n, r) : this.stream.advanceIfChars([Ir, Ir, Ir]) ? this.finishToken(n, Ci) : t.prototype.scanNext.call(this, n); }, e.prototype.comment = function() { return t.prototype.comment.call(this) ? !0 : !this.inURL && this.stream.advanceIfChars([Bo, Bo]) ? (this.stream.advanceWhileChar(function(n) { switch (n) { - case mp: - case gp: - case bp: + case up: + case pp: + case fp: return !1; default: return !0; @@ -14824,11 +14795,11 @@ var fp = function() { }), !0) : !1; }, e.prototype.escapedJavaScript = function() { var n = this.stream.peekChar(); - return n === zr ? (this.stream.advance(1), this.stream.advanceWhileChar(function(r) { - return r !== zr; - }), this.stream.advanceIfChar(zr) ? p.EscapedJavaScript : p.BadEscapedJavaScript) : null; + return n === Lr ? (this.stream.advance(1), this.stream.advanceWhileChar(function(r) { + return r !== Lr; + }), this.stream.advanceIfChar(Lr) ? p.EscapedJavaScript : p.BadEscapedJavaScript) : null; }, e; -}(_n), yp = function() { +}(Dn), gp = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -14846,17 +14817,17 @@ var fp = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), wp = function(t) { - yp(e, t); +}(), bp = function(t) { + gp(e, t); function e() { - return t.call(this, new ql()) || this; + return t.call(this, new Bl()) || this; } return e.prototype._parseStylesheetStatement = function(n) { return n === void 0 && (n = !1), this.peek(p.AtKeyword) ? this._parseVariableDeclaration() || this._parsePlugin() || t.prototype._parseStylesheetAtStatement.call(this, n) : this._tryParseMixinDeclaration() || this._tryParseMixinReference() || this._parseFunction() || this._parseRuleset(!0); }, e.prototype._parseImport = function() { if (!this.peekKeyword("@import") && !this.peekKeyword("@import-once")) return null; - var n = this.create(zi); + var n = this.create(Ii); if (this.consumeToken(), this.accept(p.ParenthesisL)) { if (!this.accept(p.Ident)) return this.finish(n, S.IdentifierExpected, [p.SemiColon]); @@ -14876,7 +14847,7 @@ var fp = function() { }, e.prototype._parseMediaQuery = function() { var n = t.prototype._parseMediaQuery.call(this); if (!n) { - var r = this.create(kl); + var r = this.create(Sl); return r.addChild(this._parseVariable()) ? this.finish(r) : null; } return n; @@ -14902,7 +14873,7 @@ var fp = function() { var n = this.mark(); if (this.peekDelim("#") || this.peekDelim(".")) if (this.consumeToken(), !this.hasWhitespace() && this.accept(p.ParenthesisL)) { - var r = this.create(gn); + var r = this.create(wn); if (r.getParameters().addChild(this._parseMixinParameter())) for (; (this.accept(p.Comma) || this.accept(p.SemiColon)) && !this.peek(p.ParenthesisR); ) r.getParameters().addChild(this._parseMixinParameter()) || this.markError(r, S.IdentifierExpected, [], [p.ParenthesisR]); @@ -14912,7 +14883,7 @@ var fp = function() { return this.restoreAtMark(n), null; if (!this.peek(p.CurlyL)) return null; - var i = this.create(ae); + var i = this.create(ce); return this._parseBody(i, this._parseDetachedRuleSetBody.bind(this)), this.finish(i); }, e.prototype._parseDetachedRuleSetBody = function() { return this._tryParseKeyframeSelector() || this._parseRuleSetDeclaration(); @@ -14923,14 +14894,14 @@ var fp = function() { r = !1; return !r; }, e.prototype._parseLookupValue = function() { - var n = this.create(W), r = this.mark(); + var n = this.create(U), r = this.mark(); return this.accept(p.BracketL) ? (n.addChild(this._parseVariable(!1, !0)) || n.addChild(this._parsePropertyIdentifier())) && this.accept(p.BracketR) || this.accept(p.BracketR) ? n : (this.restoreAtMark(r), null) : (this.restoreAtMark(r), null); }, e.prototype._parseVariable = function(n, r) { n === void 0 && (n = !1), r === void 0 && (r = !1); var i = !n && this.peekDelim("$"); if (!this.peekDelim("@") && !i && !this.peek(p.AtKeyword)) return null; - for (var s = this.create(Ti), a = this.mark(); this.acceptDelim("@") || !n && this.acceptDelim("$"); ) + for (var s = this.create(Ui), a = this.mark(); this.acceptDelim("@") || !n && this.acceptDelim("$"); ) if (this.hasWhitespace()) return this.restoreAtMark(a), null; return !this.accept(p.AtKeyword) && !this.accept(p.Ident) ? (this.restoreAtMark(a), null) : !r && this.peek(p.BracketL) && !this._addLookupChildren(s) ? (this.restoreAtMark(a), null) : s; @@ -14970,7 +14941,7 @@ var fp = function() { }, e.prototype._parseSimpleSelectorBody = function() { return this._parseSelectorCombinator() || t.prototype._parseSimpleSelectorBody.call(this); }, e.prototype._parseSelector = function(n) { - var r = this.create(Fn), i = !1; + var r = this.create(An), i = !1; for (n && (i = r.addChild(this._parseCombinator())); r.addChild(this._parseSimpleSelector()); ) { i = !0; var s = this.mark(); @@ -14997,7 +14968,7 @@ var fp = function() { var r = /^[\w-]+/; if (!this.peekInterpolatedIdent() && !this.peekRegExp(this.token.type, r)) return null; - var i = this.mark(), s = this.create(Oe); + var i = this.mark(), s = this.create(Ue); s.isCustomProperty = this.acceptDelim("-") && this.acceptDelim("-"); var a = !1; return n ? s.isCustomProperty ? a = s.addChild(this._parseIdent()) : a = s.addChild(this._parseRegexp(r)) : s.isCustomProperty ? a = this._acceptInterpolatedIdent(s) : a = this._acceptInterpolatedIdent(s, r), a ? (!n && !this.hasWhitespace() && (this.acceptDelim("+"), this.hasWhitespace() || this.acceptIdent("_")), this.finish(s)) : (this.restoreAtMark(i), null); @@ -15022,7 +14993,7 @@ var fp = function() { } return null; }, e.prototype._tryParseMixinDeclaration = function() { - var n = this.mark(), r = this.create(gn); + var n = this.mark(), r = this.create(wn); if (!r.setIdentifier(this._parseMixinDeclarationIdentifier()) || !this.accept(p.ParenthesisL)) return this.restoreAtMark(n), null; if (r.getParameters().addChild(this._parseMixinParameter())) @@ -15034,22 +15005,22 @@ var fp = function() { }, e.prototype._parseMixinDeclarationIdentifier = function() { var n; if (this.peekDelim("#") || this.peekDelim(".")) { - if (n = this.create(Oe), this.consumeToken(), this.hasWhitespace() || !n.addChild(this._parseIdent())) + if (n = this.create(Ue), this.consumeToken(), this.hasWhitespace() || !n.addChild(this._parseIdent())) return null; } else if (this.peek(p.Hash)) - n = this.create(Oe), this.consumeToken(); + n = this.create(Ue), this.consumeToken(); else return null; return n.referenceTypes = [Y.Mixin], this.finish(n); }, e.prototype._parsePseudo = function() { if (!this.peek(p.Colon)) return null; - var n = this.mark(), r = this.create(mn); + var n = this.mark(), r = this.create(yn); return this.consumeToken(), this.acceptIdent("extend") ? this._completeExtends(r) : (this.restoreAtMark(n), t.prototype._parsePseudo.call(this)); }, e.prototype._parseExtend = function() { if (!this.peekDelim("&")) return null; - var n = this.mark(), r = this.create(mn); + var n = this.mark(), r = this.create(yn); return this.consumeToken(), this.hasWhitespace() || !this.accept(p.Colon) || !this.acceptIdent("extend") ? (this.restoreAtMark(n), null) : this._completeExtends(r); }, e.prototype._completeExtends = function(n) { if (!this.accept(p.ParenthesisL)) @@ -15064,11 +15035,11 @@ var fp = function() { }, e.prototype._parseDetachedRuleSetMixin = function() { if (!this.peek(p.AtKeyword)) return null; - var n = this.mark(), r = this.create(Zn); + var n = this.mark(), r = this.create(er); return r.addChild(this._parseVariable(!0)) && (this.hasWhitespace() || !this.accept(p.ParenthesisL)) ? (this.restoreAtMark(n), null) : this.accept(p.ParenthesisR) ? this.finish(r) : this.finish(r, S.RightParenthesisExpected); }, e.prototype._tryParseMixinReference = function(n) { n === void 0 && (n = !0); - for (var r = this.mark(), i = this.create(Zn), s = this._parseMixinDeclarationIdentifier(); s; ) { + for (var r = this.mark(), i = this.create(er), s = this._parseMixinDeclarationIdentifier(); s; ) { this.acceptDelim(">"); var a = this._parseMixinDeclarationIdentifier(); if (a) @@ -15097,11 +15068,11 @@ var fp = function() { }, e.prototype._parseMixinParameter = function() { var n = this.create(pr); if (this.peekKeyword("@rest")) { - var r = this.create(W); - return this.consumeToken(), this.accept(xi) ? (n.setIdentifier(this.finish(r)), this.finish(n)) : this.finish(n, S.DotExpected, [], [p.Comma, p.ParenthesisR]); + var r = this.create(U); + return this.consumeToken(), this.accept(Ci) ? (n.setIdentifier(this.finish(r)), this.finish(n)) : this.finish(n, S.DotExpected, [], [p.Comma, p.ParenthesisR]); } - if (this.peek(xi)) { - var i = this.create(W); + if (this.peek(Ci)) { + var i = this.create(U); return this.consumeToken(), n.setIdentifier(this.finish(i)), this.finish(n); } var s = !1; @@ -15109,7 +15080,7 @@ var fp = function() { }, e.prototype._parseGuard = function() { if (!this.peekIdent("when")) return null; - var n = this.create(Qd); + var n = this.create(Xd); if (this.consumeToken(), n.isNegated = this.acceptIdent("not"), !n.getConditions().addChild(this._parseGuardCondition())) return this.finish(n, S.ConditionExpected); for (; this.acceptIdent("and") || this.accept(p.Comma); ) @@ -15119,10 +15090,10 @@ var fp = function() { }, e.prototype._parseGuardCondition = function() { if (!this.peek(p.ParenthesisL)) return null; - var n = this.create(Zd); + var n = this.create(Yd); return this.consumeToken(), n.addChild(this._parseExpr()), this.accept(p.ParenthesisR) ? this.finish(n) : this.finish(n, S.RightParenthesisExpected); }, e.prototype._parseFunction = function() { - var n = this.mark(), r = this.create(Rn); + var n = this.mark(), r = this.create(Mn); if (!r.setIdentifier(this._parseFunctionIdentifier())) return null; if (this.hasWhitespace() || !this.accept(p.ParenthesisL)) @@ -15135,7 +15106,7 @@ var fp = function() { return this.accept(p.ParenthesisR) ? this.finish(r) : this.finish(r, S.RightParenthesisExpected); }, e.prototype._parseFunctionIdentifier = function() { if (this.peekDelim("%")) { - var n = this.create(Oe); + var n = this.create(Ue); return n.referenceTypes = [Y.Function], this.consumeToken(), this.finish(n); } return t.prototype._parseFunctionIdentifier.call(this); @@ -15143,12 +15114,12 @@ var fp = function() { var n = this.mark(), r = t.prototype._parseURLArgument.call(this); if (!r || !this.peek(p.ParenthesisR)) { this.restoreAtMark(n); - var i = this.create(W); + var i = this.create(U); return i.addChild(this._parseBinaryExpr()), this.finish(i); } return r; }, e; -}(Wi), xp = function() { +}(Vi), vp = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -15166,8 +15137,8 @@ var fp = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), U = Je(), Sp = function(t) { - xp(e, t); +}(), j = Ge(), yp = function(t) { + vp(e, t); function e(n, r) { return t.call(this, "@", n, r) || this; } @@ -15177,9 +15148,9 @@ var fp = function() { label: l.name, detail: l.example, documentation: l.description, - textEdit: $.replace(this.getCompletionRange(r), l.name + "($0)"), + textEdit: H.replace(this.getCompletionRange(r), l.name + "($0)"), insertTextFormat: ze.Snippet, - kind: q.Function + kind: $.Function }; i && (c.sortText = "z"), s.items.push(c); } @@ -15197,291 +15168,291 @@ var fp = function() { { name: "if", example: "if(condition, trueValue [, falseValue]);", - description: U("less.builtin.if", "returns one of two values depending on a condition.") + description: j("less.builtin.if", "returns one of two values depending on a condition.") }, { name: "boolean", example: "boolean(condition);", - description: U("less.builtin.boolean", '"store" a boolean test for later evaluation in a guard or if().') + description: j("less.builtin.boolean", '"store" a boolean test for later evaluation in a guard or if().') }, { name: "length", example: "length(@list);", - description: U("less.builtin.length", "returns the number of elements in a value list") + description: j("less.builtin.length", "returns the number of elements in a value list") }, { name: "extract", example: "extract(@list, index);", - description: U("less.builtin.extract", "returns a value at the specified position in the list") + description: j("less.builtin.extract", "returns a value at the specified position in the list") }, { name: "range", example: "range([start, ] end [, step]);", - description: U("less.builtin.range", "generate a list spanning a range of values") + description: j("less.builtin.range", "generate a list spanning a range of values") }, { name: "each", example: "each(@list, ruleset);", - description: U("less.builtin.each", "bind the evaluation of a ruleset to each member of a list.") + description: j("less.builtin.each", "bind the evaluation of a ruleset to each member of a list.") }, { name: "escape", example: "escape(@string);", - description: U("less.builtin.escape", "URL encodes a string") + description: j("less.builtin.escape", "URL encodes a string") }, { name: "e", example: "e(@string);", - description: U("less.builtin.e", "escape string content") + description: j("less.builtin.e", "escape string content") }, { name: "replace", example: "replace(@string, @pattern, @replacement[, @flags]);", - description: U("less.builtin.replace", "string replace") + description: j("less.builtin.replace", "string replace") }, { name: "unit", example: "unit(@dimension, [@unit: '']);", - description: U("less.builtin.unit", "remove or change the unit of a dimension") + description: j("less.builtin.unit", "remove or change the unit of a dimension") }, { name: "color", example: "color(@string);", - description: U("less.builtin.color", "parses a string to a color"), + description: j("less.builtin.color", "parses a string to a color"), type: "color" }, { name: "convert", example: "convert(@value, unit);", - description: U("less.builtin.convert", "converts numbers from one type into another") + description: j("less.builtin.convert", "converts numbers from one type into another") }, { name: "data-uri", example: "data-uri([mimetype,] url);", - description: U("less.builtin.data-uri", "inlines a resource and falls back to `url()`"), + description: j("less.builtin.data-uri", "inlines a resource and falls back to `url()`"), type: "url" }, { name: "abs", - description: U("less.builtin.abs", "absolute value of a number"), + description: j("less.builtin.abs", "absolute value of a number"), example: "abs(number);" }, { name: "acos", - description: U("less.builtin.acos", "arccosine - inverse of cosine function"), + description: j("less.builtin.acos", "arccosine - inverse of cosine function"), example: "acos(number);" }, { name: "asin", - description: U("less.builtin.asin", "arcsine - inverse of sine function"), + description: j("less.builtin.asin", "arcsine - inverse of sine function"), example: "asin(number);" }, { name: "ceil", example: "ceil(@number);", - description: U("less.builtin.ceil", "rounds up to an integer") + description: j("less.builtin.ceil", "rounds up to an integer") }, { name: "cos", - description: U("less.builtin.cos", "cosine function"), + description: j("less.builtin.cos", "cosine function"), example: "cos(number);" }, { name: "floor", - description: U("less.builtin.floor", "rounds down to an integer"), + description: j("less.builtin.floor", "rounds down to an integer"), example: "floor(@number);" }, { name: "percentage", - description: U("less.builtin.percentage", "converts to a %, e.g. 0.5 > 50%"), + description: j("less.builtin.percentage", "converts to a %, e.g. 0.5 > 50%"), example: "percentage(@number);", type: "percentage" }, { name: "round", - description: U("less.builtin.round", "rounds a number to a number of places"), + description: j("less.builtin.round", "rounds a number to a number of places"), example: "round(number, [places: 0]);" }, { name: "sqrt", - description: U("less.builtin.sqrt", "calculates square root of a number"), + description: j("less.builtin.sqrt", "calculates square root of a number"), example: "sqrt(number);" }, { name: "sin", - description: U("less.builtin.sin", "sine function"), + description: j("less.builtin.sin", "sine function"), example: "sin(number);" }, { name: "tan", - description: U("less.builtin.tan", "tangent function"), + description: j("less.builtin.tan", "tangent function"), example: "tan(number);" }, { name: "atan", - description: U("less.builtin.atan", "arctangent - inverse of tangent function"), + description: j("less.builtin.atan", "arctangent - inverse of tangent function"), example: "atan(number);" }, { name: "pi", - description: U("less.builtin.pi", "returns pi"), + description: j("less.builtin.pi", "returns pi"), example: "pi();" }, { name: "pow", - description: U("less.builtin.pow", "first argument raised to the power of the second argument"), + description: j("less.builtin.pow", "first argument raised to the power of the second argument"), example: "pow(@base, @exponent);" }, { name: "mod", - description: U("less.builtin.mod", "first argument modulus second argument"), + description: j("less.builtin.mod", "first argument modulus second argument"), example: "mod(number, number);" }, { name: "min", - description: U("less.builtin.min", "returns the lowest of one or more values"), + description: j("less.builtin.min", "returns the lowest of one or more values"), example: "min(@x, @y);" }, { name: "max", - description: U("less.builtin.max", "returns the lowest of one or more values"), + description: j("less.builtin.max", "returns the lowest of one or more values"), example: "max(@x, @y);" } ], e.colorProposals = [ { name: "argb", example: "argb(@color);", - description: U("less.builtin.argb", "creates a #AARRGGBB") + description: j("less.builtin.argb", "creates a #AARRGGBB") }, { name: "hsl", example: "hsl(@hue, @saturation, @lightness);", - description: U("less.builtin.hsl", "creates a color") + description: j("less.builtin.hsl", "creates a color") }, { name: "hsla", example: "hsla(@hue, @saturation, @lightness, @alpha);", - description: U("less.builtin.hsla", "creates a color") + description: j("less.builtin.hsla", "creates a color") }, { name: "hsv", example: "hsv(@hue, @saturation, @value);", - description: U("less.builtin.hsv", "creates a color") + description: j("less.builtin.hsv", "creates a color") }, { name: "hsva", example: "hsva(@hue, @saturation, @value, @alpha);", - description: U("less.builtin.hsva", "creates a color") + description: j("less.builtin.hsva", "creates a color") }, { name: "hue", example: "hue(@color);", - description: U("less.builtin.hue", "returns the `hue` channel of `@color` in the HSL space") + description: j("less.builtin.hue", "returns the `hue` channel of `@color` in the HSL space") }, { name: "saturation", example: "saturation(@color);", - description: U("less.builtin.saturation", "returns the `saturation` channel of `@color` in the HSL space") + description: j("less.builtin.saturation", "returns the `saturation` channel of `@color` in the HSL space") }, { name: "lightness", example: "lightness(@color);", - description: U("less.builtin.lightness", "returns the `lightness` channel of `@color` in the HSL space") + description: j("less.builtin.lightness", "returns the `lightness` channel of `@color` in the HSL space") }, { name: "hsvhue", example: "hsvhue(@color);", - description: U("less.builtin.hsvhue", "returns the `hue` channel of `@color` in the HSV space") + description: j("less.builtin.hsvhue", "returns the `hue` channel of `@color` in the HSV space") }, { name: "hsvsaturation", example: "hsvsaturation(@color);", - description: U("less.builtin.hsvsaturation", "returns the `saturation` channel of `@color` in the HSV space") + description: j("less.builtin.hsvsaturation", "returns the `saturation` channel of `@color` in the HSV space") }, { name: "hsvvalue", example: "hsvvalue(@color);", - description: U("less.builtin.hsvvalue", "returns the `value` channel of `@color` in the HSV space") + description: j("less.builtin.hsvvalue", "returns the `value` channel of `@color` in the HSV space") }, { name: "red", example: "red(@color);", - description: U("less.builtin.red", "returns the `red` channel of `@color`") + description: j("less.builtin.red", "returns the `red` channel of `@color`") }, { name: "green", example: "green(@color);", - description: U("less.builtin.green", "returns the `green` channel of `@color`") + description: j("less.builtin.green", "returns the `green` channel of `@color`") }, { name: "blue", example: "blue(@color);", - description: U("less.builtin.blue", "returns the `blue` channel of `@color`") + description: j("less.builtin.blue", "returns the `blue` channel of `@color`") }, { name: "alpha", example: "alpha(@color);", - description: U("less.builtin.alpha", "returns the `alpha` channel of `@color`") + description: j("less.builtin.alpha", "returns the `alpha` channel of `@color`") }, { name: "luma", example: "luma(@color);", - description: U("less.builtin.luma", "returns the `luma` value (perceptual brightness) of `@color`") + description: j("less.builtin.luma", "returns the `luma` value (perceptual brightness) of `@color`") }, { name: "saturate", example: "saturate(@color, 10%);", - description: U("less.builtin.saturate", "return `@color` 10% points more saturated") + description: j("less.builtin.saturate", "return `@color` 10% points more saturated") }, { name: "desaturate", example: "desaturate(@color, 10%);", - description: U("less.builtin.desaturate", "return `@color` 10% points less saturated") + description: j("less.builtin.desaturate", "return `@color` 10% points less saturated") }, { name: "lighten", example: "lighten(@color, 10%);", - description: U("less.builtin.lighten", "return `@color` 10% points lighter") + description: j("less.builtin.lighten", "return `@color` 10% points lighter") }, { name: "darken", example: "darken(@color, 10%);", - description: U("less.builtin.darken", "return `@color` 10% points darker") + description: j("less.builtin.darken", "return `@color` 10% points darker") }, { name: "fadein", example: "fadein(@color, 10%);", - description: U("less.builtin.fadein", "return `@color` 10% points less transparent") + description: j("less.builtin.fadein", "return `@color` 10% points less transparent") }, { name: "fadeout", example: "fadeout(@color, 10%);", - description: U("less.builtin.fadeout", "return `@color` 10% points more transparent") + description: j("less.builtin.fadeout", "return `@color` 10% points more transparent") }, { name: "fade", example: "fade(@color, 50%);", - description: U("less.builtin.fade", "return `@color` with 50% transparency") + description: j("less.builtin.fade", "return `@color` with 50% transparency") }, { name: "spin", example: "spin(@color, 10);", - description: U("less.builtin.spin", "return `@color` with a 10 degree larger in hue") + description: j("less.builtin.spin", "return `@color` with a 10 degree larger in hue") }, { name: "mix", example: "mix(@color1, @color2, [@weight: 50%]);", - description: U("less.builtin.mix", "return a mix of `@color1` and `@color2`") + description: j("less.builtin.mix", "return a mix of `@color1` and `@color2`") }, { name: "greyscale", example: "greyscale(@color);", - description: U("less.builtin.greyscale", "returns a grey, 100% desaturated color") + description: j("less.builtin.greyscale", "returns a grey, 100% desaturated color") }, { name: "contrast", example: "contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);", - description: U("less.builtin.contrast", "return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes") + description: j("less.builtin.contrast", "return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes") }, { name: "multiply", @@ -15520,12 +15491,12 @@ var fp = function() { example: "negation(@color1, @color2);" } ], e; -}(Ui); -function Cp(t, e) { - var n = kp(t); - return _p(n, e); +}(ji); +function wp(t, e) { + var n = xp(t); + return Sp(n, e); } -function kp(t) { +function xp(t) { function e(u) { return t.positionAt(u.offset).line; } @@ -15535,19 +15506,19 @@ function kp(t) { function r() { switch (t.languageId) { case "scss": - return new jl(); + return new Vl(); case "less": - return new ql(); + return new Bl(); default: - return new _n(); + return new Dn(); } } - function i(u, f) { - var m = e(u), g = n(u); - return m !== g ? { - startLine: m, + function i(u, m) { + var f = e(u), g = n(u); + return f !== g ? { + startLine: f, endLine: g, - kind: f + kind: m } : null; } var s = [], a = [], o = r(); @@ -15555,7 +15526,7 @@ function kp(t) { for (var l = o.scan(), c = null, h = function() { switch (l.type) { case p.CurlyL: - case hr: { + case dr: { a.push({ line: e(l), type: "brace", isStart: !0 }); break; } @@ -15564,26 +15535,26 @@ function kp(t) { var u = jo(a, "brace"); if (!u) break; - var f = n(l); - u.type === "brace" && (c && n(c) !== f && f--, u.line !== f && s.push({ + var m = n(l); + u.type === "brace" && (c && n(c) !== m && m--, u.line !== m && s.push({ startLine: u.line, - endLine: f, + endLine: m, kind: void 0 })); } break; } case p.Comment: { - var m = function(w) { + var f = function(w) { return w === "#region" ? { line: e(l), type: "comment", isStart: !0 } : { line: n(l), type: "comment", isStart: !1 }; }, g = function(w) { var x = w.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//); if (x) - return m(x[1]); + return f(x[1]); if (t.languageId === "scss" || t.languageId === "less") { var k = w.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/); if (k) - return m(k[1]); + return f(k[1]); } return null; }, b = g(l); @@ -15620,7 +15591,7 @@ function jo(t, e) { return t.splice(n, 1)[0]; return null; } -function _p(t, e) { +function Sp(t, e) { var n = e && e.rangeLimit || Number.MAX_VALUE, r = t.sort(function(a, o) { var l = a.startLine - o.startLine; return l === 0 && (l = a.endLine - o.endLine), l; @@ -15629,7 +15600,7 @@ function _p(t, e) { a.startLine < s && s < a.endLine || (i.push(a), s = a.endLine); }), i.length < n ? i : i.slice(0, n); } -var $l; +var jl; (function() { var t = [ , @@ -15904,17 +15875,17 @@ You passed in: '` + this.raw_options[l] + "'"); function(i, s, a) { var o = a(16).Beautifier, l = a(17).Options; function c(h, u) { - var f = new o(h, u); - return f.beautify(); + var m = new o(h, u); + return m.beautify(); } i.exports = c, i.exports.defaultOptions = function() { return new l(); }; }, function(i, s, a) { - var o = a(17).Options, l = a(2).Output, c = a(8).InputScanner, h = a(13).Directives, u = new h(/\/\*/, /\*\//), f = /\r\n|[\r\n]/, m = /\r\n|[\r\n]/g, g = /\s/, b = /(?:\s|\n)+/g, y = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g, w = /\/\/(?:[^\n\r\u2028\u2029]*)/g; - function x(k, F) { - this._source_text = k || "", this._options = new o(F), this._ch = null, this._input = null, this.NESTED_AT_RULE = { + var o = a(17).Options, l = a(2).Output, c = a(8).InputScanner, h = a(13).Directives, u = new h(/\/\*/, /\*\//), m = /\r\n|[\r\n]/, f = /\r\n|[\r\n]/g, g = /\s/, b = /(?:\s|\n)+/g, y = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g, w = /\/\/(?:[^\n\r\u2028\u2029]*)/g; + function x(k, P) { + this._source_text = k || "", this._options = new o(P), this._ch = null, this._input = null, this.NESTED_AT_RULE = { "@page": !0, "@font-face": !0, "@keyframes": !0, @@ -15928,23 +15899,23 @@ You passed in: '` + this.raw_options[l] + "'"); }; } x.prototype.eatString = function(k) { - var F = ""; + var P = ""; for (this._ch = this._input.next(); this._ch; ) { - if (F += this._ch, this._ch === "\\") - F += this._input.next(); + if (P += this._ch, this._ch === "\\") + P += this._input.next(); else if (k.indexOf(this._ch) !== -1 || this._ch === ` `) break; this._ch = this._input.next(); } - return F; + return P; }, x.prototype.eatWhitespace = function(k) { - for (var F = g.test(this._input.peek()), N = 0; g.test(this._input.peek()); ) + for (var P = g.test(this._input.peek()), N = 0; g.test(this._input.peek()); ) this._ch = this._input.next(), k && this._ch === ` ` && (N === 0 || N < this._options.max_preserve_newlines) && (N++, this._output.add_new_line(!0)); - return F; + return P; }, x.prototype.foundNestedPseudoClass = function() { - for (var k = 0, F = 1, N = this._input.peek(F); N; ) { + for (var k = 0, P = 1, N = this._input.peek(P); N; ) { if (N === "{") return !0; if (N === "(") @@ -15955,7 +15926,7 @@ You passed in: '` + this.raw_options[l] + "'"); k -= 1; } else if (N === ";" || N === "}") return !1; - F++, N = this._input.peek(F); + P++, N = this._input.peek(P); } return !1; }, x.prototype.print_string = function(k) { @@ -15969,31 +15940,31 @@ You passed in: '` + this.raw_options[l] + "'"); }, x.prototype.beautify = function() { if (this._options.disabled) return this._source_text; - var k = this._source_text, F = this._options.eol; - F === "auto" && (F = ` -`, k && f.test(k || "") && (F = k.match(f)[0])), k = k.replace(m, ` + var k = this._source_text, P = this._options.eol; + P === "auto" && (P = ` +`, k && m.test(k || "") && (P = k.match(m)[0])), k = k.replace(f, ` `); var N = k.match(/^[\t ]*/)[0]; this._output = new l(this._options, N), this._input = new c(k), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null; - for (var j = 0, H = !1, B = !1, P = !1, z = !1, A = !1, R = this._ch, L, O, K; L = this._input.read(b), O = L !== "", K = R, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), R = this._ch, this._ch; ) + for (var V = 0, I = !1, T = !1, D = !1, E = !1, R = !1, F = this._ch, W, B, K; W = this._input.read(b), B = W !== "", K = F, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), F = this._ch, this._ch; ) if (this._ch === "/" && this._input.peek() === "*") { this._output.add_new_line(), this._input.back(); - var re = this._input.read(y), E = u.get_directives(re); - E && E.ignore === "start" && (re += u.readIgnored(this._input)), this.print_string(re), this.eatWhitespace(!0), this._output.add_new_line(); + var ie = this._input.read(y), A = u.get_directives(ie); + A && A.ignore === "start" && (ie += u.readIgnored(this._input)), this.print_string(ie), this.eatWhitespace(!0), this._output.add_new_line(); } else if (this._ch === "/" && this._input.peek() === "/") this._output.space_before_token = !0, this._input.back(), this.print_string(this._input.read(w)), this.eatWhitespace(!0); else if (this._ch === "@") - if (this.preserveSingleSpace(O), this._input.peek() === "{") + if (this.preserveSingleSpace(B), this._input.peek() === "{") this.print_string(this._ch + this.eatString("}")); else { this.print_string(this._ch); var C = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g); - C.match(/[ :]$/) && (C = this.eatString(": ").replace(/\s$/, ""), this.print_string(C), this._output.space_before_token = !0), C = C.replace(/\s$/, ""), C === "extend" ? z = !0 : C === "import" && (A = !0), C in this.NESTED_AT_RULE ? (this._nestedLevel += 1, C in this.CONDITIONAL_GROUP_RULE && (P = !0)) : !H && j === 0 && C.indexOf(":") !== -1 && (B = !0, this.indent()); + C.match(/[ :]$/) && (C = this.eatString(": ").replace(/\s$/, ""), this.print_string(C), this._output.space_before_token = !0), C = C.replace(/\s$/, ""), C === "extend" ? E = !0 : C === "import" && (R = !0), C in this.NESTED_AT_RULE ? (this._nestedLevel += 1, C in this.CONDITIONAL_GROUP_RULE && (D = !0)) : !I && V === 0 && C.indexOf(":") !== -1 && (T = !0, this.indent()); } else - this._ch === "#" && this._input.peek() === "{" ? (this.preserveSingleSpace(O), this.print_string(this._ch + this.eatString("}"))) : this._ch === "{" ? (B && (B = !1, this.outdent()), P ? (P = !1, H = this._indentLevel >= this._nestedLevel) : H = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && H && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line()) : this._ch === "}" ? (this.outdent(), this._output.add_new_line(), K === "{" && this._output.trim(!0), A = !1, z = !1, B && (this.outdent(), B = !1), this.print_string(this._ch), H = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0)) : this._ch === ":" ? (H || P) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !z && j === 0 ? (this.print_string(":"), B || (B = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":")) : this._ch === '"' || this._ch === "'" ? (this.preserveSingleSpace(O), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0)) : this._ch === ";" ? j === 0 ? (B && (this.outdent(), B = !1), z = !1, A = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0) : this._ch === "(" ? this._input.lookBack("url") ? (this.print_string(this._ch), this.eatWhitespace(), j++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), j && (j--, this.outdent()))) : (this.preserveSingleSpace(O), this.print_string(this._ch), this.eatWhitespace(), j++, this.indent()) : this._ch === ")" ? (j && (j--, this.outdent()), this.print_string(this._ch)) : this._ch === "," ? (this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && !B && j === 0 && !A && !z ? this._output.add_new_line() : this._output.space_before_token = !0) : (this._ch === ">" || this._ch === "+" || this._ch === "~") && !B && j === 0 ? this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && g.test(this._ch) && (this._ch = "")) : this._ch === "]" ? this.print_string(this._ch) : this._ch === "[" ? (this.preserveSingleSpace(O), this.print_string(this._ch)) : this._ch === "=" ? (this.eatWhitespace(), this.print_string("="), g.test(this._ch) && (this._ch = "")) : this._ch === "!" && !this._input.lookBack("\\") ? (this.print_string(" "), this.print_string(this._ch)) : (this.preserveSingleSpace(O), this.print_string(this._ch)); - var D = this._output.get_code(F); - return D; + this._ch === "#" && this._input.peek() === "{" ? (this.preserveSingleSpace(B), this.print_string(this._ch + this.eatString("}"))) : this._ch === "{" ? (T && (T = !1, this.outdent()), D ? (D = !1, I = this._indentLevel >= this._nestedLevel) : I = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && I && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line()) : this._ch === "}" ? (this.outdent(), this._output.add_new_line(), K === "{" && this._output.trim(!0), R = !1, E = !1, T && (this.outdent(), T = !1), this.print_string(this._ch), I = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0)) : this._ch === ":" ? (I || D) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !E && V === 0 ? (this.print_string(":"), T || (T = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":")) : this._ch === '"' || this._ch === "'" ? (this.preserveSingleSpace(B), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0)) : this._ch === ";" ? V === 0 ? (T && (this.outdent(), T = !1), E = !1, R = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0) : this._ch === "(" ? this._input.lookBack("url") ? (this.print_string(this._ch), this.eatWhitespace(), V++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), V && (V--, this.outdent()))) : (this.preserveSingleSpace(B), this.print_string(this._ch), this.eatWhitespace(), V++, this.indent()) : this._ch === ")" ? (V && (V--, this.outdent()), this.print_string(this._ch)) : this._ch === "," ? (this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && !T && V === 0 && !R && !E ? this._output.add_new_line() : this._output.space_before_token = !0) : (this._ch === ">" || this._ch === "+" || this._ch === "~") && !T && V === 0 ? this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && g.test(this._ch) && (this._ch = "")) : this._ch === "]" ? this.print_string(this._ch) : this._ch === "[" ? (this.preserveSingleSpace(B), this.print_string(this._ch)) : this._ch === "=" ? (this.eatWhitespace(), this.print_string("="), g.test(this._ch) && (this._ch = "")) : this._ch === "!" && !this._input.lookBack("\\") ? (this.print_string(" "), this.print_string(this._ch)) : (this.preserveSingleSpace(B), this.print_string(this._ch)); + var M = this._output.get_code(P); + return M; }, i.exports.Beautifier = x; }, function(i, s, a) { @@ -16004,8 +15975,8 @@ You passed in: '` + this.raw_options[l] + "'"); this.space_around_combinator = this._get_boolean("space_around_combinator") || h; var u = this._get_selection_list("brace_style", ["collapse", "expand", "end-expand", "none", "preserve-inline"]); this.brace_style = "collapse"; - for (var f = 0; f < u.length; f++) - u[f] !== "expand" ? this.brace_style = "collapse" : this.brace_style = u[f]; + for (var m = 0; m < u.length; m++) + u[m] !== "expand" ? this.brace_style = "collapse" : this.brace_style = u[m]; } l.prototype = new o(), i.exports.Options = l; } @@ -16020,10 +15991,10 @@ You passed in: '` + this.raw_options[l] + "'"); return t[i](a, a.exports, n), a.exports; } var r = n(15); - $l = r; + jl = r; })(); -var Fp = $l; -function Rp(t, e, n) { +var Cp = jl; +function kp(t, e, n) { var r = t.getText(), i = !0, s = 0, a = !1, o = n.tabSize || 4; if (e) { for (var l = t.offsetAt(e.start), c = l; c > 0 && Ho(r, c - 1); ) @@ -16031,29 +16002,29 @@ function Rp(t, e, n) { c === 0 || $o(r, c - 1) ? l = c : c < l && (l = c + 1); for (var h = t.offsetAt(e.end), u = h; u < r.length && Ho(r, u); ) u++; - if ((u === r.length || $o(r, u)) && (h = u), e = te.create(t.positionAt(l), t.positionAt(h)), a = Ap(r, l), i = h === r.length, r = r.substring(l, h), l !== 0) { - var f = t.offsetAt(Fe.create(e.start.line, 0)); - s = Mp(t.getText(), f, n); + if ((u === r.length || $o(r, u)) && (h = u), e = ne.create(t.positionAt(l), t.positionAt(h)), a = Rp(r, l), i = h === r.length, r = r.substring(l, h), l !== 0) { + var m = t.offsetAt(_e.create(e.start.line, 0)); + s = Ep(t.getText(), m, n); } a && (r = `{ `.concat(qo(r))); } else - e = te.create(Fe.create(0, 0), t.positionAt(r.length)); - var m = { + e = ne.create(_e.create(0, 0), t.positionAt(r.length)); + var f = { indent_size: o, indent_char: n.insertSpaces ? " " : " ", - end_with_newline: i && it(n, "insertFinalNewline", !1), - selector_separator_newline: it(n, "newlineBetweenSelectors", !0), - newline_between_rules: it(n, "newlineBetweenRules", !0), - space_around_selector_separator: it(n, "spaceAroundSelectorSeparator", !1), - brace_style: it(n, "braceStyle", "collapse"), - indent_empty_lines: it(n, "indentEmptyLines", !1), - max_preserve_newlines: it(n, "maxPreserveNewLines", void 0), - preserve_newlines: it(n, "preserveNewLines", !0), - wrap_line_length: it(n, "wrapLineLength", void 0), + end_with_newline: i && rt(n, "insertFinalNewline", !1), + selector_separator_newline: rt(n, "newlineBetweenSelectors", !0), + newline_between_rules: rt(n, "newlineBetweenRules", !0), + space_around_selector_separator: rt(n, "spaceAroundSelectorSeparator", !1), + brace_style: rt(n, "braceStyle", "collapse"), + indent_empty_lines: rt(n, "indentEmptyLines", !1), + max_preserve_newlines: rt(n, "maxPreserveNewLines", void 0), + preserve_newlines: rt(n, "preserveNewLines", !0), + wrap_line_length: rt(n, "wrapLineLength", void 0), eol: ` ` - }, g = Fp(r, m); + }, g = Cp(r, f); if (a && (g = qo(g.substring(2))), s > 0) { var b = n.insertSpaces ? Na(" ", o * s) : Na(" ", s); g = g.split(` @@ -16068,19 +16039,19 @@ function Rp(t, e, n) { function qo(t) { return t.replace(/^\s+/, ""); } -var Ep = "{".charCodeAt(0), Dp = "}".charCodeAt(0); -function Ap(t, e) { +var _p = "{".charCodeAt(0), Fp = "}".charCodeAt(0); +function Rp(t, e) { for (; e >= 0; ) { var n = t.charCodeAt(e); - if (n === Ep) + if (n === _p) return !0; - if (n === Dp) + if (n === Fp) return !1; e--; } return !1; } -function it(t, e, n) { +function rt(t, e, n) { if (t && t.hasOwnProperty(e)) { var r = t[e]; if (r !== null) @@ -16088,7 +16059,7 @@ function it(t, e, n) { } return n; } -function Mp(t, e, n) { +function Ep(t, e, n) { for (var r = e, i = 0, s = n.tabSize || 4; r < t.length; ) { var a = t.charAt(r); if (a === " ") @@ -16108,7 +16079,7 @@ function $o(t, e) { function Ho(t, e) { return " ".indexOf(t.charAt(e)) !== -1; } -var Np = { +var Dp = { version: 1.1, properties: [ { @@ -38087,7 +38058,7 @@ In order to let ::-webkit-progress-value take effect, -webkit-appearance needs t description: "The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled." } ] -}, Hl = function() { +}, ql = function() { function t(e) { this._properties = [], this._atDirectives = [], this._pseudoClasses = [], this._pseudoElements = [], this.addData(e); } @@ -38103,44 +38074,44 @@ In order to let ::-webkit-progress-value take effect, -webkit-appearance needs t if (Array.isArray(e.properties)) for (var n = 0, r = e.properties; n < r.length; n++) { var i = r[n]; - zp(i) && this._properties.push(i); + Ap(i) && this._properties.push(i); } if (Array.isArray(e.atDirectives)) for (var s = 0, a = e.atDirectives; s < a.length; s++) { var i = a[s]; - Pp(i) && this._atDirectives.push(i); + Mp(i) && this._atDirectives.push(i); } if (Array.isArray(e.pseudoClasses)) for (var o = 0, l = e.pseudoClasses; o < l.length; o++) { var i = l[o]; - Ip(i) && this._pseudoClasses.push(i); + Np(i) && this._pseudoClasses.push(i); } if (Array.isArray(e.pseudoElements)) for (var c = 0, h = e.pseudoElements; c < h.length; c++) { var i = h[c]; - Lp(i) && this._pseudoElements.push(i); + zp(i) && this._pseudoElements.push(i); } }, t; }(); +function Ap(t) { + return typeof t.name == "string"; +} +function Mp(t) { + return typeof t.name == "string"; +} +function Np(t) { + return typeof t.name == "string"; +} function zp(t) { return typeof t.name == "string"; } -function Pp(t) { - return typeof t.name == "string"; -} -function Ip(t) { - return typeof t.name == "string"; -} -function Lp(t) { - return typeof t.name == "string"; -} -var Hi = function() { +var Xi = function() { function t(e) { this.dataProviders = [], this._propertySet = {}, this._atDirectiveSet = {}, this._pseudoClassSet = {}, this._pseudoElementSet = {}, this._properties = [], this._atDirectives = [], this._pseudoClasses = [], this._pseudoElements = [], this.setDataProviders((e == null ? void 0 : e.useDefaultDataProvider) !== !1, (e == null ? void 0 : e.customDataProviders) || []); } return t.prototype.setDataProviders = function(e, n) { var r; - this.dataProviders = [], e && this.dataProviders.push(new Hl(Np)), (r = this.dataProviders).push.apply(r, n), this.collectData(); + this.dataProviders = [], e && this.dataProviders.push(new ql(Dp)), (r = this.dataProviders).push.apply(r, n), this.collectData(); }, t.prototype.collectData = function() { var e = this; this._propertySet = {}, this._atDirectiveSet = {}, this._pseudoClassSet = {}, this._pseudoElementSet = {}, this.dataProviders.forEach(function(n) { @@ -38153,7 +38124,7 @@ var Hi = function() { }), n.providePseudoElements().forEach(function(r) { e._pseudoElementSet[r.name] || (e._pseudoElementSet[r.name] = r); }); - }), this._properties = In(this._propertySet), this._atDirectives = In(this._atDirectiveSet), this._pseudoClasses = In(this._pseudoClassSet), this._pseudoElements = In(this._pseudoElementSet); + }), this._properties = On(this._propertySet), this._atDirectives = On(this._atDirectiveSet), this._pseudoClasses = On(this._pseudoClassSet), this._pseudoElements = On(this._pseudoElementSet); }, t.prototype.getProperty = function(e) { return this._propertySet[e]; }, t.prototype.getAtDirective = function(e) { @@ -38176,11 +38147,11 @@ var Hi = function() { return this.isKnownProperty(e) && (!this._propertySet[e.toLowerCase()].status || this._propertySet[e.toLowerCase()].status === "standard"); }, t; }(); -function Tp(t, e, n) { +function Pp(t, e, n) { function r(s) { for (var a = i(s), o = void 0, l = a.length - 1; l >= 0; l--) - o = sr.create(te.create(t.positionAt(a[l][0]), t.positionAt(a[l][1])), o); - return o || (o = sr.create(te.create(s, s))), o; + o = ar.create(ne.create(t.positionAt(a[l][0]), t.positionAt(a[l][1])), o); + return o || (o = ar.create(ne.create(s, s))), o; } return e.map(r); function i(s) { @@ -38197,7 +38168,7 @@ function Tp(t, e, n) { return l; } } -var Wp = function() { +var Lp = function() { var t = function(e, n) { return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) { r.__proto__ = i; @@ -38215,7 +38186,7 @@ var Wp = function() { } e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r()); }; -}(), Op = function(t, e, n, r) { +}(), Ip = function(t, e, n, r) { function i(s) { return s instanceof n ? s : new n(function(a) { a(s); @@ -38241,7 +38212,7 @@ var Wp = function() { } c((r = r.apply(t, e || [])).next()); }); -}, Up = function(t, e) { +}, Tp = function(t, e) { var n = { label: 0, sent: function() { if (s[0] & 1) throw s[1]; @@ -38305,15 +38276,15 @@ var Wp = function() { throw c[1]; return { value: c[0] ? c[1] : void 0, done: !0 }; } -}, Vp = function(t) { - Wp(e, t); +}, Wp = function(t) { + Lp(e, t); function e(n) { return t.call(this, n, !0) || this; } return e.prototype.isRawStringDocumentLinkNode = function(n) { return t.prototype.isRawStringDocumentLinkNode.call(this, n) || n.type === v.Use || n.type === v.Forward; }, e.prototype.resolveRelativeReference = function(n, r, i, s) { - return Op(this, void 0, void 0, function() { + return Ip(this, void 0, void 0, function() { function a(u) { if (u.path !== "" && !(u.path.endsWith(".scss") || u.path.endsWith(".css"))) { if (u.path.endsWith("/")) @@ -38321,24 +38292,24 @@ var Wp = function() { u.with({ path: u.path + "index.scss" }).toString(), u.with({ path: u.path + "_index.scss" }).toString() ]; - var f = u.path.split("/"), m = f[f.length - 1], g = u.path.slice(0, -m.length); - if (m.startsWith("_")) + var m = u.path.split("/"), f = m[m.length - 1], g = u.path.slice(0, -f.length); + if (f.startsWith("_")) return u.path.endsWith(".scss") ? void 0 : [u.with({ path: u.path + ".scss" }).toString()]; - var b = m + ".scss", y = function(j) { - return u.with({ path: g + j }).toString(); - }, w = y(b), x = y("_" + b), k = y(b.slice(0, -5) + "/index.scss"), F = y(b.slice(0, -5) + "/_index.scss"), N = y(b.slice(0, -5) + ".css"); - return [w, x, k, F, N]; + var b = f + ".scss", y = function(V) { + return u.with({ path: g + V }).toString(); + }, w = y(b), x = y("_" + b), k = y(b.slice(0, -5) + "/index.scss"), P = y(b.slice(0, -5) + "/_index.scss"), N = y(b.slice(0, -5) + ".css"); + return [w, x, k, P, N]; } } var o, l, c, h; - return Up(this, function(u) { + return Tp(this, function(u) { switch (u.label) { case 0: return fe(n, "sass:") ? [2, void 0] : [4, t.prototype.resolveRelativeReference.call(this, n, r, i, s)]; case 1: if (o = u.sent(), !(this.fileSystemProvider && o && s)) return [3, 8]; - l = Oi.parse(o), u.label = 2; + l = Bi.parse(o), u.label = 2; case 2: if (u.trys.push([2, 7, , 8]), c = a(l), !c) return [3, 6]; @@ -38361,11 +38332,11 @@ var Wp = function() { }); }); }, e; -}(ji); -function Bp(t) { - return new Hl(t); +}(Hi); +function Op(t) { + return new ql(t); } -function Gi(t, e, n, r, i, s, a) { +function Yi(t, e, n, r, i, s, a) { return { configure: function(o) { s.configure(o), e.configure(o == null ? void 0 : o.completion), n.configure(o == null ? void 0 : o.hover); @@ -38377,7 +38348,7 @@ function Gi(t, e, n, r, i, s, a) { doComplete2: e.doComplete2.bind(e), setCompletionParticipants: e.setCompletionParticipants.bind(e), doHover: n.doHover.bind(n), - format: Rp, + format: kp, findDefinition: r.findDefinition.bind(r), findReferences: r.findReferences.bind(r), findDocumentHighlights: r.findDocumentHighlights.bind(r), @@ -38389,50 +38360,50 @@ function Gi(t, e, n, r, i, s, a) { findDocumentColors: r.findDocumentColors.bind(r), getColorPresentations: r.getColorPresentations.bind(r), doRename: r.doRename.bind(r), - getFoldingRanges: Cp, - getSelectionRanges: Tp + getFoldingRanges: wp, + getSelectionRanges: Pp }; } -var Ji = {}; -function jp(t) { - t === void 0 && (t = Ji); - var e = new Hi(t); - return Gi(new Wi(), new Ui(null, t, e), new Bi(t && t.clientCapabilities, e), new ji(t && t.fileSystemProvider, !1), new qi(e), new $i(e), e); +var Ki = {}; +function Up(t) { + t === void 0 && (t = Ki); + var e = new Xi(t); + return Yi(new Vi(), new ji(null, t, e), new $i(t && t.clientCapabilities, e), new Hi(t && t.fileSystemProvider, !1), new Gi(e), new Ji(e), e); } -function qp(t) { - t === void 0 && (t = Ji); - var e = new Hi(t); - return Gi(new dp(), new pp(t, e), new Bi(t && t.clientCapabilities, e), new Vp(t && t.fileSystemProvider), new qi(e), new $i(e), e); +function Vp(t) { + t === void 0 && (t = Ki); + var e = new Xi(t); + return Yi(new lp(), new hp(t, e), new $i(t && t.clientCapabilities, e), new Wp(t && t.fileSystemProvider), new Gi(e), new Ji(e), e); } -function $p(t) { - t === void 0 && (t = Ji); - var e = new Hi(t); - return Gi(new wp(), new Sp(t, e), new Bi(t && t.clientCapabilities, e), new ji(t && t.fileSystemProvider, !0), new qi(e), new $i(e), e); +function Bp(t) { + t === void 0 && (t = Ki); + var e = new Xi(t); + return Yi(new bp(), new yp(t, e), new $i(t && t.clientCapabilities, e), new Hi(t && t.fileSystemProvider, !0), new Gi(e), new Ji(e), e); } -var Hp = class { +var jp = class { constructor(t, e) { - Yt(this, "_ctx"); - Yt(this, "_languageService"); - Yt(this, "_languageSettings"); - Yt(this, "_languageId"); + Kt(this, "_ctx"); + Kt(this, "_languageService"); + Kt(this, "_languageSettings"); + Kt(this, "_languageId"); this._ctx = t, this._languageSettings = e.options, this._languageId = e.languageId; const n = e.options.data, r = n == null ? void 0 : n.useDefaultDataProvider, i = []; if (n != null && n.dataProviders) for (const a in n.dataProviders) - i.push(Bp(n.dataProviders[a])); + i.push(Op(n.dataProviders[a])); const s = { customDataProviders: i, useDefaultDataProvider: r }; switch (this._languageId) { case "css": - this._languageService = jp(s); + this._languageService = Up(s); break; case "less": - this._languageService = $p(s); + this._languageService = Bp(s); break; case "scss": - this._languageService = qp(s); + this._languageService = Vp(s); break; default: throw new Error("Invalid language id: " + this._languageId); @@ -38542,10 +38513,10 @@ var Hp = class { const e = this._ctx.getMirrorModels(); for (const n of e) if (n.uri.toString() === t) - return ui.create(t, this._languageId, n.version, n.getValue()); + return fi.create(t, this._languageId, n.version, n.getValue()); return null; } }; self.onmessage = () => { - ml((t, e) => new Hp(t, e)); + pl((t, e) => new jp(t, e)); }; diff --git a/frontend/static/workers/cssWorker-iife.js b/frontend/static/workers/cssWorker-iife.js index 4546052818..c539fe3067 100644 --- a/frontend/static/workers/cssWorker-iife.js +++ b/frontend/static/workers/cssWorker-iife.js @@ -1,50 +1,51 @@ -var qp=Object.defineProperty;var $p=(St,tt,ct)=>tt in St?qp(St,tt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):St[tt]=ct;var An=(St,tt,ct)=>($p(St,typeof tt!="symbol"?tt+"":tt,ct),ct);(function(){"use strict";class St{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?zt.isErrorNoTelemetry(e)?new zt(e.message+` +var Vp=Object.defineProperty;var Bp=(St,et,ct)=>et in St?Vp(St,et,{enumerable:!0,configurable:!0,writable:!0,value:ct}):St[et]=ct;var Pn=(St,et,ct)=>(Bp(St,typeof et!="symbol"?et+"":et,ct),ct);(function(){"use strict";class St{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Nt.isErrorNoTelemetry(e)?new Nt(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(n=>{n(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const tt=new St;function ct(t){Xl(t)||tt.onUnexpectedError(t)}function Qi(t){if(t instanceof Error){const{name:e,message:n}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:zt.isErrorNoTelemetry(t)}}return t}const vr="Canceled";function Xl(t){return t instanceof Yl?!0:t instanceof Error&&t.name===vr&&t.message===vr}class Yl extends Error{constructor(){super(vr),this.name=this.message}}class zt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof zt)return e;const n=new zt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Ct extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ct.prototype);debugger}}function Kl(t){const e=this;let n=!1,r;return function(){return n||(n=!0,r=t.apply(e,arguments)),r}}var Mn;(function(t){function e(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(x){yield x}t.single=i;function s(x){return e(x)?x:i(x)}t.wrap=s;function a(x){return x||n}t.from=a;function o(x){return!x||x[Symbol.iterator]().next().done===!0}t.isEmpty=o;function l(x){return x[Symbol.iterator]().next().value}t.first=l;function c(x,w){for(const k of x)if(w(k))return!0;return!1}t.some=c;function h(x,w){for(const k of x)if(w(k))return k}t.find=h;function*u(x,w){for(const k of x)w(k)&&(yield k)}t.filter=u;function*f(x,w){let k=0;for(const R of x)yield w(R,k++)}t.map=f;function*m(...x){for(const w of x)for(const k of w)yield k}t.concat=m;function g(x,w,k){let R=k;for(const z of x)R=w(R,z);return R}t.reduce=g;function*b(x,w,k=x.length){for(w<0&&(w+=x.length),k<0?k+=x.length:k>x.length&&(k=x.length);w1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function Ql(...t){return Nn(()=>Zi(t))}function Nn(t){return{dispose:Kl(()=>{t()})}}class kt{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{Zi(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?kt.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}}kt.DISABLE_DISPOSED_WARNING=!1;class zn{constructor(){this._store=new kt,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)}}zn.None=Object.freeze({dispose(){}});class Zl{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let n=e;return this.unset=()=>n=void 0,this.isset=()=>n!==void 0,this.dispose=()=>{n&&(n(),n=void 0)},this}}let se=class Ki{constructor(e){this.element=e,this.next=Ki.Undefined,this.prev=Ki.Undefined}};se.Undefined=new se(void 0);class Pn{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){const n=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=n}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}}globalThis&&globalThis.__awaiter;let ec=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function tc(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),ec&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function nc(t,e,...n){return tc(e,n)}function Jp(t){}var yr;const Pt="en";let wr=!1,xr=!1,Sr=!1,es=!1,In,Ln=Pt,ts=Pt,rc,je;const Re=typeof self=="object"?self:typeof global=="object"?global:{};let we;typeof Re.vscode<"u"&&typeof Re.vscode.process<"u"?we=Re.vscode.process:typeof process<"u"&&(we=process);const ic=typeof((yr=we==null?void 0:we.versions)===null||yr===void 0?void 0:yr.electron)=="string"&&(we==null?void 0:we.type)==="renderer";if(typeof navigator=="object"&&!ic)je=navigator.userAgent,wr=je.indexOf("Windows")>=0,xr=je.indexOf("Macintosh")>=0,(je.indexOf("Macintosh")>=0||je.indexOf("iPad")>=0||je.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Sr=je.indexOf("Linux")>=0,(je==null?void 0:je.indexOf("Mobi"))>=0,es=!0,nc({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),In=Pt,Ln=In,ts=navigator.language;else if(typeof we=="object"){wr=we.platform==="win32",xr=we.platform==="darwin",Sr=we.platform==="linux",Sr&&we.env.SNAP&&we.env.SNAP_REVISION,we.env.CI||we.env.BUILD_ARTIFACTSTAGINGDIRECTORY,In=Pt,Ln=Pt;const t=we.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];In=e.locale,ts=e.osLocale,Ln=n||Pt,rc=e._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const Zt=wr,sc=xr;es&&Re.importScripts;const Xe=je,ht=Ln;var ns;(function(t){function e(){return ht}t.value=e;function n(){return ht.length===2?ht==="en":ht.length>=3?ht[0]==="e"&&ht[1]==="n"&&ht[2]==="-":!1}t.isDefaultVariant=n;function r(){return ht==="en"}t.isDefault=r})(ns||(ns={}));const ac=typeof Re.postMessage=="function"&&!Re.importScripts;(()=>{if(ac){const t=[];Re.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),Re.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const oc=!!(Xe&&Xe.indexOf("Chrome")>=0);Xe&&Xe.indexOf("Firefox")>=0,!oc&&Xe&&Xe.indexOf("Safari")>=0,Xe&&Xe.indexOf("Edg/")>=0,Xe&&Xe.indexOf("Android")>=0;const lc=Re.performance&&typeof Re.performance.now=="function";class Tn{static create(e=!0){return new Tn(e)}constructor(e){this._highResolution=lc&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Re.performance.now():Date.now()}}globalThis&&globalThis.__awaiter;var Cr;(function(t){t.None=()=>zn.None;function e(P,N){return h(P,()=>{},0,void 0,!0,void 0,N)}t.defer=e;function n(P){return(N,A=null,F)=>{let L=!1,V;return V=P(K=>{if(!L)return V?V.dispose():L=!0,N.call(A,K)},null,F),L&&V.dispose(),V}}t.once=n;function r(P,N,A){return c((F,L=null,V)=>P(K=>F.call(L,N(K)),null,V),A)}t.map=r;function i(P,N,A){return c((F,L=null,V)=>P(K=>{N(K),F.call(L,K)},null,V),A)}t.forEach=i;function s(P,N,A){return c((F,L=null,V)=>P(K=>N(K)&&F.call(L,K),null,V),A)}t.filter=s;function a(P){return P}t.signal=a;function o(...P){return(N,A=null,F)=>Ql(...P.map(L=>L(V=>N.call(A,V),null,F)))}t.any=o;function l(P,N,A,F){let L=A;return r(P,V=>(L=N(L,V),L),F)}t.reduce=l;function c(P,N){let A;const F={onWillAddFirstListener(){A=P(L.fire,L)},onDidRemoveLastListener(){A==null||A.dispose()}},L=new Ye(F);return N==null||N.add(L),L.event}function h(P,N,A=100,F=!1,L=!1,V,K){let ie,E,C,D=0,I;const J={leakWarningThreshold:V,onWillAddFirstListener(){ie=P(ee=>{D++,E=N(E,ee),F&&!C&&(H.fire(E),E=void 0),I=()=>{const Be=E;E=void 0,C=void 0,(!F||D>1)&&H.fire(Be),D=0},typeof A=="number"?(clearTimeout(C),C=setTimeout(I,A)):C===void 0&&(C=0,queueMicrotask(I))})},onWillRemoveListener(){L&&D>0&&(I==null||I())},onDidRemoveLastListener(){I=void 0,ie.dispose()}},H=new Ye(J);return K==null||K.add(H),H.event}t.debounce=h;function u(P,N=0,A){return t.debounce(P,(F,L)=>F?(F.push(L),F):[L],N,void 0,!0,void 0,A)}t.accumulate=u;function f(P,N=(F,L)=>F===L,A){let F=!0,L;return s(P,V=>{const K=F||!N(V,L);return F=!1,L=V,K},A)}t.latch=f;function m(P,N,A){return[t.filter(P,N,A),t.filter(P,F=>!N(F),A)]}t.split=m;function g(P,N=!1,A=[]){let F=A.slice(),L=P(ie=>{F?F.push(ie):K.fire(ie)});const V=()=>{F==null||F.forEach(ie=>K.fire(ie)),F=null},K=new Ye({onWillAddFirstListener(){L||(L=P(ie=>K.fire(ie)))},onDidAddFirstListener(){F&&(N?setTimeout(V):V())},onDidRemoveLastListener(){L&&L.dispose(),L=null}});return K.event}t.buffer=g;class b{constructor(N){this.event=N,this.disposables=new kt}map(N){return new b(r(this.event,N,this.disposables))}forEach(N){return new b(i(this.event,N,this.disposables))}filter(N){return new b(s(this.event,N,this.disposables))}reduce(N,A){return new b(l(this.event,N,A,this.disposables))}latch(){return new b(f(this.event,void 0,this.disposables))}debounce(N,A=100,F=!1,L=!1,V){return new b(h(this.event,N,A,F,L,V,this.disposables))}on(N,A,F){return this.event(N,A,F)}once(N,A,F){return n(this.event)(N,A,F)}dispose(){this.disposables.dispose()}}function y(P){return new b(P)}t.chain=y;function x(P,N,A=F=>F){const F=(...ie)=>K.fire(A(...ie)),L=()=>P.on(N,F),V=()=>P.removeListener(N,F),K=new Ye({onWillAddFirstListener:L,onDidRemoveLastListener:V});return K.event}t.fromNodeEventEmitter=x;function w(P,N,A=F=>F){const F=(...ie)=>K.fire(A(...ie)),L=()=>P.addEventListener(N,F),V=()=>P.removeEventListener(N,F),K=new Ye({onWillAddFirstListener:L,onDidRemoveLastListener:V});return K.event}t.fromDOMEventEmitter=w;function k(P){return new Promise(N=>n(P)(N))}t.toPromise=k;function R(P,N){return N(void 0),P(A=>N(A))}t.runAndSubscribe=R;function z(P,N){let A=null;function F(V){A==null||A.dispose(),A=new kt,N(V,A)}F(void 0);const L=P(V=>F(V));return Nn(()=>{L.dispose(),A==null||A.dispose()})}t.runAndSubscribeWithStore=z;class ${constructor(N,A){this._observable=N,this._counter=0,this._hasChanged=!1;const F={onWillAddFirstListener:()=>{N.addObserver(this)},onDidRemoveLastListener:()=>{N.removeObserver(this)}};this.emitter=new Ye(F),A&&A.add(this.emitter)}beginUpdate(N){this._counter++}handlePossibleChange(N){}handleChange(N,A){this._hasChanged=!0}endUpdate(N){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function X(P,N){return new $(P,N).emitter.event}t.fromObservable=X;function B(P){return N=>{let A=0,F=!1;const L={beginUpdate(){A++},endUpdate(){A--,A===0&&(P.reportChanges(),F&&(F=!1,N()))},handlePossibleChange(){},handleChange(){F=!0}};return P.addObserver(L),{dispose(){P.removeObserver(L)}}}}t.fromObservableLight=B})(Cr||(Cr={}));class It{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${It._idPool++}`,It.all.add(this)}start(e){this._stopWatch=new Tn(!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}}}It.all=new Set,It._idPool=0;let cc=-1;class hc{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,n){const r=this.threshold;if(r<=0||n{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class kr{static create(){var e;return new kr((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(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const et=new St;function ct(t){Gl(t)||et.onUnexpectedError(t)}function ts(t){if(t instanceof Error){const{name:e,message:n}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:Nt.isErrorNoTelemetry(t)}}return t}const vr="Canceled";function Gl(t){return t instanceof Jl?!0:t instanceof Error&&t.name===vr&&t.message===vr}class Jl extends Error{constructor(){super(vr),this.name=this.message}}class Nt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Nt)return e;const n=new Nt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class zt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,zt.prototype)}}function Xl(t){const e=this;let n=!1,r;return function(){return n||(n=!0,r=t.apply(e,arguments)),r}}var Ln;(function(t){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(w){yield w}t.single=i;function s(w){return e(w)?w:i(w)}t.wrap=s;function a(w){return w||n}t.from=a;function o(w){return!w||w[Symbol.iterator]().next().done===!0}t.isEmpty=o;function l(w){return w[Symbol.iterator]().next().value}t.first=l;function c(w,x){for(const k of w)if(x(k))return!0;return!1}t.some=c;function h(w,x){for(const k of w)if(x(k))return k}t.find=h;function*u(w,x){for(const k of w)x(k)&&(yield k)}t.filter=u;function*m(w,x){let k=0;for(const P of w)yield x(P,k++)}t.map=m;function*f(...w){for(const x of w)for(const k of x)yield k}t.concat=f;function g(w,x,k){let P=k;for(const N of w)P=x(P,N);return P}t.reduce=g;function*v(w,x,k=w.length){for(x<0&&(x+=w.length),k<0?k+=w.length:k>w.length&&(k=w.length);x1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function Yl(...t){return en(()=>ns(t))}function en(t){return{dispose:Xl(()=>{t()})}}class Ct{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{ns(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?Ct.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}}Ct.DISABLE_DISPOSED_WARNING=!1;class tn{constructor(){this._store=new Ct,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)}}tn.None=Object.freeze({dispose(){}});let oe=class es{constructor(e){this.element=e,this.next=es.Undefined,this.prev=es.Undefined}};oe.Undefined=new oe(void 0);class Kl{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let e=this._first;for(;e!==oe.Undefined;){const n=e.next;e.prev=oe.Undefined,e.next=oe.Undefined,e=n}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new oe(e);if(this._first===oe.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==oe.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==oe.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==oe.Undefined&&e.next!==oe.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===oe.Undefined&&e.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):e.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):e.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==oe.Undefined;)yield e.element,e=e.next}}const Ql=globalThis.performance&&typeof globalThis.performance.now=="function";class In{static create(e){return new In(e)}constructor(e){this._now=Ql&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),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}}var yr;(function(t){t.None=()=>tn.None;function e(D,R){return h(D,()=>{},0,void 0,!0,void 0,R)}t.defer=e;function n(D){return(R,E=null,F)=>{let W=!1,q;return q=D(K=>{if(!W)return q?q.dispose():W=!0,R.call(E,K)},null,F),W&&q.dispose(),q}}t.once=n;function r(D,R,E){return c((F,W=null,q)=>D(K=>F.call(W,R(K)),null,q),E)}t.map=r;function i(D,R,E){return c((F,W=null,q)=>D(K=>{R(K),F.call(W,K)},null,q),E)}t.forEach=i;function s(D,R,E){return c((F,W=null,q)=>D(K=>R(K)&&F.call(W,K),null,q),E)}t.filter=s;function a(D){return D}t.signal=a;function o(...D){return(R,E=null,F)=>Yl(...D.map(W=>W(q=>R.call(E,q),null,F)))}t.any=o;function l(D,R,E,F){let W=E;return r(D,q=>(W=R(W,q),W),F)}t.reduce=l;function c(D,R){let E;const F={onWillAddFirstListener(){E=D(W.fire,W)},onDidRemoveLastListener(){E==null||E.dispose()}},W=new Je(F);return R==null||R.add(W),W.event}function h(D,R,E=100,F=!1,W=!1,q,K){let ae,A,C,M=0,L;const X={leakWarningThreshold:q,onWillAddFirstListener(){ae=D(ee=>{M++,A=R(A,ee),F&&!C&&(G.fire(A),A=void 0),L=()=>{const Ve=A;A=void 0,C=void 0,(!F||M>1)&&G.fire(Ve),M=0},typeof E=="number"?(clearTimeout(C),C=setTimeout(L,E)):C===void 0&&(C=0,queueMicrotask(L))})},onWillRemoveListener(){W&&M>0&&(L==null||L())},onDidRemoveLastListener(){L=void 0,ae.dispose()}},G=new Je(X);return K==null||K.add(G),G.event}t.debounce=h;function u(D,R=0,E){return t.debounce(D,(F,W)=>F?(F.push(W),F):[W],R,void 0,!0,void 0,E)}t.accumulate=u;function m(D,R=(F,W)=>F===W,E){let F=!0,W;return s(D,q=>{const K=F||!R(q,W);return F=!1,W=q,K},E)}t.latch=m;function f(D,R,E){return[t.filter(D,R,E),t.filter(D,F=>!R(F),E)]}t.split=f;function g(D,R=!1,E=[]){let F=E.slice(),W=D(ae=>{F?F.push(ae):K.fire(ae)});const q=()=>{F==null||F.forEach(ae=>K.fire(ae)),F=null},K=new Je({onWillAddFirstListener(){W||(W=D(ae=>K.fire(ae)))},onDidAddFirstListener(){F&&(R?setTimeout(q):q())},onDidRemoveLastListener(){W&&W.dispose(),W=null}});return K.event}t.buffer=g;class v{constructor(R){this.event=R,this.disposables=new Ct}map(R){return new v(r(this.event,R,this.disposables))}forEach(R){return new v(i(this.event,R,this.disposables))}filter(R){return new v(s(this.event,R,this.disposables))}reduce(R,E){return new v(l(this.event,R,E,this.disposables))}latch(){return new v(m(this.event,void 0,this.disposables))}debounce(R,E=100,F=!1,W=!1,q){return new v(h(this.event,R,E,F,W,q,this.disposables))}on(R,E,F){return this.event(R,E,F)}once(R,E,F){return n(this.event)(R,E,F)}dispose(){this.disposables.dispose()}}function y(D){return new v(D)}t.chain=y;function w(D,R,E=F=>F){const F=(...ae)=>K.fire(E(...ae)),W=()=>D.on(R,F),q=()=>D.removeListener(R,F),K=new Je({onWillAddFirstListener:W,onDidRemoveLastListener:q});return K.event}t.fromNodeEventEmitter=w;function x(D,R,E=F=>F){const F=(...ae)=>K.fire(E(...ae)),W=()=>D.addEventListener(R,F),q=()=>D.removeEventListener(R,F),K=new Je({onWillAddFirstListener:W,onDidRemoveLastListener:q});return K.event}t.fromDOMEventEmitter=x;function k(D){return new Promise(R=>n(D)(R))}t.toPromise=k;function P(D,R){return R(void 0),D(E=>R(E))}t.runAndSubscribe=P;function N(D,R){let E=null;function F(q){E==null||E.dispose(),E=new Ct,R(q,E)}F(void 0);const W=D(q=>F(q));return en(()=>{W.dispose(),E==null||E.dispose()})}t.runAndSubscribeWithStore=N;class V{constructor(R,E){this._observable=R,this._counter=0,this._hasChanged=!1;const F={onWillAddFirstListener:()=>{R.addObserver(this)},onDidRemoveLastListener:()=>{R.removeObserver(this)}};this.emitter=new Je(F),E&&E.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,E){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function T(D,R){return new V(D,R).emitter.event}t.fromObservable=T;function I(D){return R=>{let E=0,F=!1;const W={beginUpdate(){E++},endUpdate(){E--,E===0&&(D.reportChanges(),F&&(F=!1,R()))},handlePossibleChange(){},handleChange(){F=!0}};return D.addObserver(W),D.reportChanges(),{dispose(){D.removeObserver(W)}}}}t.fromObservableLight=I})(yr||(yr={}));class Pt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Pt._idPool++}`,Pt.all.add(this)}start(e){this._stopWatch=new In,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}}}Pt.all=new Set,Pt._idPool=0;let Zl=-1;class ec{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,n){const r=this.threshold;if(r<=0||n{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class wr{static create(){var e;return new wr((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class dc{constructor(e,n,r){this.callback=e,this.callbackThis=n,this.stack=r,this.subscription=new Zl}invoke(e){this.callback.call(this.callbackThis,e)}}class Ye{constructor(e){var n,r,i,s,a;this._disposed=!1,this._options=e,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new hc((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:cc):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new It(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){return this._event||(this._event=(e,n,r)=>{var i,s,a;if(this._listeners||(this._listeners=new Pn),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`),zn.None;const o=this._listeners.isEmpty();o&&(!((i=this._options)===null||i===void 0)&&i.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this);let l,c;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(c=kr.create(),l=this._leakageMon.check(c,this._listeners.size+1));const h=new dc(e,n,c),u=this._listeners.push(h);o&&(!((s=this._options)===null||s===void 0)&&s.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),!((a=this._options)===null||a===void 0)&&a.onDidAddListener&&this._options.onDidAddListener(this,e,n);const f=h.subscription.set(()=>{var m,g;l==null||l(),this._disposed||((g=(m=this._options)===null||m===void 0?void 0:m.onWillRemoveListener)===null||g===void 0||g.call(m,this),u(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return r instanceof kt?r.add(f):Array.isArray(r)&&r.push(f),f}),this._event}fire(e){var n,r,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new pc((n=this._options)===null||n===void 0?void 0:n.onListenerError));for(const s of this._listeners)this._deliveryQueue.push(this,s,e);(r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(i=this._perfMon)===null||i===void 0||i.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}class uc{constructor(e=ct){this._onListenerError=e,this._queue=new Pn}get size(){return this._queue.size}push(e,n,r){this._queue.push(new fc(e,n,r))}clear(e){const n=new Pn;for(const r of this._queue)r.emitter!==e&&n.push(r);this._queue=n}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(n){this._onListenerError(n)}}}}class pc extends uc{clear(e){this._queue.clear()}}class fc{constructor(e,n,r){this.emitter=e,this.listener=n,this.event=r}}function mc(t){return typeof t=="string"}function gc(t){let e=[],n=Object.getPrototypeOf(t);for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function _r(t){const e=[];for(const n of gc(t))typeof t[n]=="function"&&e.push(n);return e}function bc(t,e){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}const rs=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Wn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof On?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Cr.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:rs})})(Wn||(Wn={}));class On{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?rs:(this._emitter||(this._emitter=new Ye),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class vc{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 On),this._token}cancel(){this._token?this._token instanceof On&&this._token.cancel():this._token=Wn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof On&&this._token.dispose():this._token=Wn.None}}class yc{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=JSON.stringify(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class is{constructor(e){this.executor=e,this._didRun=!1}get hasValue(){return this._didRun}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 ss;function wc(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function xc(t){return t.split(/\r\n|\r|\n/)}function Sc(t){for(let e=0,n=t.length;e=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function as(t){return t>=65&&t<=90}function Fr(t){return 55296<=t&&t<=56319}function kc(t){return 56320<=t&&t<=57343}function _c(t,e){return(t-55296<<10)+(e-56320)+65536}function Fc(t,e,n){const r=t.charCodeAt(n);if(Fr(r)&&n+1JSON.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]}')),Ie.cache=new yc(t=>{function e(c){const h=new Map;for(let u=0;u!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(const c of s){const h=e(i[c]);a=r(a,h)}const o=e(i._common),l=n(o,a);return new Ie(l)}),Ie._locales=new is(()=>Object.keys(Ie.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class dt{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(dt.getRawData())),this._data}static isInvisibleCharacter(e){return dt.getData().has(e)}static get codePoints(){return dt.getData()}}dt._data=void 0;const Dc="$initialize";class Ac{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class os{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class Mc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Nc{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class zc{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Pc{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,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new Ac(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new Ye({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Mc(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new zc(this._workerId,r)),r=null}});return i.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 n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new os(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Qi(i.detail)),this._send(new os(this._workerId,n,void 0,Qi(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new Nc(this._workerId,n,i))});this._pendingEvents.set(n,r)}_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 n=[];if(e.type===0)for(let r=0;rfunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of t){if(cs(a)){s[a]=i(a);continue}if(ls(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Lc{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Pc({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===Dc)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(cs(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(ls(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const o=Ic(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(_r(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],u=>{if(this._requestHandler=u.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(_r(this._requestHandler))},c)}))}}class ut{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function hs(t,e){return(e<<5)-e+t|0}function Tc(t,e){e=hs(149417,e);for(let n=0,r=t.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new ut(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,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),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 pt{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=pt._getElements(e),[o,l,c]=pt._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(pt._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(Lt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new ut(e,0,r,i-r+1)]):e<=n?(Lt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new ut(e,n-e+1,r,0)]):(Lt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Lt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],h=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,h,s);let f=[];return s[0]?f=[new ut(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(u,f)}return[new ut(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,h,u,f,m,g,b,y,x,w){let k=null,R=null,z=new us,$=n,X=r,B=m[0]-y[0]-i,P=-1073741824,N=this.m_forwardHistory.length-1;do{const A=B+e;A===$||A=0&&(c=this.m_forwardHistory[N],e=c[0],$=1,X=c.length-1)}while(--N>=-1);if(k=z.getReverseChanges(),w[0]){let A=m[0]+1,F=y[0]+1;if(k!==null&&k.length>0){const L=k[k.length-1];A=Math.max(A,L.getOriginalEnd()),F=Math.max(F,L.getModifiedEnd())}R=[new ut(A,f-A+1,F,b-F+1)]}else{z=new us,$=a,X=o,B=m[0]-y[0]-l,P=1073741824,N=x?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const A=B+s;A===$||A=h[A+1]?(u=h[A+1]-1,g=u-B-l,u>P&&z.MarkNextChange(),P=u+1,z.AddOriginalElement(u+1,g+1),B=A+1-s):(u=h[A-1],g=u-B-l,u>P&&z.MarkNextChange(),P=u,z.AddModifiedElement(u+1,g+1),B=A-1-s),N>=0&&(h=this.m_reverseHistory[N],s=h[0],$=1,X=h.length-1)}while(--N>=-1);R=z.getChanges()}return this.ConcatenateChanges(k,R)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,h=0,u=0,f=0,m=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),b=g+1,y=new Int32Array(b),x=new Int32Array(b),w=i-r,k=n-e,R=e-r,z=n-i,X=(k-w)%2===0;y[w]=e,x[k]=n,o[0]=!1;for(let B=1;B<=g/2+1;B++){let P=0,N=0;h=this.ClipDiagonalBound(w-B,B,w,b),u=this.ClipDiagonalBound(w+B,B,w,b);for(let F=h;F<=u;F+=2){F===h||FP+N&&(P=l,N=c),!X&&Math.abs(F-k)<=B-1&&l>=x[F])return s[0]=l,a[0]=c,L<=x[F]&&1447>0&&B<=1447+1?this.WALKTRACE(w,h,u,R,k,f,m,z,y,x,l,n,s,c,i,a,X,o):null}const A=(P-e+(N-r)-B)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(P,A))return o[0]=!0,s[0]=P,a[0]=N,A>0&&1447>0&&B<=1447+1?this.WALKTRACE(w,h,u,R,k,f,m,z,y,x,l,n,s,c,i,a,X,o):(e++,r++,[new ut(e,n-e+1,r,i-r+1)]);f=this.ClipDiagonalBound(k-B,B,k,b),m=this.ClipDiagonalBound(k+B,B,k,b);for(let F=f;F<=m;F+=2){F===f||F=x[F+1]?l=x[F+1]-1:l=x[F-1],c=l-(F-k)-z;const L=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(x[F]=l,X&&Math.abs(F-w)<=B&&l<=y[F])return s[0]=l,a[0]=c,L>=y[F]&&1447>0&&B<=1447+1?this.WALKTRACE(w,h,u,R,k,f,m,z,y,x,l,n,s,c,i,a,X,o):null}if(B<=1447){let F=new Int32Array(u-h+2);F[0]=w-h+1,Tt.Copy2(y,h,F,1,u-h+1),this.m_forwardHistory.push(F),F=new Int32Array(m-f+2),F[0]=k-f+1,Tt.Copy2(x,f,F,1,m-f+1),this.m_reverseHistory.push(F)}}return this.WALKTRACE(w,h,u,R,k,f,m,z,y,x,l,n,s,c,i,a,X,o)}PrettifyChanges(e){for(let n=0;n0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(fc&&(c=b,l=u)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n0&&m>l&&(l=m,c=u,h=f)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Tt.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Tt.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Tt.Copy(e,0,i,0,e.length),Tt.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(Lt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Lt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new ut(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e=Vc&&t<=jc||t>=Bc&&t<=qc}function Vn(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===ft&&o!==-1?++o:o=-1}return i}function fs(t,e){Hc(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const le={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],oe(s,"path"),s.length===0)continue}else e.length===0?s=Un():(s=Oc[`=${e}`]||Un(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Ee)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const h=s.charCodeAt(0);if(a===1)G(h)&&(o=1,c=!0);else if(G(h))if(c=!0,G(s.charCodeAt(1))){let u=2,f=u;for(;u2&&G(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=Vn(n,!r,"\\",G),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){oe(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return Rr(s)?"\\":t;if(G(s))if(i=!0,G(t.charCodeAt(1))){let o=2,l=o;for(;o2&&G(t.charCodeAt(2))&&(i=!0,n=3));let a=n0&&G(t.charCodeAt(e-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){oe(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return G(n)||e>2&>(n)&&t.charCodeAt(1)===mt&&G(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&G(n.charCodeAt(0))){++i;const s=n.length;s>1&&G(n.charCodeAt(1))&&(++i,s>2&&(G(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return le.normalize(e)},relative(t,e){if(oe(t,"from"),oe(e,"to"),t===e)return"";const n=le.resolve(t),r=le.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;ii&&t.charCodeAt(s-1)===Ee;)s--;const a=s-i;let o=0;for(;oo&&e.charCodeAt(l-1)===Ee;)l--;const c=l-o,h=ah){if(e.charCodeAt(o+f)===Ee)return r.slice(o+f+1);if(f===2)return r.slice(o+f)}a>h&&(t.charCodeAt(i+f)===Ee?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||t.charCodeAt(f)===Ee)&&(m+=m.length===0?"..":"\\..");return o+=u,m.length>0?`${m}${r.slice(o,l)}`:(r.charCodeAt(o)===Ee&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=le.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Ee){if(e.charCodeAt(1)===Ee){const n=e.charCodeAt(2);if(n!==$c&&n!==ft)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(gt(e.charCodeAt(0))&&e.charCodeAt(1)===mt&&e.charCodeAt(2)===Ee)return`\\\\?\\${e}`;return t},dirname(t){oe(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return G(i)?t:".";if(G(i)){if(n=r=1,G(t.charCodeAt(1))){let o=2,l=o;for(;o2&&G(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(G(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&oe(e,"ext"),oe(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&>(t.charCodeAt(0))&&t.charCodeAt(1)===mt&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(G(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(G(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){oe(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===mt&>(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(G(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===ft?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:fs.bind(null,"\\"),parse(t){oe(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return G(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(G(i)){if(r=1,G(t.charCodeAt(1))){let u=2,f=u;for(;u0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),G(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===ft?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return o!==-1&&(s===-1||h===0||h===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Gc=(()=>{if(De){const t=/\\/g;return()=>{const e=Un().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Un()})(),pe={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:Gc();oe(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===ye)}return e=Vn(e,!n,"/",Rr),n?`/${e}`:e.length>0?e:"."},normalize(t){if(oe(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ye,n=t.charCodeAt(t.length-1)===ye;return t=Vn(t,!e,"/",Rr),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return oe(t,"path"),t.length>0&&t.charCodeAt(0)===ye},join(...t){if(t.length===0)return".";let e;for(let n=0;n0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":pe.normalize(e)},relative(t,e){if(oe(t,"from"),oe(e,"to"),t===e||(t=pe.resolve(t),e=pe.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=io){if(e.charCodeAt(s+c)===ye)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===ye?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===ye)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(oe(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ye;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===ye){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&oe(e,"ext"),oe(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===ye){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===ye){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){oe(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t.charCodeAt(a);if(o===ye){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===ft?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:fs.bind(null,"/"),parse(t){oe(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===ye;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===ye){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),h===ft?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,i),e.base=t.slice(h,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};pe.win32=le.win32=le,pe.posix=le.posix=pe,De?le.normalize:pe.normalize,De?le.isAbsolute:pe.isAbsolute,De?le.join:pe.join,De?le.resolve:pe.resolve,De?le.relative:pe.relative,De?le.dirname:pe.dirname,De?le.basename:pe.basename,De?le.extname:pe.extname,De?le.format:pe.format,De?le.parse:pe.parse,De?le.toNamespacedPath:pe.toNamespacedPath,De?le.sep:pe.sep,De?le.delimiter:pe.delimiter;const Jc=/^\w[\w\d+.-]*$/,Xc=/^\//,Yc=/^\/\//;function ms(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Jc.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Xc.test(t.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(Yc.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Kc(t,e){return!t&&!e?"file":t}function Qc(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==qe&&(e=qe+e):e=qe;break}return e}const re="",qe="/",Zc=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Er=class br{static isUri(e){return e instanceof br?!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,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||re,this.authority=e.authority||re,this.path=e.path||re,this.query=e.query||re,this.fragment=e.fragment||re):(this.scheme=Kc(e,a),this.authority=n||re,this.path=Qc(this.scheme,r||re),this.query=i||re,this.fragment=s||re,ms(this,a))}get fsPath(){return Dr(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=re),r===void 0?r=this.authority:r===null&&(r=re),i===void 0?i=this.path:i===null&&(i=re),s===void 0?s=this.query:s===null&&(s=re),a===void 0?a=this.fragment:a===null&&(a=re),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Wt(n,r,i,s,a)}static parse(e,n=!1){const r=Zc.exec(e);return r?new Wt(r[2]||re,Bn(r[4]||re),Bn(r[5]||re),Bn(r[7]||re),Bn(r[9]||re),n):new Wt(re,re,re,re,re)}static file(e){let n=re;if(Zt&&(e=e.replace(/\\/g,qe)),e[0]===qe&&e[1]===qe){const r=e.indexOf(qe,2);r===-1?(n=e.substring(2),e=qe):(n=e.substring(2,r),e=e.substring(r)||qe)}return new Wt("file",n,e,re,re)}static from(e){const n=new Wt(e.scheme,e.authority,e.path,e.query,e.fragment);return ms(n,!0),n}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Zt&&e.scheme==="file"?r=br.file(le.join(Dr(e,!0),...n)).path:r=pe.join(e.path,...n),e.with({path:r})}toString(e=!1){return Ar(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof br)return e;{const n=new Wt(e);return n._formatted=e.external,n._fsPath=e._sep===gs?e.fsPath:null,n}}else return e}};const gs=Zt?1:void 0;class Wt extends Er{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Dr(this,!1)),this._fsPath}toString(e=!1){return e?Ar(this,!0):(this._formatted||(this._formatted=Ar(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=gs),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 bs={[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 vs(t,e,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=bs[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function eh(t){let e;for(let n=0;n1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Zt&&(n=n.replace(/\//g,"\\")),n}function Ar(t,e){const n=e?eh:vs;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=qe,r+=qe),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:vs(l,!1,!1)),r}function ys(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+ys(t.substr(3)):t}}const ws=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Bn(t){return t.match(ws)?t.replace(ws,e=>ys(e)):t}let $e=class Nt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new Nt(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return Nt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return Nt.isBefore(this,e)}static isBefore(e,n){return e.lineNumberr||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ue.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.columne.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return ue.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)}strictContainsRange(e){return ue.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return ue.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumbere.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new ue(r,i,s,a)}intersectRanges(e){return ue.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return rc?(s=c,a=h):s===c&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(e){return ue.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(e){return new $e(e.endLineNumber,e.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(e){return new $e(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new ue(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new ue(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(e){return new ue(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(e){return new ue(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new ue(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new ue(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new ue(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,n){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};globalThis&&globalThis.__awaiter;var xs;(function(t){function e(i){return i<0}t.isLessThan=e;function n(i){return i>0}t.isGreaterThan=n;function r(i){return i===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(xs||(xs={}));function Ss(t){return t<0?0:t>255?255:t|0}function Ot(t){return t<0?0:t>4294967295?4294967295:t|0}class th{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(e,n){e=Ot(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Ot(e),n=Ot(n),this.values[e]===n?!1:(this.values[e]=n,e-1=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.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=Ot(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e=s)n=i+1;else break;return new nh(i,e-a)}}class nh{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class rh{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new $e(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function sh(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of ih)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const Cs=sh();function ah(t){let e=Cs;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const ks=new Pn;ks.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Mr(t,e,n,r,i){if(i||(i=Mn.first(ks)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),Mr(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=a-i.windowSize*c;e.lastIndex=Math.max(0,h);const u=oh(e,n,a,o);if(!u&&l||(l=u,h<=0))break;o=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function oh(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Nr{constructor(e){const n=Ss(e);this._defaultValue=n,this._asciiMap=Nr._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Ss(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}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 lh{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;sn&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new lh(r,n,0);for(let s=0,a=e.length;s=this._maxCharCode?0:this._states.get(e,n)}}let zr=null;function hh(){return zr===null&&(zr=new ch([[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]])),zr}let en=null;function dh(){if(en===null){en=new Nr(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;ni);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=hh()){const r=dh(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,h=0,u=0,f=1,m=!1,g=!1,b=!1,y=!1;for(;c=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Pr.INSTANCE=new Pr;class Ir{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const qn=new Ir,Lr=new Ir,Tr=new Ir,ph=new Array(230),fh=Object.create(null),mh=Object.create(null);(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",0,"VK_F20",t,t],[1,118,"F21",79,"F21",0,"VK_F21",t,t],[1,119,"F22",80,"F22",0,"VK_F22",t,t],[1,120,"F23",81,"F23",0,"VK_F23",t,t],[1,121,"F24",82,"F24",0,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,a,o,l,c,h,u,f,m]=i;if(r[a]||(r[a]=!0,fh[o]=a,mh[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);qn.define(l,c),Lr.define(l,f||c),Tr.define(l,m||f||c)}h&&(ph[h]=l)}})();var _s;(function(t){function e(o){return qn.keyCodeToStr(o)}t.toString=e;function n(o){return qn.strToKeyCode(o)}t.fromString=n;function r(o){return Lr.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return Tr.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return Lr.strToKeyCode(o)||Tr.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return qn.keyCodeToStr(o)}t.toElectronAccelerator=a})(_s||(_s={}));function gh(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class Me extends Ae{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Me.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new Me(this.startLineNumber,this.startColumn,e,n):new Me(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new $e(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new $e(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new Me(e,n,this.endLineNumber,this.endColumn):new Me(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Me(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new Me(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Me(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Me(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new vh(this,e,n);return this._factories.set(e,i),Nn(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}getOrCreate(e){return Wr(this,void 0,void 0,function*(){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(yield r.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.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 vh extends zn{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Wr(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Wr(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))})}}class yh{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Rs;(function(t){const e=new Map;e.set(0,O.symbolMethod),e.set(1,O.symbolFunction),e.set(2,O.symbolConstructor),e.set(3,O.symbolField),e.set(4,O.symbolVariable),e.set(5,O.symbolClass),e.set(6,O.symbolStruct),e.set(7,O.symbolInterface),e.set(8,O.symbolModule),e.set(9,O.symbolProperty),e.set(10,O.symbolEvent),e.set(11,O.symbolOperator),e.set(12,O.symbolUnit),e.set(13,O.symbolValue),e.set(15,O.symbolEnum),e.set(14,O.symbolConstant),e.set(15,O.symbolEnum),e.set(16,O.symbolEnumMember),e.set(17,O.symbolKeyword),e.set(27,O.symbolSnippet),e.set(18,O.symbolText),e.set(19,O.symbolColor),e.set(20,O.symbolFile),e.set(21,O.symbolReference),e.set(22,O.symbolCustomColor),e.set(23,O.symbolFolder),e.set(24,O.symbolTypeParameter),e.set(25,O.account),e.set(26,O.issues);function n(s){let a=e.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=O.symbolProperty),a}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}t.fromString=i})(Rs||(Rs={}));var Es;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Es||(Es={}));var Ds;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Ds||(Ds={}));var As;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(As||(As={}));var Ms;(function(t){const e=new Map;e.set(0,O.symbolFile),e.set(1,O.symbolModule),e.set(2,O.symbolNamespace),e.set(3,O.symbolPackage),e.set(4,O.symbolClass),e.set(5,O.symbolMethod),e.set(6,O.symbolProperty),e.set(7,O.symbolField),e.set(8,O.symbolConstructor),e.set(9,O.symbolEnum),e.set(10,O.symbolInterface),e.set(11,O.symbolFunction),e.set(12,O.symbolVariable),e.set(13,O.symbolConstant),e.set(14,O.symbolString),e.set(15,O.symbolNumber),e.set(16,O.symbolBoolean),e.set(17,O.symbolArray),e.set(18,O.symbolObject),e.set(19,O.symbolKey),e.set(20,O.symbolNull),e.set(21,O.symbolEnumMember),e.set(22,O.symbolStruct),e.set(23,O.symbolEvent),e.set(24,O.symbolOperator),e.set(25,O.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=O.symbolProperty),i}t.toIcon=n})(Ms||(Ms={}));var Ns;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(Ns||(Ns={}));var zs;(function(t){t[t.Collapsed=0]="Collapsed",t[t.Expanded=1]="Expanded"})(zs||(zs={}));var Ps;(function(t){t[t.Unresolved=0]="Unresolved",t[t.Resolved=1]="Resolved"})(Ps||(Ps={}));var Is;(function(t){t[t.Editing=0]="Editing",t[t.Preview=1]="Preview"})(Is||(Is={}));var Ls;(function(t){t[t.Published=0]="Published",t[t.Draft=1]="Draft"})(Ls||(Ls={}));var Ts;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Ts||(Ts={})),new bh;var Ws;(function(t){t[t.None=0]="None",t[t.Option=1]="Option",t[t.Default=2]="Default",t[t.Preferred=3]="Preferred"})(Ws||(Ws={}));var Os;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Os||(Os={}));var Us;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Us||(Us={}));var Vs;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Vs||(Vs={}));var Bs;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Bs||(Bs={}));var js;(function(t){t[t.Deprecated=1]="Deprecated"})(js||(js={}));var qs;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(qs||(qs={}));var $s;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})($s||($s={}));var Hs;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Hs||(Hs={}));var Gs;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Gs||(Gs={}));var Js;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Js||(Js={}));var Xs;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Xs||(Xs={}));var Ys;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.autoClosingBrackets=5]="autoClosingBrackets",t[t.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=7]="autoClosingDelete",t[t.autoClosingOvertype=8]="autoClosingOvertype",t[t.autoClosingQuotes=9]="autoClosingQuotes",t[t.autoIndent=10]="autoIndent",t[t.automaticLayout=11]="automaticLayout",t[t.autoSurround=12]="autoSurround",t[t.bracketPairColorization=13]="bracketPairColorization",t[t.guides=14]="guides",t[t.codeLens=15]="codeLens",t[t.codeLensFontFamily=16]="codeLensFontFamily",t[t.codeLensFontSize=17]="codeLensFontSize",t[t.colorDecorators=18]="colorDecorators",t[t.colorDecoratorsLimit=19]="colorDecoratorsLimit",t[t.columnSelection=20]="columnSelection",t[t.comments=21]="comments",t[t.contextmenu=22]="contextmenu",t[t.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",t[t.cursorBlinking=24]="cursorBlinking",t[t.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",t[t.cursorStyle=26]="cursorStyle",t[t.cursorSurroundingLines=27]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",t[t.cursorWidth=29]="cursorWidth",t[t.disableLayerHinting=30]="disableLayerHinting",t[t.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",t[t.domReadOnly=32]="domReadOnly",t[t.dragAndDrop=33]="dragAndDrop",t[t.dropIntoEditor=34]="dropIntoEditor",t[t.emptySelectionClipboard=35]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",t[t.extraEditorClassName=37]="extraEditorClassName",t[t.fastScrollSensitivity=38]="fastScrollSensitivity",t[t.find=39]="find",t[t.fixedOverflowWidgets=40]="fixedOverflowWidgets",t[t.folding=41]="folding",t[t.foldingStrategy=42]="foldingStrategy",t[t.foldingHighlight=43]="foldingHighlight",t[t.foldingImportsByDefault=44]="foldingImportsByDefault",t[t.foldingMaximumRegions=45]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=47]="fontFamily",t[t.fontInfo=48]="fontInfo",t[t.fontLigatures=49]="fontLigatures",t[t.fontSize=50]="fontSize",t[t.fontWeight=51]="fontWeight",t[t.fontVariations=52]="fontVariations",t[t.formatOnPaste=53]="formatOnPaste",t[t.formatOnType=54]="formatOnType",t[t.glyphMargin=55]="glyphMargin",t[t.gotoLocation=56]="gotoLocation",t[t.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",t[t.hover=58]="hover",t[t.inDiffEditor=59]="inDiffEditor",t[t.inlineSuggest=60]="inlineSuggest",t[t.letterSpacing=61]="letterSpacing",t[t.lightbulb=62]="lightbulb",t[t.lineDecorationsWidth=63]="lineDecorationsWidth",t[t.lineHeight=64]="lineHeight",t[t.lineNumbers=65]="lineNumbers",t[t.lineNumbersMinChars=66]="lineNumbersMinChars",t[t.linkedEditing=67]="linkedEditing",t[t.links=68]="links",t[t.matchBrackets=69]="matchBrackets",t[t.minimap=70]="minimap",t[t.mouseStyle=71]="mouseStyle",t[t.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=73]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",t[t.multiCursorModifier=75]="multiCursorModifier",t[t.multiCursorPaste=76]="multiCursorPaste",t[t.multiCursorLimit=77]="multiCursorLimit",t[t.occurrencesHighlight=78]="occurrencesHighlight",t[t.overviewRulerBorder=79]="overviewRulerBorder",t[t.overviewRulerLanes=80]="overviewRulerLanes",t[t.padding=81]="padding",t[t.parameterHints=82]="parameterHints",t[t.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",t[t.quickSuggestions=85]="quickSuggestions",t[t.quickSuggestionsDelay=86]="quickSuggestionsDelay",t[t.readOnly=87]="readOnly",t[t.renameOnType=88]="renameOnType",t[t.renderControlCharacters=89]="renderControlCharacters",t[t.renderFinalNewline=90]="renderFinalNewline",t[t.renderLineHighlight=91]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=93]="renderValidationDecorations",t[t.renderWhitespace=94]="renderWhitespace",t[t.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",t[t.roundedSelection=96]="roundedSelection",t[t.rulers=97]="rulers",t[t.scrollbar=98]="scrollbar",t[t.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=100]="scrollBeyondLastLine",t[t.scrollPredominantAxis=101]="scrollPredominantAxis",t[t.selectionClipboard=102]="selectionClipboard",t[t.selectionHighlight=103]="selectionHighlight",t[t.selectOnLineNumbers=104]="selectOnLineNumbers",t[t.showFoldingControls=105]="showFoldingControls",t[t.showUnused=106]="showUnused",t[t.snippetSuggestions=107]="snippetSuggestions",t[t.smartSelect=108]="smartSelect",t[t.smoothScrolling=109]="smoothScrolling",t[t.stickyScroll=110]="stickyScroll",t[t.stickyTabStops=111]="stickyTabStops",t[t.stopRenderingLineAfter=112]="stopRenderingLineAfter",t[t.suggest=113]="suggest",t[t.suggestFontSize=114]="suggestFontSize",t[t.suggestLineHeight=115]="suggestLineHeight",t[t.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",t[t.suggestSelection=117]="suggestSelection",t[t.tabCompletion=118]="tabCompletion",t[t.tabIndex=119]="tabIndex",t[t.unicodeHighlighting=120]="unicodeHighlighting",t[t.unusualLineTerminators=121]="unusualLineTerminators",t[t.useShadowDOM=122]="useShadowDOM",t[t.useTabStops=123]="useTabStops",t[t.wordBreak=124]="wordBreak",t[t.wordSeparators=125]="wordSeparators",t[t.wordWrap=126]="wordWrap",t[t.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=129]="wordWrapColumn",t[t.wordWrapOverride1=130]="wordWrapOverride1",t[t.wordWrapOverride2=131]="wordWrapOverride2",t[t.wrappingIndent=132]="wrappingIndent",t[t.wrappingStrategy=133]="wrappingStrategy",t[t.showDeprecated=134]="showDeprecated",t[t.inlayHints=135]="inlayHints",t[t.editorClassName=136]="editorClassName",t[t.pixelRatio=137]="pixelRatio",t[t.tabFocusMode=138]="tabFocusMode",t[t.layoutInfo=139]="layoutInfo",t[t.wrappingInfo=140]="wrappingInfo",t[t.defaultColorDecorators=141]="defaultColorDecorators"})(Ys||(Ys={}));var Ks;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Ks||(Ks={}));var Qs;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Qs||(Qs={}));var Zs;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Zs||(Zs={}));var ea;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(ea||(ea={}));var ta;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(ta||(ta={}));var na;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(na||(na={}));var ra;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ra||(ra={}));var Or;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Or||(Or={}));var Ur;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Ur||(Ur={}));var Vr;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Vr||(Vr={}));var ia;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(ia||(ia={}));var sa;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(sa||(sa={}));var aa;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(aa||(aa={}));var oa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(oa||(oa={}));var la;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(la||(la={}));var ca;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(ca||(ca={}));var ha;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(ha||(ha={}));var da;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(da||(da={}));var ua;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ua||(ua={}));var Br;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Br||(Br={}));var pa;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(pa||(pa={}));var fa;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(fa||(fa={}));var ma;(function(t){t[t.Deprecated=1]="Deprecated"})(ma||(ma={}));var ga;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(ga||(ga={}));var ba;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(ba||(ba={}));var va;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(va||(va={}));var ya;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(ya||(ya={}));class tn{static chord(e,n){return gh(e,n)}}tn.CtrlCmd=2048,tn.Shift=1024,tn.Alt=512,tn.WinCtrl=256;function wh(){return{editor:void 0,languages:void 0,CancellationTokenSource:vc,Emitter:Ye,KeyCode:Or,KeyMod:tn,Position:$e,Range:Ae,Selection:Me,SelectionDirection:Br,MarkerSeverity:Ur,MarkerTag:Vr,Uri:Er,Token:yh}}var wa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(wa||(wa={}));var xa;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(xa||(xa={}));var Sa;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(Sa||(Sa={}));var Ca;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Ca||(Ca={}));function xh(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function Sh(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function Ch(t,e,n,r,i){return xh(t,e,n,r,i)&&Sh(t,e,n,r,i)}class kh{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Fc(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Ch(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function _h(t,e="Unreachable"){throw new Error(e)}function jr(t){if(!t()){debugger;t(),ct(new Ct("Assertion Failed"))}}function ka(t,e){let n=0;for(;n0){const P=w.charCodeAt(R-1);Fr(P)&&R--}if(z+1=P){u=!0;break e}h.push(new Ae(y,R+1,y,z+1))}}while(f)}return{ranges:h,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,n){const r=new _a(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=Ie.getLocales().filter(l=>!Ie.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Rh(t,e){return`[${wc(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class _a{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ie.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of dt.codePoints)Fa(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Ec(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!dt.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Fa(e)&&dt.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Fa(t){return t===" "||t===` -`||t===" "}class Ra{constructor(e,n){this.changes=e,this.hitTimeout=n}}class $n{constructor(e,n,r){this.originalRange=e,this.modifiedRange=n,this.innerChanges=r}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}}class Ea{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}class He{static joinMany(e){if(e.length===0)return[];let n=e[0];for(let r=1;r=o.startLineNumber?a=new He(a.startLineNumber,Math.max(a.endLineNumberExclusive,o.endLineNumberExclusive)):(r.push(a),a=o)}return a!==null&&r.push(a),r}constructor(e,n){if(e>n)throw new Ct(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&enew Ea(new Ae(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new Ae(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modifiedRange.endLineNumberExclusive===f.modifiedRange.startLineNumber||l.originalRange.endLineNumberExclusive===f.originalRange.startLineNumber)&&(f=new $n(l.originalRange.join(f.originalRange),l.modifiedRange.join(f.modifiedRange),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),o.pop()),o.push(f),l=f}return jr(()=>ka(o,(c,h)=>h.originalRange.startLineNumber-c.originalRange.endLineNumberExclusive===h.modifiedRange.startLineNumber-c.modifiedRange.endLineNumberExclusive&&c.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.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 Ut{constructor(e,n,r,i,s,a,o,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),h=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Ut(i,s,a,o,l,c,h,u)}}function Mh(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let b=Da(m,g,s,!0).changes;o&&(b=Mh(b)),f=[];for(let y=0,x=b.length;y1&&b>1;){const y=f.charCodeAt(g-2),x=m.charCodeAt(b-2);if(y!==x)break;g--,b--}(g>1||b>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,b)}{let g=$r(f,1),b=$r(m,1);const y=f.length+1,x=m.length+1;for(;g!0;const e=Date.now();return()=>Date.now()-en))return new ce(e,n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new Ct(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new ce(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}contains(e){return this.start<=e&&e ${this.seq2Range}`}join(e){return new Le(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}}class rn{isValid(){return!0}}rn.instance=new rn;class Nh{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Ct("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime!0,this.valid=!0}}class Hr{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,r){this.array[e+n*this.width]=r}}class zh{compute(e,n,r=rn.instance,i){if(e.length===0||n.length===0)return nt.trivial(e,n);const s=new Hr(e.length,n.length),a=new Hr(e.length,n.length),o=new Hr(e.length,n.length);for(let g=0;g0&&b>0&&a.get(g-1,b-1)===3&&(w+=o.get(g-1,b-1)),w+=i?i(g,b):1):w=-1;const k=Math.max(y,x,w);if(k===w){const R=g>0&&b>0?o.get(g-1,b-1):0;o.set(g,b,R+1),a.set(g,b,3)}else k===y?(o.set(g,b,0),a.set(g,b,1)):k===x&&(o.set(g,b,0),a.set(g,b,2));s.set(g,b,k)}const l=[];let c=e.length,h=n.length;function u(g,b){(g+1!==c||b+1!==h)&&l.push(new Le(new ce(g+1,c),new ce(b+1,h))),c=g,h=b}let f=e.length-1,m=n.length-1;for(;f>=0&&m>=0;)a.get(f,m)===3?(u(f,m),f--,m--):a.get(f,m)===1?f--:m--;return u(-1,-1),l.reverse(),new nt(l,!1)}}function za(t,e,n){let r=n;return r=Ih(t,e,r),r=Lh(t,e,r),r}function Ph(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new Le(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Ih(t,e,n){const r=[];n.length>0&&r.push(n[0]);for(let i=1;i0?n[r-1].seq2Range.endExclusive:-1,a=r+10?n[r-1].seq1Range.endExclusive:-1,a=r+1i&&n.getElement(t.seq2Range.start-a)===n.getElement(t.seq2Range.endExclusive-a)&&a<20;)a++;a--;let o=0;for(;t.seq2Range.start+oc&&(c=g,l=h)}return l!==0?new Le(t.seq1Range.delta(l),t.seq2Range.delta(l)):t}class Th{compute(e,n,r=rn.instance){if(e.length===0||n.length===0)return nt.trivial(e,n);function i(m,g){for(;m=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[e]=n}}}class Oh{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class Uh{constructor(){this.dynamicProgrammingDiffing=new zh,this.myersDiffingAlgorithm=new Th}computeDiff(e,n,r){const i=r.maxComputationTimeMs===0?rn.instance:new Nh(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(R){let z=a.get(R);return z===void 0&&(z=a.size,a.set(R,z)),z}const l=e.map(R=>o(R.trim())),c=n.map(R=>o(R.trim())),h=new La(l,e),u=new La(c,n),f=(()=>h.length+u.length<1500?this.dynamicProgrammingDiffing.compute(h,u,i,(R,z)=>e[R]===n[z]?n[z].length===0?.1:1+Math.log(1+n[z].length):.99):this.myersDiffingAlgorithm.compute(h,u))();let m=f.diffs,g=f.hitTimeout;m=za(h,u,m);const b=[],y=R=>{if(s)for(let z=0;zR.seq1Range.start-x===R.seq2Range.start-w);const z=R.seq1Range.start-x;y(z),x=R.seq1Range.endExclusive,w=R.seq2Range.endExclusive;const $=this.refineDiff(e,n,R,i,s);$.hitTimeout&&(g=!0);for(const X of $.mappings)b.push(X)}y(e.length-x);const k=jh(b,e,n);return new Ra(k,g)}refineDiff(e,n,r,i,s){const a=new Wa(e,r.seq1Range,s),o=new Wa(n,r.seq2Range,s),l=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let c=l.diffs;return c=za(a,o,c),c=Vh(a,o,c),c=Ph(a,o,c),{mappings:c.map(u=>new Ea(a.translateRange(u.seq1Range),o.translateRange(u.seq2Range))),hitTimeout:l.hitTimeout}}}function Vh(t,e,n){const r=[];let i;function s(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&r.push(new Le(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let l=function(m,g){var b,y,x,w;if(!i||!i.s1Range.containsRange(m)||!i.s2Range.containsRange(g))if(i&&!(i.s1Range.endExclusive0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function jh(t,e,n){const r=[];for(const i of $h(t.map(s=>qh(s,e,n)),(s,a)=>s.originalRange.overlapOrTouch(a.originalRange)||s.modifiedRange.overlapOrTouch(a.modifiedRange))){const s=i[0],a=i[i.length-1];r.push(new $n(s.originalRange.join(a.originalRange),s.modifiedRange.join(a.modifiedRange),i.map(o=>o.innerChanges[0])))}return jr(()=>ka(r,(i,s)=>s.originalRange.startLineNumber-i.originalRange.endLineNumberExclusive===s.modifiedRange.startLineNumber-i.modifiedRange.endLineNumberExclusive&&i.originalRange.endLineNumberExclusive=n[t.modifiedRange.startLineNumber-1].length&&t.originalRange.startColumn-1>=e[t.originalRange.startLineNumber-1].length&&(r=1),t.modifiedRange.endColumn===1&&t.originalRange.endColumn===1&&t.originalRange.startLineNumber+r<=t.originalRange.endLineNumber&&t.modifiedRange.startLineNumber+r<=t.modifiedRange.endLineNumber&&(i=-1);const s=new He(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),a=new He(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new $n(s,a,[t])}function*$h(t,e){let n,r;for(const i of t)r!==void 0&&e(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}class La{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Ta(this.lines[e-1]),r=e===this.lines.length?0:Ta(this.lines[e]);return 1e3-(n+r)}}function Ta(t){let e=0;for(;e0&&n.endExclusive>=e.length&&(n=new ce(n.start-1,n.endExclusive),i=!0),this.lineRange=n;for(let s=this.lineRange.start;sString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ua(e>0?this.elements[e-1]:-1),r=Ua(ee?r=s:n=s+1}const i=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new $e(this.lineRange.start+n+1,e-i+1+this.offsetByLine[n])}translateRange(e){return Ae.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!Gr(this.elements[e]))return;let n=e;for(;n>0&&Gr(this.elements[n-1]);)n--;let r=e;for(;r=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}const Hh={[0]:0,[1]:0,[2]:0,[3]:10,[4]:2,[5]:3,[6]:10,[7]:10};function Oa(t){return Hh[t]}function Ua(t){return t===10?7:t===13?6:Gh(t)?5:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:4}function Gh(t){return t===32||t===9}const Jr={legacy:new Dh,advanced:new Uh};function bt(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class he{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Te{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.l=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let l=0,c=0;const h=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),a){case n:l=(r-i)/u+(r1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let a,o,l;if(r===0)a=o=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,h=2*i-c;a=Te._hue2rgb(h,c,n+1/3),o=Te._hue2rgb(h,c,n),l=Te._hue2rgb(h,c,n-1/3)}return new he(Math.round(a*255),Math.round(o*255),Math.round(l*255),s)}}class Vt{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.v=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,l=s===0?0:o/s;let c;return o===0?c=0:s===n?c=((r-i)/o%6+6)%6:s===r?c=(i-n)/o+2:c=(n-r)/o+4,new Vt(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,a=i*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a;let[c,h,u]=[0,0,0];return n<60?(c=a,h=o):n<120?(c=o,h=a):n<180?(h=a,u=o):n<240?(h=o,u=a):n<300?(c=o,u=a):n<=360&&(c=a,u=o),c=Math.round((c+l)*255),h=Math.round((h+l)*255),u=Math.round((u+l)*255),new he(c,h,u,s)}}let fe=class Ce{static fromHex(e){return Ce.Format.CSS.parseHex(e)||Ce.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Te.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Vt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof he)this.rgba=e;else if(e instanceof Te)this._hsla=e,this.rgba=Te.toRGBA(e);else if(e instanceof Vt)this._hsva=e,this.rgba=Vt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&he.equals(this.rgba,e.rgba)&&Te.equals(this.hsla,e.hsla)&&Vt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Ce._relativeLuminanceForComponent(this.rgba.r),n=Ce._relativeLuminanceForComponent(this.rgba.g),r=Ce._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return bt(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}getContrastRatio(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}isDarker(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3<128}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return nCe._flatten(i,r));return Ce._flatten(this,n)}static _flatten(e,n){const r=1-e.rgba.a;return new Ce(new he(r*n.rgba.r+e.rgba.a*e.rgba.r,r*n.rgba.g+e.rgba.a*e.rgba.g,r*n.rgba.b+e.rgba.a*e.rgba.b))}toString(){return this._toString||(this._toString=Ce.Format.CSS.format(this)),this._toString}static getLighterColor(e,n,r){if(e.isLighterThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,e.lighten(r)}static getDarkerColor(e,n,r){if(e.isDarkerThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,e.darken(r)}};fe.white=new fe(new he(255,255,255,1)),fe.black=new fe(new he(0,0,0,1)),fe.red=new fe(new he(255,0,0,1)),fe.blue=new fe(new he(0,0,255,1)),fe.green=new fe(new he(0,255,0,1)),fe.cyan=new fe(new he(0,255,255,1)),fe.lightgrey=new fe(new he(211,211,211,1)),fe.transparent=new fe(new he(0,0,0,0)),function(t){(function(e){(function(n){function r(m){return m.rgba.a===1?`rgb(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b})`:t.Format.CSS.formatRGBA(m)}n.formatRGB=r;function i(m){return`rgba(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b}, ${+m.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(m){return m.hsla.a===1?`hsl(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%)`:t.Format.CSS.formatHSLA(m)}n.formatHSL=s;function a(m){return`hsla(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%, ${m.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(m){const g=m.toString(16);return g.length!==2?"0"+g:g}function l(m){return`#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}`}n.formatHex=l;function c(m,g=!1){return g&&m.rgba.a===1?t.Format.CSS.formatHex(m):`#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}${o(Math.round(m.rgba.a*255))}`}n.formatHexA=c;function h(m){return m.isOpaque()?t.Format.CSS.formatHex(m):t.Format.CSS.formatRGBA(m)}n.format=h;function u(m){const g=m.length;if(g===0||m.charCodeAt(0)!==35)return null;if(g===7){const b=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),y=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),x=16*f(m.charCodeAt(5))+f(m.charCodeAt(6));return new t(new he(b,y,x,1))}if(g===9){const b=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),y=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),x=16*f(m.charCodeAt(5))+f(m.charCodeAt(6)),w=16*f(m.charCodeAt(7))+f(m.charCodeAt(8));return new t(new he(b,y,x,w/255))}if(g===4){const b=f(m.charCodeAt(1)),y=f(m.charCodeAt(2)),x=f(m.charCodeAt(3));return new t(new he(16*b+b,16*y+y,16*x+x))}if(g===5){const b=f(m.charCodeAt(1)),y=f(m.charCodeAt(2)),x=f(m.charCodeAt(3)),w=f(m.charCodeAt(4));return new t(new he(16*b+b,16*y+y,16*x+x,(16*w+w)/255))}return null}n.parseHex=u;function f(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))}(fe||(fe={}));function Va(t){const e=[];for(const n of t){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&e.push(r)}return e}function Xr(t,e,n,r){return{red:t/255,blue:n/255,green:e/255,alpha:r}}function sn(t,e){const n=e.index,r=e[0].length;if(!n)return;const i=t.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Jh(t,e){if(!t)return;const n=fe.Format.CSS.parseHex(e);if(n)return{range:t,color:Xr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Ba(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=Va(i);return{range:t,color:Xr(s[0],s[1],s[2],n?s[3]:1)}}function ja(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=Va(i),a=new fe(new Te(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:Xr(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function an(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Xh(t){const e=[],r=an(t,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],o=s[2];if(!o)continue;let l;if(a==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=Ba(sn(t,i),an(o,c),!1)}else if(a==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Ba(sn(t,i),an(o,c),!0)}else if(a==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=ja(sn(t,i),an(o,c),!1)}else if(a==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=ja(sn(t,i),an(o,c),!0)}else a==="#"&&(l=Jh(sn(t,i),a+o));l&&e.push(l)}return e}function Yh(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Xh(t)}var Ke=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})};class Kh extends rh{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}class vt{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new Kh(Er.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,n,r){return Ke(this,void 0,void 0,function*(){const i=this._getModel(e);return i?Fh.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,n,r,i){return Ke(this,void 0,void 0,function*(){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:vt.computeDiff(s,a,r,i)})}static computeDiff(e,n,r,i){const s=i==="advanced"?Jr.advanced:Jr.legacy,a=e.getLinesContent(),o=n.getLinesContent(),l=s.computeDiff(a,o,r);return{identical:l.changes.length>0?!1:this._modelsAreIdentical(e,n),quitEarly:l.hitTimeout,changes:l.changes.map(h=>{var u;return[h.originalRange.startLineNumber,h.originalRange.endLineNumberExclusive,h.modifiedRange.startLineNumber,h.modifiedRange.endLineNumberExclusive,(u=h.innerChanges)===null||u===void 0?void 0:u.map(f=>[f.originalRange.startLineNumber,f.originalRange.startColumn,f.originalRange.endLineNumber,f.originalRange.endColumn,f.modifiedRange.startLineNumber,f.modifiedRange.startColumn,f.modifiedRange.endLineNumber,f.modifiedRange.endColumn])]})}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=e.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}computeDirtyDiff(e,n,r){return Ke(this,void 0,void 0,function*(){const i=this._getModel(e),s=this._getModel(n);if(!i||!s)return null;const a=i.getLinesContent(),o=s.getLinesContent();return new Ma(a,o,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0,maxComputationTime:1e3}).computeDiff().changes})}computeMoreMinimalEdits(e,n,r){return Ke(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,l)=>{if(o.range&&l.range)return Ae.compareRangesUsingStarts(o.range,l.range);const c=o.range?0:1,h=l.range?0:1;return c-h});for(let{range:o,text:l,eol:c}of n){if(typeof c=="number"&&(a=c),Ae.isEmpty(o)&&!l)continue;const h=i.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,i.eol),h===l)continue;if(Math.max(l.length,h.length)>vt._diffLimit){s.push({range:o,text:l});continue}const u=Wc(h,l,r),f=i.offsetAt(Ae.lift(o).getStartPosition());for(const m of u){const g=i.positionAt(f+m.originalStart),b=i.positionAt(f+m.originalStart+m.originalLength),y={text:l.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:b.lineNumber,endColumn:b.column}};i.getValueInRange(y.range)!==y.text&&s.push(y)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeHumanReadableDiff(e,n,r){return Ke(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,l)=>{if(o.range&&l.range)return Ae.compareRangesUsingStarts(o.range,l.range);const c=o.range?0:1,h=l.range?0:1;return c-h});for(let{range:o,text:l,eol:c}of n){let b=function(x,w){return new $e(x.lineNumber+w.lineNumber-1,w.lineNumber===1?x.column+w.column-1:w.column)},y=function(x,w){const k=[];for(let R=w.startLineNumber;R<=w.endLineNumber;R++){const z=x[R-1];R===w.startLineNumber&&R===w.endLineNumber?k.push(z.substring(w.startColumn-1,w.endColumn-1)):R===w.startLineNumber?k.push(z.substring(w.startColumn-1)):R===w.endLineNumber?k.push(z.substring(0,w.endColumn-1)):k.push(z)}return k};if(typeof c=="number"&&(a=c),Ae.isEmpty(o)&&!l)continue;const h=i.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,i.eol),h===l)continue;if(Math.max(l.length,h.length)>vt._diffLimit){s.push({range:o,text:l});continue}const u=h.split(/\r\n|\n|\r/),f=l.split(/\r\n|\n|\r/),m=Jr.advanced.computeDiff(u,f,r),g=Ae.lift(o).getStartPosition();for(const x of m.changes)if(x.innerChanges)for(const w of x.innerChanges)s.push({range:Ae.fromPositions(b(g,w.originalRange.getStartPosition()),b(g,w.originalRange.getEndPosition())),text:y(f,w.modifiedRange).join(i.eol)});else throw new Ct("The experimental diff algorithm always produces inner changes")}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(e){return Ke(this,void 0,void 0,function*(){const n=this._getModel(e);return n?uh(n):null})}computeDefaultDocumentColors(e){return Ke(this,void 0,void 0,function*(){const n=this._getModel(e);return n?Yh(n):null})}textualSuggest(e,n,r,i){return Ke(this,void 0,void 0,function*(){const s=new Tn(!0),a=new RegExp(r,i),o=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const h of c.words(a))if(!(h===n||!isNaN(Number(h)))&&(o.add(h),o.size>vt._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(e,n,r,i){return Ke(this,void 0,void 0,function*(){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let l=n.startLineNumber;lthis._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(_r(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){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,n))}catch(r){return Promise.reject(r)}}}vt._diffLimit=1e5,vt._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=wh());let Yr=!1;function qa(t){if(Yr)return;Yr=!0;const e=new Lc(n=>{globalThis.postMessage(n)},n=>new vt(n,t));globalThis.onmessage=n=>{e.onmessage(n.data)}}globalThis.onmessage=t=>{Yr||qa(null)};/*!----------------------------------------------------------------------------- +`))}}class xr{constructor(e){this.value=e}}const tc=2;class Je{constructor(e){var n,r,i,s,a;this._size=0,this._options=e,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new ec((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:Zl):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new Pt(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(n,r,i)=>{var s,a,o,l,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),tn.None;if(this._disposed)return tn.None;r&&(n=n.bind(r));const h=new xr(n);let u;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=wr.create(),u=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof xr?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new nc),this._listeners=[this._listeners,h]):this._listeners.push(h):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=h,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const m=en(()=>{u==null||u(),this._removeListener(h)});return i instanceof Ct?i.add(m):Array.isArray(i)&&i.push(m),m}),this._event}_removeListener(e){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*tc<=a.length){let c=0;for(let h=0;h0}}class nc{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function rc(t){return typeof t=="string"}function ic(t){let e=[];for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function Sr(t){const e=[];for(const n of ic(t))typeof t[n]=="function"&&e.push(n);return e}function sc(t,e){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}globalThis&&globalThis.__awaiter;let ac=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function oc(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),ac&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function ie(t,e,...n){return oc(e,n)}function $p(t){}var Cr;const Lt="en";let kr=!1,_r=!1,Fr=!1,rs=!1,Tn,Rr=Lt,is=Lt,lc,je;const qe=typeof self=="object"?self:typeof global=="object"?global:{};let we;typeof qe.vscode<"u"&&typeof qe.vscode.process<"u"?we=qe.vscode.process:typeof process<"u"&&(we=process);const cc=typeof((Cr=we==null?void 0:we.versions)===null||Cr===void 0?void 0:Cr.electron)=="string"&&(we==null?void 0:we.type)==="renderer";if(typeof navigator=="object"&&!cc)je=navigator.userAgent,kr=je.indexOf("Windows")>=0,_r=je.indexOf("Macintosh")>=0,(je.indexOf("Macintosh")>=0||je.indexOf("iPad")>=0||je.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Fr=je.indexOf("Linux")>=0,(je==null?void 0:je.indexOf("Mobi"))>=0,rs=!0,ie({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Tn=Lt,Rr=Tn,is=navigator.language;else if(typeof we=="object"){kr=we.platform==="win32",_r=we.platform==="darwin",Fr=we.platform==="linux",Fr&&we.env.SNAP&&we.env.SNAP_REVISION,we.env.CI||we.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Tn=Lt,Rr=Lt;const t=we.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Tn=e.locale,is=e.osLocale,Rr=n||Lt,lc=e._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const nn=kr,hc=_r;rs&&qe.importScripts;const Xe=je,dc=typeof qe.postMessage=="function"&&!qe.importScripts;(()=>{if(dc){const t=[];qe.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),qe.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const uc=!!(Xe&&Xe.indexOf("Chrome")>=0);Xe&&Xe.indexOf("Firefox")>=0,!uc&&Xe&&Xe.indexOf("Safari")>=0,Xe&&Xe.indexOf("Edg/")>=0,Xe&&Xe.indexOf("Android")>=0;class pc{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=JSON.stringify(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class ss{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 as;function fc(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function mc(t){return t.split(/\r\n|\r|\n/)}function gc(t){for(let e=0,n=t.length;e=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function os(t){return t>=65&&t<=90}function Er(t){return 55296<=t&&t<=56319}function vc(t){return 56320<=t&&t<=57343}function yc(t,e){return(t-55296<<10)+(e-56320)+65536}function wc(t,e,n){const r=t.charCodeAt(n);if(Er(r)&&n+1JSON.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]}')),Le.cache=new pc(t=>{function e(c){const h=new Map;for(let u=0;u!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(const c of s){const h=e(i[c]);a=r(a,h)}const o=e(i._common),l=n(o,a);return new Le(l)}),Le._locales=new ss(()=>Object.keys(Le.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class ht{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(ht.getRawData())),this._data}static isInvisibleCharacter(e){return ht.getData().has(e)}static get codePoints(){return ht.getData()}}ht._data=void 0;const Cc="$initialize";class kc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class ls{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class _c{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Fc{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class Rc{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Ec{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,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new kc(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new Je({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new _c(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Rc(this._workerId,r)),r=null}});return i.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 n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new ls(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=ts(i.detail)),this._send(new ls(this._workerId,n,void 0,ts(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new Fc(this._workerId,n,i))});this._pendingEvents.set(n,r)}_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 n=[];if(e.type===0)for(let r=0;rfunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of t){if(hs(a)){s[a]=i(a);continue}if(cs(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Ac{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Ec({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===Cc)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(hs(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(cs(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const o=Dc(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(Sr(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],u=>{if(this._requestHandler=u.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(Sr(this._requestHandler))},c)}))}}class dt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ds(t,e){return(e<<5)-e+t|0}function Mc(t,e){e=ds(149417,e);for(let n=0,r=t.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new dt(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,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),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 ut{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=ut._getElements(e),[o,l,c]=ut._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(ut._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(It.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new dt(e,0,r,i-r+1)]):e<=n?(It.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new dt(e,n-e+1,r,0)]):(It.Assert(e===n+1,"originalStart should only be one more than originalEnd"),It.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],h=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,h,s);let m=[];return s[0]?m=[new dt(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:m=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(u,m)}return[new dt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,h,u,m,f,g,v,y,w,x){let k=null,P=null,N=new ps,V=n,T=r,I=f[0]-y[0]-i,D=-1073741824,R=this.m_forwardHistory.length-1;do{const E=I+e;E===V||E=0&&(c=this.m_forwardHistory[R],e=c[0],V=1,T=c.length-1)}while(--R>=-1);if(k=N.getReverseChanges(),x[0]){let E=f[0]+1,F=y[0]+1;if(k!==null&&k.length>0){const W=k[k.length-1];E=Math.max(E,W.getOriginalEnd()),F=Math.max(F,W.getModifiedEnd())}P=[new dt(E,m-E+1,F,v-F+1)]}else{N=new ps,V=a,T=o,I=f[0]-y[0]-l,D=1073741824,R=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const E=I+s;E===V||E=h[E+1]?(u=h[E+1]-1,g=u-I-l,u>D&&N.MarkNextChange(),D=u+1,N.AddOriginalElement(u+1,g+1),I=E+1-s):(u=h[E-1],g=u-I-l,u>D&&N.MarkNextChange(),D=u,N.AddModifiedElement(u+1,g+1),I=E-1-s),R>=0&&(h=this.m_reverseHistory[R],s=h[0],V=1,T=h.length-1)}while(--R>=-1);P=N.getChanges()}return this.ConcatenateChanges(k,P)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,h=0,u=0,m=0,f=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),v=g+1,y=new Int32Array(v),w=new Int32Array(v),x=i-r,k=n-e,P=e-r,N=n-i,T=(k-x)%2===0;y[x]=e,w[k]=n,o[0]=!1;for(let I=1;I<=g/2+1;I++){let D=0,R=0;h=this.ClipDiagonalBound(x-I,I,x,v),u=this.ClipDiagonalBound(x+I,I,x,v);for(let F=h;F<=u;F+=2){F===h||FD+R&&(D=l,R=c),!T&&Math.abs(F-k)<=I-1&&l>=w[F])return s[0]=l,a[0]=c,W<=w[F]&&1447>0&&I<=1447+1?this.WALKTRACE(x,h,u,P,k,m,f,N,y,w,l,n,s,c,i,a,T,o):null}const E=(D-e+(R-r)-I)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(D,E))return o[0]=!0,s[0]=D,a[0]=R,E>0&&1447>0&&I<=1447+1?this.WALKTRACE(x,h,u,P,k,m,f,N,y,w,l,n,s,c,i,a,T,o):(e++,r++,[new dt(e,n-e+1,r,i-r+1)]);m=this.ClipDiagonalBound(k-I,I,k,v),f=this.ClipDiagonalBound(k+I,I,k,v);for(let F=m;F<=f;F+=2){F===m||F=w[F+1]?l=w[F+1]-1:l=w[F-1],c=l-(F-k)-N;const W=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(w[F]=l,T&&Math.abs(F-x)<=I&&l<=y[F])return s[0]=l,a[0]=c,W>=y[F]&&1447>0&&I<=1447+1?this.WALKTRACE(x,h,u,P,k,m,f,N,y,w,l,n,s,c,i,a,T,o):null}if(I<=1447){let F=new Int32Array(u-h+2);F[0]=x-h+1,Tt.Copy2(y,h,F,1,u-h+1),this.m_forwardHistory.push(F),F=new Int32Array(f-m+2),F[0]=k-m+1,Tt.Copy2(w,m,F,1,f-m+1),this.m_reverseHistory.push(F)}}return this.WALKTRACE(x,h,u,P,k,m,f,N,y,w,l,n,s,c,i,a,T,o)}PrettifyChanges(e){for(let n=0;n0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const m=r.originalStart-u,f=r.modifiedStart-u;if(mc&&(c=v,l=u)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n0&&f>l&&(l=f,c=u,h=m)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Tt.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Tt.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Tt.Copy(e,0,i,0,e.length),Tt.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(It.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),It.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new dt(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e=Lc&&t<=Tc||t>=Ic&&t<=Wc}function On(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===pt&&o!==-1?++o:o=-1}return i}function ms(t,e){Uc(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const _e={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],he(s,"path"),s.length===0)continue}else e.length===0?s=Wn():(s=zc[`=${e}`]||Wn(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Re)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const h=s.charCodeAt(0);if(a===1)J(h)&&(o=1,c=!0);else if(J(h))if(c=!0,J(s.charCodeAt(1))){let u=2,m=u;for(;u2&&J(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=On(n,!r,"\\",J),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){he(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return Dr(s)?"\\":t;if(J(s))if(i=!0,J(t.charCodeAt(1))){let o=2,l=o;for(;o2&&J(t.charCodeAt(2))&&(i=!0,n=3));let a=n0&&J(t.charCodeAt(e-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){he(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return J(n)||e>2&>(n)&&t.charCodeAt(1)===ft&&J(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&J(n.charCodeAt(0))){++i;const s=n.length;s>1&&J(n.charCodeAt(1))&&(++i,s>2&&(J(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return _e.normalize(e)},relative(t,e){if(he(t,"from"),he(e,"to"),t===e)return"";const n=_e.resolve(t),r=_e.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;ii&&t.charCodeAt(s-1)===Re;)s--;const a=s-i;let o=0;for(;oo&&e.charCodeAt(l-1)===Re;)l--;const c=l-o,h=ah){if(e.charCodeAt(o+m)===Re)return r.slice(o+m+1);if(m===2)return r.slice(o+m)}a>h&&(t.charCodeAt(i+m)===Re?u=m:m===2&&(u=3)),u===-1&&(u=0)}let f="";for(m=i+u+1;m<=s;++m)(m===s||t.charCodeAt(m)===Re)&&(f+=f.length===0?"..":"\\..");return o+=u,f.length>0?`${f}${r.slice(o,l)}`:(r.charCodeAt(o)===Re&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=_e.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Re){if(e.charCodeAt(1)===Re){const n=e.charCodeAt(2);if(n!==Oc&&n!==pt)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(gt(e.charCodeAt(0))&&e.charCodeAt(1)===ft&&e.charCodeAt(2)===Re)return`\\\\?\\${e}`;return t},dirname(t){he(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return J(i)?t:".";if(J(i)){if(n=r=1,J(t.charCodeAt(1))){let o=2,l=o;for(;o2&&J(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(J(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&he(e,"ext"),he(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&>(t.charCodeAt(0))&&t.charCodeAt(1)===ft&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(J(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(J(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){he(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===ft&>(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(J(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===pt?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:ms.bind(null,"\\"),parse(t){he(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return J(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(J(i)){if(r=1,J(t.charCodeAt(1))){let u=2,m=u;for(;u0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),J(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===pt?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return o!==-1&&(s===-1||h===0||h===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Vc=(()=>{if(mt){const t=/\\/g;return()=>{const e=Wn().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Wn()})(),Ee={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:Vc();he(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===ye)}return e=On(e,!n,"/",Dr),n?`/${e}`:e.length>0?e:"."},normalize(t){if(he(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ye,n=t.charCodeAt(t.length-1)===ye;return t=On(t,!e,"/",Dr),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return he(t,"path"),t.length>0&&t.charCodeAt(0)===ye},join(...t){if(t.length===0)return".";let e;for(let n=0;n0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":Ee.normalize(e)},relative(t,e){if(he(t,"from"),he(e,"to"),t===e||(t=Ee.resolve(t),e=Ee.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=io){if(e.charCodeAt(s+c)===ye)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===ye?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===ye)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(he(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ye;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===ye){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&he(e,"ext"),he(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===ye){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===ye){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){he(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t.charCodeAt(a);if(o===ye){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===pt?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:ms.bind(null,"/"),parse(t){he(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===ye;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===ye){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),h===pt?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,i),e.base=t.slice(h,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Ee.win32=_e.win32=_e,Ee.posix=_e.posix=Ee,mt?_e.normalize:Ee.normalize,mt?_e.resolve:Ee.resolve,mt?_e.relative:Ee.relative,mt?_e.dirname:Ee.dirname,mt?_e.basename:Ee.basename,mt?_e.extname:Ee.extname,mt?_e.sep:Ee.sep;const Bc=/^\w[\w\d+.-]*$/,jc=/^\//,qc=/^\/\//;function $c(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!Bc.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!jc.test(t.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(qc.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Hc(t,e){return!t&&!e?"file":t}function Gc(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==$e&&(e=$e+e):e=$e;break}return e}const se="",$e="/",Jc=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Ar=class br{static isUri(e){return e instanceof br?!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,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||se,this.authority=e.authority||se,this.path=e.path||se,this.query=e.query||se,this.fragment=e.fragment||se):(this.scheme=Hc(e,a),this.authority=n||se,this.path=Gc(this.scheme,r||se),this.query=i||se,this.fragment=s||se,$c(this,a))}get fsPath(){return Mr(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=se),r===void 0?r=this.authority:r===null&&(r=se),i===void 0?i=this.path:i===null&&(i=se),s===void 0?s=this.query:s===null&&(s=se),a===void 0?a=this.fragment:a===null&&(a=se),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ot(n,r,i,s,a)}static parse(e,n=!1){const r=Jc.exec(e);return r?new Ot(r[2]||se,Un(r[4]||se),Un(r[5]||se),Un(r[7]||se),Un(r[9]||se),n):new Ot(se,se,se,se,se)}static file(e){let n=se;if(nn&&(e=e.replace(/\\/g,$e)),e[0]===$e&&e[1]===$e){const r=e.indexOf($e,2);r===-1?(n=e.substring(2),e=$e):(n=e.substring(2,r),e=e.substring(r)||$e)}return new Ot("file",n,e,se,se)}static from(e,n){return new Ot(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return nn&&e.scheme==="file"?r=br.file(_e.join(Mr(e,!0),...n)).path:r=Ee.join(e.path,...n),e.with({path:r})}toString(e=!1){return Nr(this,e)}toJSON(){return this}static revive(e){var n,r;if(e){if(e instanceof br)return e;{const i=new Ot(e);return i._formatted=(n=e.external)!==null&&n!==void 0?n:null,i._fsPath=e._sep===gs&&(r=e.fsPath)!==null&&r!==void 0?r:null,i}}else return e}};const gs=nn?1:void 0;class Ot extends Ar{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Mr(this,!1)),this._fsPath}toString(e=!1){return e?Nr(this,!0):(this._formatted||(this._formatted=Nr(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=gs),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 bs={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 vs(t,e,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=bs[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function Xc(t){let e;for(let n=0;n1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,nn&&(n=n.replace(/\//g,"\\")),n}function Nr(t,e){const n=e?Xc:vs;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=$e,r+=$e),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:vs(l,!1,!1)),r}function ys(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+ys(t.substr(3)):t}}const ws=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Un(t){return t.match(ws)?t.replace(ws,e=>ys(e)):t}let Ye=class Mt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new Mt(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return Mt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return Mt.isBefore(this,e)}static isBefore(e,n){return e.lineNumberr||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ue.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.columne.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return ue.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)}strictContainsRange(e){return ue.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return ue.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumbere.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new ue(r,i,s,a)}intersectRanges(e){return ue.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return rc?(s=c,a=h):s===c&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(e){return ue.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(e){return new Ye(e.endLineNumber,e.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(e){return new Ye(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new ue(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new ue(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(e){return new ue(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(e){return new ue(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new ue(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new ue(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new ue(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,n){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};var xs;(function(t){function e(i){return i<0}t.isLessThan=e;function n(i){return i>0}t.isGreaterThan=n;function r(i){return i===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(xs||(xs={}));function Ss(t){return t<0?0:t>255?255:t|0}function Ut(t){return t<0?0:t>4294967295?4294967295:t|0}class Yc{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Ut(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Ut(e),n=Ut(n),this.values[e]===n?!1:(this.values[e]=n,e-1=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.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=Ut(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e=s)n=i+1;else break;return new Kc(i,e-a)}}class Kc{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class Qc{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Ye(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i/?";function eh(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of Zc)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const Cs=eh();function th(t){let e=Cs;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const ks=new Kl;ks.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function zr(t,e,n,r,i){if(i||(i=Ln.first(ks)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),zr(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=a-i.windowSize*c;e.lastIndex=Math.max(0,h);const u=nh(e,n,a,o);if(!u&&l||(l=u,h<=0))break;o=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function nh(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Pr{constructor(e){const n=Ss(e);this._defaultValue=n,this._asciiMap=Pr._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Ss(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}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 rh{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;sn&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new rh(r,n,0);for(let s=0,a=e.length;s=this._maxCharCode?0:this._states.get(e,n)}}let Lr=null;function sh(){return Lr===null&&(Lr=new ih([[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]])),Lr}let rn=null;function ah(){if(rn===null){rn=new Pr(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;ni);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=sh()){const r=ah(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,h=0,u=0,m=1,f=!1,g=!1,v=!1,y=!1;for(;c=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Ir.INSTANCE=new Ir;const _s=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Bn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof jn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:yr.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:_s})})(Bn||(Bn={}));class jn{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?_s:(this._emitter||(this._emitter=new Je),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class lh{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 jn),this._token}cancel(){this._token?this._token instanceof jn&&this._token.cancel():this._token=Bn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof jn&&this._token.dispose():this._token=Bn.None}}class Tr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const qn=new Tr,Wr=new Tr,Or=new Tr,ch=new Array(230),hh=Object.create(null),dh=Object.create(null);(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",131,"VK_F20",t,t],[1,118,"F21",79,"F21",132,"VK_F21",t,t],[1,119,"F22",80,"F22",133,"VK_F22",t,t],[1,120,"F23",81,"F23",134,"VK_F23",t,t],[1,121,"F24",82,"F24",135,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,a,o,l,c,h,u,m,f]=i;if(r[a]||(r[a]=!0,hh[o]=a,dh[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);qn.define(l,c),Wr.define(l,m||c),Or.define(l,f||m||c)}h&&(ch[h]=l)}})();var Fs;(function(t){function e(o){return qn.keyCodeToStr(o)}t.toString=e;function n(o){return qn.strToKeyCode(o)}t.fromString=n;function r(o){return Wr.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return Or.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return Wr.strToKeyCode(o)||Or.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return qn.keyCodeToStr(o)}t.toElectronAccelerator=a})(Fs||(Fs={}));function uh(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class Me extends De{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Me.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new Me(this.startLineNumber,this.startColumn,e,n):new Me(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new Ye(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ye(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new Me(e,n,this.endLineNumber,this.endColumn):new Me(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Me(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new Me(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Me(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Me(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new fh(this,e,n);return this._factories.set(e,i),en(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}getOrCreate(e){return Ur(this,void 0,void 0,function*(){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(yield r.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.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 fh extends tn{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Ur(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Ur(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))})}}class mh{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Es;(function(t){const e=new Map;e.set(0,B.symbolMethod),e.set(1,B.symbolFunction),e.set(2,B.symbolConstructor),e.set(3,B.symbolField),e.set(4,B.symbolVariable),e.set(5,B.symbolClass),e.set(6,B.symbolStruct),e.set(7,B.symbolInterface),e.set(8,B.symbolModule),e.set(9,B.symbolProperty),e.set(10,B.symbolEvent),e.set(11,B.symbolOperator),e.set(12,B.symbolUnit),e.set(13,B.symbolValue),e.set(15,B.symbolEnum),e.set(14,B.symbolConstant),e.set(15,B.symbolEnum),e.set(16,B.symbolEnumMember),e.set(17,B.symbolKeyword),e.set(27,B.symbolSnippet),e.set(18,B.symbolText),e.set(19,B.symbolColor),e.set(20,B.symbolFile),e.set(21,B.symbolReference),e.set(22,B.symbolCustomColor),e.set(23,B.symbolFolder),e.set(24,B.symbolTypeParameter),e.set(25,B.account),e.set(26,B.issues);function n(s){let a=e.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=B.symbolProperty),a}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}t.fromString=i})(Es||(Es={}));var Ds;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Ds||(Ds={}));var As;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(As||(As={}));var Ms;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Ms||(Ms={})),ie("Array","array"),ie("Boolean","boolean"),ie("Class","class"),ie("Constant","constant"),ie("Constructor","constructor"),ie("Enum","enumeration"),ie("EnumMember","enumeration member"),ie("Event","event"),ie("Field","field"),ie("File","file"),ie("Function","function"),ie("Interface","interface"),ie("Key","key"),ie("Method","method"),ie("Module","module"),ie("Namespace","namespace"),ie("Null","null"),ie("Number","number"),ie("Object","object"),ie("Operator","operator"),ie("Package","package"),ie("Property","property"),ie("String","string"),ie("Struct","struct"),ie("TypeParameter","type parameter"),ie("Variable","variable");var Ns;(function(t){const e=new Map;e.set(0,B.symbolFile),e.set(1,B.symbolModule),e.set(2,B.symbolNamespace),e.set(3,B.symbolPackage),e.set(4,B.symbolClass),e.set(5,B.symbolMethod),e.set(6,B.symbolProperty),e.set(7,B.symbolField),e.set(8,B.symbolConstructor),e.set(9,B.symbolEnum),e.set(10,B.symbolInterface),e.set(11,B.symbolFunction),e.set(12,B.symbolVariable),e.set(13,B.symbolConstant),e.set(14,B.symbolString),e.set(15,B.symbolNumber),e.set(16,B.symbolBoolean),e.set(17,B.symbolArray),e.set(18,B.symbolObject),e.set(19,B.symbolKey),e.set(20,B.symbolNull),e.set(21,B.symbolEnumMember),e.set(22,B.symbolStruct),e.set(23,B.symbolEvent),e.set(24,B.symbolOperator),e.set(25,B.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=B.symbolProperty),i}t.toIcon=n})(Ns||(Ns={}));var zs;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(zs||(zs={}));var Ps;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Ps||(Ps={})),new ph;var Ls;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Ls||(Ls={}));var Is;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Is||(Is={}));var Ts;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Ts||(Ts={}));var Ws;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Ws||(Ws={}));var Os;(function(t){t[t.Deprecated=1]="Deprecated"})(Os||(Os={}));var Us;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Us||(Us={}));var Vs;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Vs||(Vs={}));var Bs;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Bs||(Bs={}));var js;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(js||(js={}));var qs;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(qs||(qs={}));var $s;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})($s||($s={}));var Hs;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.ariaRequired=5]="ariaRequired",t[t.autoClosingBrackets=6]="autoClosingBrackets",t[t.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=8]="autoClosingDelete",t[t.autoClosingOvertype=9]="autoClosingOvertype",t[t.autoClosingQuotes=10]="autoClosingQuotes",t[t.autoIndent=11]="autoIndent",t[t.automaticLayout=12]="automaticLayout",t[t.autoSurround=13]="autoSurround",t[t.bracketPairColorization=14]="bracketPairColorization",t[t.guides=15]="guides",t[t.codeLens=16]="codeLens",t[t.codeLensFontFamily=17]="codeLensFontFamily",t[t.codeLensFontSize=18]="codeLensFontSize",t[t.colorDecorators=19]="colorDecorators",t[t.colorDecoratorsLimit=20]="colorDecoratorsLimit",t[t.columnSelection=21]="columnSelection",t[t.comments=22]="comments",t[t.contextmenu=23]="contextmenu",t[t.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",t[t.cursorBlinking=25]="cursorBlinking",t[t.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",t[t.cursorStyle=27]="cursorStyle",t[t.cursorSurroundingLines=28]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",t[t.cursorWidth=30]="cursorWidth",t[t.disableLayerHinting=31]="disableLayerHinting",t[t.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",t[t.domReadOnly=33]="domReadOnly",t[t.dragAndDrop=34]="dragAndDrop",t[t.dropIntoEditor=35]="dropIntoEditor",t[t.emptySelectionClipboard=36]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",t[t.extraEditorClassName=38]="extraEditorClassName",t[t.fastScrollSensitivity=39]="fastScrollSensitivity",t[t.find=40]="find",t[t.fixedOverflowWidgets=41]="fixedOverflowWidgets",t[t.folding=42]="folding",t[t.foldingStrategy=43]="foldingStrategy",t[t.foldingHighlight=44]="foldingHighlight",t[t.foldingImportsByDefault=45]="foldingImportsByDefault",t[t.foldingMaximumRegions=46]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=48]="fontFamily",t[t.fontInfo=49]="fontInfo",t[t.fontLigatures=50]="fontLigatures",t[t.fontSize=51]="fontSize",t[t.fontWeight=52]="fontWeight",t[t.fontVariations=53]="fontVariations",t[t.formatOnPaste=54]="formatOnPaste",t[t.formatOnType=55]="formatOnType",t[t.glyphMargin=56]="glyphMargin",t[t.gotoLocation=57]="gotoLocation",t[t.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",t[t.hover=59]="hover",t[t.inDiffEditor=60]="inDiffEditor",t[t.inlineSuggest=61]="inlineSuggest",t[t.letterSpacing=62]="letterSpacing",t[t.lightbulb=63]="lightbulb",t[t.lineDecorationsWidth=64]="lineDecorationsWidth",t[t.lineHeight=65]="lineHeight",t[t.lineNumbers=66]="lineNumbers",t[t.lineNumbersMinChars=67]="lineNumbersMinChars",t[t.linkedEditing=68]="linkedEditing",t[t.links=69]="links",t[t.matchBrackets=70]="matchBrackets",t[t.minimap=71]="minimap",t[t.mouseStyle=72]="mouseStyle",t[t.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=74]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",t[t.multiCursorModifier=76]="multiCursorModifier",t[t.multiCursorPaste=77]="multiCursorPaste",t[t.multiCursorLimit=78]="multiCursorLimit",t[t.occurrencesHighlight=79]="occurrencesHighlight",t[t.overviewRulerBorder=80]="overviewRulerBorder",t[t.overviewRulerLanes=81]="overviewRulerLanes",t[t.padding=82]="padding",t[t.pasteAs=83]="pasteAs",t[t.parameterHints=84]="parameterHints",t[t.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",t[t.quickSuggestions=87]="quickSuggestions",t[t.quickSuggestionsDelay=88]="quickSuggestionsDelay",t[t.readOnly=89]="readOnly",t[t.readOnlyMessage=90]="readOnlyMessage",t[t.renameOnType=91]="renameOnType",t[t.renderControlCharacters=92]="renderControlCharacters",t[t.renderFinalNewline=93]="renderFinalNewline",t[t.renderLineHighlight=94]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=96]="renderValidationDecorations",t[t.renderWhitespace=97]="renderWhitespace",t[t.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",t[t.roundedSelection=99]="roundedSelection",t[t.rulers=100]="rulers",t[t.scrollbar=101]="scrollbar",t[t.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=103]="scrollBeyondLastLine",t[t.scrollPredominantAxis=104]="scrollPredominantAxis",t[t.selectionClipboard=105]="selectionClipboard",t[t.selectionHighlight=106]="selectionHighlight",t[t.selectOnLineNumbers=107]="selectOnLineNumbers",t[t.showFoldingControls=108]="showFoldingControls",t[t.showUnused=109]="showUnused",t[t.snippetSuggestions=110]="snippetSuggestions",t[t.smartSelect=111]="smartSelect",t[t.smoothScrolling=112]="smoothScrolling",t[t.stickyScroll=113]="stickyScroll",t[t.stickyTabStops=114]="stickyTabStops",t[t.stopRenderingLineAfter=115]="stopRenderingLineAfter",t[t.suggest=116]="suggest",t[t.suggestFontSize=117]="suggestFontSize",t[t.suggestLineHeight=118]="suggestLineHeight",t[t.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",t[t.suggestSelection=120]="suggestSelection",t[t.tabCompletion=121]="tabCompletion",t[t.tabIndex=122]="tabIndex",t[t.unicodeHighlighting=123]="unicodeHighlighting",t[t.unusualLineTerminators=124]="unusualLineTerminators",t[t.useShadowDOM=125]="useShadowDOM",t[t.useTabStops=126]="useTabStops",t[t.wordBreak=127]="wordBreak",t[t.wordSeparators=128]="wordSeparators",t[t.wordWrap=129]="wordWrap",t[t.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=132]="wordWrapColumn",t[t.wordWrapOverride1=133]="wordWrapOverride1",t[t.wordWrapOverride2=134]="wordWrapOverride2",t[t.wrappingIndent=135]="wrappingIndent",t[t.wrappingStrategy=136]="wrappingStrategy",t[t.showDeprecated=137]="showDeprecated",t[t.inlayHints=138]="inlayHints",t[t.editorClassName=139]="editorClassName",t[t.pixelRatio=140]="pixelRatio",t[t.tabFocusMode=141]="tabFocusMode",t[t.layoutInfo=142]="layoutInfo",t[t.wrappingInfo=143]="wrappingInfo",t[t.defaultColorDecorators=144]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn"})(Hs||(Hs={}));var Gs;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Gs||(Gs={}));var Js;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Js||(Js={}));var Xs;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(Xs||(Xs={}));var Ys;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Ys||(Ys={}));var Ks;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Ks||(Ks={}));var Qs;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Qs||(Qs={}));var Zs;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Zs||(Zs={}));var Vr;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Vr||(Vr={}));var Br;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Br||(Br={}));var jr;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(jr||(jr={}));var ea;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(ea||(ea={}));var ta;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(ta||(ta={}));var na;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(na||(na={}));var ra;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ra||(ra={}));var ia;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(ia||(ia={}));var sa;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(sa||(sa={}));var aa;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(aa||(aa={}));var oa;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(oa||(oa={}));var la;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(la||(la={}));var qr;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(qr||(qr={}));var ca;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ca||(ca={}));var ha;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(ha||(ha={}));var da;(function(t){t[t.Deprecated=1]="Deprecated"})(da||(da={}));var ua;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(ua||(ua={}));var pa;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(pa||(pa={}));var fa;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(fa||(fa={}));var ma;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(ma||(ma={}));class sn{static chord(e,n){return uh(e,n)}}sn.CtrlCmd=2048,sn.Shift=1024,sn.Alt=512,sn.WinCtrl=256;function gh(){return{editor:void 0,languages:void 0,CancellationTokenSource:lh,Emitter:Je,KeyCode:Vr,KeyMod:sn,Position:Ye,Range:De,Selection:Me,SelectionDirection:qr,MarkerSeverity:Br,MarkerTag:jr,Uri:Ar,Token:mh}}var ga;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ga||(ga={}));var ba;(function(t){t[t.Left=1]="Left",t[t.Right=2]="Right"})(ba||(ba={}));var va;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(va||(va={}));var ya;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(ya||(ya={}));function bh(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function vh(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function yh(t,e,n,r,i){return bh(t,e,n,r,i)&&vh(t,e,n,r,i)}class wh{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){wc(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||yh(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function xh(t,e="Unreachable"){throw new Error(e)}function $n(t){if(!t()){debugger;t(),ct(new zt("Assertion Failed"))}}function wa(t,e){let n=0;for(;n0){const D=x.charCodeAt(P-1);Er(D)&&P--}if(N+1=D){u=!0;break e}h.push(new De(y,P+1,y,N+1))}}while(m)}return{ranges:h,hasMore:u,ambiguousCharacterCount:f,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:v}}static computeUnicodeHighlightReason(e,n){const r=new xa(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=Le.getLocales().filter(l=>!Le.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Ch(t,e){return`[${fc(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class xa{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Le.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of ht.codePoints)Sa(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Sc(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!ht.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Sa(e)&&ht.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Sa(t){return t===" "||t===` +`||t===" "}class le{static fromRange(e){return new le(e.startLineNumber,e.endLineNumber)}static subtract(e,n){return n?e.startLineNumber=o.startLineNumber?a=new le(a.startLineNumber,Math.max(a.endLineNumberExclusive,o.endLineNumberExclusive)):(r.push(a),a=o)}return a!==null&&r.push(a),r}static ofLength(e,n){return new le(e,e+n)}static deserialize(e){return new le(e[0],e[1])}constructor(e,n){if(e>n)throw new zt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new tt(this.modifiedRange,this.originalRange,(e=this.innerChanges)===null||e===void 0?void 0:e.map(n=>n.flip()))}}class an{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new an(this.modifiedRange,this.originalRange)}}class $r{constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new $r(this.modified,this.original)}}class Hr{constructor(e,n){this.lineRangeMapping=e,this.changes=n}flip(){return new Hr(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}const kh=3;class _h{computeDiff(e,n,r){var i;const a=new Eh(e,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const c of a.changes){let h;c.originalEndLineNumber===0?h=new le(c.originalStartLineNumber+1,c.originalStartLineNumber+1):h=new le(c.originalStartLineNumber,c.originalEndLineNumber+1);let u;c.modifiedEndLineNumber===0?u=new le(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):u=new le(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let m=new tt(h,u,(i=c.charChanges)===null||i===void 0?void 0:i.map(f=>new an(new De(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn),new De(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn))));l&&(l.modifiedRange.endLineNumberExclusive===m.modifiedRange.startLineNumber||l.originalRange.endLineNumberExclusive===m.originalRange.startLineNumber)&&(m=new tt(l.originalRange.join(m.originalRange),l.modifiedRange.join(m.modifiedRange),l.innerChanges&&m.innerChanges?l.innerChanges.concat(m.innerChanges):void 0),o.pop()),o.push(m),l=m}return $n(()=>wa(o,(c,h)=>h.originalRange.startLineNumber-c.originalRange.endLineNumberExclusive===h.modifiedRange.startLineNumber-c.modifiedRange.endLineNumberExclusive&&c.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.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 Vt{constructor(e,n,r,i,s,a,o,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),h=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Vt(i,s,a,o,l,c,h,u)}}function Rh(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const f=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&g.getElements().length>0){let v=ka(f,g,s,!0).changes;o&&(v=Rh(v)),m=[];for(let y=0,w=v.length;y1&&v>1;){const y=m.charCodeAt(g-2),w=f.charCodeAt(v-2);if(y!==w)break;g--,v--}(g>1||v>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,v)}{let g=Jr(m,1),v=Jr(f,1);const y=m.length+1,w=f.length+1;for(;g!0;const e=Date.now();return()=>Date.now()-en))return new te(e,n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new zt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new te(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}contains(e){return this.start<=e&&e ${this.seq2Range}`}join(e){return new Ae(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new Ae(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class ln{isValid(){return!0}}ln.instance=new ln;class Dh{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new zt("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&v>0&&a.get(g-1,v-1)===3&&(x+=o.get(g-1,v-1)),x+=i?i(g,v):1):x=-1;const k=Math.max(y,w,x);if(k===x){const P=g>0&&v>0?o.get(g-1,v-1):0;o.set(g,v,P+1),a.set(g,v,3)}else k===y?(o.set(g,v,0),a.set(g,v,1)):k===w&&(o.set(g,v,0),a.set(g,v,2));s.set(g,v,k)}const l=[];let c=e.length,h=n.length;function u(g,v){(g+1!==c||v+1!==h)&&l.push(new Ae(new te(g+1,c),new te(v+1,h))),c=g,h=v}let m=e.length-1,f=n.length-1;for(;m>=0&&f>=0;)a.get(m,f)===3?(u(m,f),m--,f--):a.get(m,f)===1?m--:f--;return u(-1,-1),l.reverse(),new nt(l,!1)}}function Ra(t,e,n){let r=n;return r=zh(t,e,r),r=Ph(t,e,r),r}function Mh(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new Ae(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Nh(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let o=1;o5||g.length>500)return!1;const y=t.getText(g).trim();if(y.length>20||y.split(/\r\n|\r|\n/).length>1)return!1;const w=t.countLinesIn(m.seq1Range),x=m.seq1Range.length,k=e.countLinesIn(m.seq2Range),P=m.seq2Range.length,N=t.countLinesIn(f.seq1Range),V=f.seq1Range.length,T=e.countLinesIn(f.seq2Range),I=f.seq2Range.length,D=2*40+50;function R(E){return Math.min(E,D)}return Math.pow(Math.pow(R(w*40+x),1.5)+Math.pow(R(k*40+P),1.5),1.5)+Math.pow(Math.pow(R(N*40+V),1.5)+Math.pow(R(T*40+I),1.5),1.5)>Math.pow(Math.pow(D,1.5),1.5)*1.3};const l=r[o],c=a[a.length-1];h(c,l)?(s=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&s);return r}function zh(t,e,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s0&&(o=o.delta(c))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Ph(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,s=n[r],a=r+1=r.start&&t.seq2Range.start-a>=i.start&&n.getElement(t.seq2Range.start-a)===n.getElement(t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;t.seq1Range.start+oc&&(c=g,l=h)}return t.delta(l)}class Lh{compute(e,n,r=ln.instance){if(e.length===0||n.length===0)return nt.trivial(e,n);function i(f,g){for(;fe.length||x>n.length)continue;const k=i(w,x);a.set(l,k);const P=w===v?o.get(l+1):o.get(l-1);if(o.set(l,k!==w?new Da(P,w,x,k-w):P),a.get(l)===e.length&&a.get(l)-l===n.length)break e}}let c=o.get(l);const h=[];let u=e.length,m=n.length;for(;;){const f=c?c.x+c.length:0,g=c?c.y+c.length:0;if((f!==u||g!==m)&&h.push(new Ae(new te(f,u),new te(g,m))),!c)break;u=c.x,m=c.y,c=c.prev}return h.reverse(),new nt(h,!1)}}class Da{constructor(e,n,r,i){this.prev=e,this.x=n,this.y=r,this.length=i}}class Ih{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[e]=n}}}class Th{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class Wh{constructor(){this.dynamicProgrammingDiffing=new Ah,this.myersDiffingAlgorithm=new Lh}computeDiff(e,n,r){if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return{changes:[new tt(new le(1,e.length+1),new le(1,n.length+1),[new an(new De(1,1,e.length,e[0].length+1),new De(1,1,n.length,n[0].length+1))])],hitTimeout:!1,moves:[]};const i=r.maxComputationTimeMs===0?ln.instance:new Dh(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(N){let V=a.get(N);return V===void 0&&(V=a.size,a.set(N,V)),V}const l=e.map(N=>o(N.trim())),c=n.map(N=>o(N.trim())),h=new Ma(l,e),u=new Ma(c,n),m=(()=>h.length+u.length<1500?this.dynamicProgrammingDiffing.compute(h,u,i,(N,V)=>e[N]===n[V]?n[V].length===0?.1:1+Math.log(1+n[V].length):.99):this.myersDiffingAlgorithm.compute(h,u))();let f=m.diffs,g=m.hitTimeout;f=Ra(h,u,f);const v=[],y=N=>{if(s)for(let V=0;VN.seq1Range.start-w===N.seq2Range.start-x);const V=N.seq1Range.start-w;y(V),w=N.seq1Range.endExclusive,x=N.seq2Range.endExclusive;const T=this.refineDiff(e,n,N,i,s);T.hitTimeout&&(g=!0);for(const I of T.mappings)v.push(I)}y(e.length-w);const k=Aa(v,e,n),P=[];if(r.computeMoves){const N=k.filter(T=>T.modifiedRange.isEmpty&&T.originalRange.length>=3).map(T=>new Ta(T.originalRange,e)),V=new Set(k.filter(T=>T.originalRange.isEmpty&&T.modifiedRange.length>=3).map(T=>new Ta(T.modifiedRange,n)));for(const T of N){let I=-1,D;for(const R of V){const E=T.computeSimilarity(R);E>I&&(I=E,D=R)}if(I>.9&&D){const R=this.refineDiff(e,n,new Ae(new te(T.range.startLineNumber-1,T.range.endLineNumberExclusive-1),new te(D.range.startLineNumber-1,D.range.endLineNumberExclusive-1)),i,s),E=Aa(R.mappings,e,n,!0);V.delete(D),P.push(new Hr(new $r(T.range,D.range),E))}}}return $n(()=>{function N(T,I){if(T.lineNumber<1||T.lineNumber>I.length)return!1;const D=I[T.lineNumber-1];return!(T.column<1||T.column>D.length+1)}function V(T,I){return!(T.startLineNumber<1||T.startLineNumber>I.length+1||T.endLineNumberExclusive<1||T.endLineNumberExclusive>I.length+1)}for(const T of k){if(!T.innerChanges)return!1;for(const I of T.innerChanges)if(!(N(I.modifiedRange.getStartPosition(),n)&&N(I.modifiedRange.getEndPosition(),n)&&N(I.originalRange.getStartPosition(),e)&&N(I.originalRange.getEndPosition(),e)))return!1;if(!V(T.modifiedRange,n)||!V(T.originalRange,e))return!1}return!0}),new Ca(k,P,g)}refineDiff(e,n,r,i,s){const a=new za(e,r.seq1Range,s),o=new za(n,r.seq2Range,s),l=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let c=l.diffs;return c=Ra(a,o,c),c=Oh(a,o,c),c=Mh(a,o,c),c=Nh(a,o,c),{mappings:c.map(u=>new an(a.translateRange(u.seq1Range),o.translateRange(u.seq2Range))),hitTimeout:l.hitTimeout}}}function Oh(t,e,n){const r=[];let i;function s(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&r.push(new Ae(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let l=function(f,g){var v,y,w,x;if(!i||!i.s1Range.containsRange(f)||!i.s2Range.containsRange(g))if(i&&!(i.s1Range.endExclusive0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Aa(t,e,n,r=!1){const i=[];for(const s of Bh(t.map(a=>Vh(a,e,n)),(a,o)=>a.originalRange.overlapOrTouch(o.originalRange)||a.modifiedRange.overlapOrTouch(o.modifiedRange))){const a=s[0],o=s[s.length-1];i.push(new tt(a.originalRange.join(o.originalRange),a.modifiedRange.join(o.modifiedRange),s.map(l=>l.innerChanges[0])))}return $n(()=>!r&&i.length>0&&i[0].originalRange.startLineNumber!==i[0].modifiedRange.startLineNumber?!1:wa(i,(s,a)=>a.originalRange.startLineNumber-s.originalRange.endLineNumberExclusive===a.modifiedRange.startLineNumber-s.modifiedRange.endLineNumberExclusive&&s.originalRange.endLineNumberExclusive=n[t.modifiedRange.startLineNumber-1].length&&t.originalRange.startColumn-1>=e[t.originalRange.startLineNumber-1].length&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+i&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+i&&(r=1);const s=new le(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),a=new le(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new tt(s,a,[t])}function*Bh(t,e){let n,r;for(const i of t)r!==void 0&&e(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}class Ma{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Na(this.lines[e-1]),r=e===this.lines.length?0:Na(this.lines[e]);return 1e3-(n+r)}}function Na(t){let e=0;for(;e0&&n.endExclusive>=e.length&&(n=new te(n.start-1,n.endExclusive),i=!0),this.lineRange=n;for(let s=this.lineRange.start;sString.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=La(e>0?this.elements[e-1]:-1),r=La(ee?r=s:n=s+1}const i=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new Ye(this.lineRange.start+n+1,e-i+1+this.offsetByLine[n])}translateRange(e){return De.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!Yr(this.elements[e]))return;let n=e;for(;n>0&&Yr(this.elements[n-1]);)n--;let r=e;for(;r=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}const jh={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Pa(t){return jh[t]}function La(t){return t===10?7:t===13?6:qh(t)?5:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:4}function qh(t){return t===32||t===9}const Kr=new Map;function Ia(t){let e=Kr.get(t);return e===void 0&&(e=Kr.size,Kr.set(t,e)),e}class Ta{constructor(e,n){this.range=e,this.lines=n,this.histogram=[];let r=0;for(let i=e.startLineNumber-1;inew _h,getAdvanced:()=>new Wh};function bt(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class be{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Ie{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.l=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let l=0,c=0;const h=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),a){case n:l=(r-i)/u+(r1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let a,o,l;if(r===0)a=o=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,h=2*i-c;a=Ie._hue2rgb(h,c,n+1/3),o=Ie._hue2rgb(h,c,n),l=Ie._hue2rgb(h,c,n-1/3)}return new be(Math.round(a*255),Math.round(o*255),Math.round(l*255),s)}}class Bt{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.v=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,l=s===0?0:o/s;let c;return o===0?c=0:s===n?c=((r-i)/o%6+6)%6:s===r?c=(i-n)/o+2:c=(n-r)/o+4,new Bt(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,a=i*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a;let[c,h,u]=[0,0,0];return n<60?(c=a,h=o):n<120?(c=o,h=a):n<180?(h=a,u=o):n<240?(h=o,u=a):n<300?(c=o,u=a):n<=360&&(c=a,u=o),c=Math.round((c+l)*255),h=Math.round((h+l)*255),u=Math.round((u+l)*255),new be(c,h,u,s)}}let pe=class Be{static fromHex(e){return Be.Format.CSS.parseHex(e)||Be.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Ie.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Bt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof be)this.rgba=e;else if(e instanceof Ie)this._hsla=e,this.rgba=Ie.toRGBA(e);else if(e instanceof Bt)this._hsva=e,this.rgba=Bt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&be.equals(this.rgba,e.rgba)&&Ie.equals(this.hsla,e.hsla)&&Bt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Be._relativeLuminanceForComponent(this.rgba.r),n=Be._relativeLuminanceForComponent(this.rgba.g),r=Be._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return bt(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],o=s[2];if(!o)continue;let l;if(a==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=Ua(cn(t,i),hn(o,c),!1)}else if(a==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Ua(cn(t,i),hn(o,c),!0)}else if(a==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=Va(cn(t,i),hn(o,c),!1)}else if(a==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=Va(cn(t,i),hn(o,c),!0)}else a==="#"&&(l=$h(cn(t,i),a+o));l&&e.push(l)}return e}function Gh(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Hh(t)}var vt=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})};class Jh extends Qc{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}class kt{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new Jh(Ar.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,n,r){return vt(this,void 0,void 0,function*(){const i=this._getModel(e);return i?Sh.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,n,r,i){return vt(this,void 0,void 0,function*(){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:kt.computeDiff(s,a,r,i)})}static computeDiff(e,n,r,i){const s=i==="advanced"?Wa.getAdvanced():Wa.getLegacy(),a=e.getLinesContent(),o=n.getLinesContent(),l=s.computeDiff(a,o,r),c=l.changes.length>0?!1:this._modelsAreIdentical(e,n);function h(u){return u.map(m=>{var f;return[m.originalRange.startLineNumber,m.originalRange.endLineNumberExclusive,m.modifiedRange.startLineNumber,m.modifiedRange.endLineNumberExclusive,(f=m.innerChanges)===null||f===void 0?void 0:f.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:h(l.changes),moves:l.moves.map(u=>[u.lineRangeMapping.original.startLineNumber,u.lineRangeMapping.original.endLineNumberExclusive,u.lineRangeMapping.modified.startLineNumber,u.lineRangeMapping.modified.endLineNumberExclusive,h(u.changes)])}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=e.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}computeMoreMinimalEdits(e,n,r){return vt(this,void 0,void 0,function*(){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,l)=>{if(o.range&&l.range)return De.compareRangesUsingStarts(o.range,l.range);const c=o.range?0:1,h=l.range?0:1;return c-h});for(let{range:o,text:l,eol:c}of n){if(typeof c=="number"&&(a=c),De.isEmpty(o)&&!l)continue;const h=i.getValueInRange(o);if(l=l.replace(/\r\n|\n|\r/g,i.eol),h===l)continue;if(Math.max(l.length,h.length)>kt._diffLimit){s.push({range:o,text:l});continue}const u=Nc(h,l,r),m=i.offsetAt(De.lift(o).getStartPosition());for(const f of u){const g=i.positionAt(m+f.originalStart),v=i.positionAt(m+f.originalStart+f.originalLength),y={text:l.substr(f.modifiedStart,f.modifiedLength),range:{startLineNumber:g.lineNumber,startColumn:g.column,endLineNumber:v.lineNumber,endColumn:v.column}};i.getValueInRange(y.range)!==y.text&&s.push(y)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(e){return vt(this,void 0,void 0,function*(){const n=this._getModel(e);return n?oh(n):null})}computeDefaultDocumentColors(e){return vt(this,void 0,void 0,function*(){const n=this._getModel(e);return n?Gh(n):null})}textualSuggest(e,n,r,i){return vt(this,void 0,void 0,function*(){const s=new In,a=new RegExp(r,i),o=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const h of c.words(a))if(!(h===n||!isNaN(Number(h)))&&(o.add(h),o.size>kt._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(e,n,r,i){return vt(this,void 0,void 0,function*(){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let l=n.startLineNumber;lthis._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Sr(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){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,n))}catch(r){return Promise.reject(r)}}}kt._diffLimit=1e5,kt._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=gh());let Zr=!1;function Ba(t){if(Zr)return;Zr=!0;const e=new Ac(n=>{globalThis.postMessage(n)},n=>new kt(n,t));globalThis.onmessage=n=>{e.onmessage(n.data)}}globalThis.onmessage=t=>{Zr||Ba(null)};/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0) + * Version: 0.41.0(38e1e3d097f84e336c311d071a9ffb5191d4ffd1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var p;(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(p||(p={}));var $a=function(){function t(e){this.source=e,this.len=e.length,this.position=0}return t.prototype.substring=function(e,n){return n===void 0&&(n=this.position),this.source.substring(e,n)},t.prototype.eos=function(){return this.len<=this.position},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var n=0;n=on&&n<=ln?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=on&&r<=ln||e===0&&r===no}),!0):!1},t.prototype._newline=function(e){var n=this.stream.peekChar();switch(n){case jt:case hn:case Bt:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===jt&&this.stream.advanceIfChar(Bt)&&e.push(` -`),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===Qr){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=on&&r<=ln||r>=Hn&&r<=Ha||r>=Gn&&r<=Ja);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===Zr||r===ei?this.stream.advance(1):this._newline([]),!0}if(r!==jt&&r!==hn&&r!==Bt)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1},t.prototype._stringChar=function(e,n){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==Qr&&r!==jt&&r!==hn&&r!==Bt?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===to||this.stream.peekChar()===eo){var n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),p.String):p.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==Qr&&n!==to&&n!==eo&&n!==Ka&&n!==Qa&&n!==Zr&&n!==ei&&n!==Bt&&n!==hn&&n!==jt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unquotedString=function(e){for(var n=!1;this._unquotedChar(e)||this._escape(e);)n=!0;return n},t.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(n){return n===Zr||n===ei||n===Bt||n===hn||n===jt});return e>0},t.prototype._name=function(e){for(var n=!1;this._identChar(e)||this._escape(e);)n=!0;return n},t.prototype.ident=function(e){var n=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1},t.prototype._identFirstChar=function(e){var n=this.stream.peekChar();return n===Ya||n>=Hn&&n<=Ga||n>=Gn&&n<=Xa||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._minus=function(e){var n=this.stream.peekChar();return n===Ft?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===Ya||n===Ft||n>=Hn&&n<=Ga||n>=Gn&&n<=Xa||n>=on&&n<=ln||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unicodeRange=function(){if(this.stream.advanceIfChar(md)){var e=function(i){return i>=on&&i<=ln||i>=Hn&&i<=Ha||i>=Gn&&i<=Ja},n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(function(i){return i===fd});if(n>=1&&n<=6)if(this.stream.advanceIfChar(Ft)){var r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1},t}();function ge(t,e){if(t.length0?t.lastIndexOf(e)===n:n===0?t===e:!1}function gd(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],s=[],a,o;for(a=0;a0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),v;(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange"})(v||(v={}));var Y;(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility"})(Y||(Y={}));function ti(t,e){var n=null;return!t||et.end?null:(t.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function ni(t,e){for(var n=ti(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function vd(t){var e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var W=function(){function t(e,n,r){e===void 0&&(e=-1),n===void 0&&(n=-1),this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(t.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.nodeType||v.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),t.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},t.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},t.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},t.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},t.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},t.prototype.accept=function(e){if(e(this)&&this.children)for(var n=0,r=this.children;n=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e},t.prototype.attachTo=function(e,n){return n===void 0&&(n=-1),e&&e.adoptChild(this,n),this},t.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},t.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},t.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===e})},t.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},t.prototype.setNode=function(e,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[e]=n,!0):!1},t.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},t.prototype.updateOffsetAndLength=function(e){(e.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)},t.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},t.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},t.prototype.getChild=function(e){return this.children&&e=0;r--)if(n=this.children[r],n.offset<=e)return n}return null},t.prototype.findChildAtOffset=function(e,n){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null},t.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},t.prototype.getParent=function(){for(var e=this.parent;e instanceof xe;)e=e.parent;return e},t.prototype.findParent=function(e){for(var n=this;n&&n.type!==e;)n=n.parent;return n},t.prototype.findAParent=function(){for(var e=[],n=0;n{let s=i[0];return typeof e[s]<"u"?e[s]:r}),n}function Zd(t,e,...n){return Qd(e,n)}function Ge(t){return Zd}var Q=Ge(),Z=function(){function t(e,n){this.id=e,this.message=n}return t}(),S={NumberExpected:new Z("css-numberexpected",Q("expected.number","number expected")),ConditionExpected:new Z("css-conditionexpected",Q("expected.condt","condition expected")),RuleOrSelectorExpected:new Z("css-ruleorselectorexpected",Q("expected.ruleorselector","at-rule or selector expected")),DotExpected:new Z("css-dotexpected",Q("expected.dot","dot expected")),ColonExpected:new Z("css-colonexpected",Q("expected.colon","colon expected")),SemiColonExpected:new Z("css-semicolonexpected",Q("expected.semicolon","semi-colon expected")),TermExpected:new Z("css-termexpected",Q("expected.term","term expected")),ExpressionExpected:new Z("css-expressionexpected",Q("expected.expression","expression expected")),OperatorExpected:new Z("css-operatorexpected",Q("expected.operator","operator expected")),IdentifierExpected:new Z("css-identifierexpected",Q("expected.ident","identifier expected")),PercentageExpected:new Z("css-percentageexpected",Q("expected.percentage","percentage expected")),URIOrStringExpected:new Z("css-uriorstringexpected",Q("expected.uriorstring","uri or string expected")),URIExpected:new Z("css-uriexpected",Q("expected.uri","URI expected")),VariableNameExpected:new Z("css-varnameexpected",Q("expected.varname","variable name expected")),VariableValueExpected:new Z("css-varvalueexpected",Q("expected.varvalue","variable value expected")),PropertyValueExpected:new Z("css-propertyvalueexpected",Q("expected.propvalue","property value expected")),LeftCurlyExpected:new Z("css-lcurlyexpected",Q("expected.lcurly","{ expected")),RightCurlyExpected:new Z("css-rcurlyexpected",Q("expected.rcurly","} expected")),LeftSquareBracketExpected:new Z("css-rbracketexpected",Q("expected.lsquare","[ expected")),RightSquareBracketExpected:new Z("css-lbracketexpected",Q("expected.rsquare","] expected")),LeftParenthesisExpected:new Z("css-lparentexpected",Q("expected.lparen","( expected")),RightParenthesisExpected:new Z("css-rparentexpected",Q("expected.rparent",") expected")),CommaExpected:new Z("css-commaexpected",Q("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new Z("css-pagedirordeclexpected",Q("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new Z("css-unknownatrule",Q("unknown.atrule","at-rule unknown")),UnknownKeyword:new Z("css-unknownkeyword",Q("unknown.keyword","unknown keyword")),SelectorExpected:new Z("css-selectorexpected",Q("expected.selector","selector expected")),StringLiteralExpected:new Z("css-stringliteralexpected",Q("expected.stringliteral","string literal expected")),WhitespaceExpected:new Z("css-whitespaceexpected",Q("expected.whitespace","whitespace expected")),MediaQueryExpected:new Z("css-mediaqueryexpected",Q("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new Z("css-idorwildcardexpected",Q("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new Z("css-wildcardexpected",Q("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new Z("css-idorvarexpected",Q("expected.idorvar","identifier or variable expected"))},yo;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(yo||(yo={}));var Qn;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Qn||(Qn={}));var Fe;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Qn.MAX_VALUE),i===Number.MAX_VALUE&&(i=Qn.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return _.objectLiteral(i)&&_.uinteger(i.line)&&_.uinteger(i.character)}t.is=n})(Fe||(Fe={}));var te;(function(t){function e(r,i,s,a){if(_.uinteger(r)&&_.uinteger(i)&&_.uinteger(s)&&_.uinteger(a))return{start:Fe.create(r,i),end:Fe.create(s,a)};if(Fe.is(r)&&Fe.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+s+", "+a+"]")}t.create=e;function n(r){var i=r;return _.objectLiteral(i)&&Fe.is(i.start)&&Fe.is(i.end)}t.is=n})(te||(te={}));var bn;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&te.is(i.range)&&(_.string(i.uri)||_.undefined(i.uri))}t.is=n})(bn||(bn={}));var wo;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){var i=r;return _.defined(i)&&te.is(i.targetRange)&&_.string(i.targetUri)&&(te.is(i.targetSelectionRange)||_.undefined(i.targetSelectionRange))&&(te.is(i.originSelectionRange)||_.undefined(i.originSelectionRange))}t.is=n})(wo||(wo={}));var pi;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){var i=r;return _.numberRange(i.red,0,1)&&_.numberRange(i.green,0,1)&&_.numberRange(i.blue,0,1)&&_.numberRange(i.alpha,0,1)}t.is=n})(pi||(pi={}));var xo;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return te.is(i.range)&&pi.is(i.color)}t.is=n})(xo||(xo={}));var So;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){var i=r;return _.string(i.label)&&(_.undefined(i.textEdit)||q.is(i))&&(_.undefined(i.additionalTextEdits)||_.typedArray(i.additionalTextEdits,q.is))}t.is=n})(So||(So={}));var Co;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Co||(Co={}));var ko;(function(t){function e(r,i,s,a,o){var l={startLine:r,endLine:i};return _.defined(s)&&(l.startCharacter=s),_.defined(a)&&(l.endCharacter=a),_.defined(o)&&(l.kind=o),l}t.create=e;function n(r){var i=r;return _.uinteger(i.startLine)&&_.uinteger(i.startLine)&&(_.undefined(i.startCharacter)||_.uinteger(i.startCharacter))&&(_.undefined(i.endCharacter)||_.uinteger(i.endCharacter))&&(_.undefined(i.kind)||_.string(i.kind))}t.is=n})(ko||(ko={}));var fi;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&bn.is(i.location)&&_.string(i.message)}t.is=n})(fi||(fi={}));var Zn;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Zn||(Zn={}));var _o;(function(t){t.Unnecessary=1,t.Deprecated=2})(_o||(_o={}));var Fo;(function(t){function e(n){var r=n;return r!=null&&_.string(r.href)}t.is=e})(Fo||(Fo={}));var er;(function(t){function e(r,i,s,a,o,l){var c={range:r,message:i};return _.defined(s)&&(c.severity=s),_.defined(a)&&(c.code=a),_.defined(o)&&(c.source=o),_.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,s=r;return _.defined(s)&&te.is(s.range)&&_.string(s.message)&&(_.number(s.severity)||_.undefined(s.severity))&&(_.integer(s.code)||_.string(s.code)||_.undefined(s.code))&&(_.undefined(s.codeDescription)||_.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(_.string(s.source)||_.undefined(s.source))&&(_.undefined(s.relatedInformation)||_.typedArray(s.relatedInformation,fi.is))}t.is=n})(er||(er={}));var Gt;(function(t){function e(r,i){for(var s=[],a=2;a0&&(o.arguments=s),o}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.title)&&_.string(i.command)}t.is=n})(Gt||(Gt={}));var q;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){var a=s;return _.objectLiteral(a)&&_.string(a.newText)&&te.is(a.range)}t.is=i})(q||(q={}));var Jt;(function(t){function e(r,i,s){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){var i=r;return i!==void 0&&_.objectLiteral(i)&&_.string(i.label)&&(_.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(_.string(i.description)||i.description===void 0)}t.is=n})(Jt||(Jt={}));var ke;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(ke||(ke={}));var yt;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){var a=s;return q.is(a)&&(Jt.is(a.annotationId)||ke.is(a.annotationId))}t.is=i})(yt||(yt={}));var vn;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&nr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(vn||(vn={}));var yn;(function(t){function e(r,i,s){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&_.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||_.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||_.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ke.is(i.annotationId))}t.is=n})(yn||(yn={}));var wn;(function(t){function e(r,i,s,a){var o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&_.string(i.oldUri)&&_.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||_.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||_.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ke.is(i.annotationId))}t.is=n})(wn||(wn={}));var xn;(function(t){function e(r,i,s){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&_.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||_.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||_.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ke.is(i.annotationId))}t.is=n})(xn||(xn={}));var mi;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return _.string(i.kind)?yn.is(i)||wn.is(i)||xn.is(i):vn.is(i)}))}t.is=e})(mi||(mi={}));var tr=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,s;if(r===void 0?i=q.insert(e,n):ke.is(r)?(s=r,i=yt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=yt.insert(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.replace=function(e,n,r){var i,s;if(r===void 0?i=q.replace(e,n):ke.is(r)?(s=r,i=yt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=yt.replace(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=q.del(e):ke.is(n)?(i=n,r=yt.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=yt.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Ro=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(ke.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ro(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(vn.is(r)){var i=new tr(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new tr(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(nr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new tr(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new tr(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ro,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Jt.is(n)||ke.is(n)?i=n:r=n;var s,a;if(i===void 0?s=yn.create(e,r):(a=ke.is(i)?i:this._changeAnnotations.manage(i),s=yn.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Jt.is(r)||ke.is(r)?s=r:i=r;var a,o;if(s===void 0?a=wn.create(e,n,i):(o=ke.is(s)?s:this._changeAnnotations.manage(s),a=wn.create(e,n,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Jt.is(n)||ke.is(n)?i=n:r=n;var s,a;if(i===void 0?s=xn.create(e,r):(a=ke.is(i)?i:this._changeAnnotations.manage(i),s=xn.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t})();var Eo;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)}t.is=n})(Eo||(Eo={}));var gi;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)&&_.integer(i.version)}t.is=n})(gi||(gi={}));var nr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)&&(i.version===null||_.integer(i.version))}t.is=n})(nr||(nr={}));var Do;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)&&_.string(i.languageId)&&_.integer(i.version)&&_.string(i.text)}t.is=n})(Do||(Do={}));var Oe;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Oe||(Oe={})),function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e}(Oe||(Oe={}));var bi;(function(t){function e(n){var r=n;return _.objectLiteral(n)&&Oe.is(r.kind)&&_.string(r.value)}t.is=e})(bi||(bi={}));var j;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(j||(j={}));var ze;(function(t){t.PlainText=1,t.Snippet=2})(ze||(ze={}));var Rt;(function(t){t.Deprecated=1})(Rt||(Rt={}));var Ao;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){var i=r;return i&&_.string(i.newText)&&te.is(i.insert)&&te.is(i.replace)}t.is=n})(Ao||(Ao={}));var Mo;(function(t){t.asIs=1,t.adjustIndentation=2})(Mo||(Mo={}));var No;(function(t){function e(n){return{label:n}}t.create=e})(No||(No={}));var zo;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(zo||(zo={}));var rr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return _.string(i)||_.objectLiteral(i)&&_.string(i.language)&&_.string(i.value)}t.is=n})(rr||(rr={}));var Po;(function(t){function e(n){var r=n;return!!r&&_.objectLiteral(r)&&(bi.is(r.contents)||rr.is(r.contents)||_.typedArray(r.contents,rr.is))&&(n.range===void 0||te.is(n.range))}t.is=e})(Po||(Po={}));var Io;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Io||(Io={}));var Lo;(function(t){function e(n,r){for(var i=[],s=2;s=0;h--){var u=l[h],f=s.offsetAt(u.range.start),m=s.offsetAt(u.range.end);if(m<=c)o=o.substring(0,f)+u.newText+o.substring(m,o.length);else throw new Error("Overlapping edit");c=f}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;var o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);for(var h=0,u=0,f=0;hthis.source.length)return!1;for(var n=0;n=dn&&n<=un?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=dn&&r<=un||e===0&&r===eo}),!0):!1},t.prototype._newline=function(e){var n=this.stream.peekChar();switch(n){case qt:case fn:case jt:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===qt&&this.stream.advanceIfChar(jt)&&e.push(` +`),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===ti){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=dn&&r<=un||r>=Hn&&r<=qa||r>=Gn&&r<=Ha);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===ni||r===ri?this.stream.advance(1):this._newline([]),!0}if(r!==qt&&r!==fn&&r!==jt)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1},t.prototype._stringChar=function(e,n){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==ti&&r!==qt&&r!==fn&&r!==jt?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===Za||this.stream.peekChar()===Qa){var n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),p.String):p.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==ti&&n!==Za&&n!==Qa&&n!==Xa&&n!==Ya&&n!==ni&&n!==ri&&n!==jt&&n!==fn&&n!==qt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unquotedString=function(e){for(var n=!1;this._unquotedChar(e)||this._escape(e);)n=!0;return n},t.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(n){return n===ni||n===ri||n===jt||n===fn||n===qt});return e>0},t.prototype._name=function(e){for(var n=!1;this._identChar(e)||this._escape(e);)n=!0;return n},t.prototype.ident=function(e){var n=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1},t.prototype._identFirstChar=function(e){var n=this.stream.peekChar();return n===Ja||n>=Hn&&n<=$a||n>=Gn&&n<=Ga||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._minus=function(e){var n=this.stream.peekChar();return n===_t?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===Ja||n===_t||n>=Hn&&n<=$a||n>=Gn&&n<=Ga||n>=dn&&n<=un||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unicodeRange=function(){if(this.stream.advanceIfChar(ud)){var e=function(i){return i>=dn&&i<=un||i>=Hn&&i<=qa||i>=Gn&&i<=Ha},n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(function(i){return i===dd});if(n>=1&&n<=6)if(this.stream.advanceIfChar(_t)){var r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1},t}();function me(t,e){if(t.length0?t.lastIndexOf(e)===n:n===0?t===e:!1}function pd(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],s=[],a,o;for(a=0;a0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),b;(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange"})(b||(b={}));var Y;(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility"})(Y||(Y={}));function ii(t,e){var n=null;return!t||et.end?null:(t.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function si(t,e){for(var n=ii(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function md(t){var e=t.findParent(b.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var U=function(){function t(e,n,r){e===void 0&&(e=-1),n===void 0&&(n=-1),this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(t.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.nodeType||b.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),t.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},t.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},t.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},t.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},t.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},t.prototype.accept=function(e){if(e(this)&&this.children)for(var n=0,r=this.children;n=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e},t.prototype.attachTo=function(e,n){return n===void 0&&(n=-1),e&&e.adoptChild(this,n),this},t.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},t.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},t.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===e})},t.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},t.prototype.setNode=function(e,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[e]=n,!0):!1},t.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},t.prototype.updateOffsetAndLength=function(e){(e.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)},t.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},t.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},t.prototype.getChild=function(e){return this.children&&e=0;r--)if(n=this.children[r],n.offset<=e)return n}return null},t.prototype.findChildAtOffset=function(e,n){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null},t.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},t.prototype.getParent=function(){for(var e=this.parent;e instanceof xe;)e=e.parent;return e},t.prototype.findParent=function(e){for(var n=this;n&&n.type!==e;)n=n.parent;return n},t.prototype.findAParent=function(){for(var e=[],n=0;n{let s=i[0];return typeof e[s]<"u"?e[s]:r}),n}function Yd(t,e,...n){return Xd(e,n)}function He(t){return Yd}var Q=He(),Z=function(){function t(e,n){this.id=e,this.message=n}return t}(),S={NumberExpected:new Z("css-numberexpected",Q("expected.number","number expected")),ConditionExpected:new Z("css-conditionexpected",Q("expected.condt","condition expected")),RuleOrSelectorExpected:new Z("css-ruleorselectorexpected",Q("expected.ruleorselector","at-rule or selector expected")),DotExpected:new Z("css-dotexpected",Q("expected.dot","dot expected")),ColonExpected:new Z("css-colonexpected",Q("expected.colon","colon expected")),SemiColonExpected:new Z("css-semicolonexpected",Q("expected.semicolon","semi-colon expected")),TermExpected:new Z("css-termexpected",Q("expected.term","term expected")),ExpressionExpected:new Z("css-expressionexpected",Q("expected.expression","expression expected")),OperatorExpected:new Z("css-operatorexpected",Q("expected.operator","operator expected")),IdentifierExpected:new Z("css-identifierexpected",Q("expected.ident","identifier expected")),PercentageExpected:new Z("css-percentageexpected",Q("expected.percentage","percentage expected")),URIOrStringExpected:new Z("css-uriorstringexpected",Q("expected.uriorstring","uri or string expected")),URIExpected:new Z("css-uriexpected",Q("expected.uri","URI expected")),VariableNameExpected:new Z("css-varnameexpected",Q("expected.varname","variable name expected")),VariableValueExpected:new Z("css-varvalueexpected",Q("expected.varvalue","variable value expected")),PropertyValueExpected:new Z("css-propertyvalueexpected",Q("expected.propvalue","property value expected")),LeftCurlyExpected:new Z("css-lcurlyexpected",Q("expected.lcurly","{ expected")),RightCurlyExpected:new Z("css-rcurlyexpected",Q("expected.rcurly","} expected")),LeftSquareBracketExpected:new Z("css-rbracketexpected",Q("expected.lsquare","[ expected")),RightSquareBracketExpected:new Z("css-lbracketexpected",Q("expected.rsquare","] expected")),LeftParenthesisExpected:new Z("css-lparentexpected",Q("expected.lparen","( expected")),RightParenthesisExpected:new Z("css-rparentexpected",Q("expected.rparent",") expected")),CommaExpected:new Z("css-commaexpected",Q("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new Z("css-pagedirordeclexpected",Q("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new Z("css-unknownatrule",Q("unknown.atrule","at-rule unknown")),UnknownKeyword:new Z("css-unknownkeyword",Q("unknown.keyword","unknown keyword")),SelectorExpected:new Z("css-selectorexpected",Q("expected.selector","selector expected")),StringLiteralExpected:new Z("css-stringliteralexpected",Q("expected.stringliteral","string literal expected")),WhitespaceExpected:new Z("css-whitespaceexpected",Q("expected.whitespace","whitespace expected")),MediaQueryExpected:new Z("css-mediaqueryexpected",Q("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new Z("css-idorwildcardexpected",Q("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new Z("css-wildcardexpected",Q("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new Z("css-idorvarexpected",Q("expected.idorvar","identifier or variable expected"))},bo;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(bo||(bo={}));var Qn;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Qn||(Qn={}));var Fe;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Qn.MAX_VALUE),i===Number.MAX_VALUE&&(i=Qn.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return _.objectLiteral(i)&&_.uinteger(i.line)&&_.uinteger(i.character)}t.is=n})(Fe||(Fe={}));var ne;(function(t){function e(r,i,s,a){if(_.uinteger(r)&&_.uinteger(i)&&_.uinteger(s)&&_.uinteger(a))return{start:Fe.create(r,i),end:Fe.create(s,a)};if(Fe.is(r)&&Fe.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+s+", "+a+"]")}t.create=e;function n(r){var i=r;return _.objectLiteral(i)&&Fe.is(i.start)&&Fe.is(i.end)}t.is=n})(ne||(ne={}));var xn;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&ne.is(i.range)&&(_.string(i.uri)||_.undefined(i.uri))}t.is=n})(xn||(xn={}));var vo;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){var i=r;return _.defined(i)&&ne.is(i.targetRange)&&_.string(i.targetUri)&&(ne.is(i.targetSelectionRange)||_.undefined(i.targetSelectionRange))&&(ne.is(i.originSelectionRange)||_.undefined(i.originSelectionRange))}t.is=n})(vo||(vo={}));var gi;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){var i=r;return _.numberRange(i.red,0,1)&&_.numberRange(i.green,0,1)&&_.numberRange(i.blue,0,1)&&_.numberRange(i.alpha,0,1)}t.is=n})(gi||(gi={}));var yo;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ne.is(i.range)&&gi.is(i.color)}t.is=n})(yo||(yo={}));var wo;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){var i=r;return _.string(i.label)&&(_.undefined(i.textEdit)||H.is(i))&&(_.undefined(i.additionalTextEdits)||_.typedArray(i.additionalTextEdits,H.is))}t.is=n})(wo||(wo={}));var xo;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(xo||(xo={}));var So;(function(t){function e(r,i,s,a,o){var l={startLine:r,endLine:i};return _.defined(s)&&(l.startCharacter=s),_.defined(a)&&(l.endCharacter=a),_.defined(o)&&(l.kind=o),l}t.create=e;function n(r){var i=r;return _.uinteger(i.startLine)&&_.uinteger(i.startLine)&&(_.undefined(i.startCharacter)||_.uinteger(i.startCharacter))&&(_.undefined(i.endCharacter)||_.uinteger(i.endCharacter))&&(_.undefined(i.kind)||_.string(i.kind))}t.is=n})(So||(So={}));var bi;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&xn.is(i.location)&&_.string(i.message)}t.is=n})(bi||(bi={}));var Zn;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Zn||(Zn={}));var Co;(function(t){t.Unnecessary=1,t.Deprecated=2})(Co||(Co={}));var ko;(function(t){function e(n){var r=n;return r!=null&&_.string(r.href)}t.is=e})(ko||(ko={}));var er;(function(t){function e(r,i,s,a,o,l){var c={range:r,message:i};return _.defined(s)&&(c.severity=s),_.defined(a)&&(c.code=a),_.defined(o)&&(c.source=o),_.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,s=r;return _.defined(s)&&ne.is(s.range)&&_.string(s.message)&&(_.number(s.severity)||_.undefined(s.severity))&&(_.integer(s.code)||_.string(s.code)||_.undefined(s.code))&&(_.undefined(s.codeDescription)||_.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(_.string(s.source)||_.undefined(s.source))&&(_.undefined(s.relatedInformation)||_.typedArray(s.relatedInformation,bi.is))}t.is=n})(er||(er={}));var Jt;(function(t){function e(r,i){for(var s=[],a=2;a0&&(o.arguments=s),o}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.title)&&_.string(i.command)}t.is=n})(Jt||(Jt={}));var H;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){var a=s;return _.objectLiteral(a)&&_.string(a.newText)&&ne.is(a.range)}t.is=i})(H||(H={}));var Xt;(function(t){function e(r,i,s){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){var i=r;return i!==void 0&&_.objectLiteral(i)&&_.string(i.label)&&(_.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(_.string(i.description)||i.description===void 0)}t.is=n})(Xt||(Xt={}));var Ce;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(Ce||(Ce={}));var yt;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){var a=s;return H.is(a)&&(Xt.is(a.annotationId)||Ce.is(a.annotationId))}t.is=i})(yt||(yt={}));var Sn;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&nr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Sn||(Sn={}));var Cn;(function(t){function e(r,i,s){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&_.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||_.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||_.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ce.is(i.annotationId))}t.is=n})(Cn||(Cn={}));var kn;(function(t){function e(r,i,s,a){var o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&_.string(i.oldUri)&&_.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||_.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||_.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ce.is(i.annotationId))}t.is=n})(kn||(kn={}));var _n;(function(t){function e(r,i,s){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&_.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||_.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||_.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ce.is(i.annotationId))}t.is=n})(_n||(_n={}));var vi;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return _.string(i.kind)?Cn.is(i)||kn.is(i)||_n.is(i):Sn.is(i)}))}t.is=e})(vi||(vi={}));var tr=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,s;if(r===void 0?i=H.insert(e,n):Ce.is(r)?(s=r,i=yt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=yt.insert(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.replace=function(e,n,r){var i,s;if(r===void 0?i=H.replace(e,n):Ce.is(r)?(s=r,i=yt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=yt.replace(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=H.del(e):Ce.is(n)?(i=n,r=yt.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=yt.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),_o=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(Ce.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new _o(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(Sn.is(r)){var i=new tr(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new tr(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(nr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new tr(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new tr(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new _o,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Xt.is(n)||Ce.is(n)?i=n:r=n;var s,a;if(i===void 0?s=Cn.create(e,r):(a=Ce.is(i)?i:this._changeAnnotations.manage(i),s=Cn.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Xt.is(r)||Ce.is(r)?s=r:i=r;var a,o;if(s===void 0?a=kn.create(e,n,i):(o=Ce.is(s)?s:this._changeAnnotations.manage(s),a=kn.create(e,n,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Xt.is(n)||Ce.is(n)?i=n:r=n;var s,a;if(i===void 0?s=_n.create(e,r):(a=Ce.is(i)?i:this._changeAnnotations.manage(i),s=_n.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t})();var Fo;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)}t.is=n})(Fo||(Fo={}));var yi;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)&&_.integer(i.version)}t.is=n})(yi||(yi={}));var nr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)&&(i.version===null||_.integer(i.version))}t.is=n})(nr||(nr={}));var Ro;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){var i=r;return _.defined(i)&&_.string(i.uri)&&_.string(i.languageId)&&_.integer(i.version)&&_.string(i.text)}t.is=n})(Ro||(Ro={}));var We;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(We||(We={})),function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e}(We||(We={}));var wi;(function(t){function e(n){var r=n;return _.objectLiteral(n)&&We.is(r.kind)&&_.string(r.value)}t.is=e})(wi||(wi={}));var $;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})($||($={}));var ze;(function(t){t.PlainText=1,t.Snippet=2})(ze||(ze={}));var Ft;(function(t){t.Deprecated=1})(Ft||(Ft={}));var Eo;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){var i=r;return i&&_.string(i.newText)&&ne.is(i.insert)&&ne.is(i.replace)}t.is=n})(Eo||(Eo={}));var Do;(function(t){t.asIs=1,t.adjustIndentation=2})(Do||(Do={}));var Ao;(function(t){function e(n){return{label:n}}t.create=e})(Ao||(Ao={}));var Mo;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Mo||(Mo={}));var rr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return _.string(i)||_.objectLiteral(i)&&_.string(i.language)&&_.string(i.value)}t.is=n})(rr||(rr={}));var No;(function(t){function e(n){var r=n;return!!r&&_.objectLiteral(r)&&(wi.is(r.contents)||rr.is(r.contents)||_.typedArray(r.contents,rr.is))&&(n.range===void 0||ne.is(n.range))}t.is=e})(No||(No={}));var zo;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(zo||(zo={}));var Po;(function(t){function e(n,r){for(var i=[],s=2;s=0;h--){var u=l[h],m=s.offsetAt(u.range.start),f=s.offsetAt(u.range.end);if(f<=c)o=o.substring(0,m)+u.newText+o.substring(f,o.length);else throw new Error("Overlapping edit");c=m}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;var o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);for(var h=0,u=0,m=0;h0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Fe.create(0,e);for(;re?i=s:r=s+1}var a=r-1;return Fe.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1"u"}t.undefined=r;function i(m){return m===!0||m===!1}t.boolean=i;function s(m){return e.call(m)==="[object String]"}t.string=s;function a(m){return e.call(m)==="[object Number]"}t.number=a;function o(m,g,b){return e.call(m)==="[object Number]"&&g<=m&&m<=b}t.numberRange=o;function l(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}t.integer=l;function c(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}t.uinteger=c;function h(m){return e.call(m)==="[object Function]"}t.func=h;function u(m){return m!==null&&typeof m=="object"}t.objectLiteral=u;function f(m,g){return Array.isArray(m)&&m.every(g)}t.typedArray=f})(_||(_={}));var sr=class{constructor(t,e,n,r){this._uri=t,this._languageId=e,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const e=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(e,n)}return this._content}update(t,e){for(let n of t)if(sr.isIncremental(n)){const r=Go(n.range),i=this.offsetAt(r.start),s=this.offsetAt(r.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(s,this._content.length);const a=Math.max(r.start.line,0),o=Math.max(r.end.line,0);let l=this._lineOffsets;const c=Ho(n.text,!1,i);if(o-a===c.length)for(let u=0,f=c.length;ut?r=s:n=s+1}let i=n-1;return{line:i,character:t-e[i]}}offsetAt(t){let e=this.getLineOffsets();if(t.line>=e.length)return this._content.length;if(t.line<0)return 0;let n=e[t.line],r=t.line+1{let f=h.range.start.line-u.range.start.line;return f===0?h.range.start.character-u.range.start.character:f}),l=0;const c=[];for(const h of o){let u=i.offsetAt(h.range.start);if(ul&&c.push(a.substring(l,u)),h.newText.length&&c.push(h.newText),l=i.offsetAt(h.range.end)}return c.push(a.substr(l)),c.join("")}t.applyEdits=r})(wi||(wi={}));function xi(t,e){if(t.length<=1)return t;const n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);xi(r,e),xi(i,e);let s=0,a=0,o=0;for(;sn.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function tu(t){const e=Go(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var Jo;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oe.Markdown,Oe.PlainText]}},hover:{contentFormat:[Oe.Markdown,Oe.PlainText]}}}})(Jo||(Jo={}));var Sn;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Sn||(Sn={}));var Xo={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Yo(t){switch(t){case"experimental":return`⚠️ Property is experimental. Be cautious when using it.️ +`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Fe.create(0,e);for(;re?i=s:r=s+1}var a=r-1;return Fe.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1"u"}t.undefined=r;function i(f){return f===!0||f===!1}t.boolean=i;function s(f){return e.call(f)==="[object String]"}t.string=s;function a(f){return e.call(f)==="[object Number]"}t.number=a;function o(f,g,v){return e.call(f)==="[object Number]"&&g<=f&&f<=v}t.numberRange=o;function l(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}t.integer=l;function c(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}t.uinteger=c;function h(f){return e.call(f)==="[object Function]"}t.func=h;function u(f){return f!==null&&typeof f=="object"}t.objectLiteral=u;function m(f,g){return Array.isArray(f)&&f.every(g)}t.typedArray=m})(_||(_={}));var sr=class{constructor(t,e,n,r){this._uri=t,this._languageId=e,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const e=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(e,n)}return this._content}update(t,e){for(let n of t)if(sr.isIncremental(n)){const r=$o(n.range),i=this.offsetAt(r.start),s=this.offsetAt(r.end);this._content=this._content.substring(0,i)+n.text+this._content.substring(s,this._content.length);const a=Math.max(r.start.line,0),o=Math.max(r.end.line,0);let l=this._lineOffsets;const c=qo(n.text,!1,i);if(o-a===c.length)for(let u=0,m=c.length;ut?r=s:n=s+1}let i=n-1;return{line:i,character:t-e[i]}}offsetAt(t){let e=this.getLineOffsets();if(t.line>=e.length)return this._content.length;if(t.line<0)return 0;let n=e[t.line],r=t.line+1{let m=h.range.start.line-u.range.start.line;return m===0?h.range.start.character-u.range.start.character:m}),l=0;const c=[];for(const h of o){let u=i.offsetAt(h.range.start);if(ul&&c.push(a.substring(l,u)),h.newText.length&&c.push(h.newText),l=i.offsetAt(h.range.end)}return c.push(a.substr(l)),c.join("")}t.applyEdits=r})(Ci||(Ci={}));function ki(t,e){if(t.length<=1)return t;const n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);ki(r,e),ki(i,e);let s=0,a=0,o=0;for(;sn.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function Qd(t){const e=$o(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var Ho;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[We.Markdown,We.PlainText]}},hover:{contentFormat:[We.Markdown,We.PlainText]}}}})(Ho||(Ho={}));var Fn;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Fn||(Fn={}));var Go={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Jo(t){switch(t){case"experimental":return`⚠️ Property is experimental. Be cautious when using it.️ `;case"nonstandard":return`🚨️ Property is nonstandard. Avoid using it. `;case"obsolete":return`🚨️️️ Property is obsolete. Avoid using it. -`;default:return""}}function wt(t,e,n){var r;if(e?r={kind:"markdown",value:ru(t,n)}:r={kind:"plaintext",value:nu(t,n)},r.value!=="")return r}function ar(t){return t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),t.replace(//g,">")}function nu(t,e){if(!t.description||t.description==="")return"";if(typeof t.description!="string")return t.description.value;var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=Yo(t.status)),n+=t.description;var r=Ko(t.browsers);r&&(n+=` +`;default:return""}}function wt(t,e,n){var r;if(e?r={kind:"markdown",value:eu(t,n)}:r={kind:"plaintext",value:Zd(t,n)},r.value!=="")return r}function ar(t){return t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),t.replace(//g,">")}function Zd(t,e){if(!t.description||t.description==="")return"";if(typeof t.description!="string")return t.description.value;var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=Jo(t.status)),n+=t.description;var r=Xo(t.browsers);r&&(n+=` (`+r+")"),"syntax"in t&&(n+=` Syntax: `.concat(t.syntax))}return t.references&&t.references.length>0&&(e==null?void 0:e.references)!==!1&&(n.length>0&&(n+=` -`),n+=t.references.map(function(i){return"".concat(i.name,": ").concat(i.url)}).join(" | ")),n}function ru(t,e){if(!t.description||t.description==="")return"";var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=Yo(t.status)),typeof t.description=="string"?n+=ar(t.description):n+=t.description.kind===Oe.Markdown?t.description.value:ar(t.description.value);var r=Ko(t.browsers);r&&(n+=` +`),n+=t.references.map(function(i){return"".concat(i.name,": ").concat(i.url)}).join(" | ")),n}function eu(t,e){if(!t.description||t.description==="")return"";var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=Jo(t.status)),typeof t.description=="string"?n+=ar(t.description):n+=t.description.kind===We.Markdown?t.description.value:ar(t.description.value);var r=Xo(t.browsers);r&&(n+=` (`+ar(r)+")"),"syntax"in t&&t.syntax&&(n+=` Syntax: `.concat(ar(t.syntax)))}return t.references&&t.references.length>0&&(e==null?void 0:e.references)!==!1&&(n.length>0&&(n+=` -`),n+=t.references.map(function(i){return"[".concat(i.name,"](").concat(i.url,")")}).join(" | ")),n}function Ko(t){return t===void 0&&(t=[]),t.length===0?null:t.map(function(e){var n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],s=r[2];return i in Xo&&(n+=Xo[i]),s&&(n+=" "+s),n}).join(", ")}var Cn=Ge(),iu=[{func:"rgb($red, $green, $blue)",desc:Cn("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Cn("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Cn("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Cn("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:Cn("css.builtin.hwb","Creates a Color from hue, white and black.")}],or={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Qo={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function xt(t,e){var n=t.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function Zo(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function su(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}var el=48,au=57,ou=65,lr=97,lu=102;function de(t){return t=lr&&t<=lu?t-lr+10:0)}function tl(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:de(t.charCodeAt(1))*17/255,green:de(t.charCodeAt(2))*17/255,blue:de(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:de(t.charCodeAt(1))*17/255,green:de(t.charCodeAt(2))*17/255,blue:de(t.charCodeAt(3))*17/255,alpha:de(t.charCodeAt(4))*17/255};case 7:return{red:(de(t.charCodeAt(1))*16+de(t.charCodeAt(2)))/255,green:(de(t.charCodeAt(3))*16+de(t.charCodeAt(4)))/255,blue:(de(t.charCodeAt(5))*16+de(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(de(t.charCodeAt(1))*16+de(t.charCodeAt(2)))/255,green:(de(t.charCodeAt(3))*16+de(t.charCodeAt(4)))/255,blue:(de(t.charCodeAt(5))*16+de(t.charCodeAt(6)))/255,alpha:(de(t.charCodeAt(7))*16+de(t.charCodeAt(8)))/255}}return null}function nl(t,e,n,r){if(r===void 0&&(r=1),t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};var i=function(o,l,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-o)*c+o:c<3?l:c<4?(l-o)*(4-c)+o:o},s=n<=.5?n*(e+1):n+e-n*e,a=n*2-s;return{red:i(a,s,t+2),green:i(a,s,t),blue:i(a,s,t-2),alpha:r}}function rl(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,s=Math.max(e,n,r),a=Math.min(e,n,r),o=0,l=0,c=(a+s)/2,h=s-a;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case e:o=(n-r)/h+(n=1){var i=e/(e+n);return{red:i,green:i,blue:i,alpha:r}}var s=nl(t,1,.5,r),a=s.red;a*=1-e-n,a+=e;var o=s.green;o*=1-e-n,o+=e;var l=s.blue;return l*=1-e-n,l+=e,{red:a,green:o,blue:l,alpha:r}}function hu(t){var e=rl(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function du(t){if(t.type===v.HexColorValue){var e=t.getText();return tl(e)}else if(t.type===v.Function){var n=t,r=n.getName(),i=n.getArguments().getChildren();if(i.length===1){var s=i[0].getChildren();if(s.length===1&&s[0].type===v.Expression&&(i=s[0].getChildren(),i.length===3)){var a=i[2];if(a instanceof li){var o=a.getLeft(),l=a.getRight(),c=a.getOperator();o&&l&&c&&c.matches("/")&&(i=[i[0],i[1],o,l])}}}if(!r||i.length<3||i.length>4)return null;try{var h=i.length===4?xt(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:xt(i[0],255),green:xt(i[1],255),blue:xt(i[2],255),alpha:h};if(r==="hsl"||r==="hsla"){var u=Zo(i[0]),f=xt(i[1],100),m=xt(i[2],100);return nl(u,f,m,h)}else if(r==="hwb"){var u=Zo(i[0]),g=xt(i[1],100),b=xt(i[2],100);return cu(u,g,b,h)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;var y=t.parent;if(y&&y.parent&&y.parent.type===v.BinaryExpression){var x=y.parent;if(x.parent&&x.parent.type===v.ListEntry&&x.parent.key===x)return null}var w=t.getText().toLowerCase();if(w==="none")return null;var k=or[w];if(k)return tl(k)}return null}var il={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},sl={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},al={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},uu=["medium","thick","thin"],ol={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},ll={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},cl={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},hl={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},dl={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},ul={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},pl={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},fl={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},pu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],fu=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],mu=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function cr(t){return Object.keys(t).map(function(e){return t[e]})}function Ue(t){return typeof t<"u"}var ml=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;re.offset?s-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new vo(e,n,Ne.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},t.prototype.parseStylesheet=function(e){var n=e.version,r=e.getText(),i=function(s,a){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(s,a)};return this.internalParse(r,this._parseStylesheet,i)},t.prototype.internalParse=function(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(s,a){return e.substr(s,a)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(wd);e.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(p.SemiColon)&&this.markError(e,S.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)r=!0,n=!1}while(r);if(this.peek(p.EOF))break;n||(this.peek(p.AtKeyword)?this.markError(e,S.UnknownAtRule):this.markError(e,S.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},t.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(e){var n=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var n=this.create(qt),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,S.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case v.Keyframe:case v.ViewPort:case v.Media:case v.Ruleset:case v.Namespace:case v.If:case v.For:case v.Each:case v.While:case v.MixinDeclaration:case v.FunctionDeclaration:case v.MixinContentDeclaration:return!1;case v.ExtendsReference:case v.MixinContentReference:case v.ReturnStatement:case v.MediaQuery:case v.Debug:case v.Import:case v.AtApplyRule:case v.CustomPropertyDeclaration:return!0;case v.VariableDeclaration:return e.needsSemicolon;case v.MixinReference:return!e.getContent();case v.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create(ri);if(!this.accept(p.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon))return this.finish(n,S.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===p.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););r=e()}return this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,S.LeftCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(un),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},t.prototype._parseDeclaration=function(e){var n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;var r=this.create(Ze);return r.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,S.PropertyValueExpected)):this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(p.Ident,/^--/))return null;var n=this.create(Sd);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected,[p.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(p.CurlyL)){var i=this.create(xd),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,ml(ml([],e||[],!1),[p.SemiColon,p.EOF],!1)))?(n.setValue(a),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),Ue(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,S.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[p.CurlyR]);var r=this.create(W),i=function(){return a===0&&o===0&&l===0},s=function(){return e.indexOf(n.token.type)!==-1},a=0,o=0,l=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(i())break e;break;case p.Exclamation:if(i())break e;break;case p.CurlyL:a++;break;case p.CurlyR:if(a--,a<0){if(s()&&o===0&&l===0)break e;return this.finish(r,S.LeftCurlyExpected)}break;case p.ParenthesisL:o++;break;case p.ParenthesisR:if(o--,o<0){if(s()&&l===0&&a===0)break e;return this.finish(r,S.LeftParenthesisExpected)}break;case p.BracketL:l++;break;case p.BracketR:if(l--,l<0)return this.finish(r,S.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:var c=S.RightCurlyExpected;return l>0?c=S.RightSquareBracketExpected:o>0&&(c=S.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(si),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(p.Charset))return null;var e=this.create(W);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(ai);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Pd);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,S.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(oo);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(Dd);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;var e=this.create(co),n=this.create(W);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,S.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,S.IdentifierExpected,[p.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([Y.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(ho);if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.finish(e,S.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(ho),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.restoreAtMark(n),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var n=this.create(oi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var e=this.create(fn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},t.prototype._parseSupportsConditionInParens=function(){var e=this.create(fn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,S.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){for(var r=1;this.token.type!==p.EOF&&r!==0;)this.token.type===p.ParenthesisL?r++:this.token.type===p.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,S.LeftParenthesisExpected,[],[p.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var n=this.create(uo);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,S.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(po);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(fo),n=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},t.prototype._parseRatio=function(){var e=this.mark(),n=this.create(Bd);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,S.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(Ld);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[p.ParenthesisR],r=this.create(Td),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,S.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,S.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else return this.finish(r,S.IdentifierExpected,[],n);return this.finish(r)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},t.prototype._parseMedium=function(){var e=this.create(W);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(Wd);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,S.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(Od);return this.acceptOneKeyword(mu)||this.markError(e,S.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;var e=this.create(W);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(Id);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(go);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&s===0&&a===0},r=0,i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.EOF:return i>0?this.finish(e,S.RightCurlyExpected):a>0?this.finish(e,S.RightSquareBracketExpected):s>0?this.finish(e,S.RightParenthesisExpected):this.finish(e);case p.CurlyL:r++,i++;break;case p.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,S.RightSquareBracketExpected);if(s>0)return this.finish(e,S.RightParenthesisExpected);break e}if(i<0){if(s===0&&a===0)break e;return this.finish(e,S.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0)return this.finish(e,S.LeftParenthesisExpected);break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(e,S.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(W);return this.accept(p.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(W);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(W);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=v.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(W);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(W);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(W);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create($t),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,S.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(v.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(p.BracketL))return null;var e=this.create(Vd);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)):this.finish(e,S.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=function(){var i=e.create(W);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(p.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(p.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(p.Colon))return null;var e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,S.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(p.Exclamation))return null;var e=this.createNode(v.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(mo);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(n);this.consumeToken()}else if(!this.hasWhitespace())break;if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseUnicodeRange=function(){if(!this.peekIdent("u"))return null;var e=this.create(yd);return this.acceptUnicodeRange()?this.finish(e):null},t.prototype._parseNamedLine=function(){if(!this.peek(p.BracketL))return null;var e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(li);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,S.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},t.prototype._parseTerm=function(){var e=this.create(Ud);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var e=this.create(W);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.Freq)){var e=this.create(hi);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;var e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(W);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(p.Ident))return null;var n=this.create(We);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(pn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,S.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(p.Ident))return null;var e=this.create(We);if(e.referenceTypes=[Y.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(Ht);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(ci);return this.consumeToken(),this.finish(e)}else return null},t}();function gu(t,e){var n=0,r=t.length;if(r===0)return 0;for(;ne+n||this.offset===e&&this.length===n?this.findInScope(e,n):null},t.prototype.findInScope=function(e,n){n===void 0&&(n=0);var r=e+n,i=gu(this.children,function(a){return a.offset>r});if(i===0)return this;var s=this.children[i-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;r{var t={470:r=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,l){for(var c,h="",u=0,f=-1,m=0,g=0;g<=o.length;++g){if(g2){var b=h.lastIndexOf("/");if(b!==h.length-1){b===-1?(h="",u=0):u=(h=h.slice(0,b)).length-1-h.lastIndexOf("/"),f=g,m=0;continue}}else if(h.length===2||h.length===1){h="",u=0,f=g,m=0;continue}}l&&(h.length>0?h+="/..":h="..",u=2)}else h.length>0?h+="/"+o.slice(f+1,g):h=o.slice(f+1,g),u=g-f-1;f=g,m=0}else c===46&&m!==-1?++m:m=-1}return h}var a={resolve:function(){for(var o,l="",c=!1,h=arguments.length-1;h>=-1&&!c;h--){var u;h>=0?u=arguments[h]:(o===void 0&&(o=process.cwd()),u=o),i(u),u.length!==0&&(l=u+"/"+l,c=u.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(i(o),o.length===0)return".";var l=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=s(o,!l)).length!==0||l||(o="."),o.length>0&&c&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":a.normalize(o)},relative:function(o,l){if(i(o),i(l),o===l||(o=a.resolve(o))===(l=a.resolve(l)))return"";for(var c=1;cg){if(l.charCodeAt(f+y)===47)return l.slice(f+y+1);if(y===0)return l.slice(f+y)}else u>g&&(o.charCodeAt(c+y)===47?b=y:y===0&&(b=0));break}var x=o.charCodeAt(c+y);if(x!==l.charCodeAt(f+y))break;x===47&&(b=y)}var w="";for(y=c+b+1;y<=h;++y)y!==h&&o.charCodeAt(y)!==47||(w.length===0?w+="..":w+="/..");return w.length>0?w+l.slice(f+b):(f+=b,l.charCodeAt(f)===47&&++f,l.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var l=o.charCodeAt(0),c=l===47,h=-1,u=!0,f=o.length-1;f>=1;--f)if((l=o.charCodeAt(f))===47){if(!u){h=f;break}}else u=!1;return h===-1?c?"/":".":c&&h===1?"//":o.slice(0,h)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(o);var c,h=0,u=-1,f=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var m=l.length-1,g=-1;for(c=o.length-1;c>=0;--c){var b=o.charCodeAt(c);if(b===47){if(!f){h=c+1;break}}else g===-1&&(f=!1,g=c+1),m>=0&&(b===l.charCodeAt(m)?--m==-1&&(u=c):(m=-1,u=g))}return h===u?u=g:u===-1&&(u=o.length),o.slice(h,u)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){h=c+1;break}}else u===-1&&(f=!1,u=c+1);return u===-1?"":o.slice(h,u)},extname:function(o){i(o);for(var l=-1,c=0,h=-1,u=!0,f=0,m=o.length-1;m>=0;--m){var g=o.charCodeAt(m);if(g!==47)h===-1&&(u=!1,h=m+1),g===46?l===-1?l=m:f!==1&&(f=1):l!==-1&&(f=-1);else if(!u){c=m+1;break}}return l===-1||h===-1||f===0||f===1&&l===h-1&&l===c+1?"":o.slice(l,h)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,c){var h=c.dir||c.root,u=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+u:h+"/"+u:u}(0,o)},parse:function(o){i(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var c,h=o.charCodeAt(0),u=h===47;u?(l.root="/",c=1):c=0;for(var f=-1,m=0,g=-1,b=!0,y=o.length-1,x=0;y>=c;--y)if((h=o.charCodeAt(y))!==47)g===-1&&(b=!1,g=y+1),h===46?f===-1?f=y:x!==1&&(x=1):f!==-1&&(x=-1);else if(!b){m=y+1;break}return f===-1||g===-1||x===0||x===1&&f===g-1&&f===m+1?g!==-1&&(l.base=l.name=m===0&&u?o.slice(1,g):o.slice(m,g)):(m===0&&u?(l.name=o.slice(1,f),l.base=o.slice(1,g)):(l.name=o.slice(m,f),l.base=o.slice(m,g)),l.ext=o.slice(f,g)),m>0?l.dir=o.slice(0,m-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>w,Utils:()=>L}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var l,c,h=(l=function(E,C){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,I){D.__proto__=I}||function(D,I){for(var J in I)Object.prototype.hasOwnProperty.call(I,J)&&(D[J]=I[J])})(E,C)},function(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function D(){this.constructor=E}l(E,C),E.prototype=C===null?Object.create(C):(D.prototype=C.prototype,new D)}),u=/^\w[\w\d+.-]*$/,f=/^\//,m=/^\/\//;function g(E,C){if(!E.scheme&&C)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(E.authority,'", path: "').concat(E.path,'", query: "').concat(E.query,'", fragment: "').concat(E.fragment,'"}'));if(E.scheme&&!u.test(E.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!f.test(E.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(m.test(E.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var b="",y="/",x=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,w=function(){function E(C,D,I,J,H,ee){ee===void 0&&(ee=!1),typeof C=="object"?(this.scheme=C.scheme||b,this.authority=C.authority||b,this.path=C.path||b,this.query=C.query||b,this.fragment=C.fragment||b):(this.scheme=function(Be,_e){return Be||_e?Be:"file"}(C,ee),this.authority=D||b,this.path=function(Be,_e){switch(Be){case"https":case"http":case"file":_e?_e[0]!==y&&(_e=y+_e):_e=y}return _e}(this.scheme,I||b),this.query=J||b,this.fragment=H||b,g(this,ee))}return E.isUri=function(C){return C instanceof E||!!C&&typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="string"&&typeof C.with=="function"&&typeof C.toString=="function"},Object.defineProperty(E.prototype,"fsPath",{get:function(){return B(this,!1)},enumerable:!1,configurable:!0}),E.prototype.with=function(C){if(!C)return this;var D=C.scheme,I=C.authority,J=C.path,H=C.query,ee=C.fragment;return D===void 0?D=this.scheme:D===null&&(D=b),I===void 0?I=this.authority:I===null&&(I=b),J===void 0?J=this.path:J===null&&(J=b),H===void 0?H=this.query:H===null&&(H=b),ee===void 0?ee=this.fragment:ee===null&&(ee=b),D===this.scheme&&I===this.authority&&J===this.path&&H===this.query&&ee===this.fragment?this:new R(D,I,J,H,ee)},E.parse=function(C,D){D===void 0&&(D=!1);var I=x.exec(C);return I?new R(I[2]||b,F(I[4]||b),F(I[5]||b),F(I[7]||b),F(I[9]||b),D):new R(b,b,b,b,b)},E.file=function(C){var D=b;if(a&&(C=C.replace(/\\/g,y)),C[0]===y&&C[1]===y){var I=C.indexOf(y,2);I===-1?(D=C.substring(2),C=y):(D=C.substring(2,I),C=C.substring(I)||y)}return new R("file",D,C,b,b)},E.from=function(C){var D=new R(C.scheme,C.authority,C.path,C.query,C.fragment);return g(D,!0),D},E.prototype.toString=function(C){return C===void 0&&(C=!1),P(this,C)},E.prototype.toJSON=function(){return this},E.revive=function(C){if(C){if(C instanceof E)return C;var D=new R(C);return D._formatted=C.external,D._fsPath=C._sep===k?C.fsPath:null,D}return C},E}(),k=a?1:void 0,R=function(E){function C(){var D=E!==null&&E.apply(this,arguments)||this;return D._formatted=null,D._fsPath=null,D}return h(C,E),Object.defineProperty(C.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=B(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),C.prototype.toString=function(D){return D===void 0&&(D=!1),D?P(this,!0):(this._formatted||(this._formatted=P(this,!1)),this._formatted)},C.prototype.toJSON=function(){var D={$mid:1};return this._fsPath&&(D.fsPath=this._fsPath,D._sep=k),this._formatted&&(D.external=this._formatted),this.path&&(D.path=this.path),this.scheme&&(D.scheme=this.scheme),this.authority&&(D.authority=this.authority),this.query&&(D.query=this.query),this.fragment&&(D.fragment=this.fragment),D},C}(w),z=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function $(E,C){for(var D=void 0,I=-1,J=0;J=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===45||H===46||H===95||H===126||C&&H===47)I!==-1&&(D+=encodeURIComponent(E.substring(I,J)),I=-1),D!==void 0&&(D+=E.charAt(J));else{D===void 0&&(D=E.substr(0,J));var ee=z[H];ee!==void 0?(I!==-1&&(D+=encodeURIComponent(E.substring(I,J)),I=-1),D+=ee):I===-1&&(I=J)}}return I!==-1&&(D+=encodeURIComponent(E.substring(I))),D!==void 0?D:E}function X(E){for(var C=void 0,D=0;D1&&E.scheme==="file"?"//".concat(E.authority).concat(E.path):E.path.charCodeAt(0)===47&&(E.path.charCodeAt(1)>=65&&E.path.charCodeAt(1)<=90||E.path.charCodeAt(1)>=97&&E.path.charCodeAt(1)<=122)&&E.path.charCodeAt(2)===58?C?E.path.substr(1):E.path[1].toLowerCase()+E.path.substr(2):E.path,a&&(D=D.replace(/\//g,"\\")),D}function P(E,C){var D=C?X:$,I="",J=E.scheme,H=E.authority,ee=E.path,Be=E.query,_e=E.fragment;if(J&&(I+=J,I+=":"),(H||J==="file")&&(I+=y,I+=y),H){var Pe=H.indexOf("@");if(Pe!==-1){var Mt=H.substr(0,Pe);H=H.substr(Pe+1),(Pe=Mt.indexOf(":"))===-1?I+=D(Mt,!1):(I+=D(Mt.substr(0,Pe),!1),I+=":",I+=D(Mt.substr(Pe+1),!1)),I+="@"}(Pe=(H=H.toLowerCase()).indexOf(":"))===-1?I+=D(H,!1):(I+=D(H.substr(0,Pe),!1),I+=H.substr(Pe))}if(ee){if(ee.length>=3&&ee.charCodeAt(0)===47&&ee.charCodeAt(2)===58)(lt=ee.charCodeAt(1))>=65&<<=90&&(ee="/".concat(String.fromCharCode(lt+32),":").concat(ee.substr(3)));else if(ee.length>=2&&ee.charCodeAt(1)===58){var lt;(lt=ee.charCodeAt(0))>=65&<<=90&&(ee="".concat(String.fromCharCode(lt+32),":").concat(ee.substr(2)))}I+=D(ee,!0)}return Be&&(I+="?",I+=D(Be,!1)),_e&&(I+="#",I+=C?_e:$(_e,!1)),I}function N(E){try{return decodeURIComponent(E)}catch{return E.length>3?E.substr(0,3)+N(E.substr(3)):E}}var A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function F(E){return E.match(A)?E.replace(A,function(C){return N(C)}):E}var L,V=s(470),K=function(E,C,D){if(D||arguments.length===2)for(var I,J=0,H=C.length;J{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:ki,Utils:_i}=vl,wu=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=0;a--){var o=this.nodePath[a];if(o instanceof si)this.getCompletionsForDeclarationProperty(o.getParent(),s);else if(o instanceof mo)o.parent instanceof di?this.getVariableProposals(null,s):this.getCompletionsForExpression(o,s);else if(o instanceof $t){var l=o.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,o,s);else{var c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(o instanceof Ht)this.getCompletionsForFunctionArgument(o,o.getParent(),s);else if(o instanceof ri)this.getCompletionsForDeclarations(o,s);else if(o instanceof Yn)this.getCompletionsForVariableDeclaration(o,s);else if(o instanceof qt)this.getCompletionsForRuleSet(o,s);else if(o instanceof di)this.getCompletionsForInterpolation(o,s);else if(o instanceof Xn)this.getCompletionsForFunctionDeclaration(o,s);else if(o instanceof Kn)this.getCompletionsForMixinReference(o,s);else if(o instanceof pn)this.getCompletionsForFunctionArgument(null,o,s);else if(o instanceof oi)this.getCompletionsForSupports(o,s);else if(o instanceof fn)this.getCompletionsForSupportsCondition(o,s);else if(o instanceof mn)this.getCompletionsForExtendsReference(o,null,s);else if(o.type===v.URILiteral)this.getCompletionForUriLiteralValue(o,s);else if(o.parent===null)this.getCompletionForTopLevel(s);else if(o.type===v.StringLiteral&&this.isImportPathParent(o.parent.type))this.getCompletionForImportPath(o,s);else continue;if(s.items.length>0||this.offset>o.offset)return this.finalize(s)}return this.getCompletionsForStylesheet(s),s.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,s),this.finalize(s)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},t.prototype.isImportPathParent=function(e){return e===v.Import},t.prototype.finalize=function(e){return e},t.prototype.findInNodePath=function(){for(var e=[],n=0;n=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},t.prototype.getCompletionsForDeclarationProperty=function(e,n){return this.getPropertyProposals(e,n)},t.prototype.getPropertyProposals=function(e,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,s=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(o){var l,c,h=!1;e?(l=r.getCompletionRange(e.getProperty()),c=o.name,Ue(e.colonPosition)||(c+=": ",h=!0)):(l=r.getCompletionRange(null),c=o.name+": ",h=!0),!e&&s&&(c+="$0;"),e&&!e.semicolonPosition&&s&&r.offset>=r.textDocument.offsetAt(l.end)&&(c+="$0;");var u={label:o.name,documentation:wt(o,r.doesSupportMarkdown()),tags:kn(o)?[Rt.Deprecated]:[],textEdit:q.replace(l,c),insertTextFormat:ze.Snippet,kind:j.Property};o.restrictions||(h=!1),i&&h&&(u.command=xl);var f=typeof o.relevance=="number"?Math.min(Math.max(o.relevance,0),99):50,m=(255-f).toString(16),g=ge(o.name,"-")?et.VendorPrefixed:et.Normal;u.sortText=g+"_"+m,n.items.push(u)}),this.completionParticipants.forEach(function(o){o.onCssProperty&&o.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(t.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),t.prototype.getCompletionsForDeclarationValue=function(e,n){for(var r=this,i=e.getFullPropertyName(),s=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(g){g.onCssPropertyValue&&g.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),s){if(s.restrictions)for(var o=0,l=s.restrictions;o=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Y.Variable),i=0,s=r;i0){var s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(i=s[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(var a=0,o=e.restrictions;a=r.end;if(i)return this.getCompletionForTopLevel(n);var s=!r||this.offset<=r.offset;return s?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,s=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);!s&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=te.create(Fe.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(y){var x=Yt(y.name),w={label:y.name,textEdit:q.replace(i.getCompletionRange(s),x),documentation:wt(y,i.doesSupportMarkdown()),tags:kn(y)?[Rt.Deprecated]:[],kind:j.Function,insertTextFormat:y.name!==x?rt:void 0};ge(y.name,":-")&&(w.sortText=et.VendorPrefixed),r.items.push(w)});var o=this.cssDataManager.getPseudoElements();if(o.forEach(function(y){var x=Yt(y.name),w={label:y.name,textEdit:q.replace(i.getCompletionRange(s),x),documentation:wt(y,i.doesSupportMarkdown()),tags:kn(y)?[Rt.Deprecated]:[],kind:j.Function,insertTextFormat:y.name!==x?rt:void 0};ge(y.name,"::-")&&(w.sortText=et.VendorPrefixed),r.items.push(w)}),!n){for(var l=0,c=pu;l0){var x=g.substr(y.offset,y.length);return x.charAt(0)==="."&&!m[x]&&(m[x]=!0,r.items.push({label:x,textEdit:q.replace(i.getCompletionRange(s),x),kind:j.Keyword})),!1}return!0}),e&&e.isNested()){var b=e.getSelectors().findFirstChildBeforeOffset(this.offset);b&&e.getSelectors().getChildren().indexOf(b)===0&&this.getPropertyProposals(null,r)}return r},t.prototype.getCompletionsForDeclarations=function(e,n){if(!e||this.offset===e.offset)return n;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof ii){var i=r;if(!Ue(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Ue(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof Ht)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(v.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var s=e.findChildAtOffset(this.offset,!0);return s?s instanceof hi||s instanceof We?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},t.prototype.getCompletionsForFunctionArgument=function(e,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!Ue(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},t.prototype.getCompletionsForSupports=function(e,n){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var s=e.findFirstChildBeforeOffset(this.offset);return s instanceof fn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,s;if(e.hasChildren()){var o=e.getChild(0);r=o.getText(),i=this.position,s=this.getCompletionRange(o)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+4);s=te.create(a,a)}return this.completionParticipants.forEach(function(l){l.onCssURILiteralValue&&l.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n},t.prototype.getCompletionForImportPath=function(e,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),n},t.prototype.hasCharacterAtPosition=function(e,n){var r=this.textDocument.getText();return e>=0&&e=0&&` -\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function Sl(t){return t.toLowerCase()in or||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var Cl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zu=Ge(),Mi=function(){function t(){this.parent=null,this.children=null,this.attributes=null}return t.prototype.findAttribute=function(e){if(this.attributes)for(var n=0,r=this.attributes;n"),this.writeLine(n,i.join(""))},t}(),it;(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(it||(it={}));var _l=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();function Fl(t,e){for(var n=new Mi,r=0,i=t.getChildren();r1){var c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case v.SelectorPlaceholder:if(s.matches("@at-root"))return n;case v.ElementNameSelector:var h=s.getText();n.addAttr("name",h==="*"?"element":Ve(h));break;case v.ClassSelector:n.addAttr("class",Ve(s.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",Ve(s.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",s.getName());break;case v.PseudoSelector:n.addAttr(Ve(s.getText()),"");break;case v.AttributeSelector:var u=s,f=u.getIdentifier();if(f){var m=u.getValue(),g=u.getOperator(),b=void 0;if(m&&g)switch(Ve(g.getText())){case"|=":b="".concat(it.remove(Ve(m.getText())),"-…");break;case"^=":b="".concat(it.remove(Ve(m.getText())),"…");break;case"$=":b="…".concat(it.remove(Ve(m.getText())));break;case"~=":b=" … ".concat(it.remove(Ve(m.getText()))," … ");break;case"*=":b="…".concat(it.remove(Ve(m.getText())),"…");break;default:b=it.remove(Ve(m.getText()));break}n.addAttr(Ve(f.getText()),b)}break}}return n}function Ve(t){var e=new dn;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}var Pu=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=Tu(e);if(n){var r=new kl('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=Fl(e),r=new kl('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r},t.prototype.isPseudoElementIdentifier=function(e){var n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},t.prototype.selectorToSpecificityMarkedString=function(e){var n=this,r=function(s){var a=new _l;e:for(var o=0,l=s.getChildren();o0){for(var u=new _l,f=0,m=c.getChildren();fu.id){u=w;continue}else if(w.idu.attr){u=w;continue}else if(w.attru.tag){u=w;continue}}}a.id+=u.id,a.attr+=u.attr,a.tag+=u.tag;continue e}a.attr++;break}if(c.getChildren().length>0){var w=r(c);a.id+=w.id,a.attr+=w.attr,a.tag+=w.tag}}return a},i=r(e);return zu("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),Iu=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof Kt)&&e.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===v.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof Kt&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,s=e.getChildren();i=0;a--){var o=n[a].getSelectors().getChild(0);o&&s.processSelector(o)}return s.processSelector(t),e}var zi=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Pu(n)}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.doHover=function(e,n,r,i){i===void 0&&(i=this.defaultSettings);function s(y){return te.create(e.positionAt(y.offset),e.positionAt(y.end))}for(var a=e.offsetAt(n),o=ni(r,a),l=null,c=0;c0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=s.length/2&&a.push({property:x.name,score:w})}),a.sort(function(x,w){return w.score-x.score||x.property.localeCompare(w.property)});for(var o=3,l=0,c=a;l=0;l--){var c=o[l];if(c instanceof Ze){var h=c.getProperty();if(h&&h.offset===s&&h.end===a){this.getFixesForUnknownProperty(e,h,r,i);return}}}},t}(),$u=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}();function Rn(t,e,n,r){var i=t[e];i.value=n,n&&(gl(i.properties,r)||i.properties.push(r))}function Hu(t,e,n){Rn(t,"top",e,n),Rn(t,"right",e,n),Rn(t,"bottom",e,n),Rn(t,"left",e,n)}function Se(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Rn(t,e,n,r):Hu(t,n,r)}function Li(t,e,n){switch(e.length){case 1:Se(t,void 0,e[0],n);break;case 2:Se(t,"top",e[0],n),Se(t,"bottom",e[0],n),Se(t,"right",e[1],n),Se(t,"left",e[1],n);break;case 3:Se(t,"top",e[0],n),Se(t,"right",e[1],n),Se(t,"left",e[1],n),Se(t,"bottom",e[2],n);break;case 4:Se(t,"top",e[0],n),Se(t,"right",e[1],n),Se(t,"bottom",e[2],n),Se(t,"left",e[3],n);break}}function Ti(t,e){for(var n=0,r=e;n"u"))switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=i;break;case"height":e.height=i;break;default:var a=i.fullPropertyName.split("-");switch(a[0]){case"border":switch(a[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(a[2]){case void 0:Se(e,a[1],Ju(s),i);break;case"width":Se(e,a[1],En(s,!1),i);break;case"style":Se(e,a[1],fr(s,!0),i);break}break;case"width":Li(e,Nl(s.getChildren(),!1),i);break;case"style":Li(e,Gu(s.getChildren(),!0),i);break}break;case"padding":a.length===1?Li(e,Nl(s.getChildren(),!0),i):Se(e,a[1],En(s,!0),i);break}break}}return e}var st=Ge(),zl=function(){function t(){this.data={}}return t.prototype.add=function(e,n,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)},t}(),Yu=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new zl,this.validProperties={};var s=n.getSetting(Vu.ValidProperties);Array.isArray(s)&&s.forEach(function(a){if(typeof a=="string"){var o=a.trim().toLowerCase();o.length&&(i.validProperties[o]=!0)}})}return t.entries=function(e,n,r,i,s){var a=new t(n,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(s)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,s=e;i0)for(var b=this.fetch(r,"float"),y=0;y0)for(var b=this.fetch(r,"vertical-align"),y=0;y1)for(var $=0;$")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(v.Operator);return this.consumeToken(),this.finish(n)}return t.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(W);return this.consumeToken(),this.finish(n)}return t.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(Ze);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(i,S.ColonExpected,[p.Colon],n||[p.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var s=!1;if(i.setValue(this._parseExpr())&&(s=!0,i.addChild(this._parsePrio())),this.peek(p.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!s)return this.finish(i,S.PropertyValueExpected);return this.peek(p.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(lo);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(mn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,S.UnknownKeyword):this.finish(n)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},e.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(n),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(v.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},e.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(p.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},e.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},e.prototype._internalParseIfStatement=function(n){var r=this.create(kd);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,S.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(p.CurlyL)){var i=this.create(Ed);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(_d);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,ji.ThroughOrToExpected,[p.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,ji.FromExpected,[p.CurlyR]):this.finish(r,S.VariableNameExpected,[p.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(Fd);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,ji.InExpected,[p.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(Rd);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(Xn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Y.Function])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,S.RightParenthesisExpected,[p.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(v.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,S.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(gn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Y.Mixin])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(Jn);return n.setIdentifier(this._parseVariable())?(this.accept(gr),this.accept(p.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(Hd);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(Kn);this.consumeToken();var r=this._parseIdent([Y.Mixin]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([Y.Mixin]);if(!i)return this.finish(n,S.IdentifierExpected,[p.CurlyR]);var s=this.create(bo);r.referenceTypes=[Y.Module],s.setIdentifier(r),n.setIdentifier(i),n.addChild(s)}if(this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create(Gd);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var n=this.create(Ht),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(p.Colon))n.setIdentifier(i);else{if(this.accept(gr))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(gr),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(W);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(W);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create(Jd),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(p.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,S.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(Ad);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([Y.Module]))&&!this.acceptDelim("*"))return this.finish(n,S.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(Md);return n.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,S.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(Nd);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|hide|show/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([Y.Forward]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,S.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,S.IdentifierOrVariableExpected)}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(zd);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(Si),cp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=Ge(),hp=function(t){cp(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return Ul(e.scssModuleLoaders),Ul(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===v.Forward||n===v.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===v.Forward||i===v.Use)for(var s=0,a=e.scssModuleBuiltIns;s=0&&i<=1)return i}throw new Error}function Ko(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function nu(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}var Qo=48,ru=57,iu=65,lr=97,su=102;function de(t){return t=lr&&t<=su?t-lr+10:0)}function Zo(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:de(t.charCodeAt(1))*17/255,green:de(t.charCodeAt(2))*17/255,blue:de(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:de(t.charCodeAt(1))*17/255,green:de(t.charCodeAt(2))*17/255,blue:de(t.charCodeAt(3))*17/255,alpha:de(t.charCodeAt(4))*17/255};case 7:return{red:(de(t.charCodeAt(1))*16+de(t.charCodeAt(2)))/255,green:(de(t.charCodeAt(3))*16+de(t.charCodeAt(4)))/255,blue:(de(t.charCodeAt(5))*16+de(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(de(t.charCodeAt(1))*16+de(t.charCodeAt(2)))/255,green:(de(t.charCodeAt(3))*16+de(t.charCodeAt(4)))/255,blue:(de(t.charCodeAt(5))*16+de(t.charCodeAt(6)))/255,alpha:(de(t.charCodeAt(7))*16+de(t.charCodeAt(8)))/255}}return null}function el(t,e,n,r){if(r===void 0&&(r=1),t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};var i=function(o,l,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-o)*c+o:c<3?l:c<4?(l-o)*(4-c)+o:o},s=n<=.5?n*(e+1):n+e-n*e,a=n*2-s;return{red:i(a,s,t+2),green:i(a,s,t),blue:i(a,s,t-2),alpha:r}}function tl(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,s=Math.max(e,n,r),a=Math.min(e,n,r),o=0,l=0,c=(a+s)/2,h=s-a;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case e:o=(n-r)/h+(n=1){var i=e/(e+n);return{red:i,green:i,blue:i,alpha:r}}var s=el(t,1,.5,r),a=s.red;a*=1-e-n,a+=e;var o=s.green;o*=1-e-n,o+=e;var l=s.blue;return l*=1-e-n,l+=e,{red:a,green:o,blue:l,alpha:r}}function ou(t){var e=tl(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function lu(t){if(t.type===b.HexColorValue){var e=t.getText();return Zo(e)}else if(t.type===b.Function){var n=t,r=n.getName(),i=n.getArguments().getChildren();if(i.length===1){var s=i[0].getChildren();if(s.length===1&&s[0].type===b.Expression&&(i=s[0].getChildren(),i.length===3)){var a=i[2];if(a instanceof di){var o=a.getLeft(),l=a.getRight(),c=a.getOperator();o&&l&&c&&c.matches("/")&&(i=[i[0],i[1],o,l])}}}if(!r||i.length<3||i.length>4)return null;try{var h=i.length===4?xt(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:xt(i[0],255),green:xt(i[1],255),blue:xt(i[2],255),alpha:h};if(r==="hsl"||r==="hsla"){var u=Ko(i[0]),m=xt(i[1],100),f=xt(i[2],100);return el(u,m,f,h)}else if(r==="hwb"){var u=Ko(i[0]),g=xt(i[1],100),v=xt(i[2],100);return au(u,g,v,h)}}catch{return null}}else if(t.type===b.Identifier){if(t.parent&&t.parent.type!==b.Term)return null;var y=t.parent;if(y&&y.parent&&y.parent.type===b.BinaryExpression){var w=y.parent;if(w.parent&&w.parent.type===b.ListEntry&&w.parent.key===w)return null}var x=t.getText().toLowerCase();if(x==="none")return null;var k=or[x];if(k)return Zo(k)}return null}var nl={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},rl={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},il={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},cu=["medium","thick","thin"],sl={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},al={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},ol={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},ll={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},cl={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},hl={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},dl={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},ul={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},hu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],du=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],uu=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function cr(t){return Object.keys(t).map(function(e){return t[e]})}function Oe(t){return typeof t<"u"}var pl=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;re.offset?s-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new go(e,n,Ne.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},t.prototype.parseStylesheet=function(e){var n=e.version,r=e.getText(),i=function(s,a){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(s,a)};return this.internalParse(r,this._parseStylesheet,i)},t.prototype.internalParse=function(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(s,a){return e.substr(s,a)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(bd);e.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(p.SemiColon)&&this.markError(e,S.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)r=!0,n=!1}while(r);if(this.peek(p.EOF))break;n||(this.peek(p.AtKeyword)?this.markError(e,S.UnknownAtRule):this.markError(e,S.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},t.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(e){var n=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var n=this.create($t),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,S.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case b.Keyframe:case b.ViewPort:case b.Media:case b.Ruleset:case b.Namespace:case b.If:case b.For:case b.Each:case b.While:case b.MixinDeclaration:case b.FunctionDeclaration:case b.MixinContentDeclaration:return!1;case b.ExtendsReference:case b.MixinContentReference:case b.ReturnStatement:case b.MediaQuery:case b.Debug:case b.Import:case b.AtApplyRule:case b.CustomPropertyDeclaration:return!0;case b.VariableDeclaration:return e.needsSemicolon;case b.MixinReference:return!e.getContent();case b.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create(ai);if(!this.accept(p.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon))return this.finish(n,S.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===p.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););r=e()}return this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,S.LeftCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(gn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},t.prototype._parseDeclaration=function(e){var n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;var r=this.create(Qe);return r.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,S.PropertyValueExpected)):this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(p.Ident,/^--/))return null;var n=this.create(yd);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected,[p.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(p.CurlyL)){var i=this.create(vd),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,pl(pl([],e||[],!1),[p.SemiColon,p.EOF],!1)))?(n.setValue(a),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),Oe(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,S.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[p.CurlyR]);var r=this.create(U),i=function(){return a===0&&o===0&&l===0},s=function(){return e.indexOf(n.token.type)!==-1},a=0,o=0,l=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(i())break e;break;case p.Exclamation:if(i())break e;break;case p.CurlyL:a++;break;case p.CurlyR:if(a--,a<0){if(s()&&o===0&&l===0)break e;return this.finish(r,S.LeftCurlyExpected)}break;case p.ParenthesisL:o++;break;case p.ParenthesisR:if(o--,o<0){if(s()&&l===0&&a===0)break e;return this.finish(r,S.LeftParenthesisExpected)}break;case p.BracketL:l++;break;case p.BracketR:if(l--,l<0)return this.finish(r,S.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:var c=S.RightCurlyExpected;return l>0?c=S.RightSquareBracketExpected:o>0&&(c=S.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(li),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(p.Charset))return null;var e=this.create(U);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(ci);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Md);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,S.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(so);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(Fd);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;var e=this.create(oo),n=this.create(U);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,S.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,S.IdentifierExpected,[p.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([Y.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(lo);if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.finish(e,S.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(lo),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.restoreAtMark(n),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var n=this.create(hi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var e=this.create(vn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},t.prototype._parseSupportsConditionInParens=function(){var e=this.create(vn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,S.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){for(var r=1;this.token.type!==p.EOF&&r!==0;)this.token.type===p.ParenthesisL?r++:this.token.type===p.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,S.LeftParenthesisExpected,[],[p.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var n=this.create(co);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,S.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(ho);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(uo),n=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},t.prototype._parseRatio=function(){var e=this.mark(),n=this.create(Od);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,S.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(zd);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[p.ParenthesisR],r=this.create(Pd),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,S.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,S.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else return this.finish(r,S.IdentifierExpected,[],n);return this.finish(r)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},t.prototype._parseMedium=function(){var e=this.create(U);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(Ld);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,S.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(Id);return this.acceptOneKeyword(uu)||this.markError(e,S.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;var e=this.create(U);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(Nd);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(fo);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&s===0&&a===0},r=0,i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.EOF:return i>0?this.finish(e,S.RightCurlyExpected):a>0?this.finish(e,S.RightSquareBracketExpected):s>0?this.finish(e,S.RightParenthesisExpected):this.finish(e);case p.CurlyL:r++,i++;break;case p.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,S.RightSquareBracketExpected);if(s>0)return this.finish(e,S.RightParenthesisExpected);break e}if(i<0){if(s===0&&a===0)break e;return this.finish(e,S.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0)return this.finish(e,S.LeftParenthesisExpected);break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(e,S.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(U);return this.accept(p.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(b.Operator);return this.consumeToken(),this.finish(e)}else return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(U);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(U);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=b.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=b.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(U);return this.consumeToken(),e.type=b.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(U);return this.consumeToken(),e.type=b.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(U);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=b.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(Ht),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(b.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,S.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(b.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(b.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),n=this.createNode(b.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(p.BracketL))return null;var e=this.create(Wd);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)):this.finish(e,S.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=function(){var i=e.create(U);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(p.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(p.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(p.Colon))return null;var e=this.mark(),n=this.createNode(b.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,S.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(p.Exclamation))return null;var e=this.createNode(b.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(po);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(n);this.consumeToken()}else if(!this.hasWhitespace())break;if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseUnicodeRange=function(){if(!this.peekIdent("u"))return null;var e=this.create(gd);return this.acceptUnicodeRange()?this.finish(e):null},t.prototype._parseNamedLine=function(){if(!this.peek(p.BracketL))return null;var e=this.createNode(b.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(di);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,S.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},t.prototype._parseTerm=function(){var e=this.create(Td);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var e=this.create(U);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.Freq)){var e=this.create(pi);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;var e=this.createNode(b.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(b.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(U);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(p.Ident))return null;var n=this.create(Te);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(bn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,S.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(p.Ident))return null;var e=this.create(Te);if(e.referenceTypes=[Y.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(Gt);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(ui);return this.consumeToken(),this.finish(e)}else return null},t}();function pu(t,e){var n=0,r=t.length;if(r===0)return 0;for(;ne+n||this.offset===e&&this.length===n?this.findInScope(e,n):null},t.prototype.findInScope=function(e,n){n===void 0&&(n=0);var r=e+n,i=pu(this.children,function(a){return a.offset>r});if(i===0)return this;var s=this.children[i-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;r{var t={470:r=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,l){for(var c,h="",u=0,m=-1,f=0,g=0;g<=o.length;++g){if(g2){var v=h.lastIndexOf("/");if(v!==h.length-1){v===-1?(h="",u=0):u=(h=h.slice(0,v)).length-1-h.lastIndexOf("/"),m=g,f=0;continue}}else if(h.length===2||h.length===1){h="",u=0,m=g,f=0;continue}}l&&(h.length>0?h+="/..":h="..",u=2)}else h.length>0?h+="/"+o.slice(m+1,g):h=o.slice(m+1,g),u=g-m-1;m=g,f=0}else c===46&&f!==-1?++f:f=-1}return h}var a={resolve:function(){for(var o,l="",c=!1,h=arguments.length-1;h>=-1&&!c;h--){var u;h>=0?u=arguments[h]:(o===void 0&&(o=process.cwd()),u=o),i(u),u.length!==0&&(l=u+"/"+l,c=u.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(i(o),o.length===0)return".";var l=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=s(o,!l)).length!==0||l||(o="."),o.length>0&&c&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":a.normalize(o)},relative:function(o,l){if(i(o),i(l),o===l||(o=a.resolve(o))===(l=a.resolve(l)))return"";for(var c=1;cg){if(l.charCodeAt(m+y)===47)return l.slice(m+y+1);if(y===0)return l.slice(m+y)}else u>g&&(o.charCodeAt(c+y)===47?v=y:y===0&&(v=0));break}var w=o.charCodeAt(c+y);if(w!==l.charCodeAt(m+y))break;w===47&&(v=y)}var x="";for(y=c+v+1;y<=h;++y)y!==h&&o.charCodeAt(y)!==47||(x.length===0?x+="..":x+="/..");return x.length>0?x+l.slice(m+v):(m+=v,l.charCodeAt(m)===47&&++m,l.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var l=o.charCodeAt(0),c=l===47,h=-1,u=!0,m=o.length-1;m>=1;--m)if((l=o.charCodeAt(m))===47){if(!u){h=m;break}}else u=!1;return h===-1?c?"/":".":c&&h===1?"//":o.slice(0,h)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(o);var c,h=0,u=-1,m=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var f=l.length-1,g=-1;for(c=o.length-1;c>=0;--c){var v=o.charCodeAt(c);if(v===47){if(!m){h=c+1;break}}else g===-1&&(m=!1,g=c+1),f>=0&&(v===l.charCodeAt(f)?--f==-1&&(u=c):(f=-1,u=g))}return h===u?u=g:u===-1&&(u=o.length),o.slice(h,u)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!m){h=c+1;break}}else u===-1&&(m=!1,u=c+1);return u===-1?"":o.slice(h,u)},extname:function(o){i(o);for(var l=-1,c=0,h=-1,u=!0,m=0,f=o.length-1;f>=0;--f){var g=o.charCodeAt(f);if(g!==47)h===-1&&(u=!1,h=f+1),g===46?l===-1?l=f:m!==1&&(m=1):l!==-1&&(m=-1);else if(!u){c=f+1;break}}return l===-1||h===-1||m===0||m===1&&l===h-1&&l===c+1?"":o.slice(l,h)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,c){var h=c.dir||c.root,u=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+u:h+"/"+u:u}(0,o)},parse:function(o){i(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var c,h=o.charCodeAt(0),u=h===47;u?(l.root="/",c=1):c=0;for(var m=-1,f=0,g=-1,v=!0,y=o.length-1,w=0;y>=c;--y)if((h=o.charCodeAt(y))!==47)g===-1&&(v=!1,g=y+1),h===46?m===-1?m=y:w!==1&&(w=1):m!==-1&&(w=-1);else if(!v){f=y+1;break}return m===-1||g===-1||w===0||w===1&&m===g-1&&m===f+1?g!==-1&&(l.base=l.name=f===0&&u?o.slice(1,g):o.slice(f,g)):(f===0&&u?(l.name=o.slice(1,m),l.base=o.slice(1,g)):(l.name=o.slice(f,m),l.base=o.slice(f,g)),l.ext=o.slice(m,g)),f>0?l.dir=o.slice(0,f-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>x,Utils:()=>W}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var l,c,h=(l=function(A,C){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,L){M.__proto__=L}||function(M,L){for(var X in L)Object.prototype.hasOwnProperty.call(L,X)&&(M[X]=L[X])})(A,C)},function(A,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function M(){this.constructor=A}l(A,C),A.prototype=C===null?Object.create(C):(M.prototype=C.prototype,new M)}),u=/^\w[\w\d+.-]*$/,m=/^\//,f=/^\/\//;function g(A,C){if(!A.scheme&&C)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(A.authority,'", path: "').concat(A.path,'", query: "').concat(A.query,'", fragment: "').concat(A.fragment,'"}'));if(A.scheme&&!u.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!m.test(A.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(f.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var v="",y="/",w=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,x=function(){function A(C,M,L,X,G,ee){ee===void 0&&(ee=!1),typeof C=="object"?(this.scheme=C.scheme||v,this.authority=C.authority||v,this.path=C.path||v,this.query=C.query||v,this.fragment=C.fragment||v):(this.scheme=function(Ve,ke){return Ve||ke?Ve:"file"}(C,ee),this.authority=M||v,this.path=function(Ve,ke){switch(Ve){case"https":case"http":case"file":ke?ke[0]!==y&&(ke=y+ke):ke=y}return ke}(this.scheme,L||v),this.query=X||v,this.fragment=G||v,g(this,ee))}return A.isUri=function(C){return C instanceof A||!!C&&typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="string"&&typeof C.with=="function"&&typeof C.toString=="function"},Object.defineProperty(A.prototype,"fsPath",{get:function(){return I(this,!1)},enumerable:!1,configurable:!0}),A.prototype.with=function(C){if(!C)return this;var M=C.scheme,L=C.authority,X=C.path,G=C.query,ee=C.fragment;return M===void 0?M=this.scheme:M===null&&(M=v),L===void 0?L=this.authority:L===null&&(L=v),X===void 0?X=this.path:X===null&&(X=v),G===void 0?G=this.query:G===null&&(G=v),ee===void 0?ee=this.fragment:ee===null&&(ee=v),M===this.scheme&&L===this.authority&&X===this.path&&G===this.query&&ee===this.fragment?this:new P(M,L,X,G,ee)},A.parse=function(C,M){M===void 0&&(M=!1);var L=w.exec(C);return L?new P(L[2]||v,F(L[4]||v),F(L[5]||v),F(L[7]||v),F(L[9]||v),M):new P(v,v,v,v,v)},A.file=function(C){var M=v;if(a&&(C=C.replace(/\\/g,y)),C[0]===y&&C[1]===y){var L=C.indexOf(y,2);L===-1?(M=C.substring(2),C=y):(M=C.substring(2,L),C=C.substring(L)||y)}return new P("file",M,C,v,v)},A.from=function(C){var M=new P(C.scheme,C.authority,C.path,C.query,C.fragment);return g(M,!0),M},A.prototype.toString=function(C){return C===void 0&&(C=!1),D(this,C)},A.prototype.toJSON=function(){return this},A.revive=function(C){if(C){if(C instanceof A)return C;var M=new P(C);return M._formatted=C.external,M._fsPath=C._sep===k?C.fsPath:null,M}return C},A}(),k=a?1:void 0,P=function(A){function C(){var M=A!==null&&A.apply(this,arguments)||this;return M._formatted=null,M._fsPath=null,M}return h(C,A),Object.defineProperty(C.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=I(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),C.prototype.toString=function(M){return M===void 0&&(M=!1),M?D(this,!0):(this._formatted||(this._formatted=D(this,!1)),this._formatted)},C.prototype.toJSON=function(){var M={$mid:1};return this._fsPath&&(M.fsPath=this._fsPath,M._sep=k),this._formatted&&(M.external=this._formatted),this.path&&(M.path=this.path),this.scheme&&(M.scheme=this.scheme),this.authority&&(M.authority=this.authority),this.query&&(M.query=this.query),this.fragment&&(M.fragment=this.fragment),M},C}(x),N=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function V(A,C){for(var M=void 0,L=-1,X=0;X=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===45||G===46||G===95||G===126||C&&G===47)L!==-1&&(M+=encodeURIComponent(A.substring(L,X)),L=-1),M!==void 0&&(M+=A.charAt(X));else{M===void 0&&(M=A.substr(0,X));var ee=N[G];ee!==void 0?(L!==-1&&(M+=encodeURIComponent(A.substring(L,X)),L=-1),M+=ee):L===-1&&(L=X)}}return L!==-1&&(M+=encodeURIComponent(A.substring(L))),M!==void 0?M:A}function T(A){for(var C=void 0,M=0;M1&&A.scheme==="file"?"//".concat(A.authority).concat(A.path):A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?C?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,a&&(M=M.replace(/\//g,"\\")),M}function D(A,C){var M=C?T:V,L="",X=A.scheme,G=A.authority,ee=A.path,Ve=A.query,ke=A.fragment;if(X&&(L+=X,L+=":"),(G||X==="file")&&(L+=y,L+=y),G){var Pe=G.indexOf("@");if(Pe!==-1){var At=G.substr(0,Pe);G=G.substr(Pe+1),(Pe=At.indexOf(":"))===-1?L+=M(At,!1):(L+=M(At.substr(0,Pe),!1),L+=":",L+=M(At.substr(Pe+1),!1)),L+="@"}(Pe=(G=G.toLowerCase()).indexOf(":"))===-1?L+=M(G,!1):(L+=M(G.substr(0,Pe),!1),L+=G.substr(Pe))}if(ee){if(ee.length>=3&&ee.charCodeAt(0)===47&&ee.charCodeAt(2)===58)(lt=ee.charCodeAt(1))>=65&<<=90&&(ee="/".concat(String.fromCharCode(lt+32),":").concat(ee.substr(3)));else if(ee.length>=2&&ee.charCodeAt(1)===58){var lt;(lt=ee.charCodeAt(0))>=65&<<=90&&(ee="".concat(String.fromCharCode(lt+32),":").concat(ee.substr(2)))}L+=M(ee,!0)}return Ve&&(L+="?",L+=M(Ve,!1)),ke&&(L+="#",L+=C?ke:V(ke,!1)),L}function R(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+R(A.substr(3)):A}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function F(A){return A.match(E)?A.replace(E,function(C){return R(C)}):A}var W,q=s(470),K=function(A,C,M){if(M||arguments.length===2)for(var L,X=0,G=C.length;X{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:Ri,Utils:Ei}=gl,bu=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=0;a--){var o=this.nodePath[a];if(o instanceof li)this.getCompletionsForDeclarationProperty(o.getParent(),s);else if(o instanceof po)o.parent instanceof fi?this.getVariableProposals(null,s):this.getCompletionsForExpression(o,s);else if(o instanceof Ht){var l=o.findAParent(b.ExtendsReference,b.Ruleset);if(l)if(l.type===b.ExtendsReference)this.getCompletionsForExtendsReference(l,o,s);else{var c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(o instanceof Gt)this.getCompletionsForFunctionArgument(o,o.getParent(),s);else if(o instanceof ai)this.getCompletionsForDeclarations(o,s);else if(o instanceof Yn)this.getCompletionsForVariableDeclaration(o,s);else if(o instanceof $t)this.getCompletionsForRuleSet(o,s);else if(o instanceof fi)this.getCompletionsForInterpolation(o,s);else if(o instanceof Xn)this.getCompletionsForFunctionDeclaration(o,s);else if(o instanceof Kn)this.getCompletionsForMixinReference(o,s);else if(o instanceof bn)this.getCompletionsForFunctionArgument(null,o,s);else if(o instanceof hi)this.getCompletionsForSupports(o,s);else if(o instanceof vn)this.getCompletionsForSupportsCondition(o,s);else if(o instanceof yn)this.getCompletionsForExtendsReference(o,null,s);else if(o.type===b.URILiteral)this.getCompletionForUriLiteralValue(o,s);else if(o.parent===null)this.getCompletionForTopLevel(s);else if(o.type===b.StringLiteral&&this.isImportPathParent(o.parent.type))this.getCompletionForImportPath(o,s);else continue;if(s.items.length>0||this.offset>o.offset)return this.finalize(s)}return this.getCompletionsForStylesheet(s),s.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,s),this.finalize(s)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},t.prototype.isImportPathParent=function(e){return e===b.Import},t.prototype.finalize=function(e){return e},t.prototype.findInNodePath=function(){for(var e=[],n=0;n=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},t.prototype.getCompletionsForDeclarationProperty=function(e,n){return this.getPropertyProposals(e,n)},t.prototype.getPropertyProposals=function(e,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,s=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(o){var l,c,h=!1;e?(l=r.getCompletionRange(e.getProperty()),c=o.name,Oe(e.colonPosition)||(c+=": ",h=!0)):(l=r.getCompletionRange(null),c=o.name+": ",h=!0),!e&&s&&(c+="$0;"),e&&!e.semicolonPosition&&s&&r.offset>=r.textDocument.offsetAt(l.end)&&(c+="$0;");var u={label:o.name,documentation:wt(o,r.doesSupportMarkdown()),tags:En(o)?[Ft.Deprecated]:[],textEdit:H.replace(l,c),insertTextFormat:ze.Snippet,kind:$.Property};o.restrictions||(h=!1),i&&h&&(u.command=yl);var m=typeof o.relevance=="number"?Math.min(Math.max(o.relevance,0),99):50,f=(255-m).toString(16),g=me(o.name,"-")?Ze.VendorPrefixed:Ze.Normal;u.sortText=g+"_"+f,n.items.push(u)}),this.completionParticipants.forEach(function(o){o.onCssProperty&&o.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(t.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),t.prototype.getCompletionsForDeclarationValue=function(e,n){for(var r=this,i=e.getFullPropertyName(),s=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(g){g.onCssPropertyValue&&g.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),s){if(s.restrictions)for(var o=0,l=s.restrictions;o=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Y.Variable),i=0,s=r;i0){var s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(i=s[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===b.Term&&(n=n.getParent()),e.restrictions)for(var a=0,o=e.restrictions;a=r.end;if(i)return this.getCompletionForTopLevel(n);var s=!r||this.offset<=r.offset;return s?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,s=this.findInNodePath(b.PseudoSelector,b.IdentifierSelector,b.ClassSelector,b.ElementNameSelector);!s&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=ne.create(Fe.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(y){var w=Kt(y.name),x={label:y.name,textEdit:H.replace(i.getCompletionRange(s),w),documentation:wt(y,i.doesSupportMarkdown()),tags:En(y)?[Ft.Deprecated]:[],kind:$.Function,insertTextFormat:y.name!==w?rt:void 0};me(y.name,":-")&&(x.sortText=Ze.VendorPrefixed),r.items.push(x)});var o=this.cssDataManager.getPseudoElements();if(o.forEach(function(y){var w=Kt(y.name),x={label:y.name,textEdit:H.replace(i.getCompletionRange(s),w),documentation:wt(y,i.doesSupportMarkdown()),tags:En(y)?[Ft.Deprecated]:[],kind:$.Function,insertTextFormat:y.name!==w?rt:void 0};me(y.name,"::-")&&(x.sortText=Ze.VendorPrefixed),r.items.push(x)}),!n){for(var l=0,c=hu;l0){var w=g.substr(y.offset,y.length);return w.charAt(0)==="."&&!f[w]&&(f[w]=!0,r.items.push({label:w,textEdit:H.replace(i.getCompletionRange(s),w),kind:$.Keyword})),!1}return!0}),e&&e.isNested()){var v=e.getSelectors().findFirstChildBeforeOffset(this.offset);v&&e.getSelectors().getChildren().indexOf(v)===0&&this.getPropertyProposals(null,r)}return r},t.prototype.getCompletionsForDeclarations=function(e,n){if(!e||this.offset===e.offset)return n;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof oi){var i=r;if(!Oe(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Oe(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof Gt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(b.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var s=e.findChildAtOffset(this.offset,!0);return s?s instanceof pi||s instanceof Te?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},t.prototype.getCompletionsForFunctionArgument=function(e,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!Oe(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},t.prototype.getCompletionsForSupports=function(e,n){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var s=e.findFirstChildBeforeOffset(this.offset);return s instanceof vn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,s;if(e.hasChildren()){var o=e.getChild(0);r=o.getText(),i=this.position,s=this.getCompletionRange(o)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+4);s=ne.create(a,a)}return this.completionParticipants.forEach(function(l){l.onCssURILiteralValue&&l.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n},t.prototype.getCompletionForImportPath=function(e,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),n},t.prototype.hasCharacterAtPosition=function(e,n){var r=this.textDocument.getText();return e>=0&&e=0&&` +\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function wl(t){return t.toLowerCase()in or||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var xl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Au=He(),Pi=function(){function t(){this.parent=null,this.children=null,this.attributes=null}return t.prototype.findAttribute=function(e){if(this.attributes)for(var n=0,r=this.attributes;n"),this.writeLine(n,i.join(""))},t}(),it;(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(it||(it={}));var Cl=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();function kl(t,e){for(var n=new Pi,r=0,i=t.getChildren();r1){var c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case b.SelectorPlaceholder:if(s.matches("@at-root"))return n;case b.ElementNameSelector:var h=s.getText();n.addAttr("name",h==="*"?"element":Ue(h));break;case b.ClassSelector:n.addAttr("class",Ue(s.getText().substring(1)));break;case b.IdentifierSelector:n.addAttr("id",Ue(s.getText().substring(1)));break;case b.MixinDeclaration:n.addAttr("class",s.getName());break;case b.PseudoSelector:n.addAttr(Ue(s.getText()),"");break;case b.AttributeSelector:var u=s,m=u.getIdentifier();if(m){var f=u.getValue(),g=u.getOperator(),v=void 0;if(f&&g)switch(Ue(g.getText())){case"|=":v="".concat(it.remove(Ue(f.getText())),"-…");break;case"^=":v="".concat(it.remove(Ue(f.getText())),"…");break;case"$=":v="…".concat(it.remove(Ue(f.getText())));break;case"~=":v=" … ".concat(it.remove(Ue(f.getText()))," … ");break;case"*=":v="…".concat(it.remove(Ue(f.getText())),"…");break;default:v=it.remove(Ue(f.getText()));break}n.addAttr(Ue(m.getText()),v)}break}}return n}function Ue(t){var e=new mn;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}var Mu=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=Pu(e);if(n){var r=new Sl('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=kl(e),r=new Sl('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r},t.prototype.isPseudoElementIdentifier=function(e){var n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},t.prototype.selectorToSpecificityMarkedString=function(e){var n=this,r=function(s){var a=new Cl;e:for(var o=0,l=s.getChildren();o0){for(var u=new Cl,m=0,f=c.getChildren();mu.id){u=x;continue}else if(x.idu.attr){u=x;continue}else if(x.attru.tag){u=x;continue}}}a.id+=u.id,a.attr+=u.attr,a.tag+=u.tag;continue e}a.attr++;break}if(c.getChildren().length>0){var x=r(c);a.id+=x.id,a.attr+=x.attr,a.tag+=x.tag}}return a},i=r(e);return Au("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),Nu=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof Qt)&&e.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===b.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof Qt&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,s=e.getChildren();i=0;a--){var o=n[a].getSelectors().getChild(0);o&&s.processSelector(o)}return s.processSelector(t),e}var Ii=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Mu(n)}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.doHover=function(e,n,r,i){i===void 0&&(i=this.defaultSettings);function s(y){return ne.create(e.positionAt(y.offset),e.positionAt(y.end))}for(var a=e.offsetAt(n),o=si(r,a),l=null,c=0;c0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=s.length/2&&a.push({property:w.name,score:x})}),a.sort(function(w,x){return x.score-w.score||w.property.localeCompare(x.property)});for(var o=3,l=0,c=a;l=0;l--){var c=o[l];if(c instanceof Qe){var h=c.getProperty();if(h&&h.offset===s&&h.end===a){this.getFixesForUnknownProperty(e,h,r,i);return}}}},t}(),Bu=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}();function Mn(t,e,n,r){var i=t[e];i.value=n,n&&(fl(i.properties,r)||i.properties.push(r))}function ju(t,e,n){Mn(t,"top",e,n),Mn(t,"right",e,n),Mn(t,"bottom",e,n),Mn(t,"left",e,n)}function Se(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Mn(t,e,n,r):ju(t,n,r)}function Oi(t,e,n){switch(e.length){case 1:Se(t,void 0,e[0],n);break;case 2:Se(t,"top",e[0],n),Se(t,"bottom",e[0],n),Se(t,"right",e[1],n),Se(t,"left",e[1],n);break;case 3:Se(t,"top",e[0],n),Se(t,"right",e[1],n),Se(t,"left",e[1],n),Se(t,"bottom",e[2],n);break;case 4:Se(t,"top",e[0],n),Se(t,"right",e[1],n),Se(t,"bottom",e[2],n),Se(t,"left",e[3],n);break}}function Ui(t,e){for(var n=0,r=e;n"u"))switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=i;break;case"height":e.height=i;break;default:var a=i.fullPropertyName.split("-");switch(a[0]){case"border":switch(a[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(a[2]){case void 0:Se(e,a[1],$u(s),i);break;case"width":Se(e,a[1],Nn(s,!1),i);break;case"style":Se(e,a[1],fr(s,!0),i);break}break;case"width":Oi(e,Al(s.getChildren(),!1),i);break;case"style":Oi(e,qu(s.getChildren(),!0),i);break}break;case"padding":a.length===1?Oi(e,Al(s.getChildren(),!0),i):Se(e,a[1],Nn(s,!0),i);break}break}}return e}var st=He(),Ml=function(){function t(){this.data={}}return t.prototype.add=function(e,n,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)},t}(),Gu=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new Ml,this.validProperties={};var s=n.getSetting(Wu.ValidProperties);Array.isArray(s)&&s.forEach(function(a){if(typeof a=="string"){var o=a.trim().toLowerCase();o.length&&(i.validProperties[o]=!0)}})}return t.entries=function(e,n,r,i,s){var a=new t(n,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(s)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,s=e;i0)for(var v=this.fetch(r,"float"),y=0;y0)for(var v=this.fetch(r,"vertical-align"),y=0;y1)for(var V=0;V")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(b.Operator);return this.consumeToken(),this.finish(n)}return t.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(U);return this.consumeToken(),this.finish(n)}return t.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(Qe);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(i,S.ColonExpected,[p.Colon],n||[p.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var s=!1;if(i.setValue(this._parseExpr())&&(s=!0,i.addChild(this._parsePrio())),this.peek(p.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!s)return this.finish(i,S.PropertyValueExpected);return this.peek(p.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(ao);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(yn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,S.UnknownKeyword):this.finish(n)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(b.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(b.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(b.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},e.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(n),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(b.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},e.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(p.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},e.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},e.prototype._internalParseIfStatement=function(n){var r=this.create(xd);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,S.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(p.CurlyL)){var i=this.create(_d);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(Sd);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Hi.ThroughOrToExpected,[p.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Hi.FromExpected,[p.CurlyR]):this.finish(r,S.VariableNameExpected,[p.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(Cd);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Hi.InExpected,[p.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(kd);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(Xn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Y.Function])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,S.RightParenthesisExpected,[p.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(b.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,S.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(wn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Y.Mixin])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(Jn);return n.setIdentifier(this._parseVariable())?(this.accept(gr),this.accept(p.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(jd);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(Kn);this.consumeToken();var r=this._parseIdent([Y.Mixin]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([Y.Mixin]);if(!i)return this.finish(n,S.IdentifierExpected,[p.CurlyR]);var s=this.create(mo);r.referenceTypes=[Y.Module],s.setIdentifier(r),n.setIdentifier(i),n.addChild(s)}if(this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create(qd);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var n=this.create(Gt),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(p.Colon))n.setIdentifier(i);else{if(this.accept(gr))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(gr),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(U);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(U);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create($d),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(p.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,S.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(Rd);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([Y.Module]))&&!this.acceptDelim("*"))return this.finish(n,S.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(Ed);return n.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,S.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(Dd);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|hide|show/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([Y.Forward]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,S.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,S.IdentifierOrVariableExpected)}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(Ad);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(_i),ap=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=He(),op=function(t){ap(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return Wl(e.scssModuleLoaders),Wl(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===b.Forward||n===b.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===b.Forward||i===b.Use)for(var s=0,a=e.scssModuleBuiltIns;s0){var n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=` +}`,insertTextFormat:ze.Snippet,kind:$.Keyword},{label:"@include",documentation:z("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:$.Keyword},{label:"@function",documentation:z("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:$.Keyword}],e.scssModuleLoaders=[{label:"@use",documentation:z("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:ze.Snippet,kind:$.Keyword},{label:"@forward",documentation:z("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:ze.Snippet,kind:$.Keyword}],e.scssModuleBuiltIns=[{label:"sass:math",documentation:z("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:z("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:z("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:z("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:z("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:z("scss.builtin.sass:selector","Provides access to Sass’s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:z("scss.builtin.sass:meta","Exposes the details of Sass’s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],e}(Ni);function Wl(t){t.forEach(function(e){if(e.documentation&&e.references&&e.references.length>0){var n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=` -`,n.value+=e.references.map(function(r){return"[".concat(r.name,"](").concat(r.url,")")}).join(" | "),e.documentation=n}})}var dp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vl="/".charCodeAt(0),up=` -`.charCodeAt(0),pp="\r".charCodeAt(0),fp="\f".charCodeAt(0),qi="`".charCodeAt(0),$i=".".charCodeAt(0),mp=p.CustomToken,Hi=mp++,Bl=function(t){dp(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([$i,$i,$i])?this.finishToken(n,Hi):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Vl,Vl])?(this.stream.advanceWhileChar(function(n){switch(n){case up:case pp:case fp:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===qi?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==qi}),this.stream.advanceIfChar(qi)?p.EscapedJavaScript:p.BadEscapedJavaScript):null},e}(dn),gp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bp=function(t){gp(e,t);function e(){return t.call(this,new Bl)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(ai);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(n,S.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,S.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(v.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(n):this.finish(n,S.SemiColonExpected):this.finish(n,S.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(fo);return r.addChild(this._parseVariable())?this.finish(r):null}return n},e.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(Yn),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=this.create(gn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(p.CurlyL))return null;var i=this.create(ae);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(p.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var n=this.create(W),r=this.mark();return this.accept(p.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(p.AtKeyword))return null;for(var s=this.create(ui),a=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(p.BracketL)&&!this._addLookupChildren(s)?(this.restoreAtMark(a),null):s},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(n):this.finish(n,S.TermExpected)}return null},e.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||t.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([Y.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(n){var r=this.create(un),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var s=this.mark();if(r.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(s),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(v.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},e.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),s=this.create(We);s.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return n?s.isCustomProperty?a=s.addChild(this._parseIdent()):a=s.addChild(this._parseRegexp(r)):s.isCustomProperty?a=this._acceptInterpolatedIdent(s):a=this._acceptInterpolatedIdent(s,r),a?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(s)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,s=!1,a=function(){var l=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(l),null):i._parseInterpolation()},o=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(p.Ident)};(o()||n.addChild(this._parseInterpolation()||this.try(a)))&&(s=!0,!this.hasWhitespace()););return s},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(v.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(r):this.finish(r,S.RightCurlyExpected):this.finish(r,S.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(gn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(We),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))n=this.create(We),this.consumeToken();else return null;return n.referenceTypes=[Y.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(p.Colon))return null;var n=this.mark(),r=this.create(mn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(mn);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(p.AtKeyword))return null;var n=this.mark(),r=this.create(Kn);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(Kn),s=this._parseMixinDeclarationIdentifier();s;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(s),s=a;else break}if(!i.setIdentifier(s))return this.restoreAtMark(r),null;var o=!1;if(this.accept(p.ParenthesisL)){if(o=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(i,S.RightParenthesisExpected);s.referenceTypes=[Y.Mixin]}else s.referenceTypes=[Y.Mixin,Y.Rule];return this.peek(p.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!o&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(Ht),r=this.mark(),i=this._parseVariable();return i&&(this.accept(p.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var n=this.create(Jn);if(this.peekKeyword("@rest")){var r=this.create(W);return this.consumeToken(),this.accept(Hi)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,S.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(Hi)){var i=this.create(W);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var s=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),s=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!s?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Xd);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(Yd);return this.consumeToken(),n.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(pn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,S.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(We);return n.referenceTypes=[Y.Function],this.consumeToken(),this.finish(n)}return t.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(W);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(Si),vp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=Ge(),yp=function(t){vp(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,s){for(var a=0,o=n;a 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:U("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:U("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:U("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:U("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:U("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:U("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:U("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:U("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:U("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:U("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:U("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:U("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:U("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:U("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:U("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:U("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:U("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:U("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:U("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:U("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:U("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:U("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:U("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:U("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:U("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:U("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:U("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:U("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:U("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:U("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:U("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:U("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:U("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:U("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:U("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:U("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:U("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(Di);function wp(t,e){var n=xp(t);return Sp(n,e)}function xp(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new Ol;case"less":return new Bl;default:return new dn}}function i(u,f){var m=e(u),g=n(u);return m!==g?{startLine:m,endLine:g,kind:f}:null}var s=[],a=[],o=r();o.ignoreComment=!1,o.setSource(t.getText());for(var l=o.scan(),c=null,h=function(){switch(l.type){case p.CurlyL:case mr:{a.push({line:e(l),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){var u=jl(a,"brace");if(!u)break;var f=n(l);u.type==="brace"&&(c&&n(c)!==f&&f--,u.line!==f&&s.push({startLine:u.line,endLine:f,kind:void 0}))}break}case p.Comment:{var m=function(x){return x==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},g=function(x){var w=x.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(w)return m(w[1]);if(t.languageId==="scss"||t.languageId==="less"){var k=x.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(k)return m(k[1])}return null},b=g(l);if(b)if(b.isStart)a.push(b);else{var u=jl(a,"comment");if(!u)break;u.type==="comment"&&u.line!==b.line&&s.push({startLine:u.line,endLine:b.line,kind:"region"})}else{var y=i(l,"comment");y&&s.push(y)}break}}c=l,l=o.scan()};l.type!==p.EOF;)h();return s}function jl(t,e){if(t.length===0)return null;for(var n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function Sp(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(a,o){var l=a.startLine-o.startLine;return l===0&&(l=a.endLine-o.endLine),l}),i=[],s=-1;return r.forEach(function(a){a.startLine=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(` +`,n.value+=e.references.map(function(r){return"[".concat(r.name,"](").concat(r.url,")")}).join(" | "),e.documentation=n}})}var lp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ol="/".charCodeAt(0),cp=` +`.charCodeAt(0),hp="\r".charCodeAt(0),dp="\f".charCodeAt(0),Gi="`".charCodeAt(0),Ji=".".charCodeAt(0),up=p.CustomToken,Xi=up++,Ul=function(t){lp(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([Ji,Ji,Ji])?this.finishToken(n,Xi):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Ol,Ol])?(this.stream.advanceWhileChar(function(n){switch(n){case cp:case hp:case dp:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===Gi?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Gi}),this.stream.advanceIfChar(Gi)?p.EscapedJavaScript:p.BadEscapedJavaScript):null},e}(mn),pp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fp=function(t){pp(e,t);function e(){return t.call(this,new Ul)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(ci);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(n,S.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,S.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(b.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(n):this.finish(n,S.SemiColonExpected):this.finish(n,S.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(uo);return r.addChild(this._parseVariable())?this.finish(r):null}return n},e.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(Yn),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=this.create(wn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(p.CurlyL))return null;var i=this.create(ce);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(p.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var n=this.create(U),r=this.mark();return this.accept(p.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(p.AtKeyword))return null;for(var s=this.create(mi),a=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(p.BracketL)&&!this._addLookupChildren(s)?(this.restoreAtMark(a),null):s},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){var n=this.createNode(b.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(b.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(n):this.finish(n,S.TermExpected)}return null},e.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||t.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([Y.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(n){var r=this.create(gn),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var s=this.mark();if(r.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(s),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(b.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(b.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},e.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),s=this.create(Te);s.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return n?s.isCustomProperty?a=s.addChild(this._parseIdent()):a=s.addChild(this._parseRegexp(r)):s.isCustomProperty?a=this._acceptInterpolatedIdent(s):a=this._acceptInterpolatedIdent(s,r),a?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(s)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,s=!1,a=function(){var l=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(l),null):i._parseInterpolation()},o=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(p.Ident)};(o()||n.addChild(this._parseInterpolation()||this.try(a)))&&(s=!0,!this.hasWhitespace()););return s},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(b.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(r):this.finish(r,S.RightCurlyExpected):this.finish(r,S.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(wn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(Te),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))n=this.create(Te),this.consumeToken();else return null;return n.referenceTypes=[Y.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(p.Colon))return null;var n=this.mark(),r=this.create(yn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(yn);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(p.AtKeyword))return null;var n=this.mark(),r=this.create(Kn);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(Kn),s=this._parseMixinDeclarationIdentifier();s;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(s),s=a;else break}if(!i.setIdentifier(s))return this.restoreAtMark(r),null;var o=!1;if(this.accept(p.ParenthesisL)){if(o=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(i,S.RightParenthesisExpected);s.referenceTypes=[Y.Mixin]}else s.referenceTypes=[Y.Mixin,Y.Rule];return this.peek(p.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!o&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(Gt),r=this.mark(),i=this._parseVariable();return i&&(this.accept(p.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var n=this.create(Jn);if(this.peekKeyword("@rest")){var r=this.create(U);return this.consumeToken(),this.accept(Xi)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,S.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(Xi)){var i=this.create(U);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var s=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),s=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!s?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Hd);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(Gd);return this.consumeToken(),n.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(bn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,S.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(Te);return n.referenceTypes=[Y.Function],this.consumeToken(),this.finish(n)}return t.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(U);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(_i),mp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=He(),gp=function(t){mp(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,s){for(var a=0,o=n;a 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:j("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:j("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:j("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:j("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:j("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:j("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:j("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:j("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:j("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:j("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:j("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:j("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:j("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:j("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:j("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:j("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:j("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:j("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:j("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:j("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:j("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:j("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:j("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:j("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:j("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:j("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:j("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:j("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:j("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:j("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:j("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:j("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:j("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:j("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:j("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:j("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:j("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(Ni);function bp(t,e){var n=vp(t);return yp(n,e)}function vp(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new Tl;case"less":return new Ul;default:return new mn}}function i(u,m){var f=e(u),g=n(u);return f!==g?{startLine:f,endLine:g,kind:m}:null}var s=[],a=[],o=r();o.ignoreComment=!1,o.setSource(t.getText());for(var l=o.scan(),c=null,h=function(){switch(l.type){case p.CurlyL:case mr:{a.push({line:e(l),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){var u=Vl(a,"brace");if(!u)break;var m=n(l);u.type==="brace"&&(c&&n(c)!==m&&m--,u.line!==m&&s.push({startLine:u.line,endLine:m,kind:void 0}))}break}case p.Comment:{var f=function(w){return w==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},g=function(w){var x=w.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(x)return f(x[1]);if(t.languageId==="scss"||t.languageId==="less"){var k=w.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(k)return f(k[1])}return null},v=g(l);if(v)if(v.isStart)a.push(v);else{var u=Vl(a,"comment");if(!u)break;u.type==="comment"&&u.line!==v.line&&s.push({startLine:u.line,endLine:v.line,kind:"region"})}else{var y=i(l,"comment");y&&s.push(y)}break}}c=l,l=o.scan()};l.type!==p.EOF;)h();return s}function Vl(t,e){if(t.length===0)return null;for(var n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function yp(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(a,o){var l=a.startLine-o.startLine;return l===0&&(l=a.endLine-o.endLine),l}),i=[],s=-1;return r.forEach(function(a){a.startLine=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(` `);c!==-1?this.__character_count=l.length-c:this.__character_count+=l.length},s.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function a(l,c){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),c=c||"",l.indent_level>0&&(c=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}a.prototype.get_indent_size=function(l,c){var h=this.__base_string_length;return c=c||0,l<0&&(h=0),h+=l*this.__indent_size,h+=c,h},a.prototype.get_indent_string=function(l,c){var h=this.__base_string;return c=c||0,l<0&&(l=0,h=""),c+=l*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},a.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var l=this.__cache.length,c=0,h="";this.__indent_size&&l>=this.__indent_size&&(c=Math.floor(l/this.__indent_size),l-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),l&&(h+=new Array(l+1).join(" ")),this.__cache.push(h)};function o(l,c){this.__indent_cache=new a(l,c),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(l,c){return this.__indent_cache.get_indent_string(l,c)},o.prototype.get_indent_size=function(l,c){return this.__indent_cache.get_indent_size(l,c)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(l){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===` `&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(` `);return l!==` @@ -53,16 +54,16 @@ Syntax: `.concat(ar(t.syntax)))}return t.references&&t.references.length>0&&(e== `+c+` You passed in: '`+this.raw_options[l]+"'");return u[0]},s.prototype._get_selection_list=function(l,c,h){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[c[0]],!this._is_valid_selection(h,c))throw new Error("Invalid Default Value!");var u=this._get_array(l,h);if(!this._is_valid_selection(u,c))throw new Error("Invalid Option Value: The option '"+l+`' can contain only the following values: `+c+` -You passed in: '`+this.raw_options[l]+"'");return u},s.prototype._is_valid_selection=function(l,c){return l.length&&c.length&&!l.some(function(h){return c.indexOf(h)===-1})};function a(l,c){var h={};l=o(l);var u;for(u in l)u!==c&&(h[u]=l[u]);if(c&&l[c])for(u in l[c])h[u]=l[c][u];return h}function o(l){var c={},h;for(h in l){var u=h.replace(/-/g,"_");c[u]=l[h]}return c}i.exports.Options=s,i.exports.normalizeOpts=o,i.exports.mergeOpts=a},,function(i){var s=RegExp.prototype.hasOwnProperty("sticky");function a(o){this.__input=o||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&o=0&&l=o.length&&this.__input.substring(l-o.length,l).toLowerCase()===o},i.exports.InputScanner=a},,,,,function(i){function s(a,o){a=typeof a=="string"?a:a.source,o=typeof o=="string"?o:o.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+o,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+o,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var o={};this.__directive_pattern.lastIndex=0;for(var l=this.__directive_pattern.exec(a);l;)o[l[1]]=l[2],l=this.__directive_pattern.exec(a);return o},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},i.exports.Directives=s},,function(i,s,a){var o=a(16).Beautifier,l=a(17).Options;function c(h,u){var f=new o(h,u);return f.beautify()}i.exports=c,i.exports.defaultOptions=function(){return new l}},function(i,s,a){var o=a(17).Options,l=a(2).Output,c=a(8).InputScanner,h=a(13).Directives,u=new h(/\/\*/,/\*\//),f=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,g=/\s/,b=/(?:\s|\n)+/g,y=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,x=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(k,R){this._source_text=k||"",this._options=new o(R),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}w.prototype.eatString=function(k){var R="";for(this._ch=this._input.next();this._ch;){if(R+=this._ch,this._ch==="\\")R+=this._input.next();else if(k.indexOf(this._ch)!==-1||this._ch===` -`)break;this._ch=this._input.next()}return R},w.prototype.eatWhitespace=function(k){for(var R=g.test(this._input.peek()),z=0;g.test(this._input.peek());)this._ch=this._input.next(),k&&this._ch===` -`&&(z===0||z0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var k=this._source_text,R=this._options.eol;R==="auto"&&(R=` -`,k&&f.test(k||"")&&(R=k.match(f)[0])),k=k.replace(m,` -`);var z=k.match(/^[\t ]*/)[0];this._output=new l(this._options,z),this._input=new c(k),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var $=0,X=!1,B=!1,P=!1,N=!1,A=!1,F=this._ch,L,V,K;L=this._input.read(b),V=L!=="",K=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var ie=this._input.read(y),E=u.get_directives(ie);E&&E.ignore==="start"&&(ie+=u.readIgnored(this._input)),this.print_string(ie),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(x)),this.eatWhitespace(!0);else if(this._ch==="@")if(this.preserveSingleSpace(V),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s$/,""),this.print_string(C),this._output.space_before_token=!0),C=C.replace(/\s$/,""),C==="extend"?N=!0:C==="import"&&(A=!0),C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(P=!0)):!X&&$===0&&C.indexOf(":")!==-1&&(B=!0,this.indent())}else this._ch==="#"&&this._input.peek()==="{"?(this.preserveSingleSpace(V),this.print_string(this._ch+this.eatString("}"))):this._ch==="{"?(B&&(B=!1,this.outdent()),P?(P=!1,X=this._indentLevel>=this._nestedLevel):X=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&X&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):this._ch==="}"?(this.outdent(),this._output.add_new_line(),K==="{"&&this._output.trim(!0),A=!1,N=!1,B&&(this.outdent(),B=!1),this.print_string(this._ch),X=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0)):this._ch===":"?(X||P)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!N&&$===0?(this.print_string(":"),B||(B=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):this._ch==='"'||this._ch==="'"?(this.preserveSingleSpace(V),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):this._ch===";"?$===0?(B&&(this.outdent(),B=!1),N=!1,A=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):this._ch==="("?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),$++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),$&&($--,this.outdent()))):(this.preserveSingleSpace(V),this.print_string(this._ch),this.eatWhitespace(),$++,this.indent()):this._ch===")"?($&&($--,this.outdent()),this.print_string(this._ch)):this._ch===","?(this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&!B&&$===0&&!A&&!N?this._output.add_new_line():this._output.space_before_token=!0):(this._ch===">"||this._ch==="+"||this._ch==="~")&&!B&&$===0?this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&g.test(this._ch)&&(this._ch="")):this._ch==="]"?this.print_string(this._ch):this._ch==="["?(this.preserveSingleSpace(V),this.print_string(this._ch)):this._ch==="="?(this.eatWhitespace(),this.print_string("="),g.test(this._ch)&&(this._ch="")):this._ch==="!"&&!this._input.lookBack("\\")?(this.print_string(" "),this.print_string(this._ch)):(this.preserveSingleSpace(V),this.print_string(this._ch));var D=this._output.get_code(R);return D},i.exports.Beautifier=w},function(i,s,a){var o=a(6).Options;function l(c){o.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var h=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||h;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var f=0;f0&&Gl(r,c-1);)c--;c===0||Hl(r,c-1)?l=c:c0){var b=n.insertSpaces?ao(" ",o*s):ao(" ",s);g=g.split(` +You passed in: '`+this.raw_options[l]+"'");return u},s.prototype._is_valid_selection=function(l,c){return l.length&&c.length&&!l.some(function(h){return c.indexOf(h)===-1})};function a(l,c){var h={};l=o(l);var u;for(u in l)u!==c&&(h[u]=l[u]);if(c&&l[c])for(u in l[c])h[u]=l[c][u];return h}function o(l){var c={},h;for(h in l){var u=h.replace(/-/g,"_");c[u]=l[h]}return c}i.exports.Options=s,i.exports.normalizeOpts=o,i.exports.mergeOpts=a},,function(i){var s=RegExp.prototype.hasOwnProperty("sticky");function a(o){this.__input=o||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&o=0&&l=o.length&&this.__input.substring(l-o.length,l).toLowerCase()===o},i.exports.InputScanner=a},,,,,function(i){function s(a,o){a=typeof a=="string"?a:a.source,o=typeof o=="string"?o:o.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+o,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+o,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var o={};this.__directive_pattern.lastIndex=0;for(var l=this.__directive_pattern.exec(a);l;)o[l[1]]=l[2],l=this.__directive_pattern.exec(a);return o},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},i.exports.Directives=s},,function(i,s,a){var o=a(16).Beautifier,l=a(17).Options;function c(h,u){var m=new o(h,u);return m.beautify()}i.exports=c,i.exports.defaultOptions=function(){return new l}},function(i,s,a){var o=a(17).Options,l=a(2).Output,c=a(8).InputScanner,h=a(13).Directives,u=new h(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,g=/\s/,v=/(?:\s|\n)+/g,y=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,w=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(k,P){this._source_text=k||"",this._options=new o(P),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}x.prototype.eatString=function(k){var P="";for(this._ch=this._input.next();this._ch;){if(P+=this._ch,this._ch==="\\")P+=this._input.next();else if(k.indexOf(this._ch)!==-1||this._ch===` +`)break;this._ch=this._input.next()}return P},x.prototype.eatWhitespace=function(k){for(var P=g.test(this._input.peek()),N=0;g.test(this._input.peek());)this._ch=this._input.next(),k&&this._ch===` +`&&(N===0||N0&&this._indentLevel--},x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var k=this._source_text,P=this._options.eol;P==="auto"&&(P=` +`,k&&m.test(k||"")&&(P=k.match(m)[0])),k=k.replace(f,` +`);var N=k.match(/^[\t ]*/)[0];this._output=new l(this._options,N),this._input=new c(k),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var V=0,T=!1,I=!1,D=!1,R=!1,E=!1,F=this._ch,W,q,K;W=this._input.read(v),q=W!=="",K=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var ae=this._input.read(y),A=u.get_directives(ae);A&&A.ignore==="start"&&(ae+=u.readIgnored(this._input)),this.print_string(ae),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(w)),this.eatWhitespace(!0);else if(this._ch==="@")if(this.preserveSingleSpace(q),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s$/,""),this.print_string(C),this._output.space_before_token=!0),C=C.replace(/\s$/,""),C==="extend"?R=!0:C==="import"&&(E=!0),C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(D=!0)):!T&&V===0&&C.indexOf(":")!==-1&&(I=!0,this.indent())}else this._ch==="#"&&this._input.peek()==="{"?(this.preserveSingleSpace(q),this.print_string(this._ch+this.eatString("}"))):this._ch==="{"?(I&&(I=!1,this.outdent()),D?(D=!1,T=this._indentLevel>=this._nestedLevel):T=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&T&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):this._ch==="}"?(this.outdent(),this._output.add_new_line(),K==="{"&&this._output.trim(!0),E=!1,R=!1,I&&(this.outdent(),I=!1),this.print_string(this._ch),T=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0)):this._ch===":"?(T||D)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!R&&V===0?(this.print_string(":"),I||(I=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):this._ch==='"'||this._ch==="'"?(this.preserveSingleSpace(q),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):this._ch===";"?V===0?(I&&(this.outdent(),I=!1),R=!1,E=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):this._ch==="("?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),V++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),V&&(V--,this.outdent()))):(this.preserveSingleSpace(q),this.print_string(this._ch),this.eatWhitespace(),V++,this.indent()):this._ch===")"?(V&&(V--,this.outdent()),this.print_string(this._ch)):this._ch===","?(this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&!I&&V===0&&!E&&!R?this._output.add_new_line():this._output.space_before_token=!0):(this._ch===">"||this._ch==="+"||this._ch==="~")&&!I&&V===0?this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&g.test(this._ch)&&(this._ch="")):this._ch==="]"?this.print_string(this._ch):this._ch==="["?(this.preserveSingleSpace(q),this.print_string(this._ch)):this._ch==="="?(this.eatWhitespace(),this.print_string("="),g.test(this._ch)&&(this._ch="")):this._ch==="!"&&!this._input.lookBack("\\")?(this.print_string(" "),this.print_string(this._ch)):(this.preserveSingleSpace(q),this.print_string(this._ch));var M=this._output.get_code(P);return M},i.exports.Beautifier=x},function(i,s,a){var o=a(6).Options;function l(c){o.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var h=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||h;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m0&&$l(r,c-1);)c--;c===0||ql(r,c-1)?l=c:c0){var v=n.insertSpaces?io(" ",o*s):io(" ",s);g=g.split(` `).join(` -`+b),e.start.character===0&&(g=b+g)}return[{range:e,newText:g}]}function $l(t){return t.replace(/^\s+/,"")}var _p="{".charCodeAt(0),Fp="}".charCodeAt(0);function Rp(t,e){for(;e>=0;){var n=t.charCodeAt(e);if(n===_p)return!0;if(n===Fp)return!1;e--}return!1}function ot(t,e,n){if(t&&t.hasOwnProperty(e)){var r=t[e];if(r!==null)return r}return n}function Ep(t,e,n){for(var r=e,i=0,s=n.tabSize||4;r && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:62,description:"Aligns a flex container’s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item’s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:53,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element’s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item’s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item’s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:72,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"