From 8fad9a5ecddc88d57a531e4b0084544984f23d25 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 16 Jul 2022 18:13:16 -0400 Subject: Added profile and other missing configs --- .../coc/extensions/node_modules/coc-css/Readme.md | 599 ++++++++++++ .../coc/extensions/node_modules/coc-css/esbuild.js | 51 + .../extensions/node_modules/coc-css/lib/index.js | 2 + .../extensions/node_modules/coc-css/lib/server.js | 88 ++ .../extensions/node_modules/coc-css/package.json | 1022 ++++++++++++++++++++ 5 files changed, 1762 insertions(+) create mode 100644 .config/coc/extensions/node_modules/coc-css/Readme.md create mode 100644 .config/coc/extensions/node_modules/coc-css/esbuild.js create mode 100644 .config/coc/extensions/node_modules/coc-css/lib/index.js create mode 100644 .config/coc/extensions/node_modules/coc-css/lib/server.js create mode 100644 .config/coc/extensions/node_modules/coc-css/package.json (limited to '.config/coc/extensions/node_modules/coc-css') diff --git a/.config/coc/extensions/node_modules/coc-css/Readme.md b/.config/coc/extensions/node_modules/coc-css/Readme.md new file mode 100644 index 0000000..b460da0 --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-css/Readme.md @@ -0,0 +1,599 @@ +# coc-css + +Css language server extension for [coc.nvim](https://github.com/neoclide/coc.nvim). + +Uses [vscode-css-languageservice](https://github.com/Microsoft/vscode-css-languageservice) inside. + +## Install + +In your vim/neovim, run the command: + +``` +:CocInstall coc-css +``` + +For scss files, you may need use: + +```vim +autocmd FileType scss setl iskeyword+=@-@ +``` + +in your vimrc for add `@` to iskeyword option. + +## Features + +Coc has support for all features that [vscode-css-languageservice](https://www.npmjs.com/package/vscode-css-languageservice) has. + +- `doValidation` analyzes an input string and returns syntax and lint errros. +- `doComplete` provides completion proposals for a given location. +- `doHover` provides a hover text for a given location. +- `findDefinition` finds the definition of the symbol at the given location. +- `findReferences` finds all references to the symbol at the given location. +- `findDocumentHighlights` finds all symbols connected to the given location. +- `findDocumentSymbols` provides all symbols in the given document +- `doCodeActions` evaluates code actions for the given location, typically to fix a problem. +- `findColorSymbols` evaluates all color symbols in the given document +- `doRename` renames all symbols connected to the given location. +- `getFoldingRanges` returns folding ranges in the given document. + +## Configuration options + +- **css.enable**: + + default: `true` + +- **css.trace.server**: + + Traces the communication between VS Code and the CSS language server, default: `"off"` + + Valid options: ["off","messages","verbose"] + +- **css.customData**: + + A list of relative file paths pointing to JSON files following the [custom data format](https://github.com/microsoft/vscode-css-languageservice/blob/master/docs/customData.md). coc.nvim loads custom data on startup to enhance its CSS support for the custom CSS properties, at directives, pseudo classes and pseudo elements you specify in the JSON files. The file paths are relative to workspace and only workspace folder settings are considered, default: `[]` + +- **css.completion.triggerPropertyValueCompletion**: + + By default, coc.nvim triggers property value completion after selecting a CSS property. Use this setting to disable this behavior, default: `true` + +- **css.completion.completePropertyWithSemicolon**: + + Insert semicolon at end of line when completing CSS properties, default: `true` + +- **css.validate**: + + Controls SCSS validation and problem severities, default: `true` + +- **css.hover.documentation**: + + Show tag and attribute documentation in SCSS hovers, default: `true` + +- **css.hover.references**: + + Show references to MDN in SCSS hovers, default: `true` + +- **css.colorDecorators.enable**: + + default: `true` + +- **css.lint.compatibleVendorPrefixes**: + + When using a vendor-specific prefix make sure to also include all other vendor-specific properties, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.vendorPrefix**: + + When using a vendor-specific prefix also include the standard property, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.duplicateProperties**: + + Do not use duplicate style definitions, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.emptyRules**: + + Do not use empty rulesets, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.importStatement**: + + Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.boxModel**: + + Do not use `width` or `height` when using `padding` or `border`, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.universalSelector**: + + The universal selector (`*`) is known to be slow, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.zeroUnits**: + + No unit for zero needed, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.fontFaceProperties**: + + `@font-face` rule must define `src` and `font-family` properties, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.hexColorLength**: + + Hex colors must consist of three or six hex numbers, default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.argumentsInColorFunction**: + + Invalid number of parameters, default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.unknownProperties**: + + Unknown property, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.validProperties**: + + A list of properties that are not validated against the `unknownProperties` rule, default: `[]` + +- **css.lint.ieHack**: + + IE hacks are only necessary when supporting IE7 and older, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.unknownVendorSpecificProperties**: + + Unknown vendor specific property, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.propertyIgnoredDueToDisplay**: + + Property is ignored due to the display. E.g. with `display: inline`, the `width`, `height`, `margin-top`, `margin-bottom`, and `float` properties have no effect, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.important**: + + Avoid using `!important`. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.float**: + + Avoid using `float`. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.idSelector**: + + Selectors should not contain IDs because these rules are too tightly coupled with the HTML, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **css.lint.unknownAtRules**: + + Unknown at-rule, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **scss.completion.triggerPropertyValueCompletion**: + + By default, coc.nvim triggers property value completion after selecting a CSS property. Use this setting to disable this behavior, default: `true` + +- **scss.completion.completePropertyWithSemicolon**: + + Insert semicolon at end of line when completing CSS properties, default: `true` + +- **scss.validate**: + + Controls SCSS validation and problem severities, default: `true` + +- **scss.colorDecorators.enable**: + + default: `true` + +- **scss.hover.documentation**: + + Show tag and attribute documentation in SCSS hovers, default: `true` + +- **scss.hover.references**: + + Show references to MDN in SCSS hovers, default: `true` + +- **scss.lint.compatibleVendorPrefixes**: + + When using a vendor-specific prefix make sure to also include all other vendor-specific properties, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.vendorPrefix**: + + When using a vendor-specific prefix, also include the standard property, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.duplicateProperties**: + + Do not use duplicate style definitions, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.emptyRules**: + + Do not use empty rulesets, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.importStatement**: + + Import statements do not load in parallel, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.boxModel**: + + Do not use `width` or `height` when using `padding` or `border`, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.universalSelector**: + + The universal selector (`*`) is known to be slow, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.zeroUnits**: + + No unit for zero needed, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.fontFaceProperties**: + + `@font-face` rule must define `src` and `font-family` properties, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.hexColorLength**: + + Hex colors must consist of three or six hex numbers, default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.argumentsInColorFunction**: + + Invalid number of parameters, default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.unknownProperties**: + + Unknown property, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.validProperties**: + + A list of properties that are not validated against the `unknownProperties` rule, default: `[]` + +- **scss.lint.ieHack**: + + IE hacks are only necessary when supporting IE7 and older, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.unknownVendorSpecificProperties**: + + Unknown vendor specific property, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.propertyIgnoredDueToDisplay**: + + Property is ignored due to the display. E.g. with `display: inline`, the `width`, `height`, `margin-top`, `margin-bottom`, and `float` properties have no effect, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.important**: + + Avoid using `!important`. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.float**: + + Avoid using `float`. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.idSelector**: + + Selectors should not contain IDs because these rules are too tightly coupled with the HTML, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **scss.lint.unknownAtRules**: + + Unknown at-rule, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.completion.triggerPropertyValueCompletion**: + + By default, coc.nvim triggers property value completion after selecting a CSS property. Use this setting to disable this behavior, default: `true` + +- **less.completion.completePropertyWithSemicolon**: + + Insert semicolon at end of line when completing CSS properties, default: `true` + +- **less.validate**: + + Enables or disables all validations, default: `true` + +- **less.colorDecorators.enable**: + + default: `true` + +- **less.hover.documentation**: + + Show tag and attribute documentation in LESS hovers, default: `true` + +- **less.hover.references**: + + Show references to MDN in LESS hovers, default: `true` + +- **less.lint.compatibleVendorPrefixes**: + + When using a vendor-specific prefix make sure to also include all other vendor-specific properties, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.vendorPrefix**: + + When using a vendor-specific prefix also include the standard property, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.duplicateProperties**: + + Do not use duplicate style definitions, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.emptyRules**: + + Do not use empty rulesets, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.importStatement**: + + Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.boxModel**: + + Do not use `width` or `height` when using `padding` or `border`, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.universalSelector**: + + The universal selector (\*) is known to be slow, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.zeroUnits**: + + No unit for zero needed, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.fontFaceProperties**: + + `@font-face` rule must define `src` and `font-family` properties, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.hexColorLength**: + + Hex colors must consist of three or six hex numbers, default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.argumentsInColorFunction**: + + Invalid number of parameters, default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.unknownProperties**: + + Unknown property, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.validProperties**: + + A list of properties that are not validated against the `unknownProperties` rule, default: `[]` + +- **less.lint.ieHack**: + + IE hacks are only necessary when supporting IE7 and older, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.unknownVendorSpecificProperties**: + + Unknown vendor specific property, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.propertyIgnoredDueToDisplay**: + + Property is ignored due to the display. E.g. with `display: inline`, the `width`, `height`, `margin-top`, `margin-bottom`, and `float` properties have no effect, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.important**: + + Avoid using `!important`. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.float**: + + Avoid using `float`. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.idSelector**: + + Selectors should not contain IDs because these rules are too tightly coupled with the HTML, default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **less.lint.unknownAtRules**: + + Unknown at-rule, default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **wxss.validate**: + + default: `true` + +- **wxss.colorDecorators.enable**: + + default: `true` + +- **wxss.lint.compatibleVendorPrefixes**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.vendorPrefix**: + + default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.duplicateProperties**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.emptyRules**: + + default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.importStatement**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.boxModel**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.universalSelector**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.zeroUnits**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.fontFaceProperties**: + + default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.hexColorLength**: + + default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.argumentsInColorFunction**: + + default: `"error"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.unknownProperties**: + + default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.ieHack**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.unknownVendorSpecificProperties**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.propertyIgnoredDueToDisplay**: + + default: `"warning"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.important**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.float**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +- **wxss.lint.idSelector**: + + default: `"ignore"` + + Valid options: ["ignore","warning","error"] + +## License + +MIT diff --git a/.config/coc/extensions/node_modules/coc-css/esbuild.js b/.config/coc/extensions/node_modules/coc-css/esbuild.js new file mode 100644 index 0000000..bd64151 --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-css/esbuild.js @@ -0,0 +1,51 @@ +const path = require('path') + +let entryPlugin = { + name: 'entry', + setup(build) { + build.onResolve({filter: /^(index|server)\.ts$/}, args => { + return { + path: args.path, + namespace: 'entry-ns' + } + }) + build.onLoad({filter: /.*/, namespace: 'entry-ns'}, args => { + let contents = '' + if (args.path == 'index.ts') { + contents = ` + import {activate} from './src/index' + export {activate} + ` + } else if (args.path == 'server.ts') { + contents = `require('./server/node/cssServerMain.ts')` + } else { + throw new Error('Bad path') + } + return { + contents, + resolveDir: __dirname + } + }) + } +} + +async function start() { + await require('esbuild').build({ + entryPoints: ['index.ts', 'server.ts'], + define: {'process.env.NODE_ENV': JSON.stringify("production")}, + bundle: true, + platform: 'node', + target: 'node12.16', + mainFields: ['module', 'main'], + minify: true, + sourcemap: true, + external: ['coc.nvim'], + outdir: path.resolve(__dirname, 'lib'), + plugins: [entryPlugin] + }) +} + +start().catch(e => { + console.error(e) +}) + diff --git a/.config/coc/extensions/node_modules/coc-css/lib/index.js b/.config/coc/extensions/node_modules/coc-css/lib/index.js new file mode 100644 index 0000000..0bb0daf --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-css/lib/index.js @@ -0,0 +1,2 @@ +var ne=Object.create;var T=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var se=Object.getPrototypeOf,ae=Object.prototype.hasOwnProperty;var K=l=>T(l,"__esModule",{value:!0});var he=(l,m)=>{for(var y in m)T(l,y,{get:m[y],enumerable:!0})},G=(l,m,y,d)=>{if(m&&typeof m=="object"||typeof m=="function")for(let f of ie(m))!ae.call(l,f)&&(y||f!=="default")&&T(l,f,{get:()=>m[f],enumerable:!(d=oe(m,f))||d.enumerable});return l},H=(l,m)=>G(K(T(l!=null?ne(se(l)):{},"default",!m&&l&&l.__esModule?{get:()=>l.default,enumerable:!0}:{value:l,enumerable:!0})),l),ue=(l=>(m,y)=>l&&l.get(m)||(y=G(K({}),m,1),l&&l.set(m,y),y))(typeof WeakMap!="undefined"?new WeakMap:0);var ce={};he(ce,{activate:()=>te});var j=H(require("coc.nvim"));var _=H(require("coc.nvim"));var Q;Q=(()=>{"use strict";var l={470:d=>{function f(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function w(t,o){for(var i,h="",c=0,u=-1,p=0,a=0;a<=t.length;++a){if(a2){var C=h.lastIndexOf("/");if(C!==h.length-1){C===-1?(h="",c=0):c=(h=h.slice(0,C)).length-1-h.lastIndexOf("/"),u=a,p=0;continue}}else if(h.length===2||h.length===1){h="",c=0,u=a,p=0;continue}}o&&(h.length>0?h+="/..":h="..",c=2)}else h.length>0?h+="/"+t.slice(u+1,a):h=t.slice(u+1,a),c=a-u-1;u=a,p=0}else i===46&&p!==-1?++p:p=-1}return h}var x={resolve:function(){for(var t,o="",i=!1,h=arguments.length-1;h>=-1&&!i;h--){var c;h>=0?c=arguments[h]:(t===void 0&&(t=process.cwd()),c=t),f(c),c.length!==0&&(o=c+"/"+o,i=c.charCodeAt(0)===47)}return o=w(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(t){if(f(t),t.length===0)return".";var o=t.charCodeAt(0)===47,i=t.charCodeAt(t.length-1)===47;return(t=w(t,!o)).length!==0||o||(t="."),t.length>0&&i&&(t+="/"),o?"/"+t:t},isAbsolute:function(t){return f(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,o=0;o0&&(t===void 0?t=i:t+="/"+i)}return t===void 0?".":x.normalize(t)},relative:function(t,o){if(f(t),f(o),t===o||(t=x.resolve(t))===(o=x.resolve(o)))return"";for(var i=1;ia){if(o.charCodeAt(u+A)===47)return o.slice(u+A+1);if(A===0)return o.slice(u+A)}else c>a&&(t.charCodeAt(i+A)===47?C=A:A===0&&(C=0));break}var S=t.charCodeAt(i+A);if(S!==o.charCodeAt(u+A))break;S===47&&(C=A)}var E="";for(A=i+C+1;A<=h;++A)A!==h&&t.charCodeAt(A)!==47||(E.length===0?E+="..":E+="/..");return E.length>0?E+o.slice(u+C):(u+=C,o.charCodeAt(u)===47&&++u,o.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(f(t),t.length===0)return".";for(var o=t.charCodeAt(0),i=o===47,h=-1,c=!0,u=t.length-1;u>=1;--u)if((o=t.charCodeAt(u))===47){if(!c){h=u;break}}else c=!1;return h===-1?i?"/":".":i&&h===1?"//":t.slice(0,h)},basename:function(t,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');f(t);var i,h=0,c=-1,u=!0;if(o!==void 0&&o.length>0&&o.length<=t.length){if(o.length===t.length&&o===t)return"";var p=o.length-1,a=-1;for(i=t.length-1;i>=0;--i){var C=t.charCodeAt(i);if(C===47){if(!u){h=i+1;break}}else a===-1&&(u=!1,a=i+1),p>=0&&(C===o.charCodeAt(p)?--p==-1&&(c=i):(p=-1,c=a))}return h===c?c=a:c===-1&&(c=t.length),t.slice(h,c)}for(i=t.length-1;i>=0;--i)if(t.charCodeAt(i)===47){if(!u){h=i+1;break}}else c===-1&&(u=!1,c=i+1);return c===-1?"":t.slice(h,c)},extname:function(t){f(t);for(var o=-1,i=0,h=-1,c=!0,u=0,p=t.length-1;p>=0;--p){var a=t.charCodeAt(p);if(a!==47)h===-1&&(c=!1,h=p+1),a===46?o===-1?o=p:u!==1&&(u=1):o!==-1&&(u=-1);else if(!c){i=p+1;break}}return o===-1||h===-1||u===0||u===1&&o===h-1&&o===i+1?"":t.slice(o,h)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(o,i){var h=i.dir||i.root,c=i.base||(i.name||"")+(i.ext||"");return h?h===i.root?h+c:h+"/"+c:c}(0,t)},parse:function(t){f(t);var o={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return o;var i,h=t.charCodeAt(0),c=h===47;c?(o.root="/",i=1):i=0;for(var u=-1,p=0,a=-1,C=!0,A=t.length-1,S=0;A>=i;--A)if((h=t.charCodeAt(A))!==47)a===-1&&(C=!1,a=A+1),h===46?u===-1?u=A:S!==1&&(S=1):u!==-1&&(S=-1);else if(!C){p=A+1;break}return u===-1||a===-1||S===0||S===1&&u===a-1&&u===p+1?a!==-1&&(o.base=o.name=p===0&&c?t.slice(1,a):t.slice(p,a)):(p===0&&c?(o.name=t.slice(1,u),o.base=t.slice(1,a)):(o.name=t.slice(p,u),o.base=t.slice(p,a)),o.ext=t.slice(u,a)),p>0?o.dir=t.slice(0,p-1):c&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};x.posix=x,d.exports=x},447:(d,f,w)=>{var x;if(w.r(f),w.d(f,{URI:()=>S,Utils:()=>z}),typeof process=="object")x=process.platform==="win32";else if(typeof navigator=="object"){var t=navigator.userAgent;x=t.indexOf("Windows")>=0}var o,i,h=(o=function(n,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&(r[b]=s[b])})(n,e)},function(n,e){function r(){this.constructor=n}o(n,e),n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),c=/^\w[\w\d+.-]*$/,u=/^\//,p=/^\/\//,a="",C="/",A=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,S=function(){function n(e,r,s,b,g,v){v===void 0&&(v=!1),typeof e=="object"?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(P,O){return P||O?P:"file"}(e,v),this.authority=r||a,this.path=function(P,O){switch(P){case"https":case"http":case"file":O?O[0]!==C&&(O=C+O):O=C}return O}(this.scheme,s||a),this.query=b||a,this.fragment=g||a,function(P,O){if(!P.scheme&&O)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+P.authority+'", path: "'+P.path+'", query: "'+P.query+'", fragment: "'+P.fragment+'"}');if(P.scheme&&!c.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!u.test(P.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(p.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,v))}return n.isUri=function(e){return e instanceof n||!!e&&typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function"},Object.defineProperty(n.prototype,"fsPath",{get:function(){return W(this,!1)},enumerable:!1,configurable:!0}),n.prototype.with=function(e){if(!e)return this;var r=e.scheme,s=e.authority,b=e.path,g=e.query,v=e.fragment;return r===void 0?r=this.scheme:r===null&&(r=a),s===void 0?s=this.authority:s===null&&(s=a),b===void 0?b=this.path:b===null&&(b=a),g===void 0?g=this.query:g===null&&(g=a),v===void 0?v=this.fragment:v===null&&(v=a),r===this.scheme&&s===this.authority&&b===this.path&&g===this.query&&v===this.fragment?this:new k(r,s,b,g,v)},n.parse=function(e,r){r===void 0&&(r=!1);var s=A.exec(e);return s?new k(s[2]||a,q(s[4]||a),q(s[5]||a),q(s[7]||a),q(s[9]||a),r):new k(a,a,a,a,a)},n.file=function(e){var r=a;if(x&&(e=e.replace(/\\/g,C)),e[0]===C&&e[1]===C){var s=e.indexOf(C,2);s===-1?(r=e.substring(2),e=C):(r=e.substring(2,s),e=e.substring(s)||C)}return new k("file",r,e,a,a)},n.from=function(e){return new k(e.scheme,e.authority,e.path,e.query,e.fragment)},n.prototype.toString=function(e){return e===void 0&&(e=!1),N(this,e)},n.prototype.toJSON=function(){return this},n.revive=function(e){if(e){if(e instanceof n)return e;var r=new k(e);return r._formatted=e.external,r._fsPath=e._sep===E?e.fsPath:null,r}return e},n}(),E=x?1:void 0,k=function(n){function e(){var r=n!==null&&n.apply(this,arguments)||this;return r._formatted=null,r._fsPath=null,r}return h(e,n),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=W(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(r){return r===void 0&&(r=!1),r?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)},e.prototype.toJSON=function(){var r={$mid:1};return this._fsPath&&(r.fsPath=this._fsPath,r._sep=E),this._formatted&&(r.external=this._formatted),this.path&&(r.path=this.path),this.scheme&&(r.scheme=this.scheme),this.authority&&(r.authority=this.authority),this.query&&(r.query=this.query),this.fragment&&(r.fragment=this.fragment),r},e}(S),B=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function J(n,e){for(var r=void 0,s=-1,b=0;b=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===45||g===46||g===95||g===126||e&&g===47)s!==-1&&(r+=encodeURIComponent(n.substring(s,b)),s=-1),r!==void 0&&(r+=n.charAt(b));else{r===void 0&&(r=n.substr(0,b));var v=B[g];v!==void 0?(s!==-1&&(r+=encodeURIComponent(n.substring(s,b)),s=-1),r+=v):s===-1&&(s=b)}}return s!==-1&&(r+=encodeURIComponent(n.substring(s))),r!==void 0?r:n}function re(n){for(var e=void 0,r=0;r1&&n.scheme==="file"?"//"+n.authority+n.path:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?n.path.substr(1):n.path[1].toLowerCase()+n.path.substr(2):n.path,x&&(r=r.replace(/\//g,"\\")),r}function N(n,e){var r=e?re:J,s="",b=n.scheme,g=n.authority,v=n.path,P=n.query,O=n.fragment;if(b&&(s+=b,s+=":"),(g||b==="file")&&(s+=C,s+=C),g){var U=g.indexOf("@");if(U!==-1){var R=g.substr(0,U);g=g.substr(U+1),(U=R.indexOf(":"))===-1?s+=r(R,!1):(s+=r(R.substr(0,U),!1),s+=":",s+=r(R.substr(U+1),!1)),s+="@"}(U=(g=g.toLowerCase()).indexOf(":"))===-1?s+=r(g,!1):(s+=r(g.substr(0,U),!1),s+=g.substr(U))}if(v){if(v.length>=3&&v.charCodeAt(0)===47&&v.charCodeAt(2)===58)(D=v.charCodeAt(1))>=65&&D<=90&&(v="/"+String.fromCharCode(D+32)+":"+v.substr(3));else if(v.length>=2&&v.charCodeAt(1)===58){var D;(D=v.charCodeAt(0))>=65&&D<=90&&(v=String.fromCharCode(D+32)+":"+v.substr(2))}s+=r(v,!0)}return P&&(s+="?",s+=r(P,!1)),O&&(s+="#",s+=e?O:J(O,!1)),s}function M(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+M(n.substr(3)):n}}var V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function q(n){return n.match(V)?n.replace(V,function(e){return M(e)}):n}var z,Z=w(470),$=function(){for(var n=0,e=0,r=arguments.length;e{for(var w in f)y.o(f,w)&&!y.o(d,w)&&Object.defineProperty(d,w,{enumerable:!0,get:f[w]})},y.o=(d,f)=>Object.prototype.hasOwnProperty.call(d,f),y.r=d=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},y(447)})();var{URI:le,Utils:F}=Q;function X(l){let m=Y(),y=ee(),d=new _.Emitter;return l.push(_.extensions.onDidActiveExtension(f=>{let w=ee();(w.length!==y.length||!w.every((x,t)=>x===y[t]))&&(y=w,d.fire())})),l.push(_.workspace.onDidChangeConfiguration(f=>{f.affectsConfiguration("css.customData")&&(m=Y(),d.fire())})),{get uris(){return m.concat(y)},get onDidChange(){return d.event}}}function Y(){let l=_.workspace.workspaceFolders,m=[];if(!l)return m;let y=(d,f)=>{if(Array.isArray(d))for(let w of d)typeof w=="string"&&m.push(F.resolvePath(f,w).toString())};for(let d=0;d{m.type=new j.NotificationType("css/customDataChanged")})(L||(L={}));async function te(l){let{subscriptions:m}=l,y=j.workspace.getConfiguration().get("css",{});if(!y.enable)return;let d=l.asAbsolutePath("./lib/server.js"),f=["css","less","scss","wxss"],w=X(l.subscriptions),x={module:d,transport:j.TransportKind.ipc,options:{cwd:j.workspace.root,execArgv:y.execArgv||[]}},t={documentSelector:f,synchronize:{configurationSection:["css","less","scss","wxss"]},outputChannelName:"css",initializationOptions:{handledSchemas:["file"]},middleware:{}},o=new j.LanguageClient("css","Css language server",x,t);o.onReady().then(()=>{o.sendNotification(L.type,w.uris),w.onDidChange(()=>{o.sendNotification(L.type,w.uris)})}),m.push(j.services.registLanguageClient(o))}module.exports=ue(ce);0&&(module.exports={activate}); +//# sourceMappingURL=index.js.map diff --git a/.config/coc/extensions/node_modules/coc-css/lib/server.js b/.config/coc/extensions/node_modules/coc-css/lib/server.js new file mode 100644 index 0000000..7f9afb9 --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-css/lib/server.js @@ -0,0 +1,88 @@ +var im=Object.create;var ki=Object.defineProperty;var om=Object.getOwnPropertyDescriptor;var sm=Object.getOwnPropertyNames;var am=Object.getPrototypeOf,lm=Object.prototype.hasOwnProperty;var _l=t=>ki(t,"__esModule",{value:!0});var H=(t,e)=>()=>(t&&(e=t(t=0)),e);var U=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cm=(t,e)=>{for(var n in e)ki(t,n,{get:e[n],enumerable:!0})},zl=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of sm(e))!lm.call(t,i)&&(n||i!=="default")&&ki(t,i,{get:()=>e[i],enumerable:!(r=om(e,i))||r.enumerable});return t},Xe=(t,e)=>zl(_l(ki(t!=null?im(am(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Ml=(t=>(e,n)=>t&&t.get(e)||(n=zl(_l({}),e,1),t&&t.set(e,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Ci=U(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.thenable=De.typedArray=De.stringArray=De.array=De.func=De.error=De.number=De.string=De.boolean=void 0;function dm(t){return t===!0||t===!1}De.boolean=dm;function Nl(t){return typeof t=="string"||t instanceof String}De.string=Nl;function pm(t){return typeof t=="number"||t instanceof Number}De.number=pm;function hm(t){return t instanceof Error}De.error=hm;function Il(t){return typeof t=="function"}De.func=Il;function Al(t){return Array.isArray(t)}De.array=Al;function um(t){return Al(t)&&t.every(e=>Nl(e))}De.stringArray=um;function mm(t,e){return Array.isArray(t)&&t.every(e)}De.typedArray=mm;function fm(t){return t&&Il(t.then)}De.thenable=fm});var Kt=U(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var es;function ts(){if(es===void 0)throw new Error("No runtime abstraction layer installed");return es}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");es=n}t.install=e})(ts||(ts={}));ns.default=ts});var rs=U(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Disposable=void 0;var gm;(function(t){function e(n){return{dispose:n}}t.create=e})(gm=Mr.Disposable||(Mr.Disposable={}))});var Wl=U(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.AbstractMessageBuffer=void 0;var bm=13,vm=10,ym=`\r +`,Ol=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,n=0,r=0,i=0;e:for(;nthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let n=this.allocNative(e),r=0,i=0;for(;e>0;){let o=this._chunks[i];if(o.byteLength>e){let s=o.slice(0,e);n.set(s,r),r+=e,this._chunks[i]=o.slice(e),this._totalLength-=e,e-=e}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return n}};Ri.AbstractMessageBuffer=Ol});var Bl=U(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var wm=Kt(),ql=require("util"),Dn=rs(),xm=Wl(),Nr=class extends xm.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return Nr.emptyBuffer}fromString(e,n){return Buffer.from(e,n)}toString(e,n){return e instanceof Buffer?e.toString(n):new ql.TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,n):Buffer.from(e,0,n)}allocNative(e){return Buffer.allocUnsafe(e)}};Nr.emptyBuffer=Buffer.allocUnsafe(0);var Ll=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Dn.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Dn.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Dn.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Dn.Disposable.create(()=>this.stream.off("data",e))}},jl=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Dn.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Dn.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Dn.Disposable.create(()=>this.stream.off("end",e))}write(e,n){return new Promise((r,i)=>{let o=s=>{s==null?r():i(s)};typeof e=="string"?this.stream.write(e,n,o):this.stream.write(e,o)})}end(){this.stream.end()}},Ul=Object.freeze({messageBuffer:Object.freeze({create:t=>new Nr(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(n){return Promise.reject(n)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new ql.TextDecoder(e.charset).decode(t)))}catch(n){return Promise.reject(n)}}})}),stream:Object.freeze({asReadableStream:t=>new Ll(t),asWritableStream:t=>new jl(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){return setTimeout(t,e,...n)},clearTimeout(t){clearTimeout(t)},setImmediate(t,...e){return setImmediate(t,...e)},clearImmediate(t){clearImmediate(t)}})});function is(){return Ul}(function(t){function e(){wm.default.install(Ul)}t.install=e})(is||(is={}));os.default=is});var Vn=U(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.stringArray=Ye.array=Ye.func=Ye.error=Ye.number=Ye.string=Ye.boolean=void 0;function Sm(t){return t===!0||t===!1}Ye.boolean=Sm;function Vl(t){return typeof t=="string"||t instanceof String}Ye.string=Vl;function km(t){return typeof t=="number"||t instanceof Number}Ye.number=km;function Cm(t){return t instanceof Error}Ye.error=Cm;function Rm(t){return typeof t=="function"}Ye.func=Rm;function $l(t){return Array.isArray(t)}Ye.array=$l;function Fm(t){return $l(t)&&t.every(e=>Vl(e))}Ye.stringArray=Fm});var ss=U(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.isResponseMessage=L.isNotificationMessage=L.isRequestMessage=L.NotificationType9=L.NotificationType8=L.NotificationType7=L.NotificationType6=L.NotificationType5=L.NotificationType4=L.NotificationType3=L.NotificationType2=L.NotificationType1=L.NotificationType0=L.NotificationType=L.RequestType9=L.RequestType8=L.RequestType7=L.RequestType6=L.RequestType5=L.RequestType4=L.RequestType3=L.RequestType2=L.RequestType1=L.RequestType=L.RequestType0=L.AbstractMessageSignature=L.ParameterStructures=L.ResponseError=L.ErrorCodes=void 0;var En=Vn(),Kl;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=t.jsonrpcReservedErrorRangeStart,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=t.jsonrpcReservedErrorRangeEnd})(Kl=L.ErrorCodes||(L.ErrorCodes={}));var Fi=class extends Error{constructor(e,n,r){super(n);this.code=En.number(e)?e:Kl.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Fi.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}};L.ResponseError=Fi;var Be=class{constructor(e){this.kind=e}static is(e){return e===Be.auto||e===Be.byName||e===Be.byPosition}toString(){return this.kind}};L.ParameterStructures=Be;Be.auto=new Be("auto");Be.byPosition=new Be("byPosition");Be.byName=new Be("byName");var ye=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return Be.auto}};L.AbstractMessageSignature=ye;var Hl=class extends ye{constructor(e){super(e,0)}};L.RequestType0=Hl;var Gl=class extends ye{constructor(e,n=Be.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};L.RequestType=Gl;var Jl=class extends ye{constructor(e,n=Be.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};L.RequestType1=Jl;var Xl=class extends ye{constructor(e){super(e,2)}};L.RequestType2=Xl;var Yl=class extends ye{constructor(e){super(e,3)}};L.RequestType3=Yl;var Ql=class extends ye{constructor(e){super(e,4)}};L.RequestType4=Ql;var Zl=class extends ye{constructor(e){super(e,5)}};L.RequestType5=Zl;var ec=class extends ye{constructor(e){super(e,6)}};L.RequestType6=ec;var tc=class extends ye{constructor(e){super(e,7)}};L.RequestType7=tc;var nc=class extends ye{constructor(e){super(e,8)}};L.RequestType8=nc;var rc=class extends ye{constructor(e){super(e,9)}};L.RequestType9=rc;var ic=class extends ye{constructor(e,n=Be.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};L.NotificationType=ic;var oc=class extends ye{constructor(e){super(e,0)}};L.NotificationType0=oc;var sc=class extends ye{constructor(e,n=Be.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};L.NotificationType1=sc;var ac=class extends ye{constructor(e){super(e,2)}};L.NotificationType2=ac;var lc=class extends ye{constructor(e){super(e,3)}};L.NotificationType3=lc;var cc=class extends ye{constructor(e){super(e,4)}};L.NotificationType4=cc;var dc=class extends ye{constructor(e){super(e,5)}};L.NotificationType5=dc;var pc=class extends ye{constructor(e){super(e,6)}};L.NotificationType6=pc;var hc=class extends ye{constructor(e){super(e,7)}};L.NotificationType7=hc;var uc=class extends ye{constructor(e){super(e,8)}};L.NotificationType8=uc;var mc=class extends ye{constructor(e){super(e,9)}};L.NotificationType9=mc;function Dm(t){let e=t;return e&&En.string(e.method)&&(En.string(e.id)||En.number(e.id))}L.isRequestMessage=Dm;function Em(t){let e=t;return e&&En.string(e.method)&&t.id===void 0}L.isNotificationMessage=Em;function Pm(t){let e=t;return e&&(e.result!==void 0||!!e.error)&&(En.string(e.id)||En.number(e.id)||e.id===null)}L.isResponseMessage=Pm});var $n=U(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.Emitter=Pn.Event=void 0;var Tm=Kt(),_m;(function(t){let e={dispose(){}};t.None=function(){return e}})(_m=Pn.Event||(Pn.Event={}));var fc=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i{this._callbacks||(this._callbacks=new fc),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,n),i.dispose=Ir._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Pn.Emitter=Ir;Ir._noop=function(){}});var ds=U(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.CancellationTokenSource=Tn.CancellationToken=void 0;var gc=Kt(),zm=Vn(),as=$n(),ls;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:as.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:as.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||zm.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(ls=Tn.CancellationToken||(Tn.CancellationToken={}));var Mm=Object.freeze(function(t,e){let n=gc.default().timer.setTimeout(t.bind(e),0);return{dispose(){gc.default().timer.clearTimeout(n)}}}),cs=class{constructor(){this._isCancelled=!1}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?Mm:(this._emitter||(this._emitter=new as.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},bc=class{get token(){return this._token||(this._token=new cs),this._token}cancel(){this._token?this._token.cancel():this._token=ls.Cancelled}dispose(){this._token?this._token instanceof cs&&this._token.dispose():this._token=ls.None}};Tn.CancellationTokenSource=bc});var yc=U(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ReadableStreamMessageReader=Ht.AbstractMessageReader=Ht.MessageReader=void 0;var Di=Kt(),Kn=Vn(),ps=$n(),Nm;(function(t){function e(n){let r=n;return r&&Kn.func(r.listen)&&Kn.func(r.dispose)&&Kn.func(r.onError)&&Kn.func(r.onClose)&&Kn.func(r.onPartialMessage)}t.is=e})(Nm=Ht.MessageReader||(Ht.MessageReader={}));var hs=class{constructor(){this.errorEmitter=new ps.Emitter,this.closeEmitter=new ps.Emitter,this.partialMessageEmitter=new ps.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Kn.string(e.message)?e.message:"unknown"}`)}};Ht.AbstractMessageReader=hs;var us;(function(t){function e(n){var r;let i,o,s,a=new Map,c,l=new Map;if(n===void 0||typeof n=="string")i=n!=null?n:"utf-8";else{if(i=(r=n.charset)!==null&&r!==void 0?r:"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,a.set(s.name,s)),n.contentDecoders!==void 0)for(let p of n.contentDecoders)a.set(p.name,p);if(n.contentTypeDecoder!==void 0&&(c=n.contentTypeDecoder,l.set(c.name,c)),n.contentTypeDecoders!==void 0)for(let p of n.contentTypeDecoders)l.set(p.name,p)}return c===void 0&&(c=Di.default().applicationJson.decoder,l.set(c.name,c)),{charset:i,contentDecoder:s,contentDecoders:a,contentTypeDecoder:c,contentTypeDecoders:l}}t.fromOptions=e})(us||(us={}));var vc=class extends hs{constructor(e,n){super();this.readable=e,this.options=us.fromOptions(n),this.buffer=Di.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders();if(!i)return;let o=i.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let s=parseInt(o);if(isNaN(s))throw new Error("Content-Length value must be a number.");this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let r;this.options.contentDecoder!==void 0?r=this.options.contentDecoder.decode(n):r=Promise.resolve(n),r.then(i=>{this.options.contentTypeDecoder.decode(i,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(Di.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=Di.default().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Ht.ReadableStreamMessageReader=vc});var xc=U(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.Semaphore=void 0;var Im=Kt(),wc=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||Im.default().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Ei.Semaphore=wc});var Fc=U(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.WriteableStreamMessageWriter=Gt.AbstractMessageWriter=Gt.MessageWriter=void 0;var Sc=Kt(),Ar=Vn(),Am=xc(),kc=$n(),Om="Content-Length: ",Cc=`\r +`,Wm;(function(t){function e(n){let r=n;return r&&Ar.func(r.dispose)&&Ar.func(r.onClose)&&Ar.func(r.onError)&&Ar.func(r.write)}t.is=e})(Wm=Gt.MessageWriter||(Gt.MessageWriter={}));var ms=class{constructor(){this.errorEmitter=new kc.Emitter,this.closeEmitter=new kc.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${Ar.string(e.message)?e.message:"unknown"}`)}};Gt.AbstractMessageWriter=ms;var fs;(function(t){function e(n){var r,i;return n===void 0||typeof n=="string"?{charset:n!=null?n:"utf-8",contentTypeEncoder:Sc.default().applicationJson.encoder}:{charset:(r=n.charset)!==null&&r!==void 0?r:"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:(i=n.contentTypeEncoder)!==null&&i!==void 0?i:Sc.default().applicationJson.encoder}}t.fromOptions=e})(fs||(fs={}));var Rc=class extends ms{constructor(e,n){super();this.writable=e,this.options=fs.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Am.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(Om,r.byteLength.toString(),Cc),i.push(Cc),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};Gt.WriteableStreamMessageWriter=Rc});var Ec=U(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.LRUCache=Jt.LinkedMap=Jt.Touch=void 0;var tt;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(tt=Jt.Touch||(Jt.Touch={}));var gs=class{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,n=tt.None){let r=this._map.get(e);if(!!r)return n!==tt.None&&this.touch(r,n),r.value}set(e,n,r=tt.None){let i=this._map.get(e);if(i)i.value=n,r!==tt.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case tt.None:this.addItemLast(i);break;case tt.First:this.addItemFirst(i);break;case tt.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(!!n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let o={value:r.key,done:!1};return r=r.next,o}else return{value:void 0,done:!0}}};return i}values(){let e=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let o={value:r.value,done:!1};return r=r.next,o}else return{value:void 0,done:!0}}};return i}entries(){let e=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let o={value:[r.key,r.value],done:!1};return r=r.next,o}else return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==tt.First&&n!==tt.Last)){if(n===tt.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===tt.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};Jt.LinkedMap=gs;var Dc=class extends gs{constructor(e,n=1){super();this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=tt.AsNew){return super.get(e,n)}peek(e){return super.get(e,tt.None)}set(e,n){return super.set(e,n,tt.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Jt.LRUCache=Dc});var Nc=U(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createMessageConnection=J.ConnectionOptions=J.CancellationStrategy=J.CancellationSenderStrategy=J.CancellationReceiverStrategy=J.ConnectionStrategy=J.ConnectionError=J.ConnectionErrors=J.LogTraceNotification=J.SetTraceNotification=J.TraceFormat=J.Trace=J.NullLogger=J.ProgressType=void 0;var Pc=Kt(),We=Vn(),G=ss(),Tc=Ec(),Or=$n(),bs=ds(),Wr;(function(t){t.type=new G.NotificationType("$/cancelRequest")})(Wr||(Wr={}));var Pi;(function(t){t.type=new G.NotificationType("$/progress")})(Pi||(Pi={}));var _c=class{constructor(){}};J.ProgressType=_c;var vs;(function(t){function e(n){return We.func(n)}t.is=e})(vs||(vs={}));J.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var Ee;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Verbose=2]="Verbose"})(Ee=J.Trace||(J.Trace={}));(function(t){function e(r){if(!We.string(r))return t.Off;switch(r=r.toLowerCase(),r){case"off":return t.Off;case"messages":return t.Messages;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(r){switch(r){case t.Off:return"off";case t.Messages:return"messages";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})(Ee=J.Trace||(J.Trace={}));var Rt;(function(t){t.Text="text",t.JSON="json"})(Rt=J.TraceFormat||(J.TraceFormat={}));(function(t){function e(n){return n=n.toLowerCase(),n==="json"?t.JSON:t.Text}t.fromString=e})(Rt=J.TraceFormat||(J.TraceFormat={}));var zc;(function(t){t.type=new G.NotificationType("$/setTrace")})(zc=J.SetTraceNotification||(J.SetTraceNotification={}));var ys;(function(t){t.type=new G.NotificationType("$/logTrace")})(ys=J.LogTraceNotification||(J.LogTraceNotification={}));var Ti;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(Ti=J.ConnectionErrors||(J.ConnectionErrors={}));var _n=class extends Error{constructor(e,n){super(n);this.code=e,Object.setPrototypeOf(this,_n.prototype)}};J.ConnectionError=_n;var Mc;(function(t){function e(n){let r=n;return r&&We.func(r.cancelUndispatched)}t.is=e})(Mc=J.ConnectionStrategy||(J.ConnectionStrategy={}));var ws;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new bs.CancellationTokenSource}});function e(n){let r=n;return r&&We.func(r.createCancellationTokenSource)}t.is=e})(ws=J.CancellationReceiverStrategy||(J.CancellationReceiverStrategy={}));var xs;(function(t){t.Message=Object.freeze({sendCancellation(n,r){n.sendNotification(Wr.type,{id:r})},cleanup(n){}});function e(n){let r=n;return r&&We.func(r.sendCancellation)&&We.func(r.cleanup)}t.is=e})(xs=J.CancellationSenderStrategy||(J.CancellationSenderStrategy={}));var Ss;(function(t){t.Message=Object.freeze({receiver:ws.Message,sender:xs.Message});function e(n){let r=n;return r&&ws.is(r.receiver)&&xs.is(r.sender)}t.is=e})(Ss=J.CancellationStrategy||(J.CancellationStrategy={}));var qm;(function(t){function e(n){let r=n;return r&&(Ss.is(r.cancellationStrategy)||Mc.is(r.connectionStrategy))}t.is=e})(qm=J.ConnectionOptions||(J.ConnectionOptions={}));var Ft;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(Ft||(Ft={}));function Lm(t,e,n,r){let i=n!==void 0?n:J.NullLogger,o=0,s=0,a=0,c="2.0",l,p=Object.create(null),m,g=Object.create(null),y=new Map,k,T=new Tc.LinkedMap,R=Object.create(null),b=Object.create(null),v=Ee.Off,E=Rt.Text,V,x=Ft.New,O=new Or.Emitter,z=new Or.Emitter,ee=new Or.Emitter,xe=new Or.Emitter,bt=new Or.Emitter,Ze=r&&r.cancellationStrategy?r.cancellationStrategy:Ss.Message;function pt(f){if(f===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+f.toString()}function Ae(f){return f===null?"res-unknown-"+(++a).toString():"res-"+f.toString()}function ke(){return"not-"+(++s).toString()}function ht(f,F){G.isRequestMessage(F)?f.set(pt(F.id),F):G.isResponseMessage(F)?f.set(Ae(F.id),F):f.set(ke(),F)}function M(f){}function C(){return x===Ft.Listening}function P(){return x===Ft.Closed}function N(){return x===Ft.Disposed}function ne(){(x===Ft.New||x===Ft.Listening)&&(x=Ft.Closed,z.fire(void 0))}function Y(f){O.fire([f,void 0,void 0])}function re(f){O.fire(f)}t.onClose(ne),t.onError(Y),e.onClose(ne),e.onError(re);function fe(){k||T.size===0||(k=Pc.default().timer.setImmediate(()=>{k=void 0,ze()}))}function ze(){if(T.size===0)return;let f=T.shift();try{G.isRequestMessage(f)?It(f):G.isNotificationMessage(f)?xi(f):G.isResponseMessage(f)?Ct(f):Tr(f)}finally{fe()}}let et=f=>{try{if(G.isNotificationMessage(f)&&f.method===Wr.type.method){let F=pt(f.params.id),I=T.get(F);if(G.isRequestMessage(I)){let K=r==null?void 0:r.connectionStrategy,ce=K&&K.cancelUndispatched?K.cancelUndispatched(I,M):M(I);if(ce&&(ce.error!==void 0||ce.result!==void 0)){T.delete(F),ce.id=I.id,Si(ce,f.method,Date.now()),e.write(ce);return}}}ht(T,f)}finally{fe()}};function It(f){if(N())return;function F(he,Re,ue){let Ne={jsonrpc:c,id:f.id};he instanceof G.ResponseError?Ne.error=he.toJson():Ne.result=he===void 0?null:he,Si(Ne,Re,ue),e.write(Ne)}function I(he,Re,ue){let Ne={jsonrpc:c,id:f.id,error:he.toJson()};Si(Ne,Re,ue),e.write(Ne)}function K(he,Re,ue){he===void 0&&(he=null);let Ne={jsonrpc:c,id:f.id,result:he};Si(Ne,Re,ue),e.write(Ne)}Zu(f);let ce=p[f.method],Ce,Me;ce&&(Ce=ce.type,Me=ce.handler);let Oe=Date.now();if(Me||l){let he=String(f.id),Re=Ze.receiver.createCancellationTokenSource(he);b[he]=Re;try{let ue;if(Me)if(f.params===void 0){if(Ce!==void 0&&Ce.numberOfParams!==0){I(new G.ResponseError(G.ErrorCodes.InvalidParams,`Request ${f.method} defines ${Ce.numberOfParams} params but recevied none.`),f.method,Oe);return}ue=Me(Re.token)}else if(Array.isArray(f.params)){if(Ce!==void 0&&Ce.parameterStructures===G.ParameterStructures.byName){I(new G.ResponseError(G.ErrorCodes.InvalidParams,`Request ${f.method} defines parameters by name but received parameters by position`),f.method,Oe);return}ue=Me(...f.params,Re.token)}else{if(Ce!==void 0&&Ce.parameterStructures===G.ParameterStructures.byPosition){I(new G.ResponseError(G.ErrorCodes.InvalidParams,`Request ${f.method} defines parameters by position but received parameters by name`),f.method,Oe);return}ue=Me(f.params,Re.token)}else l&&(ue=l(f.method,f.params,Re.token));let Ne=ue;ue?Ne.then?Ne.then(at=>{delete b[he],F(at,f.method,Oe)},at=>{delete b[he],at instanceof G.ResponseError?I(at,f.method,Oe):at&&We.string(at.message)?I(new G.ResponseError(G.ErrorCodes.InternalError,`Request ${f.method} failed with message: ${at.message}`),f.method,Oe):I(new G.ResponseError(G.ErrorCodes.InternalError,`Request ${f.method} failed unexpectedly without providing any details.`),f.method,Oe)}):(delete b[he],F(ue,f.method,Oe)):(delete b[he],K(ue,f.method,Oe))}catch(ue){delete b[he],ue instanceof G.ResponseError?F(ue,f.method,Oe):ue&&We.string(ue.message)?I(new G.ResponseError(G.ErrorCodes.InternalError,`Request ${f.method} failed with message: ${ue.message}`),f.method,Oe):I(new G.ResponseError(G.ErrorCodes.InternalError,`Request ${f.method} failed unexpectedly without providing any details.`),f.method,Oe)}}else I(new G.ResponseError(G.ErrorCodes.MethodNotFound,`Unhandled method ${f.method}`),f.method,Oe)}function Ct(f){if(!N())if(f.id===null)f.error?i.error(`Received response message without id: Error is: +${JSON.stringify(f.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let F=String(f.id),I=R[F];if(tm(f,I),I){delete R[F];try{if(f.error){let K=f.error;I.reject(new G.ResponseError(K.code,K.message,K.data))}else if(f.result!==void 0)I.resolve(f.result);else throw new Error("Should never happen.")}catch(K){K.message?i.error(`Response handler '${I.method}' failed with message: ${K.message}`):i.error(`Response handler '${I.method}' failed unexpectedly.`)}}}}function xi(f){if(N())return;let F,I;if(f.method===Wr.type.method)I=K=>{let ce=K.id,Ce=b[String(ce)];Ce&&Ce.cancel()};else{let K=g[f.method];K&&(I=K.handler,F=K.type)}if(I||m)try{em(f),I?f.params===void 0?(F!==void 0&&F.numberOfParams!==0&&F.parameterStructures!==G.ParameterStructures.byName&&i.error(`Notification ${f.method} defines ${F.numberOfParams} params but recevied none.`),I()):Array.isArray(f.params)?(F!==void 0&&(F.parameterStructures===G.ParameterStructures.byName&&i.error(`Notification ${f.method} defines parameters by name but received parameters by position`),F.numberOfParams!==f.params.length&&i.error(`Notification ${f.method} defines ${F.numberOfParams} params but received ${f.params.length} argumennts`)),I(...f.params)):(F!==void 0&&F.parameterStructures===G.ParameterStructures.byPosition&&i.error(`Notification ${f.method} defines parameters by position but received parameters by name`),I(f.params)):m&&m(f.method,f.params)}catch(K){K.message?i.error(`Notification handler '${f.method}' failed with message: ${K.message}`):i.error(`Notification handler '${f.method}' failed unexpectedly.`)}else ee.fire(f)}function Tr(f){if(!f){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(f,null,4)}`);let F=f;if(We.string(F.id)||We.number(F.id)){let I=String(F.id),K=R[I];K&&K.reject(new Error("The received response has neither a result nor an error property."))}}function Yu(f){if(!(v===Ee.Off||!V))if(E===Rt.Text){let F;v===Ee.Verbose&&f.params&&(F=`Params: ${JSON.stringify(f.params,null,4)} + +`),V.log(`Sending request '${f.method} - (${f.id})'.`,F)}else Un("send-request",f)}function Qu(f){if(!(v===Ee.Off||!V))if(E===Rt.Text){let F;v===Ee.Verbose&&(f.params?F=`Params: ${JSON.stringify(f.params,null,4)} + +`:F=`No parameters provided. + +`),V.log(`Sending notification '${f.method}'.`,F)}else Un("send-notification",f)}function Si(f,F,I){if(!(v===Ee.Off||!V))if(E===Rt.Text){let K;v===Ee.Verbose&&(f.error&&f.error.data?K=`Error data: ${JSON.stringify(f.error.data,null,4)} + +`:f.result?K=`Result: ${JSON.stringify(f.result,null,4)} + +`:f.error===void 0&&(K=`No result returned. + +`)),V.log(`Sending response '${F} - (${f.id})'. Processing request took ${Date.now()-I}ms`,K)}else Un("send-response",f)}function Zu(f){if(!(v===Ee.Off||!V))if(E===Rt.Text){let F;v===Ee.Verbose&&f.params&&(F=`Params: ${JSON.stringify(f.params,null,4)} + +`),V.log(`Received request '${f.method} - (${f.id})'.`,F)}else Un("receive-request",f)}function em(f){if(!(v===Ee.Off||!V||f.method===ys.type.method))if(E===Rt.Text){let F;v===Ee.Verbose&&(f.params?F=`Params: ${JSON.stringify(f.params,null,4)} + +`:F=`No parameters provided. + +`),V.log(`Received notification '${f.method}'.`,F)}else Un("receive-notification",f)}function tm(f,F){if(!(v===Ee.Off||!V))if(E===Rt.Text){let I;if(v===Ee.Verbose&&(f.error&&f.error.data?I=`Error data: ${JSON.stringify(f.error.data,null,4)} + +`:f.result?I=`Result: ${JSON.stringify(f.result,null,4)} + +`:f.error===void 0&&(I=`No result returned. + +`)),F){let K=f.error?` Request failed: ${f.error.message} (${f.error.code}).`:"";V.log(`Received response '${F.method} - (${f.id})' in ${Date.now()-F.timerStart}ms.${K}`,I)}else V.log(`Received response ${f.id} without active response promise.`,I)}else Un("receive-response",f)}function Un(f,F){if(!V||v===Ee.Off)return;let I={isLSPMessage:!0,type:f,message:F,timestamp:Date.now()};V.log(I)}function _r(){if(P())throw new _n(Ti.Closed,"Connection is closed.");if(N())throw new _n(Ti.Disposed,"Connection is disposed.")}function nm(){if(C())throw new _n(Ti.AlreadyListening,"Connection is already listening")}function rm(){if(!C())throw new Error("Call listen() first.")}function zr(f){return f===void 0?null:f}function El(f){if(f!==null)return f}function Pl(f){return f!=null&&!Array.isArray(f)&&typeof f=="object"}function Zo(f,F){switch(f){case G.ParameterStructures.auto:return Pl(F)?El(F):[zr(F)];case G.ParameterStructures.byName:if(!Pl(F))throw new Error("Recevied parameters by name but param is not an object literal.");return El(F);case G.ParameterStructures.byPosition:return[zr(F)];default:throw new Error(`Unknown parameter structure ${f.toString()}`)}}function Tl(f,F){let I,K=f.numberOfParams;switch(K){case 0:I=void 0;break;case 1:I=Zo(f.parameterStructures,F[0]);break;default:I=[];for(let ce=0;ce{_r();let I,K;if(We.string(f)){I=f;let Ce=F[0],Me=0,Oe=G.ParameterStructures.auto;G.ParameterStructures.is(Ce)&&(Me=1,Oe=Ce);let he=F.length,Re=he-Me;switch(Re){case 0:K=void 0;break;case 1:K=Zo(Oe,F[Me]);break;default:if(Oe===G.ParameterStructures.byName)throw new Error(`Recevied ${Re} parameters for 'by Name' notification parameter structure.`);K=F.slice(Me,he).map(ue=>zr(ue));break}}else{let Ce=F;I=f.method,K=Tl(f,Ce)}let ce={jsonrpc:c,method:I,params:K};Qu(ce),e.write(ce)},onNotification:(f,F)=>{_r();let I;return We.func(f)?m=f:F&&(We.string(f)?(I=f,g[f]={type:void 0,handler:F}):(I=f.method,g[f.method]={type:f,handler:F})),{dispose:()=>{I!==void 0?delete g[I]:m=void 0}}},onProgress:(f,F,I)=>{if(y.has(F))throw new Error(`Progress handler for token ${F} already registered`);return y.set(F,I),{dispose:()=>{y.delete(F)}}},sendProgress:(f,F,I)=>{Bn.sendNotification(Pi.type,{token:F,value:I})},onUnhandledProgress:xe.event,sendRequest:(f,...F)=>{_r(),rm();let I,K,ce;if(We.string(f)){I=f;let he=F[0],Re=F[F.length-1],ue=0,Ne=G.ParameterStructures.auto;G.ParameterStructures.is(he)&&(ue=1,Ne=he);let at=F.length;bs.CancellationToken.is(Re)&&(at=at-1,ce=Re);let Fn=at-ue;switch(Fn){case 0:K=void 0;break;case 1:K=Zo(Ne,F[ue]);break;default:if(Ne===G.ParameterStructures.byName)throw new Error(`Recevied ${Fn} parameters for 'by Name' request parameter structure.`);K=F.slice(ue,at).map(dn=>zr(dn));break}}else{let he=F;I=f.method,K=Tl(f,he);let Re=f.numberOfParams;ce=bs.CancellationToken.is(he[Re])?he[Re]:void 0}let Ce=o++,Me;return ce&&(Me=ce.onCancellationRequested(()=>{Ze.sender.sendCancellation(Bn,Ce)})),new Promise((he,Re)=>{let ue={jsonrpc:c,id:Ce,method:I,params:K},Ne=dn=>{he(dn),Ze.sender.cleanup(Ce),Me==null||Me.dispose()},at=dn=>{Re(dn),Ze.sender.cleanup(Ce),Me==null||Me.dispose()},Fn={method:I,timerStart:Date.now(),resolve:Ne,reject:at};Yu(ue);try{e.write(ue)}catch(dn){Fn.reject(new G.ResponseError(G.ErrorCodes.MessageWriteError,dn.message?dn.message:"Unknown reason")),Fn=null}Fn&&(R[String(Ce)]=Fn)})},onRequest:(f,F)=>{_r();let I=null;return vs.is(f)?(I=void 0,l=f):We.string(f)?(I=null,F!==void 0&&(I=f,p[f]={handler:F,type:void 0})):F!==void 0&&(I=f.method,p[f.method]={type:f,handler:F}),{dispose:()=>{I!==null&&(I!==void 0?delete p[I]:l=void 0)}}},trace:(f,F,I)=>{let K=!1,ce=Rt.Text;I!==void 0&&(We.boolean(I)?K=I:(K=I.sendNotification||!1,ce=I.traceFormat||Rt.Text)),v=f,E=ce,v===Ee.Off?V=void 0:V=F,K&&!P()&&!N()&&Bn.sendNotification(zc.type,{value:Ee.toString(f)})},onError:O.event,onClose:z.event,onUnhandledNotification:ee.event,onDispose:bt.event,end:()=>{e.end()},dispose:()=>{if(N())return;x=Ft.Disposed,bt.fire(void 0);let f=new Error("Connection got disposed.");Object.keys(R).forEach(F=>{R[F].reject(f)}),R=Object.create(null),b=Object.create(null),T=new Tc.LinkedMap,We.func(e.dispose)&&e.dispose(),We.func(t.dispose)&&t.dispose()},listen:()=>{_r(),nm(),x=Ft.Listening,t.listen(et)},inspect:()=>{Pc.default().console.log("inspect")}};return Bn.onNotification(ys.type,f=>{v===Ee.Off||!V||V.log(f.message,v===Ee.Verbose?f.verbose:void 0)}),Bn.onNotification(Pi.type,f=>{let F=y.get(f.token);F?F(f.value):xe.fire(f)}),Bn}J.createMessageConnection=Lm});var Rs=U(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.CancellationSenderStrategy=D.CancellationReceiverStrategy=D.ConnectionError=D.ConnectionErrors=D.LogTraceNotification=D.SetTraceNotification=D.TraceFormat=D.Trace=D.ProgressType=D.createMessageConnection=D.NullLogger=D.ConnectionOptions=D.ConnectionStrategy=D.WriteableStreamMessageWriter=D.AbstractMessageWriter=D.MessageWriter=D.ReadableStreamMessageReader=D.AbstractMessageReader=D.MessageReader=D.CancellationToken=D.CancellationTokenSource=D.Emitter=D.Event=D.Disposable=D.ParameterStructures=D.NotificationType9=D.NotificationType8=D.NotificationType7=D.NotificationType6=D.NotificationType5=D.NotificationType4=D.NotificationType3=D.NotificationType2=D.NotificationType1=D.NotificationType0=D.NotificationType=D.ErrorCodes=D.ResponseError=D.RequestType9=D.RequestType8=D.RequestType7=D.RequestType6=D.RequestType5=D.RequestType4=D.RequestType3=D.RequestType2=D.RequestType1=D.RequestType0=D.RequestType=D.RAL=void 0;D.CancellationStrategy=void 0;var ge=ss();Object.defineProperty(D,"RequestType",{enumerable:!0,get:function(){return ge.RequestType}});Object.defineProperty(D,"RequestType0",{enumerable:!0,get:function(){return ge.RequestType0}});Object.defineProperty(D,"RequestType1",{enumerable:!0,get:function(){return ge.RequestType1}});Object.defineProperty(D,"RequestType2",{enumerable:!0,get:function(){return ge.RequestType2}});Object.defineProperty(D,"RequestType3",{enumerable:!0,get:function(){return ge.RequestType3}});Object.defineProperty(D,"RequestType4",{enumerable:!0,get:function(){return ge.RequestType4}});Object.defineProperty(D,"RequestType5",{enumerable:!0,get:function(){return ge.RequestType5}});Object.defineProperty(D,"RequestType6",{enumerable:!0,get:function(){return ge.RequestType6}});Object.defineProperty(D,"RequestType7",{enumerable:!0,get:function(){return ge.RequestType7}});Object.defineProperty(D,"RequestType8",{enumerable:!0,get:function(){return ge.RequestType8}});Object.defineProperty(D,"RequestType9",{enumerable:!0,get:function(){return ge.RequestType9}});Object.defineProperty(D,"ResponseError",{enumerable:!0,get:function(){return ge.ResponseError}});Object.defineProperty(D,"ErrorCodes",{enumerable:!0,get:function(){return ge.ErrorCodes}});Object.defineProperty(D,"NotificationType",{enumerable:!0,get:function(){return ge.NotificationType}});Object.defineProperty(D,"NotificationType0",{enumerable:!0,get:function(){return ge.NotificationType0}});Object.defineProperty(D,"NotificationType1",{enumerable:!0,get:function(){return ge.NotificationType1}});Object.defineProperty(D,"NotificationType2",{enumerable:!0,get:function(){return ge.NotificationType2}});Object.defineProperty(D,"NotificationType3",{enumerable:!0,get:function(){return ge.NotificationType3}});Object.defineProperty(D,"NotificationType4",{enumerable:!0,get:function(){return ge.NotificationType4}});Object.defineProperty(D,"NotificationType5",{enumerable:!0,get:function(){return ge.NotificationType5}});Object.defineProperty(D,"NotificationType6",{enumerable:!0,get:function(){return ge.NotificationType6}});Object.defineProperty(D,"NotificationType7",{enumerable:!0,get:function(){return ge.NotificationType7}});Object.defineProperty(D,"NotificationType8",{enumerable:!0,get:function(){return ge.NotificationType8}});Object.defineProperty(D,"NotificationType9",{enumerable:!0,get:function(){return ge.NotificationType9}});Object.defineProperty(D,"ParameterStructures",{enumerable:!0,get:function(){return ge.ParameterStructures}});var jm=rs();Object.defineProperty(D,"Disposable",{enumerable:!0,get:function(){return jm.Disposable}});var Ic=$n();Object.defineProperty(D,"Event",{enumerable:!0,get:function(){return Ic.Event}});Object.defineProperty(D,"Emitter",{enumerable:!0,get:function(){return Ic.Emitter}});var Ac=ds();Object.defineProperty(D,"CancellationTokenSource",{enumerable:!0,get:function(){return Ac.CancellationTokenSource}});Object.defineProperty(D,"CancellationToken",{enumerable:!0,get:function(){return Ac.CancellationToken}});var ks=yc();Object.defineProperty(D,"MessageReader",{enumerable:!0,get:function(){return ks.MessageReader}});Object.defineProperty(D,"AbstractMessageReader",{enumerable:!0,get:function(){return ks.AbstractMessageReader}});Object.defineProperty(D,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return ks.ReadableStreamMessageReader}});var Cs=Fc();Object.defineProperty(D,"MessageWriter",{enumerable:!0,get:function(){return Cs.MessageWriter}});Object.defineProperty(D,"AbstractMessageWriter",{enumerable:!0,get:function(){return Cs.AbstractMessageWriter}});Object.defineProperty(D,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Cs.WriteableStreamMessageWriter}});var lt=Nc();Object.defineProperty(D,"ConnectionStrategy",{enumerable:!0,get:function(){return lt.ConnectionStrategy}});Object.defineProperty(D,"ConnectionOptions",{enumerable:!0,get:function(){return lt.ConnectionOptions}});Object.defineProperty(D,"NullLogger",{enumerable:!0,get:function(){return lt.NullLogger}});Object.defineProperty(D,"createMessageConnection",{enumerable:!0,get:function(){return lt.createMessageConnection}});Object.defineProperty(D,"ProgressType",{enumerable:!0,get:function(){return lt.ProgressType}});Object.defineProperty(D,"Trace",{enumerable:!0,get:function(){return lt.Trace}});Object.defineProperty(D,"TraceFormat",{enumerable:!0,get:function(){return lt.TraceFormat}});Object.defineProperty(D,"SetTraceNotification",{enumerable:!0,get:function(){return lt.SetTraceNotification}});Object.defineProperty(D,"LogTraceNotification",{enumerable:!0,get:function(){return lt.LogTraceNotification}});Object.defineProperty(D,"ConnectionErrors",{enumerable:!0,get:function(){return lt.ConnectionErrors}});Object.defineProperty(D,"ConnectionError",{enumerable:!0,get:function(){return lt.ConnectionError}});Object.defineProperty(D,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return lt.CancellationReceiverStrategy}});Object.defineProperty(D,"CancellationSenderStrategy",{enumerable:!0,get:function(){return lt.CancellationSenderStrategy}});Object.defineProperty(D,"CancellationStrategy",{enumerable:!0,get:function(){return lt.CancellationStrategy}});var Um=Kt();D.RAL=Um.default});var Xn=U(de=>{"use strict";var Bm=de&&de.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Vm=de&&de.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Bm(e,t,n)};Object.defineProperty(de,"__esModule",{value:!0});de.createMessageConnection=de.createServerSocketTransport=de.createClientSocketTransport=de.createServerPipeTransport=de.createClientPipeTransport=de.generateRandomPipeName=de.StreamMessageWriter=de.StreamMessageReader=de.SocketMessageWriter=de.SocketMessageReader=de.IPCMessageWriter=de.IPCMessageReader=void 0;var Hn=Bl();Hn.default.install();var At=Rs(),Oc=require("path"),$m=require("os"),Km=require("crypto"),_i=require("net");Vm(Rs(),de);var Wc=class extends At.AbstractMessageReader{constructor(e){super();this.process=e;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),At.Disposable.create(()=>this.process.off("message",e))}};de.IPCMessageReader=Wc;var qc=class extends At.AbstractMessageWriter{constructor(e){super();this.process=e,this.errorCount=0;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,n=>{n?(this.errorCount++,this.handleError(n,e)):this.errorCount=0}),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};de.IPCMessageWriter=qc;var Gn=class extends At.ReadableStreamMessageReader{constructor(e,n="utf-8"){super(Hn.default().stream.asReadableStream(e),n)}};de.SocketMessageReader=Gn;var Jn=class extends At.WriteableStreamMessageWriter{constructor(e,n){super(Hn.default().stream.asWritableStream(e),n);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};de.SocketMessageWriter=Jn;var Fs=class extends At.ReadableStreamMessageReader{constructor(e,n){super(Hn.default().stream.asReadableStream(e),n)}};de.StreamMessageReader=Fs;var Ds=class extends At.WriteableStreamMessageWriter{constructor(e,n){super(Hn.default().stream.asWritableStream(e),n)}};de.StreamMessageWriter=Ds;var Lc=process.env.XDG_RUNTIME_DIR,Hm=new Map([["linux",107],["darwin",103]]);function Gm(){let t=Km.randomBytes(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;Lc?e=Oc.join(Lc,`vscode-ipc-${t}.sock`):e=Oc.join($m.tmpdir(),`vscode-${t}.sock`);let n=Hm.get(process.platform);return n!==void 0&&e.length>=n&&Hn.default().console.warn(`WARNING: IPC handle "${e}" is longer than ${n} characters.`),e}de.generateRandomPipeName=Gm;function Jm(t,e="utf-8"){let n,r=new Promise((i,o)=>{n=i});return new Promise((i,o)=>{let s=_i.createServer(a=>{s.close(),n([new Gn(a,e),new Jn(a,e)])});s.on("error",o),s.listen(t,()=>{s.removeListener("error",o),i({onConnected:()=>r})})})}de.createClientPipeTransport=Jm;function Xm(t,e="utf-8"){let n=_i.createConnection(t);return[new Gn(n,e),new Jn(n,e)]}de.createServerPipeTransport=Xm;function Ym(t,e="utf-8"){let n,r=new Promise((i,o)=>{n=i});return new Promise((i,o)=>{let s=_i.createServer(a=>{s.close(),n([new Gn(a,e),new Jn(a,e)])});s.on("error",o),s.listen(t,"127.0.0.1",()=>{s.removeListener("error",o),i({onConnected:()=>r})})})}de.createClientSocketTransport=Ym;function Qm(t,e="utf-8"){let n=_i.createConnection(t,"127.0.0.1");return[new Gn(n,e),new Jn(n,e)]}de.createServerSocketTransport=Qm;function Zm(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function ef(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function tf(t,e,n,r){n||(n=At.NullLogger);let i=Zm(t)?new Fs(t):t,o=ef(e)?new Ds(e):e;return At.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),At.createMessageConnection(i,o,n,r)}de.createMessageConnection=tf});var Es=U((Lw,jc)=>{"use strict";jc.exports=Xn()});var Bc={};cm(Bc,{AnnotatedTextEdit:()=>Yt,ChangeAnnotation:()=>Mn,ChangeAnnotationIdentifier:()=>$e,CodeAction:()=>ir,CodeActionContext:()=>Vi,CodeActionKind:()=>rr,CodeDescription:()=>zs,CodeLens:()=>Ls,Color:()=>Lr,ColorInformation:()=>zi,ColorPresentation:()=>Mi,Command:()=>Xt,CompletionItem:()=>Wi,CompletionItemKind:()=>j,CompletionItemTag:()=>Ot,CompletionList:()=>qi,CreateFile:()=>Qn,DeleteFile:()=>er,Diagnostic:()=>Yn,DiagnosticRelatedInformation:()=>Ai,DiagnosticSeverity:()=>zn,DiagnosticTag:()=>_s,DocumentHighlight:()=>ji,DocumentHighlightKind:()=>Qt,DocumentLink:()=>$i,DocumentSymbol:()=>Bi,EOL:()=>rf,FoldingRange:()=>Ii,FoldingRangeKind:()=>Ni,FormattingOptions:()=>js,Hover:()=>Li,InsertReplaceEdit:()=>Is,InsertTextFormat:()=>qe,InsertTextMode:()=>As,Location:()=>pn,LocationLink:()=>Ts,MarkedString:()=>nr,MarkupContent:()=>Br,MarkupKind:()=>nt,OptionalVersionedTextDocumentIdentifier:()=>Ur,ParameterInformation:()=>Os,Position:()=>Ve,Range:()=>ie,RenameFile:()=>Zn,SelectionRange:()=>Nn,SignatureInformation:()=>Ws,SymbolInformation:()=>Ui,SymbolKind:()=>Wt,SymbolTag:()=>qs,TextDocument:()=>Us,TextDocumentEdit:()=>hn,TextDocumentIdentifier:()=>Ms,TextDocumentItem:()=>Ns,TextEdit:()=>$,VersionedTextDocumentIdentifier:()=>tr,WorkspaceChange:()=>nf,WorkspaceEdit:()=>jr,integer:()=>Ps,uinteger:()=>qr});var Ps,qr,Ve,ie,pn,Ts,Lr,zi,Mi,Ni,Ii,Ai,zn,_s,zs,Yn,Xt,$,Mn,$e,Yt,hn,Qn,Zn,er,jr,Oi,Uc,nf,Ms,tr,Ur,Ns,nt,Br,j,qe,Ot,Is,As,Wi,qi,nr,Li,Os,Ws,Qt,ji,Wt,qs,Ui,Bi,rr,Vi,ir,Ls,js,$i,Nn,rf,Us,of,S,Bs=H(()=>{"use strict";(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Ps||(Ps={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(qr||(qr={}));(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=qr.MAX_VALUE),i===Number.MAX_VALUE&&(i=qr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return S.objectLiteral(i)&&S.uinteger(i.line)&&S.uinteger(i.character)}t.is=n})(Ve||(Ve={}));(function(t){function e(r,i,o,s){if(S.uinteger(r)&&S.uinteger(i)&&S.uinteger(o)&&S.uinteger(s))return{start:Ve.create(r,i),end:Ve.create(o,s)};if(Ve.is(r)&&Ve.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+s+"]")}t.create=e;function n(r){var i=r;return S.objectLiteral(i)&&Ve.is(i.start)&&Ve.is(i.end)}t.is=n})(ie||(ie={}));(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return S.defined(i)&&ie.is(i.range)&&(S.string(i.uri)||S.undefined(i.uri))}t.is=n})(pn||(pn={}));(function(t){function e(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}t.create=e;function n(r){var i=r;return S.defined(i)&&ie.is(i.targetRange)&&S.string(i.targetUri)&&(ie.is(i.targetSelectionRange)||S.undefined(i.targetSelectionRange))&&(ie.is(i.originSelectionRange)||S.undefined(i.originSelectionRange))}t.is=n})(Ts||(Ts={}));(function(t){function e(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}t.create=e;function n(r){var i=r;return S.numberRange(i.red,0,1)&&S.numberRange(i.green,0,1)&&S.numberRange(i.blue,0,1)&&S.numberRange(i.alpha,0,1)}t.is=n})(Lr||(Lr={}));(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ie.is(i.range)&&Lr.is(i.color)}t.is=n})(zi||(zi={}));(function(t){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}t.create=e;function n(r){var i=r;return S.string(i.label)&&(S.undefined(i.textEdit)||$.is(i))&&(S.undefined(i.additionalTextEdits)||S.typedArray(i.additionalTextEdits,$.is))}t.is=n})(Mi||(Mi={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Ni||(Ni={}));(function(t){function e(r,i,o,s,a){var c={startLine:r,endLine:i};return S.defined(o)&&(c.startCharacter=o),S.defined(s)&&(c.endCharacter=s),S.defined(a)&&(c.kind=a),c}t.create=e;function n(r){var i=r;return S.uinteger(i.startLine)&&S.uinteger(i.startLine)&&(S.undefined(i.startCharacter)||S.uinteger(i.startCharacter))&&(S.undefined(i.endCharacter)||S.uinteger(i.endCharacter))&&(S.undefined(i.kind)||S.string(i.kind))}t.is=n})(Ii||(Ii={}));(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return S.defined(i)&&pn.is(i.location)&&S.string(i.message)}t.is=n})(Ai||(Ai={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(zn||(zn={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(_s||(_s={}));(function(t){function e(n){var r=n;return r!=null&&S.string(r.href)}t.is=e})(zs||(zs={}));(function(t){function e(r,i,o,s,a,c){var l={range:r,message:i};return S.defined(o)&&(l.severity=o),S.defined(s)&&(l.code=s),S.defined(a)&&(l.source=a),S.defined(c)&&(l.relatedInformation=c),l}t.create=e;function n(r){var i,o=r;return S.defined(o)&&ie.is(o.range)&&S.string(o.message)&&(S.number(o.severity)||S.undefined(o.severity))&&(S.integer(o.code)||S.string(o.code)||S.undefined(o.code))&&(S.undefined(o.codeDescription)||S.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(S.string(o.source)||S.undefined(o.source))&&(S.undefined(o.relatedInformation)||S.typedArray(o.relatedInformation,Ai.is))}t.is=n})(Yn||(Yn={}));(function(t){function e(r,i){for(var o=[],s=2;s0&&(a.arguments=o),a}t.create=e;function n(r){var i=r;return S.defined(i)&&S.string(i.title)&&S.string(i.command)}t.is=n})(Xt||(Xt={}));(function(t){function e(o,s){return{range:o,newText:s}}t.replace=e;function n(o,s){return{range:{start:o,end:o},newText:s}}t.insert=n;function r(o){return{range:o,newText:""}}t.del=r;function i(o){var s=o;return S.objectLiteral(s)&&S.string(s.newText)&&ie.is(s.range)}t.is=i})($||($={}));(function(t){function e(r,i,o){var s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}t.create=e;function n(r){var i=r;return i!==void 0&&S.objectLiteral(i)&&S.string(i.label)&&(S.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(S.string(i.description)||i.description===void 0)}t.is=n})(Mn||(Mn={}));(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})($e||($e={}));(function(t){function e(o,s,a){return{range:o,newText:s,annotationId:a}}t.replace=e;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}t.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}t.del=r;function i(o){var s=o;return $.is(s)&&(Mn.is(s.annotationId)||$e.is(s.annotationId))}t.is=i})(Yt||(Yt={}));(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return S.defined(i)&&Ur.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(hn||(hn={}));(function(t){function e(r,i,o){var s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&S.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||S.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||S.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||$e.is(i.annotationId))}t.is=n})(Qn||(Qn={}));(function(t){function e(r,i,o,s){var a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&S.string(i.oldUri)&&S.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||S.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||S.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||$e.is(i.annotationId))}t.is=n})(Zn||(Zn={}));(function(t){function e(r,i,o){var s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&S.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||S.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||S.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||$e.is(i.annotationId))}t.is=n})(er||(er={}));(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 S.string(i.kind)?Qn.is(i)||Zn.is(i)||er.is(i):hn.is(i)}))}t.is=e})(jr||(jr={}));Oi=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,o;if(r===void 0?i=$.insert(e,n):$e.is(r)?(o=r,i=Yt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Yt.insert(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.replace=function(e,n,r){var i,o;if(r===void 0?i=$.replace(e,n):$e.is(r)?(o=r,i=Yt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Yt.replace(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=$.del(e):$e.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}(),Uc=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($e.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}(),nf=function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Uc(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(hn.is(r)){var i=new Oi(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Oi(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(Ur.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=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Oi(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 Oi(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Uc,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;Mn.is(n)||$e.is(n)?i=n:r=n;var o,s;if(i===void 0?o=Qn.create(e,r):(s=$e.is(i)?i:this._changeAnnotations.manage(i),o=Qn.create(e,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},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 o;Mn.is(r)||$e.is(r)?o=r:i=r;var s,a;if(o===void 0?s=Zn.create(e,n,i):(a=$e.is(o)?o:this._changeAnnotations.manage(o),s=Zn.create(e,n,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},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;Mn.is(n)||$e.is(n)?i=n:r=n;var o,s;if(i===void 0?o=er.create(e,r):(s=$e.is(i)?i:this._changeAnnotations.manage(i),o=er.create(e,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},t}();(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return S.defined(i)&&S.string(i.uri)}t.is=n})(Ms||(Ms={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return S.defined(i)&&S.string(i.uri)&&S.integer(i.version)}t.is=n})(tr||(tr={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return S.defined(i)&&S.string(i.uri)&&(i.version===null||S.integer(i.version))}t.is=n})(Ur||(Ur={}));(function(t){function e(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}t.create=e;function n(r){var i=r;return S.defined(i)&&S.string(i.uri)&&S.string(i.languageId)&&S.integer(i.version)&&S.string(i.text)}t.is=n})(Ns||(Ns={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(nt||(nt={}));(function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(nt||(nt={}));(function(t){function e(n){var r=n;return S.objectLiteral(n)&&nt.is(r.kind)&&S.string(r.value)}t.is=e})(Br||(Br={}));(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={}));(function(t){t.PlainText=1,t.Snippet=2})(qe||(qe={}));(function(t){t.Deprecated=1})(Ot||(Ot={}));(function(t){function e(r,i,o){return{newText:r,insert:i,replace:o}}t.create=e;function n(r){var i=r;return i&&S.string(i.newText)&&ie.is(i.insert)&&ie.is(i.replace)}t.is=n})(Is||(Is={}));(function(t){t.asIs=1,t.adjustIndentation=2})(As||(As={}));(function(t){function e(n){return{label:n}}t.create=e})(Wi||(Wi={}));(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(qi||(qi={}));(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return S.string(i)||S.objectLiteral(i)&&S.string(i.language)&&S.string(i.value)}t.is=n})(nr||(nr={}));(function(t){function e(n){var r=n;return!!r&&S.objectLiteral(r)&&(Br.is(r.contents)||nr.is(r.contents)||S.typedArray(r.contents,nr.is))&&(n.range===void 0||ie.is(n.range))}t.is=e})(Li||(Li={}));(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Os||(Os={}));(function(t){function e(n,r){for(var i=[],o=2;o=0;p--){var m=c[p],g=o.offsetAt(m.range.start),y=o.offsetAt(m.range.end);if(y<=l)a=a.substring(0,g)+m.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");l=g}return a}t.applyEdits=r;function i(o,s){if(o.length<=1)return o;var a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);for(var p=0,m=0,g=0;p0&&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 Ve.create(0,e);for(;re?i=o:r=o+1}var s=r-1;return Ve.create(s,e-n[s])},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{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.ProtocolNotificationType=vt.ProtocolNotificationType0=vt.ProtocolRequestType=vt.ProtocolRequestType0=vt.RegistrationType=void 0;var or=Xn(),Vc=class{constructor(e){this.method=e}};vt.RegistrationType=Vc;var $c=class extends or.RequestType0{constructor(e){super(e)}};vt.ProtocolRequestType0=$c;var Kc=class extends or.RequestType{constructor(e){super(e,or.ParameterStructures.byName)}};vt.ProtocolRequestType=Kc;var Hc=class extends or.NotificationType0{constructor(e){super(e)}};vt.ProtocolNotificationType0=Hc;var Gc=class extends or.NotificationType{constructor(e){super(e,or.ParameterStructures.byName)}};vt.ProtocolNotificationType=Gc});var Yc=U(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.objectLiteral=Pe.typedArray=Pe.stringArray=Pe.array=Pe.func=Pe.error=Pe.number=Pe.string=Pe.boolean=void 0;function sf(t){return t===!0||t===!1}Pe.boolean=sf;function Jc(t){return typeof t=="string"||t instanceof String}Pe.string=Jc;function af(t){return typeof t=="number"||t instanceof Number}Pe.number=af;function lf(t){return t instanceof Error}Pe.error=lf;function cf(t){return typeof t=="function"}Pe.func=cf;function Xc(t){return Array.isArray(t)}Pe.array=Xc;function df(t){return Xc(t)&&t.every(e=>Jc(e))}Pe.stringArray=df;function pf(t,e){return Array.isArray(t)&&t.every(e)}Pe.typedArray=pf;function hf(t){return t!==null&&typeof t=="object"}Pe.objectLiteral=hf});var Qc=U(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.ImplementationRequest=void 0;var uf=Le(),mf;(function(t){t.method="textDocument/implementation",t.type=new uf.ProtocolRequestType(t.method)})(mf=Vr.ImplementationRequest||(Vr.ImplementationRequest={}))});var Zc=U($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.TypeDefinitionRequest=void 0;var ff=Le(),gf;(function(t){t.method="textDocument/typeDefinition",t.type=new ff.ProtocolRequestType(t.method)})(gf=$r.TypeDefinitionRequest||($r.TypeDefinitionRequest={}))});var td=U(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.DidChangeWorkspaceFoldersNotification=un.WorkspaceFoldersRequest=void 0;var ed=Le(),bf;(function(t){t.type=new ed.ProtocolRequestType0("workspace/workspaceFolders")})(bf=un.WorkspaceFoldersRequest||(un.WorkspaceFoldersRequest={}));var vf;(function(t){t.type=new ed.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(vf=un.DidChangeWorkspaceFoldersNotification||(un.DidChangeWorkspaceFoldersNotification={}))});var nd=U(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.ConfigurationRequest=void 0;var yf=Le(),wf;(function(t){t.type=new yf.ProtocolRequestType("workspace/configuration")})(wf=Kr.ConfigurationRequest||(Kr.ConfigurationRequest={}))});var id=U(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.ColorPresentationRequest=mn.DocumentColorRequest=void 0;var rd=Le(),xf;(function(t){t.method="textDocument/documentColor",t.type=new rd.ProtocolRequestType(t.method)})(xf=mn.DocumentColorRequest||(mn.DocumentColorRequest={}));var Sf;(function(t){t.type=new rd.ProtocolRequestType("textDocument/colorPresentation")})(Sf=mn.ColorPresentationRequest||(mn.ColorPresentationRequest={}))});var od=U(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.FoldingRangeRequest=fn.FoldingRangeKind=void 0;var kf=Le(),Cf;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Cf=fn.FoldingRangeKind||(fn.FoldingRangeKind={}));var Rf;(function(t){t.method="textDocument/foldingRange",t.type=new kf.ProtocolRequestType(t.method)})(Rf=fn.FoldingRangeRequest||(fn.FoldingRangeRequest={}))});var sd=U(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.DeclarationRequest=void 0;var Ff=Le(),Df;(function(t){t.method="textDocument/declaration",t.type=new Ff.ProtocolRequestType(t.method)})(Df=Hr.DeclarationRequest||(Hr.DeclarationRequest={}))});var ad=U(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.SelectionRangeRequest=void 0;var Ef=Le(),Pf;(function(t){t.method="textDocument/selectionRange",t.type=new Ef.ProtocolRequestType(t.method)})(Pf=Gr.SelectionRangeRequest||(Gr.SelectionRangeRequest={}))});var cd=U(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.WorkDoneProgressCancelNotification=Dt.WorkDoneProgressCreateRequest=Dt.WorkDoneProgress=void 0;var Tf=Xn(),ld=Le(),_f;(function(t){t.type=new Tf.ProgressType;function e(n){return n===t.type}t.is=e})(_f=Dt.WorkDoneProgress||(Dt.WorkDoneProgress={}));var zf;(function(t){t.type=new ld.ProtocolRequestType("window/workDoneProgress/create")})(zf=Dt.WorkDoneProgressCreateRequest||(Dt.WorkDoneProgressCreateRequest={}));var Mf;(function(t){t.type=new ld.ProtocolNotificationType("window/workDoneProgress/cancel")})(Mf=Dt.WorkDoneProgressCancelNotification||(Dt.WorkDoneProgressCancelNotification={}))});var dd=U(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.CallHierarchyOutgoingCallsRequest=Et.CallHierarchyIncomingCallsRequest=Et.CallHierarchyPrepareRequest=void 0;var Vs=Le(),Nf;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new Vs.ProtocolRequestType(t.method)})(Nf=Et.CallHierarchyPrepareRequest||(Et.CallHierarchyPrepareRequest={}));var If;(function(t){t.method="callHierarchy/incomingCalls",t.type=new Vs.ProtocolRequestType(t.method)})(If=Et.CallHierarchyIncomingCallsRequest||(Et.CallHierarchyIncomingCallsRequest={}));var Af;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new Vs.ProtocolRequestType(t.method)})(Af=Et.CallHierarchyOutgoingCallsRequest||(Et.CallHierarchyOutgoingCallsRequest={}))});var pd=U(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.SemanticTokensRefreshRequest=me.SemanticTokensRangeRequest=me.SemanticTokensDeltaRequest=me.SemanticTokensRequest=me.SemanticTokensRegistrationType=me.TokenFormat=me.SemanticTokens=me.SemanticTokenModifiers=me.SemanticTokenTypes=void 0;var Jr=Le(),Of;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(Of=me.SemanticTokenTypes||(me.SemanticTokenTypes={}));var Wf;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Wf=me.SemanticTokenModifiers||(me.SemanticTokenModifiers={}));var qf;(function(t){function e(n){let r=n;return r!==void 0&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(qf=me.SemanticTokens||(me.SemanticTokens={}));var Lf;(function(t){t.Relative="relative"})(Lf=me.TokenFormat||(me.TokenFormat={}));var jf;(function(t){t.method="textDocument/semanticTokens",t.type=new Jr.RegistrationType(t.method)})(jf=me.SemanticTokensRegistrationType||(me.SemanticTokensRegistrationType={}));var Uf;(function(t){t.method="textDocument/semanticTokens/full",t.type=new Jr.ProtocolRequestType(t.method)})(Uf=me.SemanticTokensRequest||(me.SemanticTokensRequest={}));var Bf;(function(t){t.method="textDocument/semanticTokens/full/delta",t.type=new Jr.ProtocolRequestType(t.method)})(Bf=me.SemanticTokensDeltaRequest||(me.SemanticTokensDeltaRequest={}));var Vf;(function(t){t.method="textDocument/semanticTokens/range",t.type=new Jr.ProtocolRequestType(t.method)})(Vf=me.SemanticTokensRangeRequest||(me.SemanticTokensRangeRequest={}));var $f;(function(t){t.method="workspace/semanticTokens/refresh",t.type=new Jr.ProtocolRequestType0(t.method)})($f=me.SemanticTokensRefreshRequest||(me.SemanticTokensRefreshRequest={}))});var hd=U(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.ShowDocumentRequest=void 0;var Kf=Le(),Hf;(function(t){t.method="window/showDocument",t.type=new Kf.ProtocolRequestType(t.method)})(Hf=Xr.ShowDocumentRequest||(Xr.ShowDocumentRequest={}))});var ud=U(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.LinkedEditingRangeRequest=void 0;var Gf=Le(),Jf;(function(t){t.method="textDocument/linkedEditingRange",t.type=new Gf.ProtocolRequestType(t.method)})(Jf=Yr.LinkedEditingRangeRequest||(Yr.LinkedEditingRangeRequest={}))});var md=U(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.WillDeleteFilesRequest=Se.DidDeleteFilesNotification=Se.DidRenameFilesNotification=Se.WillRenameFilesRequest=Se.DidCreateFilesNotification=Se.WillCreateFilesRequest=Se.FileOperationPatternKind=void 0;var sr=Le(),Xf;(function(t){t.file="file",t.folder="folder"})(Xf=Se.FileOperationPatternKind||(Se.FileOperationPatternKind={}));var Yf;(function(t){t.method="workspace/willCreateFiles",t.type=new sr.ProtocolRequestType(t.method)})(Yf=Se.WillCreateFilesRequest||(Se.WillCreateFilesRequest={}));var Qf;(function(t){t.method="workspace/didCreateFiles",t.type=new sr.ProtocolNotificationType(t.method)})(Qf=Se.DidCreateFilesNotification||(Se.DidCreateFilesNotification={}));var Zf;(function(t){t.method="workspace/willRenameFiles",t.type=new sr.ProtocolRequestType(t.method)})(Zf=Se.WillRenameFilesRequest||(Se.WillRenameFilesRequest={}));var eg;(function(t){t.method="workspace/didRenameFiles",t.type=new sr.ProtocolNotificationType(t.method)})(eg=Se.DidRenameFilesNotification||(Se.DidRenameFilesNotification={}));var tg;(function(t){t.method="workspace/didDeleteFiles",t.type=new sr.ProtocolNotificationType(t.method)})(tg=Se.DidDeleteFilesNotification||(Se.DidDeleteFilesNotification={}));var ng;(function(t){t.method="workspace/willDeleteFiles",t.type=new sr.ProtocolRequestType(t.method)})(ng=Se.WillDeleteFilesRequest||(Se.WillDeleteFilesRequest={}))});var fd=U(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.MonikerRequest=Pt.MonikerKind=Pt.UniquenessLevel=void 0;var rg=Le(),ig;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(ig=Pt.UniquenessLevel||(Pt.UniquenessLevel={}));var og;(function(t){t.import="import",t.export="export",t.local="local"})(og=Pt.MonikerKind||(Pt.MonikerKind={}));var sg;(function(t){t.method="textDocument/moniker",t.type=new rg.ProtocolRequestType(t.method)})(sg=Pt.MonikerRequest||(Pt.MonikerRequest={}))});var wd=U(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.DocumentLinkRequest=h.CodeLensRefreshRequest=h.CodeLensResolveRequest=h.CodeLensRequest=h.WorkspaceSymbolRequest=h.CodeActionResolveRequest=h.CodeActionRequest=h.DocumentSymbolRequest=h.DocumentHighlightRequest=h.ReferencesRequest=h.DefinitionRequest=h.SignatureHelpRequest=h.SignatureHelpTriggerKind=h.HoverRequest=h.CompletionResolveRequest=h.CompletionRequest=h.CompletionTriggerKind=h.PublishDiagnosticsNotification=h.WatchKind=h.FileChangeType=h.DidChangeWatchedFilesNotification=h.WillSaveTextDocumentWaitUntilRequest=h.WillSaveTextDocumentNotification=h.TextDocumentSaveReason=h.DidSaveTextDocumentNotification=h.DidCloseTextDocumentNotification=h.DidChangeTextDocumentNotification=h.TextDocumentContentChangeEvent=h.DidOpenTextDocumentNotification=h.TextDocumentSyncKind=h.TelemetryEventNotification=h.LogMessageNotification=h.ShowMessageRequest=h.ShowMessageNotification=h.MessageType=h.DidChangeConfigurationNotification=h.ExitNotification=h.ShutdownRequest=h.InitializedNotification=h.InitializeError=h.InitializeRequest=h.WorkDoneProgressOptions=h.TextDocumentRegistrationOptions=h.StaticRegistrationOptions=h.FailureHandlingKind=h.ResourceOperationKind=h.UnregistrationRequest=h.RegistrationRequest=h.DocumentSelector=h.DocumentFilter=void 0;h.MonikerRequest=h.MonikerKind=h.UniquenessLevel=h.WillDeleteFilesRequest=h.DidDeleteFilesNotification=h.WillRenameFilesRequest=h.DidRenameFilesNotification=h.WillCreateFilesRequest=h.DidCreateFilesNotification=h.FileOperationPatternKind=h.LinkedEditingRangeRequest=h.ShowDocumentRequest=h.SemanticTokensRegistrationType=h.SemanticTokensRefreshRequest=h.SemanticTokensRangeRequest=h.SemanticTokensDeltaRequest=h.SemanticTokensRequest=h.TokenFormat=h.SemanticTokens=h.SemanticTokenModifiers=h.SemanticTokenTypes=h.CallHierarchyPrepareRequest=h.CallHierarchyOutgoingCallsRequest=h.CallHierarchyIncomingCallsRequest=h.WorkDoneProgressCancelNotification=h.WorkDoneProgressCreateRequest=h.WorkDoneProgress=h.SelectionRangeRequest=h.DeclarationRequest=h.FoldingRangeRequest=h.ColorPresentationRequest=h.DocumentColorRequest=h.ConfigurationRequest=h.DidChangeWorkspaceFoldersNotification=h.WorkspaceFoldersRequest=h.TypeDefinitionRequest=h.ImplementationRequest=h.ApplyWorkspaceEditRequest=h.ExecuteCommandRequest=h.PrepareRenameRequest=h.RenameRequest=h.PrepareSupportDefaultBehavior=h.DocumentOnTypeFormattingRequest=h.DocumentRangeFormattingRequest=h.DocumentFormattingRequest=h.DocumentLinkResolveRequest=void 0;var gn=Yc(),Q=Le(),ag=Qc();Object.defineProperty(h,"ImplementationRequest",{enumerable:!0,get:function(){return ag.ImplementationRequest}});var lg=Zc();Object.defineProperty(h,"TypeDefinitionRequest",{enumerable:!0,get:function(){return lg.TypeDefinitionRequest}});var gd=td();Object.defineProperty(h,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return gd.WorkspaceFoldersRequest}});Object.defineProperty(h,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return gd.DidChangeWorkspaceFoldersNotification}});var cg=nd();Object.defineProperty(h,"ConfigurationRequest",{enumerable:!0,get:function(){return cg.ConfigurationRequest}});var bd=id();Object.defineProperty(h,"DocumentColorRequest",{enumerable:!0,get:function(){return bd.DocumentColorRequest}});Object.defineProperty(h,"ColorPresentationRequest",{enumerable:!0,get:function(){return bd.ColorPresentationRequest}});var dg=od();Object.defineProperty(h,"FoldingRangeRequest",{enumerable:!0,get:function(){return dg.FoldingRangeRequest}});var pg=sd();Object.defineProperty(h,"DeclarationRequest",{enumerable:!0,get:function(){return pg.DeclarationRequest}});var hg=ad();Object.defineProperty(h,"SelectionRangeRequest",{enumerable:!0,get:function(){return hg.SelectionRangeRequest}});var $s=cd();Object.defineProperty(h,"WorkDoneProgress",{enumerable:!0,get:function(){return $s.WorkDoneProgress}});Object.defineProperty(h,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return $s.WorkDoneProgressCreateRequest}});Object.defineProperty(h,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return $s.WorkDoneProgressCancelNotification}});var Ks=dd();Object.defineProperty(h,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Ks.CallHierarchyIncomingCallsRequest}});Object.defineProperty(h,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Ks.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(h,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Ks.CallHierarchyPrepareRequest}});var Zt=pd();Object.defineProperty(h,"SemanticTokenTypes",{enumerable:!0,get:function(){return Zt.SemanticTokenTypes}});Object.defineProperty(h,"SemanticTokenModifiers",{enumerable:!0,get:function(){return Zt.SemanticTokenModifiers}});Object.defineProperty(h,"SemanticTokens",{enumerable:!0,get:function(){return Zt.SemanticTokens}});Object.defineProperty(h,"TokenFormat",{enumerable:!0,get:function(){return Zt.TokenFormat}});Object.defineProperty(h,"SemanticTokensRequest",{enumerable:!0,get:function(){return Zt.SemanticTokensRequest}});Object.defineProperty(h,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Zt.SemanticTokensDeltaRequest}});Object.defineProperty(h,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Zt.SemanticTokensRangeRequest}});Object.defineProperty(h,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Zt.SemanticTokensRefreshRequest}});Object.defineProperty(h,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Zt.SemanticTokensRegistrationType}});var ug=hd();Object.defineProperty(h,"ShowDocumentRequest",{enumerable:!0,get:function(){return ug.ShowDocumentRequest}});var mg=ud();Object.defineProperty(h,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return mg.LinkedEditingRangeRequest}});var In=md();Object.defineProperty(h,"FileOperationPatternKind",{enumerable:!0,get:function(){return In.FileOperationPatternKind}});Object.defineProperty(h,"DidCreateFilesNotification",{enumerable:!0,get:function(){return In.DidCreateFilesNotification}});Object.defineProperty(h,"WillCreateFilesRequest",{enumerable:!0,get:function(){return In.WillCreateFilesRequest}});Object.defineProperty(h,"DidRenameFilesNotification",{enumerable:!0,get:function(){return In.DidRenameFilesNotification}});Object.defineProperty(h,"WillRenameFilesRequest",{enumerable:!0,get:function(){return In.WillRenameFilesRequest}});Object.defineProperty(h,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return In.DidDeleteFilesNotification}});Object.defineProperty(h,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return In.WillDeleteFilesRequest}});var Hs=fd();Object.defineProperty(h,"UniquenessLevel",{enumerable:!0,get:function(){return Hs.UniquenessLevel}});Object.defineProperty(h,"MonikerKind",{enumerable:!0,get:function(){return Hs.MonikerKind}});Object.defineProperty(h,"MonikerRequest",{enumerable:!0,get:function(){return Hs.MonikerRequest}});var vd;(function(t){function e(n){let r=n;return gn.string(r.language)||gn.string(r.scheme)||gn.string(r.pattern)}t.is=e})(vd=h.DocumentFilter||(h.DocumentFilter={}));var yd;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let r of n)if(!gn.string(r)&&!vd.is(r))return!1;return!0}t.is=e})(yd=h.DocumentSelector||(h.DocumentSelector={}));var fg;(function(t){t.type=new Q.ProtocolRequestType("client/registerCapability")})(fg=h.RegistrationRequest||(h.RegistrationRequest={}));var gg;(function(t){t.type=new Q.ProtocolRequestType("client/unregisterCapability")})(gg=h.UnregistrationRequest||(h.UnregistrationRequest={}));var bg;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(bg=h.ResourceOperationKind||(h.ResourceOperationKind={}));var vg;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(vg=h.FailureHandlingKind||(h.FailureHandlingKind={}));var yg;(function(t){function e(n){let r=n;return r&&gn.string(r.id)&&r.id.length>0}t.hasId=e})(yg=h.StaticRegistrationOptions||(h.StaticRegistrationOptions={}));var wg;(function(t){function e(n){let r=n;return r&&(r.documentSelector===null||yd.is(r.documentSelector))}t.is=e})(wg=h.TextDocumentRegistrationOptions||(h.TextDocumentRegistrationOptions={}));var xg;(function(t){function e(r){let i=r;return gn.objectLiteral(i)&&(i.workDoneProgress===void 0||gn.boolean(i.workDoneProgress))}t.is=e;function n(r){let i=r;return i&&gn.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=n})(xg=h.WorkDoneProgressOptions||(h.WorkDoneProgressOptions={}));var Sg;(function(t){t.type=new Q.ProtocolRequestType("initialize")})(Sg=h.InitializeRequest||(h.InitializeRequest={}));var kg;(function(t){t.unknownProtocolVersion=1})(kg=h.InitializeError||(h.InitializeError={}));var Cg;(function(t){t.type=new Q.ProtocolNotificationType("initialized")})(Cg=h.InitializedNotification||(h.InitializedNotification={}));var Rg;(function(t){t.type=new Q.ProtocolRequestType0("shutdown")})(Rg=h.ShutdownRequest||(h.ShutdownRequest={}));var Fg;(function(t){t.type=new Q.ProtocolNotificationType0("exit")})(Fg=h.ExitNotification||(h.ExitNotification={}));var Dg;(function(t){t.type=new Q.ProtocolNotificationType("workspace/didChangeConfiguration")})(Dg=h.DidChangeConfigurationNotification||(h.DidChangeConfigurationNotification={}));var Eg;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(Eg=h.MessageType||(h.MessageType={}));var Pg;(function(t){t.type=new Q.ProtocolNotificationType("window/showMessage")})(Pg=h.ShowMessageNotification||(h.ShowMessageNotification={}));var Tg;(function(t){t.type=new Q.ProtocolRequestType("window/showMessageRequest")})(Tg=h.ShowMessageRequest||(h.ShowMessageRequest={}));var _g;(function(t){t.type=new Q.ProtocolNotificationType("window/logMessage")})(_g=h.LogMessageNotification||(h.LogMessageNotification={}));var zg;(function(t){t.type=new Q.ProtocolNotificationType("telemetry/event")})(zg=h.TelemetryEventNotification||(h.TelemetryEventNotification={}));var Mg;(function(t){t.None=0,t.Full=1,t.Incremental=2})(Mg=h.TextDocumentSyncKind||(h.TextDocumentSyncKind={}));var Ng;(function(t){t.method="textDocument/didOpen",t.type=new Q.ProtocolNotificationType(t.method)})(Ng=h.DidOpenTextDocumentNotification||(h.DidOpenTextDocumentNotification={}));var Ig;(function(t){function e(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=n})(Ig=h.TextDocumentContentChangeEvent||(h.TextDocumentContentChangeEvent={}));var Ag;(function(t){t.method="textDocument/didChange",t.type=new Q.ProtocolNotificationType(t.method)})(Ag=h.DidChangeTextDocumentNotification||(h.DidChangeTextDocumentNotification={}));var Og;(function(t){t.method="textDocument/didClose",t.type=new Q.ProtocolNotificationType(t.method)})(Og=h.DidCloseTextDocumentNotification||(h.DidCloseTextDocumentNotification={}));var Wg;(function(t){t.method="textDocument/didSave",t.type=new Q.ProtocolNotificationType(t.method)})(Wg=h.DidSaveTextDocumentNotification||(h.DidSaveTextDocumentNotification={}));var qg;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(qg=h.TextDocumentSaveReason||(h.TextDocumentSaveReason={}));var Lg;(function(t){t.method="textDocument/willSave",t.type=new Q.ProtocolNotificationType(t.method)})(Lg=h.WillSaveTextDocumentNotification||(h.WillSaveTextDocumentNotification={}));var jg;(function(t){t.method="textDocument/willSaveWaitUntil",t.type=new Q.ProtocolRequestType(t.method)})(jg=h.WillSaveTextDocumentWaitUntilRequest||(h.WillSaveTextDocumentWaitUntilRequest={}));var Ug;(function(t){t.type=new Q.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(Ug=h.DidChangeWatchedFilesNotification||(h.DidChangeWatchedFilesNotification={}));var Bg;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(Bg=h.FileChangeType||(h.FileChangeType={}));var Vg;(function(t){t.Create=1,t.Change=2,t.Delete=4})(Vg=h.WatchKind||(h.WatchKind={}));var $g;(function(t){t.type=new Q.ProtocolNotificationType("textDocument/publishDiagnostics")})($g=h.PublishDiagnosticsNotification||(h.PublishDiagnosticsNotification={}));var Kg;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(Kg=h.CompletionTriggerKind||(h.CompletionTriggerKind={}));var Hg;(function(t){t.method="textDocument/completion",t.type=new Q.ProtocolRequestType(t.method)})(Hg=h.CompletionRequest||(h.CompletionRequest={}));var Gg;(function(t){t.method="completionItem/resolve",t.type=new Q.ProtocolRequestType(t.method)})(Gg=h.CompletionResolveRequest||(h.CompletionResolveRequest={}));var Jg;(function(t){t.method="textDocument/hover",t.type=new Q.ProtocolRequestType(t.method)})(Jg=h.HoverRequest||(h.HoverRequest={}));var Xg;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(Xg=h.SignatureHelpTriggerKind||(h.SignatureHelpTriggerKind={}));var Yg;(function(t){t.method="textDocument/signatureHelp",t.type=new Q.ProtocolRequestType(t.method)})(Yg=h.SignatureHelpRequest||(h.SignatureHelpRequest={}));var Qg;(function(t){t.method="textDocument/definition",t.type=new Q.ProtocolRequestType(t.method)})(Qg=h.DefinitionRequest||(h.DefinitionRequest={}));var Zg;(function(t){t.method="textDocument/references",t.type=new Q.ProtocolRequestType(t.method)})(Zg=h.ReferencesRequest||(h.ReferencesRequest={}));var eb;(function(t){t.method="textDocument/documentHighlight",t.type=new Q.ProtocolRequestType(t.method)})(eb=h.DocumentHighlightRequest||(h.DocumentHighlightRequest={}));var tb;(function(t){t.method="textDocument/documentSymbol",t.type=new Q.ProtocolRequestType(t.method)})(tb=h.DocumentSymbolRequest||(h.DocumentSymbolRequest={}));var nb;(function(t){t.method="textDocument/codeAction",t.type=new Q.ProtocolRequestType(t.method)})(nb=h.CodeActionRequest||(h.CodeActionRequest={}));var rb;(function(t){t.method="codeAction/resolve",t.type=new Q.ProtocolRequestType(t.method)})(rb=h.CodeActionResolveRequest||(h.CodeActionResolveRequest={}));var ib;(function(t){t.method="workspace/symbol",t.type=new Q.ProtocolRequestType(t.method)})(ib=h.WorkspaceSymbolRequest||(h.WorkspaceSymbolRequest={}));var ob;(function(t){t.method="textDocument/codeLens",t.type=new Q.ProtocolRequestType(t.method)})(ob=h.CodeLensRequest||(h.CodeLensRequest={}));var sb;(function(t){t.method="codeLens/resolve",t.type=new Q.ProtocolRequestType(t.method)})(sb=h.CodeLensResolveRequest||(h.CodeLensResolveRequest={}));var ab;(function(t){t.method="workspace/codeLens/refresh",t.type=new Q.ProtocolRequestType0(t.method)})(ab=h.CodeLensRefreshRequest||(h.CodeLensRefreshRequest={}));var lb;(function(t){t.method="textDocument/documentLink",t.type=new Q.ProtocolRequestType(t.method)})(lb=h.DocumentLinkRequest||(h.DocumentLinkRequest={}));var cb;(function(t){t.method="documentLink/resolve",t.type=new Q.ProtocolRequestType(t.method)})(cb=h.DocumentLinkResolveRequest||(h.DocumentLinkResolveRequest={}));var db;(function(t){t.method="textDocument/formatting",t.type=new Q.ProtocolRequestType(t.method)})(db=h.DocumentFormattingRequest||(h.DocumentFormattingRequest={}));var pb;(function(t){t.method="textDocument/rangeFormatting",t.type=new Q.ProtocolRequestType(t.method)})(pb=h.DocumentRangeFormattingRequest||(h.DocumentRangeFormattingRequest={}));var hb;(function(t){t.method="textDocument/onTypeFormatting",t.type=new Q.ProtocolRequestType(t.method)})(hb=h.DocumentOnTypeFormattingRequest||(h.DocumentOnTypeFormattingRequest={}));var ub;(function(t){t.Identifier=1})(ub=h.PrepareSupportDefaultBehavior||(h.PrepareSupportDefaultBehavior={}));var mb;(function(t){t.method="textDocument/rename",t.type=new Q.ProtocolRequestType(t.method)})(mb=h.RenameRequest||(h.RenameRequest={}));var fb;(function(t){t.method="textDocument/prepareRename",t.type=new Q.ProtocolRequestType(t.method)})(fb=h.PrepareRenameRequest||(h.PrepareRenameRequest={}));var gb;(function(t){t.type=new Q.ProtocolRequestType("workspace/executeCommand")})(gb=h.ExecuteCommandRequest||(h.ExecuteCommandRequest={}));var bb;(function(t){t.type=new Q.ProtocolRequestType("workspace/applyEdit")})(bb=h.ApplyWorkspaceEditRequest||(h.ApplyWorkspaceEditRequest={}))});var Sd=U(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createProtocolConnection=void 0;var xd=Xn();function vb(t,e,n,r){return xd.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),xd.createMessageConnection(t,e,n,r)}Ki.createProtocolConnection=vb});var kd=U(rt=>{"use strict";var yb=rt&&rt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Hi=rt&&rt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yb(e,t,n)};Object.defineProperty(rt,"__esModule",{value:!0});rt.LSPErrorCodes=rt.createProtocolConnection=void 0;Hi(Xn(),rt);Hi((Bs(),Ml(Bc)),rt);Hi(Le(),rt);Hi(wd(),rt);var wb=Sd();Object.defineProperty(rt,"createProtocolConnection",{enumerable:!0,get:function(){return wb.createProtocolConnection}});var xb;(function(t){t.lspReservedErrorRangeStart=-32899,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(xb=rt.LSPErrorCodes||(rt.LSPErrorCodes={}))});var ut=U(qt=>{"use strict";var Sb=qt&&qt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Cd=qt&&qt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Sb(e,t,n)};Object.defineProperty(qt,"__esModule",{value:!0});qt.createProtocolConnection=void 0;var kb=Es();Cd(Es(),qt);Cd(kd(),qt);function Cb(t,e,n,r){return kb.createMessageConnection(t,e,n,r)}qt.createProtocolConnection=Cb});var Gs=U(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.generateUuid=yt.parse=yt.isUUID=yt.v4=yt.empty=void 0;var Gi=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},te=class extends Gi{constructor(){super([te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),"-",te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),"-","4",te._randomHex(),te._randomHex(),te._randomHex(),"-",te._oneOf(te._timeHighBits),te._randomHex(),te._randomHex(),te._randomHex(),"-",te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex(),te._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return te._oneOf(te._chars)}};te._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];te._timeHighBits=["8","9","a","b"];yt.empty=new Gi("00000000-0000-0000-0000-000000000000");function Rd(){return new te}yt.v4=Rd;var Rb=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Fd(t){return Rb.test(t)}yt.isUUID=Fd;function Fb(t){if(!Fd(t))throw new Error("invalid uuid");return new Gi(t)}yt.parse=Fb;function Db(){return Rd().asHex()}yt.generateUuid=Db});var Ed=U(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.attachPartialResult=vn.ProgressFeature=vn.attachWorkDone=void 0;var bn=ut(),Eb=Gs(),en=class{constructor(e,n){this._connection=e,this._token=n,en.Instances.set(this._token,this)}begin(e,n,r,i){let o={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(bn.WorkDoneProgress.type,this._token,o)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(bn.WorkDoneProgress.type,this._token,r)}done(){en.Instances.delete(this._token),this._connection.sendProgress(bn.WorkDoneProgress.type,this._token,{kind:"end"})}};en.Instances=new Map;var Js=class extends en{constructor(e,n){super(e,n);this._source=new bn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Ji=class{constructor(){}begin(){}report(){}done(){}},Xs=class extends Ji{constructor(){super();this._source=new bn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function Pb(t,e){if(e===void 0||e.workDoneToken===void 0)return new Ji;let n=e.workDoneToken;return delete e.workDoneToken,new en(t,n)}vn.attachWorkDone=Pb;var Tb=t=>class extends t{constructor(){super();this._progressSupported=!1}initialize(e){var n;((n=e==null?void 0:e.window)===null||n===void 0?void 0:n.workDoneProgress)===!0&&(this._progressSupported=!0,this.connection.onNotification(bn.WorkDoneProgressCancelNotification.type,r=>{let i=en.Instances.get(r.token);(i instanceof Js||i instanceof Xs)&&i.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new Ji:new en(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=Eb.generateUuid();return this.connection.sendRequest(bn.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Js(this.connection,e))}else return Promise.resolve(new Xs)}};vn.ProgressFeature=Tb;var Ys;(function(t){t.type=new bn.ProgressType})(Ys||(Ys={}));var Dd=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(Ys.type,this._token,e)}};function _b(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new Dd(t,n)}vn.attachPartialResult=_b});var Pd=U(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ConfigurationFeature=void 0;var zb=ut(),Mb=Ci(),Nb=t=>class extends t{getConfiguration(e){return e?Mb.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(zb.ConfigurationRequest.type,n).then(r=>Array.isArray(e)?r:r[0])}};Xi.ConfigurationFeature=Nb});var Td=U(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.WorkspaceFoldersFeature=void 0;var Yi=ut(),Ib=t=>class extends t{initialize(e){let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Yi.Emitter,this.connection.onNotification(Yi.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}getWorkspaceFolders(){return this.connection.sendRequest(Yi.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._unregistration||(this._unregistration=this.connection.client.register(Yi.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Qi.WorkspaceFoldersFeature=Ib});var _d=U(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.CallHierarchyFeature=void 0;var Qs=ut(),Ab=t=>class extends t{get callHierarchy(){return{onPrepare:e=>{this.connection.onRequest(Qs.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))},onIncomingCalls:e=>{let n=Qs.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=Qs.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Zi.CallHierarchyFeature=Ab});var ea=U(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.SemanticTokensBuilder=ar.SemanticTokensFeature=void 0;var Zs=ut(),Ob=t=>class extends t{get semanticTokens(){return{on:e=>{let n=Zs.SemanticTokensRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=Zs.SemanticTokensDeltaRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=Zs.SemanticTokensRangeRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ar.SemanticTokensFeature=Ob;var zd=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,o){let s=e,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){if(this._prevData!==void 0){let e=this._prevData.length,n=this._data.length,r=0;for(;r{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.ShowDocumentFeature=void 0;var Wb=ut(),qb=t=>class extends t{showDocument(e){return this.connection.sendRequest(Wb.ShowDocumentRequest.type,e)}};eo.ShowDocumentFeature=qb});var Nd=U(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.FileOperationsFeature=void 0;var lr=ut(),Lb=t=>class extends t{onDidCreateFiles(e){this.connection.onNotification(lr.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){this.connection.onNotification(lr.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){this.connection.onNotification(lr.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(lr.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(lr.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(lr.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};to.FileOperationsFeature=Lb});var Id=U(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.LinkedEditingRangeFeature=void 0;var jb=ut(),Ub=t=>class extends t{onLinkedEditingRange(e){this.connection.onRequest(jb.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};no.LinkedEditingRangeFeature=Ub});var Ad=U(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.MonikerFeature=void 0;var Bb=ut(),Vb=t=>class extends t{get moniker(){return{on:e=>{let n=Bb.MonikerRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ro.MonikerFeature=Vb});var ca=U(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.createConnection=le.combineFeatures=le.combineLanguagesFeatures=le.combineWorkspaceFeatures=le.combineWindowFeatures=le.combineClientFeatures=le.combineTracerFeatures=le.combineTelemetryFeatures=le.combineConsoleFeatures=le._LanguagesImpl=le.BulkUnregistration=le.BulkRegistration=le.ErrorMessageTracker=le.TextDocuments=void 0;var A=ut(),wt=Ci(),ta=Gs(),Z=Ed(),$b=Pd(),Kb=Td(),Hb=_d(),Gb=ea(),Jb=Md(),Xb=Nd(),Yb=Id(),Qb=Ad();function na(t){if(t!==null)return t}var Od=class{constructor(e){this._documents=Object.create(null),this._configuration=e,this._onDidChangeContent=new A.Emitter,this._onDidOpen=new A.Emitter,this._onDidClose=new A.Emitter,this._onDidSave=new A.Emitter,this._onWillSave=new A.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._documents[e]}all(){return Object.keys(this._documents).map(e=>this._documents[e])}keys(){return Object.keys(this._documents)}listen(e){e.__textDocumentSync=A.TextDocumentSyncKind.Full,e.onDidOpenTextDocument(n=>{let r=n.textDocument,i=this._configuration.create(r.uri,r.languageId,r.version,r.text);this._documents[r.uri]=i;let o=Object.freeze({document:i});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)}),e.onDidChangeTextDocument(n=>{let r=n.textDocument,i=n.contentChanges;if(i.length===0)return;let o=this._documents[r.uri],{version:s}=r;if(s==null)throw new Error(`Received document change event for ${r.uri} without valid version identifier`);o=this._configuration.update(o,i,s),this._documents[r.uri]=o,this._onDidChangeContent.fire(Object.freeze({document:o}))}),e.onDidCloseTextDocument(n=>{let r=this._documents[n.textDocument.uri];r&&(delete this._documents[n.textDocument.uri],this._onDidClose.fire(Object.freeze({document:r})))}),e.onWillSaveTextDocument(n=>{let r=this._documents[n.textDocument.uri];r&&this._onWillSave.fire(Object.freeze({document:r,reason:n.reason}))}),e.onWillSaveTextDocumentWaitUntil((n,r)=>{let i=this._documents[n.textDocument.uri];return i&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:i,reason:n.reason}),r):[]}),e.onDidSaveTextDocument(n=>{let r=this._documents[n.textDocument.uri];r&&this._onDidSave.fire(Object.freeze({document:r}))})}};le.TextDocuments=Od;var Wd=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};le.ErrorMessageTracker=Wd;var ra=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(A.MessageType.Error,e)}warn(e){this.send(A.MessageType.Warning,e)}info(e){this.send(A.MessageType.Info,e)}log(e){this.send(A.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(A.LogMessageNotification.type,{type:e,message:n})}},qd=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:A.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(A.ShowMessageRequest.type,r).then(na)}showWarningMessage(e,...n){let r={type:A.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(A.ShowMessageRequest.type,r).then(na)}showInformationMessage(e,...n){let r={type:A.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(A.ShowMessageRequest.type,r).then(na)}},Ld=Jb.ShowDocumentFeature(Z.ProgressFeature(qd)),Zb;(function(t){function e(){return new ia}t.create=e})(Zb=le.BulkRegistration||(le.BulkRegistration={}));var ia=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=wt.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=ta.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},ev;(function(t){function e(){return new io(void 0,[])}t.create=e})(ev=le.BulkUnregistration||(le.BulkUnregistration={}));var io=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(A.UnregistrationRequest.type,n).then(void 0,r=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=wt.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(A.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},oa=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof ia?this.registerMany(e):e instanceof io?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=wt.string(n)?n:n.method,o=ta.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(A.RegistrationRequest.type,s).then(a=>(e.add({id:o,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,n){let r=wt.string(e)?e:e.method,i=ta.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(A.RegistrationRequest.type,o).then(s=>A.Disposable.create(()=>{this.unregisterSingle(i,r)}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(A.UnregistrationRequest.type,r).then(void 0,i=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(A.RegistrationRequest.type,n).then(()=>new io(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},jd=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(A.ApplyWorkspaceEditRequest.type,r)}},Ud=Xb.FileOperationsFeature(Kb.WorkspaceFoldersFeature($b.ConfigurationFeature(jd))),sa=class{constructor(){this._trace=A.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==A.Trace.Off&&this.connection.sendNotification(A.LogTraceNotification.type,{message:e,verbose:this._trace===A.Trace.Verbose?n:void 0})}},aa=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(A.TelemetryEventNotification.type,e)}},la=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return Z.attachWorkDone(this.connection,e)}attachPartialResultProgress(e,n){return Z.attachPartialResult(this.connection,n)}};le._LanguagesImpl=la;var Bd=Qb.MonikerFeature(Yb.LinkedEditingRangeFeature(Gb.SemanticTokensFeature(Hb.CallHierarchyFeature(la))));function Vd(t,e){return function(n){return e(t(n))}}le.combineConsoleFeatures=Vd;function $d(t,e){return function(n){return e(t(n))}}le.combineTelemetryFeatures=$d;function Kd(t,e){return function(n){return e(t(n))}}le.combineTracerFeatures=Kd;function Hd(t,e){return function(n){return e(t(n))}}le.combineClientFeatures=Hd;function Gd(t,e){return function(n){return e(t(n))}}le.combineWindowFeatures=Gd;function Jd(t,e){return function(n){return e(t(n))}}le.combineWorkspaceFeatures=Jd;function tv(t,e){return function(n){return e(t(n))}}le.combineLanguagesFeatures=tv;function nv(t,e){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(t.console,e.console,Vd),tracer:n(t.tracer,e.tracer,Kd),telemetry:n(t.telemetry,e.telemetry,$d),client:n(t.client,e.client,Hd),window:n(t.window,e.window,Gd),workspace:n(t.workspace,e.workspace,Jd)}}le.combineFeatures=nv;function rv(t,e,n){let r=n&&n.console?new(n.console(ra)):new ra,i=t(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(sa)):new sa,s=n&&n.telemetry?new(n.telemetry(aa)):new aa,a=n&&n.client?new(n.client(oa)):new oa,c=n&&n.window?new(n.window(Ld)):new Ld,l=n&&n.workspace?new(n.workspace(Ud)):new Ud,p=n&&n.languages?new(n.languages(Bd)):new Bd,m=[r,o,s,a,c,l,p];function g(b){return b instanceof Promise?b:wt.thenable(b)?new Promise((v,E)=>{b.then(V=>v(V),V=>E(V))}):Promise.resolve(b)}let y,k,T,R={listen:()=>i.listen(),sendRequest:(b,...v)=>i.sendRequest(wt.string(b)?b:b.method,...v),onRequest:(b,v)=>i.onRequest(b,v),sendNotification:(b,v)=>{let E=wt.string(b)?b:b.method;arguments.length===1?i.sendNotification(E):i.sendNotification(E,v)},onNotification:(b,v)=>i.onNotification(b,v),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:b=>k=b,onInitialized:b=>i.onNotification(A.InitializedNotification.type,b),onShutdown:b=>y=b,onExit:b=>T=b,get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return p},onDidChangeConfiguration:b=>i.onNotification(A.DidChangeConfigurationNotification.type,b),onDidChangeWatchedFiles:b=>i.onNotification(A.DidChangeWatchedFilesNotification.type,b),__textDocumentSync:void 0,onDidOpenTextDocument:b=>i.onNotification(A.DidOpenTextDocumentNotification.type,b),onDidChangeTextDocument:b=>i.onNotification(A.DidChangeTextDocumentNotification.type,b),onDidCloseTextDocument:b=>i.onNotification(A.DidCloseTextDocumentNotification.type,b),onWillSaveTextDocument:b=>i.onNotification(A.WillSaveTextDocumentNotification.type,b),onWillSaveTextDocumentWaitUntil:b=>i.onRequest(A.WillSaveTextDocumentWaitUntilRequest.type,b),onDidSaveTextDocument:b=>i.onNotification(A.DidSaveTextDocumentNotification.type,b),sendDiagnostics:b=>i.sendNotification(A.PublishDiagnosticsNotification.type,b),onHover:b=>i.onRequest(A.HoverRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),void 0)),onCompletion:b=>i.onRequest(A.CompletionRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onCompletionResolve:b=>i.onRequest(A.CompletionResolveRequest.type,b),onSignatureHelp:b=>i.onRequest(A.SignatureHelpRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),void 0)),onDeclaration:b=>i.onRequest(A.DeclarationRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onDefinition:b=>i.onRequest(A.DefinitionRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onTypeDefinition:b=>i.onRequest(A.TypeDefinitionRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onImplementation:b=>i.onRequest(A.ImplementationRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onReferences:b=>i.onRequest(A.ReferencesRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onDocumentHighlight:b=>i.onRequest(A.DocumentHighlightRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onDocumentSymbol:b=>i.onRequest(A.DocumentSymbolRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onWorkspaceSymbol:b=>i.onRequest(A.WorkspaceSymbolRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onCodeAction:b=>i.onRequest(A.CodeActionRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onCodeActionResolve:b=>i.onRequest(A.CodeActionResolveRequest.type,(v,E)=>b(v,E)),onCodeLens:b=>i.onRequest(A.CodeLensRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onCodeLensResolve:b=>i.onRequest(A.CodeLensResolveRequest.type,(v,E)=>b(v,E)),onDocumentFormatting:b=>i.onRequest(A.DocumentFormattingRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),void 0)),onDocumentRangeFormatting:b=>i.onRequest(A.DocumentRangeFormattingRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),void 0)),onDocumentOnTypeFormatting:b=>i.onRequest(A.DocumentOnTypeFormattingRequest.type,(v,E)=>b(v,E)),onRenameRequest:b=>i.onRequest(A.RenameRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),void 0)),onPrepareRename:b=>i.onRequest(A.PrepareRenameRequest.type,(v,E)=>b(v,E)),onDocumentLinks:b=>i.onRequest(A.DocumentLinkRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onDocumentLinkResolve:b=>i.onRequest(A.DocumentLinkResolveRequest.type,(v,E)=>b(v,E)),onDocumentColor:b=>i.onRequest(A.DocumentColorRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onColorPresentation:b=>i.onRequest(A.ColorPresentationRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onFoldingRanges:b=>i.onRequest(A.FoldingRangeRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onSelectionRanges:b=>i.onRequest(A.SelectionRangeRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),Z.attachPartialResult(i,v))),onExecuteCommand:b=>i.onRequest(A.ExecuteCommandRequest.type,(v,E)=>b(v,E,Z.attachWorkDone(i,v),void 0)),dispose:()=>i.dispose()};for(let b of m)b.attach(R);return i.onRequest(A.InitializeRequest.type,b=>{e.initialize(b),wt.string(b.trace)&&(o.trace=A.Trace.fromString(b.trace));for(let v of m)v.initialize(b.capabilities);if(k){let v=k(b,new A.CancellationTokenSource().token,Z.attachWorkDone(i,b),void 0);return g(v).then(E=>{if(E instanceof A.ResponseError)return E;let V=E;V||(V={capabilities:{}});let x=V.capabilities;x||(x={},V.capabilities=x),x.textDocumentSync===void 0||x.textDocumentSync===null?x.textDocumentSync=wt.number(R.__textDocumentSync)?R.__textDocumentSync:A.TextDocumentSyncKind.None:!wt.number(x.textDocumentSync)&&!wt.number(x.textDocumentSync.change)&&(x.textDocumentSync.change=wt.number(R.__textDocumentSync)?R.__textDocumentSync:A.TextDocumentSyncKind.None);for(let O of m)O.fillServerCapabilities(x);return V})}else{let v={capabilities:{textDocumentSync:A.TextDocumentSyncKind.None}};for(let E of m)E.fillServerCapabilities(v.capabilities);return v}}),i.onRequest(A.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,y)return y(new A.CancellationTokenSource().token)}),i.onNotification(A.ExitNotification.type,()=>{try{T&&T()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(A.SetTraceNotification.type,b=>{o.trace=A.Trace.fromString(b.value)}),R}le.createConnection=rv});var Yd=U(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.resolveModulePath=it.FileSystem=it.resolveGlobalYarnPath=it.resolveGlobalNodePath=it.resolve=it.uriToFilePath=void 0;var iv=require("url"),Tt=require("path"),da=require("fs"),pa=require("child_process");function ov(t){let e=iv.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r1){let o=n[0],s=n[1];o.length===0&&s.length>1&&s[1]===":"&&n.shift()}return Tt.normalize(n.join("/"))}it.uriToFilePath=ov;function ha(){return process.platform==="win32"}function oo(t,e,n,r){let i="NODE_PATH",o=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((s,a)=>{let c=process.env,l=Object.create(null);Object.keys(c).forEach(p=>l[p]=c[p]),e&&da.existsSync(e)&&(l[i]?l[i]=e+Tt.delimiter+l[i]:l[i]=e,r&&r(`NODE_PATH value is: ${l[i]}`)),l.ELECTRON_RUN_AS_NODE="1";try{let p=pa.fork("",[],{cwd:n,env:l,execArgv:["-e",o]});if(p.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}p.on("error",g=>{a(g)}),p.on("message",g=>{g.c==="r"&&(p.send({c:"e"}),g.s?s(g.r):a(new Error(`Failed to resolve module: ${t}`)))});let m={c:"rs",a:t};p.send(m)}catch(p){a(p)}})}it.resolve=oo;function ua(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(o=>n[o]=process.env[o]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};ha()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let o=pa.spawnSync(e,["config","get","prefix"],r).stdout;if(!o){t&&t("'npm config get prefix' didn't return a value.");return}let s=o.trim();return t&&t(`'npm config get prefix' value is: ${s}`),s.length>0?ha()?Tt.join(s,"node_modules"):Tt.join(s,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}it.resolveGlobalNodePath=ua;function sv(t){let e="yarn",n={encoding:"utf8"};ha()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=pa.spawnSync(e,["global","dir","--json"],n),o=i.stdout;if(!o){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let s=o.trim().split(/\r?\n/);for(let a of s)try{let c=JSON.parse(a);if(c.type==="log")return Tt.join(c.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}it.resolveGlobalYarnPath=sv;var Xd;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!da.existsSync(__filename.toUpperCase())||!da.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,o){return n()?Tt.normalize(o).indexOf(Tt.normalize(i))===0:Tt.normalize(o).toLowerCase().indexOf(Tt.normalize(i).toLowerCase())===0}t.isParent=r})(Xd=it.FileSystem||(it.FileSystem={}));function av(t,e,n,r){return n?(Tt.isAbsolute(n)||(n=Tt.join(t,n)),oo(e,n,n,r).then(i=>Xd.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>oo(e,ua(r),t,r))):oo(e,ua(r),t,r)}it.resolveModulePath=av});var ma=U((wx,Qd)=>{"use strict";Qd.exports=ut()});var ep=U(mt=>{"use strict";var lv=mt&&mt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Zd=mt&&mt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&lv(e,t,n)};Object.defineProperty(mt,"__esModule",{value:!0});mt.ProposedFeatures=mt.SemanticTokensBuilder=void 0;var cv=ea();Object.defineProperty(mt,"SemanticTokensBuilder",{enumerable:!0,get:function(){return cv.SemanticTokensBuilder}});Zd(ut(),mt);Zd(ca(),mt);var dv;(function(t){t.all={__brand:"features"}})(dv=mt.ProposedFeatures||(mt.ProposedFeatures={}))});var Zr=U(ft=>{"use strict";var pv=ft&&ft.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),tp=ft&&ft.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&pv(e,t,n)};Object.defineProperty(ft,"__esModule",{value:!0});ft.createConnection=ft.Files=void 0;var fa=Ci(),hv=ca(),Qr=Yd(),An=ma();tp(ma(),ft);tp(ep(),ft);var uv;(function(t){t.uriToFilePath=Qr.uriToFilePath,t.resolveGlobalNodePath=Qr.resolveGlobalNodePath,t.resolveGlobalYarnPath=Qr.resolveGlobalYarnPath,t.resolve=Qr.resolve,t.resolveModulePath=Qr.resolveModulePath})(uv=ft.Files||(ft.Files={}));var np;function so(){if(np!==void 0)try{np.end()}catch{}}var cr=!1,rp;function mv(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(rp=setInterval(()=>{try{process.kill(r,0)}catch{so(),process.exit(cr?0:1)}},3e3))}catch{}}for(let n=2;n{let e=t.processId;fa.number(e)&&rp===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(cr?0:1)}},3e3)},get shutdownReceived(){return cr},set shutdownReceived(t){cr=t},exit:t=>{so(),process.exit(t)}};function gv(t,e,n,r){let i,o,s,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),An.ConnectionStrategy.is(t)||An.ConnectionOptions.is(t)?a=t:(o=t,s=e,a=n),bv(o,s,a,i)}ft.createConnection=gv;function bv(t,e,n,r){if(!t&&!e&&process.argv.length>2){let a,c,l=process.argv.slice(2);for(let p=0;p{so(),process.exit(cr?0:1)}),a.on("close",()=>{so(),process.exit(cr?0:1)})}let s=a=>An.createProtocolConnection(t,e,a,n);return hv.createConnection(s,fv,r)}});var op=U((kx,ip)=>{"use strict";ip.exports=Zr()});function ei(t,e){if(e instanceof Error){let n=e;return`${t}: ${n.message} +${n.stack}`}else{if(typeof e=="string")return`${t}: ${e}`;if(e)return`${t}: ${e.toString()}`}return t}function ct(t,e,n,r,i){return new Promise(o=>{t.timer.setImmediate(()=>{if(i.isCancellationRequested){o(sp());return}return e().then(s=>{if(i.isCancellationRequested){o(sp());return}else o(s)},s=>{console.error(ei(r,s)),o(n)})})})}function sp(){return new ao.ResponseError(ao.LSPErrorCodes.RequestCancelled,"Request cancelled")}var ao,ga=H(()=>{ao=Xe(Zr())});var ap,gt,dr,pr=H(()=>{ap=(()=>{"use strict";var t={470:r=>{function i(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function o(a,c){for(var l,p="",m=0,g=-1,y=0,k=0;k<=a.length;++k){if(k2){var T=p.lastIndexOf("/");if(T!==p.length-1){T===-1?(p="",m=0):m=(p=p.slice(0,T)).length-1-p.lastIndexOf("/"),g=k,y=0;continue}}else if(p.length===2||p.length===1){p="",m=0,g=k,y=0;continue}}c&&(p.length>0?p+="/..":p="..",m=2)}else p.length>0?p+="/"+a.slice(g+1,k):p=a.slice(g+1,k),m=k-g-1;g=k,y=0}else l===46&&y!==-1?++y:y=-1}return p}var s={resolve:function(){for(var a,c="",l=!1,p=arguments.length-1;p>=-1&&!l;p--){var m;p>=0?m=arguments[p]:(a===void 0&&(a=process.cwd()),m=a),i(m),m.length!==0&&(c=m+"/"+c,l=m.charCodeAt(0)===47)}return c=o(c,!l),l?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(a){if(i(a),a.length===0)return".";var c=a.charCodeAt(0)===47,l=a.charCodeAt(a.length-1)===47;return(a=o(a,!c)).length!==0||c||(a="."),a.length>0&&l&&(a+="/"),c?"/"+a:a},isAbsolute:function(a){return i(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,c=0;c0&&(a===void 0?a=l:a+="/"+l)}return a===void 0?".":s.normalize(a)},relative:function(a,c){if(i(a),i(c),a===c||(a=s.resolve(a))===(c=s.resolve(c)))return"";for(var l=1;lk){if(c.charCodeAt(g+R)===47)return c.slice(g+R+1);if(R===0)return c.slice(g+R)}else m>k&&(a.charCodeAt(l+R)===47?T=R:R===0&&(T=0));break}var b=a.charCodeAt(l+R);if(b!==c.charCodeAt(g+R))break;b===47&&(T=R)}var v="";for(R=l+T+1;R<=p;++R)R!==p&&a.charCodeAt(R)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(g+T):(g+=T,c.charCodeAt(g)===47&&++g,c.slice(g))},_makeLong:function(a){return a},dirname:function(a){if(i(a),a.length===0)return".";for(var c=a.charCodeAt(0),l=c===47,p=-1,m=!0,g=a.length-1;g>=1;--g)if((c=a.charCodeAt(g))===47){if(!m){p=g;break}}else m=!1;return p===-1?l?"/":".":l&&p===1?"//":a.slice(0,p)},basename:function(a,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');i(a);var l,p=0,m=-1,g=!0;if(c!==void 0&&c.length>0&&c.length<=a.length){if(c.length===a.length&&c===a)return"";var y=c.length-1,k=-1;for(l=a.length-1;l>=0;--l){var T=a.charCodeAt(l);if(T===47){if(!g){p=l+1;break}}else k===-1&&(g=!1,k=l+1),y>=0&&(T===c.charCodeAt(y)?--y==-1&&(m=l):(y=-1,m=k))}return p===m?m=k:m===-1&&(m=a.length),a.slice(p,m)}for(l=a.length-1;l>=0;--l)if(a.charCodeAt(l)===47){if(!g){p=l+1;break}}else m===-1&&(g=!1,m=l+1);return m===-1?"":a.slice(p,m)},extname:function(a){i(a);for(var c=-1,l=0,p=-1,m=!0,g=0,y=a.length-1;y>=0;--y){var k=a.charCodeAt(y);if(k!==47)p===-1&&(m=!1,p=y+1),k===46?c===-1?c=y:g!==1&&(g=1):c!==-1&&(g=-1);else if(!m){l=y+1;break}}return c===-1||p===-1||g===0||g===1&&c===p-1&&c===l+1?"":a.slice(c,p)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(c,l){var p=l.dir||l.root,m=l.base||(l.name||"")+(l.ext||"");return p?p===l.root?p+m:p+"/"+m:m}(0,a)},parse:function(a){i(a);var c={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return c;var l,p=a.charCodeAt(0),m=p===47;m?(c.root="/",l=1):l=0;for(var g=-1,y=0,k=-1,T=!0,R=a.length-1,b=0;R>=l;--R)if((p=a.charCodeAt(R))!==47)k===-1&&(T=!1,k=R+1),p===46?g===-1?g=R:b!==1&&(b=1):g!==-1&&(b=-1);else if(!T){y=R+1;break}return g===-1||k===-1||b===0||b===1&&g===k-1&&g===y+1?k!==-1&&(c.base=c.name=y===0&&m?a.slice(1,k):a.slice(y,k)):(y===0&&m?(c.name=a.slice(1,g),c.base=a.slice(1,k)):(c.name=a.slice(y,g),c.base=a.slice(y,k)),c.ext=a.slice(g,k)),y>0?c.dir=a.slice(0,y-1):m&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,r.exports=s},447:(r,i,o)=>{var s;if(o.r(i),o.d(i,{URI:()=>b,Utils:()=>pt}),typeof process=="object")s=process.platform==="win32";else if(typeof navigator=="object"){var a=navigator.userAgent;s=a.indexOf("Windows")>=0}var c,l,p=(c=function(M,C){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,N){P.__proto__=N}||function(P,N){for(var ne in N)Object.prototype.hasOwnProperty.call(N,ne)&&(P[ne]=N[ne])})(M,C)},function(M,C){function P(){this.constructor=M}c(M,C),M.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)}),m=/^\w[\w\d+.-]*$/,g=/^\//,y=/^\/\//,k="",T="/",R=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,b=function(){function M(C,P,N,ne,Y,re){re===void 0&&(re=!1),typeof C=="object"?(this.scheme=C.scheme||k,this.authority=C.authority||k,this.path=C.path||k,this.query=C.query||k,this.fragment=C.fragment||k):(this.scheme=function(fe,ze){return fe||ze?fe:"file"}(C,re),this.authority=P||k,this.path=function(fe,ze){switch(fe){case"https":case"http":case"file":ze?ze[0]!==T&&(ze=T+ze):ze=T}return ze}(this.scheme,N||k),this.query=ne||k,this.fragment=Y||k,function(fe,ze){if(!fe.scheme&&ze)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+fe.authority+'", path: "'+fe.path+'", query: "'+fe.query+'", fragment: "'+fe.fragment+'"}');if(fe.scheme&&!m.test(fe.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(fe.path){if(fe.authority){if(!g.test(fe.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(y.test(fe.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,re))}return M.isUri=function(C){return C instanceof M||!!C&&typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="function"&&typeof C.with=="function"&&typeof C.toString=="function"},Object.defineProperty(M.prototype,"fsPath",{get:function(){return z(this,!1)},enumerable:!1,configurable:!0}),M.prototype.with=function(C){if(!C)return this;var P=C.scheme,N=C.authority,ne=C.path,Y=C.query,re=C.fragment;return P===void 0?P=this.scheme:P===null&&(P=k),N===void 0?N=this.authority:N===null&&(N=k),ne===void 0?ne=this.path:ne===null&&(ne=k),Y===void 0?Y=this.query:Y===null&&(Y=k),re===void 0?re=this.fragment:re===null&&(re=k),P===this.scheme&&N===this.authority&&ne===this.path&&Y===this.query&&re===this.fragment?this:new E(P,N,ne,Y,re)},M.parse=function(C,P){P===void 0&&(P=!1);var N=R.exec(C);return N?new E(N[2]||k,Ze(N[4]||k),Ze(N[5]||k),Ze(N[7]||k),Ze(N[9]||k),P):new E(k,k,k,k,k)},M.file=function(C){var P=k;if(s&&(C=C.replace(/\\/g,T)),C[0]===T&&C[1]===T){var N=C.indexOf(T,2);N===-1?(P=C.substring(2),C=T):(P=C.substring(2,N),C=C.substring(N)||T)}return new E("file",P,C,k,k)},M.from=function(C){return new E(C.scheme,C.authority,C.path,C.query,C.fragment)},M.prototype.toString=function(C){return C===void 0&&(C=!1),ee(this,C)},M.prototype.toJSON=function(){return this},M.revive=function(C){if(C){if(C instanceof M)return C;var P=new E(C);return P._formatted=C.external,P._fsPath=C._sep===v?C.fsPath:null,P}return C},M}(),v=s?1:void 0,E=function(M){function C(){var P=M!==null&&M.apply(this,arguments)||this;return P._formatted=null,P._fsPath=null,P}return p(C,M),Object.defineProperty(C.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=z(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),C.prototype.toString=function(P){return P===void 0&&(P=!1),P?ee(this,!0):(this._formatted||(this._formatted=ee(this,!1)),this._formatted)},C.prototype.toJSON=function(){var P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=v),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P},C}(b),V=((l={})[58]="%3A",l[47]="%2F",l[63]="%3F",l[35]="%23",l[91]="%5B",l[93]="%5D",l[64]="%40",l[33]="%21",l[36]="%24",l[38]="%26",l[39]="%27",l[40]="%28",l[41]="%29",l[42]="%2A",l[43]="%2B",l[44]="%2C",l[59]="%3B",l[61]="%3D",l[32]="%20",l);function x(M,C){for(var P=void 0,N=-1,ne=0;ne=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===45||Y===46||Y===95||Y===126||C&&Y===47)N!==-1&&(P+=encodeURIComponent(M.substring(N,ne)),N=-1),P!==void 0&&(P+=M.charAt(ne));else{P===void 0&&(P=M.substr(0,ne));var re=V[Y];re!==void 0?(N!==-1&&(P+=encodeURIComponent(M.substring(N,ne)),N=-1),P+=re):N===-1&&(N=ne)}}return N!==-1&&(P+=encodeURIComponent(M.substring(N))),P!==void 0?P:M}function O(M){for(var C=void 0,P=0;P1&&M.scheme==="file"?"//"+M.authority+M.path:M.path.charCodeAt(0)===47&&(M.path.charCodeAt(1)>=65&&M.path.charCodeAt(1)<=90||M.path.charCodeAt(1)>=97&&M.path.charCodeAt(1)<=122)&&M.path.charCodeAt(2)===58?C?M.path.substr(1):M.path[1].toLowerCase()+M.path.substr(2):M.path,s&&(P=P.replace(/\//g,"\\")),P}function ee(M,C){var P=C?O:x,N="",ne=M.scheme,Y=M.authority,re=M.path,fe=M.query,ze=M.fragment;if(ne&&(N+=ne,N+=":"),(Y||ne==="file")&&(N+=T,N+=T),Y){var et=Y.indexOf("@");if(et!==-1){var It=Y.substr(0,et);Y=Y.substr(et+1),(et=It.indexOf(":"))===-1?N+=P(It,!1):(N+=P(It.substr(0,et),!1),N+=":",N+=P(It.substr(et+1),!1)),N+="@"}(et=(Y=Y.toLowerCase()).indexOf(":"))===-1?N+=P(Y,!1):(N+=P(Y.substr(0,et),!1),N+=Y.substr(et))}if(re){if(re.length>=3&&re.charCodeAt(0)===47&&re.charCodeAt(2)===58)(Ct=re.charCodeAt(1))>=65&&Ct<=90&&(re="/"+String.fromCharCode(Ct+32)+":"+re.substr(3));else if(re.length>=2&&re.charCodeAt(1)===58){var Ct;(Ct=re.charCodeAt(0))>=65&&Ct<=90&&(re=String.fromCharCode(Ct+32)+":"+re.substr(2))}N+=P(re,!0)}return fe&&(N+="?",N+=P(fe,!1)),ze&&(N+="#",N+=C?ze:x(ze,!1)),N}function xe(M){try{return decodeURIComponent(M)}catch{return M.length>3?M.substr(0,3)+xe(M.substr(3)):M}}var bt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ze(M){return M.match(bt)?M.replace(bt,function(C){return xe(C)}):M}var pt,Ae=o(470),ke=function(){for(var M=0,C=0,P=arguments.length;C{for(var o in i)n.o(i,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:i[o]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();({URI:gt,Utils:dr}=ap)});var d,lp,ba,vv,cp,va,yv,dp,lo,co,wv,xv,ti,Sv,hr,pp,kv,ya,hp,up,Cv,Rv,Fv,Dv,Ev,wa,mp,ur,mr,ni,fp,gp,xa,Sa,Pv,Tv,_v,zv,Mv,Nv,Iv,bp,vp,Lt,Te,jt,yn=H(()=>{"use strict";(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"})(d||(d={}));lp=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=lo&&n<=co?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=lo&&r<=co||e===0&&r===bp}),!0):!1},t.prototype._newline=function(e){var n=this.stream.peekChar();switch(n){case mr:case ni:case ur:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===mr&&this.stream.advanceIfChar(ur)&&e.push(` +`),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===wa){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=lo&&r<=co||r>=ba&&r<=vv||r>=va&&r<=yv);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===xa||r===Sa?this.stream.advance(1):this._newline([]),!0}if(r!==mr&&r!==ni&&r!==ur)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!==wa&&r!==mr&&r!==ni&&r!==ur?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===gp||this.stream.peekChar()===fp){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)),d.String):d.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==wa&&n!==gp&&n!==fp&&n!==hp&&n!==up&&n!==xa&&n!==Sa&&n!==ur&&n!==ni&&n!==mr?(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===xa||n===Sa||n===ur||n===ni||n===mr});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===pp||n>=ba&&n<=cp||n>=va&&n<=dp||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===hr?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===pp||n===hr||n>=ba&&n<=cp||n>=va&&n<=dp||n>=lo&&n<=co||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t}()});function be(t,e){if(t.length0?t.lastIndexOf(e)===n:n===0?t===e:!1}function yp(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],o=[],s,a;for(s=0;s{"use strict"});function ho(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 fr(t,e){for(var n=ho(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function xp(t){var e=t.findParent(u.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var q,u,X,W,je,Ue,Sp,ri,ve,tn,Ut,Bt,Ex,uo,kp,Qe,Cp,gr,Wv,nn,xn,_t,Rp,Fp,Dp,Ep,Pp,On,Tp,mo,Ca,fo,Ra,br,_p,zp,Mp,Np,Ip,go,ii,Ap,bo,vo,Op,Wp,Wn,qp,Lp,yo,wo,jp,Up,Px,oi,Bp,qv,Lv,jv,si,Sn,ai,vr,kn,Vp,$p,qn,rn,xo,Kp,Hp,Gp,Fa,Ke,So,Jp,He=H(()=>{"use strict";wn();q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}();(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"})(u||(u={}));(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"})(X||(X={}));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||u.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 je;)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{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var Da;function Ea(){if(Da===void 0)throw new Error("No runtime abstraction layer installed");return Da}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Da=n}t.install=e})(Ea||(Ea={}));Pa.default=Ea});var za=U(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.config=we.loadMessageBundle=we.localize=we.format=we.setPseudo=we.isPseudo=we.isDefined=we.BundleFormat=we.MessageFormat=void 0;var Xp=Ta(),Uv;(function(t){t.file="file",t.bundle="bundle",t.both="both"})(Uv=we.MessageFormat||(we.MessageFormat={}));var Bv;(function(t){t.standalone="standalone",t.languagePack="languagePack"})(Bv=we.BundleFormat||(we.BundleFormat={}));var Yp;(function(t){function e(n){var r=n;return r&&_a(r.key)&&_a(r.comment)}t.is=e})(Yp||(Yp={}));function _a(t){return typeof t!="undefined"}we.isDefined=_a;we.isPseudo=!1;function Vv(t){we.isPseudo=t}we.setPseudo=Vv;function Qp(t,e){var n;return we.isPseudo&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,function(r,i){var o=i[0],s=e[o],a=r;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),n}we.format=Qp;function $v(t,e){for(var n=[],r=2;r{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.config=Cn.loadMessageBundle=void 0;var zt=require("path"),xt=require("fs"),Gv=Ta(),dt=za(),Zp=za();Object.defineProperty(Cn,"MessageFormat",{enumerable:!0,get:function(){return Zp.MessageFormat}});Object.defineProperty(Cn,"BundleFormat",{enumerable:!0,get:function(){return Zp.BundleFormat}});var eh=Object.prototype.toString;function Jv(t){return eh.call(t)==="[object Number]"}function on(t){return eh.call(t)==="[object String]"}function Xv(t){return t===!0||t===!1}function yr(t){return JSON.parse(xt.readFileSync(t,"utf8"))}var ko,oe;function Yv(){if(oe={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:dt.MessageFormat.bundle},on(process.env.VSCODE_NLS_CONFIG))try{var t=JSON.parse(process.env.VSCODE_NLS_CONFIG),e=void 0;if(t.availableLanguages){var n=t.availableLanguages["*"];on(n)&&(e=n)}if(on(t.locale)&&(oe.locale=t.locale.toLowerCase()),e===void 0?oe.language=oe.locale:e!=="en"&&(oe.language=e),Xv(t._languagePackSupport)&&(oe.languagePackSupport=t._languagePackSupport),on(t._cacheRoot)&&(oe.cacheRoot=t._cacheRoot),on(t._languagePackId)&&(oe.languagePackId=t._languagePackId),on(t._translationsConfigFile)){oe.translationsConfigFile=t._translationsConfigFile;try{oe.translationsConfig=yr(oe.translationsConfigFile)}catch{if(t._corruptedFile){var r=zt.dirname(t._corruptedFile);xt.exists(r,function(o){o&&xt.writeFile(t._corruptedFile,"corrupted","utf8",function(s){console.error(s)})})}}}}catch{}dt.setPseudo(oe.locale==="pseudo"),ko=Object.create(null)}Yv();function Qv(){return oe.languagePackSupport===!0&&oe.cacheRoot!==void 0&&oe.languagePackId!==void 0&&oe.translationsConfigFile!==void 0&&oe.translationsConfig!==void 0}function Ma(t){return function(e,n){for(var r=[],i=2;i=t.length){console.error(`Broken localize call found. Index out of bounds. Stacktrace is +: `+new Error("").stack);return}return dt.format(t[e],r)}else{if(on(n))return console.warn("Message "+n+" didn't get externalized correctly."),dt.format(n,r);console.error(`Broken localize call found. Stacktrace is +: `+new Error("").stack)}}}function Zv(t){var e;if(oe.cacheLanguageResolution&&e)e=e;else{if(dt.isPseudo||!oe.language)e=".nls.json";else for(var n=oe.language;n;){var r=".nls."+n+".json";if(xt.existsSync(t+r)){e=r;break}else{var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(e=".nls.json",n=null)}}oe.cacheLanguageResolution&&(e=e)}return t+e}function ey(t){for(var e=oe.language;e;){var n=zt.join(t,"nls.bundle."+e+".json");if(xt.existsSync(n))return n;var r=e.lastIndexOf("-");r>0?e=e.substring(0,r):e=void 0}if(e===void 0){var n=zt.join(t,"nls.bundle.json");if(xt.existsSync(n))return n}}function ty(t){var e=yr(zt.join(t,"nls.metadata.json")),n=Object.create(null);for(var r in e){var i=e[r];n[r]=i.messages}return n}function ny(t,e){var n=oe.translationsConfig[t.id];if(!!n){var r=yr(n).contents,i=yr(zt.join(e,"nls.metadata.json")),o=Object.create(null);for(var s in i){var a=i[s],c=r[t.outDir+"/"+s];if(c){for(var l=[],p=0;p{"use strict";rh=Xe(St()),se=rh.loadMessageBundle(),ae=function(){function t(e,n){this.id=e,this.message=n}return t}(),w={NumberExpected:new ae("css-numberexpected",se("expected.number","number expected")),ConditionExpected:new ae("css-conditionexpected",se("expected.condt","condition expected")),RuleOrSelectorExpected:new ae("css-ruleorselectorexpected",se("expected.ruleorselector","at-rule or selector expected")),DotExpected:new ae("css-dotexpected",se("expected.dot","dot expected")),ColonExpected:new ae("css-colonexpected",se("expected.colon","colon expected")),SemiColonExpected:new ae("css-semicolonexpected",se("expected.semicolon","semi-colon expected")),TermExpected:new ae("css-termexpected",se("expected.term","term expected")),ExpressionExpected:new ae("css-expressionexpected",se("expected.expression","expression expected")),OperatorExpected:new ae("css-operatorexpected",se("expected.operator","operator expected")),IdentifierExpected:new ae("css-identifierexpected",se("expected.ident","identifier expected")),PercentageExpected:new ae("css-percentageexpected",se("expected.percentage","percentage expected")),URIOrStringExpected:new ae("css-uriorstringexpected",se("expected.uriorstring","uri or string expected")),URIExpected:new ae("css-uriexpected",se("expected.uri","URI expected")),VariableNameExpected:new ae("css-varnameexpected",se("expected.varname","variable name expected")),VariableValueExpected:new ae("css-varvalueexpected",se("expected.varvalue","variable value expected")),PropertyValueExpected:new ae("css-propertyvalueexpected",se("expected.propvalue","property value expected")),LeftCurlyExpected:new ae("css-lcurlyexpected",se("expected.lcurly","{ expected")),RightCurlyExpected:new ae("css-rcurlyexpected",se("expected.rcurly","} expected")),LeftSquareBracketExpected:new ae("css-rbracketexpected",se("expected.lsquare","[ expected")),RightSquareBracketExpected:new ae("css-lbracketexpected",se("expected.rsquare","] expected")),LeftParenthesisExpected:new ae("css-lparentexpected",se("expected.lparen","( expected")),RightParenthesisExpected:new ae("css-rparentexpected",se("expected.rparent",") expected")),CommaExpected:new ae("css-commaexpected",se("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new ae("css-pagedirordeclexpected",se("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new ae("css-unknownatrule",se("unknown.atrule","at-rule unknown")),UnknownKeyword:new ae("css-unknownkeyword",se("unknown.keyword","unknown keyword")),SelectorExpected:new ae("css-selectorexpected",se("expected.selector","selector expected")),StringLiteralExpected:new ae("css-stringliteralexpected",se("expected.stringliteral","string literal expected")),WhitespaceExpected:new ae("css-whitespaceexpected",se("expected.whitespace","whitespace expected")),MediaQueryExpected:new ae("css-mediaqueryexpected",se("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new ae("css-idorwildcardexpected",se("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new ae("css-wildcardexpected",se("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new ae("css-idorvarexpected",se("expected.idorvar","identifier or variable expected"))}});function oh(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F + +`;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it. + +`;case"obsolete":return`\u{1F6A8}\uFE0F\uFE0F\uFE0F Property is obsolete. Avoid using it. + +`;default:return""}}function Vt(t,e,n){var r;if(e?r={kind:"markdown",value:ly(t,n)}:r={kind:"plaintext",value:ay(t,n)},r.value!=="")return r}function Aa(t){return t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),t.replace(//g,">")}function ay(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+=oh(t.status)),n+=t.description;var r=sh(t.browsers);r&&(n+=` +(`+r+")"),"syntax"in t&&(n+=` + +Syntax: `+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 i.name+": "+i.url}).join(" | ")),n}function ly(t,e){if(!t.description||t.description==="")return"";var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=oh(t.status));var r=typeof t.description=="string"?t.description:t.description.value;n+=Aa(r);var i=sh(t.browsers);i&&(n+=` + +(`+Aa(i)+")"),"syntax"in t&&t.syntax&&(n+=` + +Syntax: `+Aa(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(o){return"["+o.name+"]("+o.url+")"}).join(" | ")),n}function sh(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],o=r[2];return i in ih&&(n+=ih[i]),o&&(n+=" "+o),n}).join(", ")}var ih,ah=H(()=>{"use strict";ih={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"}});function wr(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 cy(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/);if(n)return parseFloat(e)%360;throw new Error}function dh(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla)$/gi.test(e):!1}function Fe(t){return t=Fo&&t<=hy?t-Fo+10:0)}function hh(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Fe(t.charCodeAt(1))*17/255,green:Fe(t.charCodeAt(2))*17/255,blue:Fe(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Fe(t.charCodeAt(1))*17/255,green:Fe(t.charCodeAt(2))*17/255,blue:Fe(t.charCodeAt(3))*17/255,alpha:Fe(t.charCodeAt(4))*17/255};case 7:return{red:(Fe(t.charCodeAt(1))*16+Fe(t.charCodeAt(2)))/255,green:(Fe(t.charCodeAt(3))*16+Fe(t.charCodeAt(4)))/255,blue:(Fe(t.charCodeAt(5))*16+Fe(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Fe(t.charCodeAt(1))*16+Fe(t.charCodeAt(2)))/255,green:(Fe(t.charCodeAt(3))*16+Fe(t.charCodeAt(4)))/255,blue:(Fe(t.charCodeAt(5))*16+Fe(t.charCodeAt(6)))/255,alpha:(Fe(t.charCodeAt(7))*16+Fe(t.charCodeAt(8)))/255}}return null}function uy(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(a,c,l){for(;l<0;)l+=6;for(;l>=6;)l-=6;return l<1?(c-a)*l+a:l<3?c:l<4?(c-a)*(4-l)+a:a},o=n<=.5?n*(e+1):n+e-n*e,s=n*2-o;return{red:i(s,o,t+2),green:i(s,o,t),blue:i(s,o,t-2),alpha:r}}function uh(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,o=Math.max(e,n,r),s=Math.min(e,n,r),a=0,c=0,l=(s+o)/2,p=o-s;if(p>0){switch(c=Math.min(l<=.5?p/(2*l):p/(2-2*l),1),o){case e:a=(n-r)/p+(n4)return null;try{var o=i.length===4?wr(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:wr(i[0],255),green:wr(i[1],255),blue:wr(i[2],255),alpha:o};if(r==="hsl"||r==="hsla"){var s=cy(i[0]),a=wr(i[1],100),c=wr(i[2],100);return uy(s,a,c,o)}}catch{return null}}else if(t.type===u.Identifier){if(t.parent&&t.parent.type!==u.Term)return null;var l=t.parent;if(l&&l.parent&&l.parent.type===u.BinaryExpression){var p=l.parent;if(p.parent&&p.parent.type===u.ListEntry&&p.parent.key===p)return null}var m=t.getText().toLowerCase();if(m==="none")return null;var g=li[m];if(g)return hh(g)}return null}var lh,Ro,ch,li,Oa,ph,dy,py,Fo,hy,fh=H(()=>{He();lh=Xe(St()),Ro=lh.loadMessageBundle(),ch=[{func:"rgb($red, $green, $blue)",desc:Ro("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Ro("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Ro("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Ro("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],li={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"},Oa={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."};ph=48,dy=57,py=65,Fo=97,hy=102});var Wa,qa,La,gh,ja,Ua,Ba,Va,$a,Ka,Ha,Do,bh,vh,yh,wh=H(()=>{"use strict";Wa={bottom:"Computes to \u2018100%\u2019 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 \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 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 \u2018100%\u2019 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 \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},qa={"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 \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t 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."},La={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 \u2018none\u2019, 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."},gh=["medium","thick","thin"],ja={"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."},Ua={"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."},Ba={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Va={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},$a={"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\u2019s position and the first specified color-stop\u2019s 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\u2019s position and the first specified color-stop\u2019s position."},Ka={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 \u201Cstart\u201D or \u201Cend\u201D.","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."},Ha={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Do={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"]},bh=["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"],vh=["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"],yh=["@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"]});var xr=H(()=>{"use strict";ah();fh();wh()});function ci(t){return Object.keys(t).map(function(e){return t[e]})}function st(t){return typeof t!="undefined"}var di=H(()=>{"use strict"});var xh,Sr,Po=H(()=>{"use strict";yn();He();Co();xr();di();xh=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;re.offset?o-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new So(e,n,Ke.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(o,s){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,s)};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(o,s){return e.substr(o,s)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(Sp);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(d.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(d.SemiColon)&&this.markError(e,w.SemiColonExpected));this.accept(d.SemiColon)||this.accept(d.CDO)||this.accept(d.CDC);)r=!0,n=!1}while(r);if(this.peek(d.EOF))break;n||(this.peek(d.AtKeyword)?this.markError(e,w.UnknownAtRule):this.markError(e,w.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(d.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(d.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(d.Comma)&&this._parseSelector(e););if(this.accept(d.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(tn),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(d.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,w.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(d.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case u.Keyframe:case u.ViewPort:case u.Media:case u.Ruleset:case u.Namespace:case u.If:case u.For:case u.Each:case u.While:case u.MixinDeclaration:case u.FunctionDeclaration:case u.MixinContentDeclaration:return!1;case u.ExtendsReference:case u.MixinContentReference:case u.ReturnStatement:case u.MediaQuery:case u.Debug:case u.Import:case u.AtApplyRule:case u.CustomPropertyDeclaration:return!0;case u.VariableDeclaration:return e.needsSemicolon;case u.MixinReference:return!e.getContent();case u.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create(ri);if(!this.accept(d.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(d.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(d.SemiColon))return this.finish(n,w.SemiColonExpected,[d.SemiColon,d.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===d.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(d.SemiColon););r=e()}return this.accept(d.CurlyR)?this.finish(n):this.finish(n,w.RightCurlyExpected,[d.CurlyR,d.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,w.LeftCurlyExpected,[d.CurlyR,d.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(Ut),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(d.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(d.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,w.PropertyValueExpected)):this.finish(r,w.ColonExpected,[d.Colon],e||[d.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(d.Ident,/^--/))return null;var n=this.create(Cp);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(d.Colon))return this.finish(n,w.ColonExpected,[d.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(d.CurlyL)){var i=this.create(kp),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(d.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var s=this._parseExpr();return s&&!s.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,xh(xh([],e||[],!1),[d.SemiColon,d.EOF],!1)))?(n.setValue(s),this.peek(d.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),st(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,w.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[d.CurlyR]);var r=this.create(W),i=function(){return s===0&&a===0&&c===0},o=function(){return e.indexOf(n.token.type)!==-1},s=0,a=0,c=0;e:for(;;){switch(this.token.type){case d.SemiColon:if(i())break e;break;case d.Exclamation:if(i())break e;break;case d.CurlyL:s++;break;case d.CurlyR:if(s--,s<0){if(o()&&a===0&&c===0)break e;return this.finish(r,w.LeftCurlyExpected)}break;case d.ParenthesisL:a++;break;case d.ParenthesisR:if(a--,a<0){if(o()&&c===0&&s===0)break e;return this.finish(r,w.LeftParenthesisExpected)}break;case d.BracketL:c++;break;case d.BracketR:if(c--,c<0)return this.finish(r,w.LeftSquareBracketExpected);break;case d.BadString:break e;case d.EOF:var l=w.RightCurlyExpected;return c>0?l=w.RightSquareBracketExpected:a>0&&(l=w.RightParenthesisExpected),this.finish(r,l)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(d.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(gr),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(d.Charset))return null;var e=this.create(W);return this.consumeToken(),this.accept(d.String)?this.accept(d.SemiColon)?this.finish(e):this.finish(e,w.SemiColonExpected):this.finish(e,w.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(br);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,w.URIOrStringExpected):(!this.peek(d.SemiColon)&&!this.peek(d.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Ip);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,w.URIExpected,[d.SemiColon]):this.accept(d.SemiColon)?this.finish(e):this.finish(e,w.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(mo);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(Tp);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(d.AtKeyword,this.keyframeRegex))return null;var e=this.create(fo),n=this.create(W);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,w.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,w.IdentifierExpected,[d.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([X.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(Ra);if(!e.addChild(this._parseIdent())&&!this.accept(d.Percentage))return null;for(;this.accept(d.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(d.Percentage))return this.finish(e,w.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(Ra),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(d.Percentage))return null;for(;this.accept(d.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(d.Percentage))return this.restoreAtMark(n),null;return this.peek(d.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(ii);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(Wn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(d.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(Wn);if(this.accept(d.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([d.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,w.ConditionExpected):this.accept(d.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,w.RightParenthesisExpected,[d.ParenthesisR],[]);if(this.peek(d.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(d.ParenthesisL)){for(var r=1;this.token.type!==d.EOF&&r!==0;)this.token.type===d.ParenthesisL?r++:this.token.type===d.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,w.LeftParenthesisExpected,[],[d.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(go);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,w.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(bo);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,w.MediaQueryExpected);for(;this.accept(d.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,w.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(vo),n=this.mark();if(this.acceptIdent("not"),this.peek(d.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(Bp);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,w.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(Op);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(d.ParenthesisL))return this.finish(e,w.LeftParenthesisExpected,[],[d.CurlyL]);if(this.peek(d.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(d.ParenthesisR))return this.finish(e,w.RightParenthesisExpected,[],[d.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[d.ParenthesisR],r=this.create(Wp),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(d.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,w.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,w.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,w.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,w.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,w.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,w.TermExpected,[],n)}else return this.finish(r,w.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(qp);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(d.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,w.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(d.AtKeyword))return null;var e=this.create(Lp);return this.acceptOneKeyword(yh)||this.markError(e,w.UnknownAtRule,[],[d.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(d.Ident)&&!this.peek(d.Colon))return null;var e=this.create(W);return e.addChild(this._parseIdent()),this.accept(d.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,w.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(Ap);return this.consumeToken(),this.resync([],[d.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(d.AtKeyword))return null;var e=this.create(xo);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&o===0&&s===0},r=0,i=0,o=0,s=0;e:for(;;){switch(this.token.type){case d.SemiColon:if(n())break e;break;case d.EOF:return i>0?this.finish(e,w.RightCurlyExpected):s>0?this.finish(e,w.RightSquareBracketExpected):o>0?this.finish(e,w.RightParenthesisExpected):this.finish(e);case d.CurlyL:r++,i++;break;case d.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),s>0)return this.finish(e,w.RightSquareBracketExpected);if(o>0)return this.finish(e,w.RightParenthesisExpected);break e}if(i<0){if(o===0&&s===0)break e;return this.finish(e,w.LeftCurlyExpected)}break;case d.ParenthesisL:o++;break;case d.ParenthesisR:if(o--,o<0)return this.finish(e,w.LeftParenthesisExpected);break;case d.BracketL:s++;break;case d.BracketR:if(s--,s<0)return this.finish(e,w.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(W);return this.accept(d.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(d.Dashmatch)||this.peek(d.Includes)||this.peek(d.SubstringOperator)||this.peek(d.PrefixOperator)||this.peek(d.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(u.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=u.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=u.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(W);return this.consumeToken(),e.type=u.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(W);return this.consumeToken(),e.type=u.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=u.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(Bt),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(d.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(u.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,w.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(u.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,w.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(u.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(u.NamespacePrefix);return!n.addChild(this._parseIdent())&&!this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(d.BracketL))return null;var e=this.create(Up);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(d.BracketR)?this.finish(e):this.finish(e,w.RightSquareBracketExpected)):this.finish(e,w.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(d.ParenthesisL)){var r=function(){var i=e.create(W);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(d.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(d.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(d.Colon))return null;var e=this.mark(),n=this.createNode(u.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(d.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,w.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(d.Exclamation))return null;var e=this.createNode(u.Prio);return this.accept(d.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(yo);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(d.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseNamedLine=function(){if(!this.peek(d.BracketL))return null;var e=this.createNode(u.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(d.BracketR)?this.finish(e):this.finish(e,w.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(wo);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,w.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(jp);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(d.ParenthesisL))return null;var e=this.create(W);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(d.ParenthesisR)?this.finish(e):this.finish(e,w.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(d.Num)||this.peek(d.Percentage)||this.peek(d.Resolution)||this.peek(d.Length)||this.peek(d.EMS)||this.peek(d.EXS)||this.peek(d.Angle)||this.peek(d.Time)||this.peek(d.Dimension)||this.peek(d.Freq)){var e=this.create(si);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(d.String)&&!this.peek(d.BadString))return null;var e=this.createNode(u.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(d.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(u.URILiteral);return this.accept(d.Ident),this.hasWhitespace()||!this.peek(d.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,w.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(W);return!this.accept(d.String)&&!this.accept(d.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(d.Ident))return null;var n=this.create(Ue);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(d.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(nn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(d.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,w.ExpressionExpected);return this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,w.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(d.Ident))return null;var e=this.create(Ue);if(e.referenceTypes=[X.Function],this.acceptIdent("progid")){if(this.accept(d.Colon))for(;this.accept(d.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(_t);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(d.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(oi);return this.consumeToken(),this.finish(e)}else return null},t}()});function kh(t,e){var n=0,r=t.length;if(r===0)return 0;for(;n{"use strict"});var fy,Ch,gy,_o,by,hi,Ja=H(()=>{"use strict";He();To();fy=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),Ch=function(){function t(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}return t.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},t.prototype.setParent=function(e){this.parent=e},t.prototype.findScope=function(e,n){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=kh(this.children,function(s){return s.offset>r});if(i===0)return this;var o=this.children[i-1];return o.offset<=e&&o.offset+o.length>=e+n?o.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;rn.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function vy(t){var e=Dh(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var Rh,ui,Eh=H(()=>{"use strict";Rh=function(){function t(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content},t.prototype.update=function(e,n){for(var r=0,i=e;re?i=o:r=o+1}var s=r-1;return{line:s,character:e-n[s]}},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+1c&&l.push(s.substring(c,y)),g.newText.length&&l.push(g.newText),c=i.offsetAt(g.range.end)}return l.push(s.substr(c)),l.join("")}t.applyEdits=r})(ui||(ui={}))});var Ph,Ge,Mt=H(()=>{"use strict";Bs();Eh();(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[nt.Markdown,nt.PlainText]}},hover:{contentFormat:[nt.Markdown,nt.PlainText]}}}})(Ph||(Ph={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Ge||(Ge={}))});function zo(t){return dr.dirname(gt.parse(t)).toString()}function mi(t){for(var e=[],n=1;n{pr();yy=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r{Mt();wn();Ya();Th=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(p){try{l(r.next(p))}catch(m){s(m)}}function c(p){try{l(r.throw(p))}catch(m){s(m)}}function l(p){p.done?o(p.value):i(p.value).then(a,c)}l((r=r.apply(t,e||[])).next())})},_h=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return c([l,p])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=0&&` +\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function Ah(t){return t.toLowerCase()in li||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var Nh,Cy,Ry,Fy,sn,Ih,$t,kr,Za,Ey,Py,Io=H(()=>{"use strict";He();Ja();xr();wn();Mt();Nh=Xe(St());di();Mh();Cy=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(p){try{l(r.next(p))}catch(m){s(m)}}function c(p){try{l(r.throw(p))}catch(m){s(m)}}function l(p){p.done?o(p.value):i(p.value).then(a,c)}l((r=r.apply(t,e||[])).next())})},Ry=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return c([l,p])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=0;s--){var a=this.nodePath[s];if(a instanceof gr)this.getCompletionsForDeclarationProperty(a.getParent(),o);else if(a instanceof yo)a.parent instanceof ai?this.getVariableProposals(null,o):this.getCompletionsForExpression(a,o);else if(a instanceof Bt){var c=a.findAParent(u.ExtendsReference,u.Ruleset);if(c)if(c.type===u.ExtendsReference)this.getCompletionsForExtendsReference(c,a,o);else{var l=c;this.getCompletionsForSelector(l,l&&l.isNested(),o)}}else if(a instanceof _t)this.getCompletionsForFunctionArgument(a,a.getParent(),o);else if(a instanceof ri)this.getCompletionsForDeclarations(a,o);else if(a instanceof Sn)this.getCompletionsForVariableDeclaration(a,o);else if(a instanceof tn)this.getCompletionsForRuleSet(a,o);else if(a instanceof ai)this.getCompletionsForInterpolation(a,o);else if(a instanceof On)this.getCompletionsForFunctionDeclaration(a,o);else if(a instanceof qn)this.getCompletionsForMixinReference(a,o);else if(a instanceof nn)this.getCompletionsForFunctionArgument(null,a,o);else if(a instanceof ii)this.getCompletionsForSupports(a,o);else if(a instanceof Wn)this.getCompletionsForSupportsCondition(a,o);else if(a instanceof kn)this.getCompletionsForExtendsReference(a,null,o);else if(a.type===u.URILiteral)this.getCompletionForUriLiteralValue(a,o);else if(a.parent===null)this.getCompletionForTopLevel(o);else if(a.type===u.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,o);else continue;if(o.items.length>0||this.offset>a.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o),this.finalize(o)}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===u.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,o=this.isCompletePropertyWithSemicolonEnabled,s=this.cssDataManager.getProperties();return s.forEach(function(a){var c,l,p=!1;e?(c=r.getCompletionRange(e.getProperty()),l=a.name,st(e.colonPosition)||(l+=": ",p=!0)):(c=r.getCompletionRange(null),l=a.name+": ",p=!0),!e&&o&&(l+="$0;"),e&&!e.semicolonPosition&&o&&r.offset>=r.textDocument.offsetAt(c.end)&&(l+="$0;");var m={label:a.name,documentation:Vt(a,r.doesSupportMarkdown()),tags:fi(a)?[Ot.Deprecated]:[],textEdit:$.replace(c,l),insertTextFormat:qe.Snippet,kind:j.Property};a.restrictions||(p=!1),i&&p&&(m.command=Ih);var g=typeof a.relevance=="number"?Math.min(Math.max(a.relevance,0),99):50,y=(255-g).toString(16),k=be(a.name,"-")?$t.VendorPrefixed:$t.Normal;m.sortText=k+"_"+y,n.items.push(m)}),this.completionParticipants.forEach(function(a){a.onCssProperty&&a.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(),o=this.cssDataManager.getProperty(i),s=e.getValue()||null;s&&s.hasChildren();)s=s.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(k){k.onCssPropertyValue&&k.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(s)})}),o){if(o.restrictions)for(var a=0,c=o.restrictions;a=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,X.Variable),i=0,o=r;i0){var o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===u.Term&&(n=n.getParent()),e.restrictions)for(var s=0,a=e.restrictions;s=r.end;if(i)return this.getCompletionForTopLevel(n);var o=!r||this.offset<=r.offset;return o?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,o=this.findInNodePath(u.PseudoSelector,u.IdentifierSelector,u.ClassSelector,u.ElementNameSelector);!o&&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=ie.create(Ve.create(this.position.line,this.position.character-this.currentWord.length),this.position));var s=this.cssDataManager.getPseudoClasses();s.forEach(function(R){var b=Cr(R.name),v={label:R.name,textEdit:$.replace(i.getCompletionRange(o),b),documentation:Vt(R,i.doesSupportMarkdown()),tags:fi(R)?[Ot.Deprecated]:[],kind:j.Function,insertTextFormat:R.name!==b?sn:void 0};be(R.name,":-")&&(v.sortText=$t.VendorPrefixed),r.items.push(v)});var a=this.cssDataManager.getPseudoElements();if(a.forEach(function(R){var b=Cr(R.name),v={label:R.name,textEdit:$.replace(i.getCompletionRange(o),b),documentation:Vt(R,i.doesSupportMarkdown()),tags:fi(R)?[Ot.Deprecated]:[],kind:j.Function,insertTextFormat:R.name!==b?sn:void 0};be(R.name,"::-")&&(v.sortText=$t.VendorPrefixed),r.items.push(v)}),!n){for(var c=0,l=bh;c0){var b=k.substr(R.offset,R.length);return b.charAt(0)==="."&&!y[b]&&(y[b]=!0,r.items.push({label:b,textEdit:$.replace(i.getCompletionRange(o),b),kind:j.Keyword})),!1}return!0}),e&&e.isNested()){var T=e.getSelectors().findFirstChildBeforeOffset(this.offset);T&&e.getSelectors().getChildren().indexOf(T)===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 uo){var i=r;if(!st(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(st(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof _t)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(u.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var o=e.findChildAtOffset(this.offset,!0);return o?o instanceof si||o 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},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!st(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 o=e.findFirstChildBeforeOffset(this.offset);return o instanceof Wn?this.getCompletionsForSupportsCondition(o,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,o;if(e.hasChildren()){var a=e.getChild(0);r=a.getText(),i=this.position,o=this.getCompletionRange(a)}else{r="",i=this.position;var s=this.textDocument.positionAt(e.offset+"url(".length);o=ie.create(s,s)}return this.completionParticipants.forEach(function(c){c.onCssURILiteralValue&&c.onCssURILiteralValue({uriValue:r,position:i,range:o})}),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&&e1){var l=e.cloneWithParent();n.addChild(l.findRoot()),n=l}n.append(s[c])}}break;case u.SelectorPlaceholder:if(o.matches("@at-root"))return n;case u.ElementNameSelector:var p=o.getText();n.addAttr("name",p==="*"?"element":kt(p));break;case u.ClassSelector:n.addAttr("class",kt(o.getText().substring(1)));break;case u.IdentifierSelector:n.addAttr("id",kt(o.getText().substring(1)));break;case u.MixinDeclaration:n.addAttr("class",o.getName());break;case u.PseudoSelector:n.addAttr(kt(o.getText()),"");break;case u.AttributeSelector:var m=o,g=m.getIdentifier();if(g){var y=m.getValue(),k=m.getOperator(),T=void 0;if(y&&k)switch(kt(k.getText())){case"|=":T=an.remove(kt(y.getText()))+"-\u2026";break;case"^=":T=an.remove(kt(y.getText()))+"\u2026";break;case"$=":T="\u2026"+an.remove(kt(y.getText()));break;case"~=":T=" \u2026 "+an.remove(kt(y.getText()))+" \u2026 ";break;case"*=":T="\u2026"+an.remove(kt(y.getText()))+"\u2026";break;default:T=an.remove(kt(y.getText()));break}n.addAttr(kt(g.getText()),T)}break}}return n}function kt(t){var e=new jt;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}function Ny(t){switch(t.type){case u.MixinDeclaration:case u.Stylesheet:return!0}return!1}function Iy(t){if(t.matches("@at-root"))return null;var e=new Rr,n=[],r=t.getParent();if(r instanceof tn)for(var i=r.getParent();i&&!Ny(i);){if(i instanceof tn){if(i.getSelectors().matches("@at-root"))break;n.push(i)}i=i.getParent()}for(var o=new My(e),s=n.length-1;s>=0;s--){var a=n[s].getSelectors().getChild(0);a&&o.processSelector(a)}return o.processSelector(t),e}var Wh,Oh,_y,el,Rr,tl,qh,an,zy,jh,My,Uh=H(()=>{"use strict";He();yn();Wh=Xe(St()),Oh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),_y=Wh.loadMessageBundle(),el=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}();(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})(an||(an={}));zy=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();jh=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=Iy(e);if(n){var r=new qh('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=Lh(e),r=new qh('"').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(o){for(var s=0,a=o.getChildren();s0&&r(c)}},i=new zy;return r(e),_y("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),My=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof Rr)&&e.getChildren().some(function(p){return p.hasChildren()&&p.getChild(0).type===u.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof Rr&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,o=e.getChildren();i{"use strict";He();xr();Uh();wn();Mt();di();Ao=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new jh(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 o(R){return ie.create(e.positionAt(R.offset),e.positionAt(R.end))}for(var s=e.offsetAt(n),a=fr(r,s),c=null,l=0;l{"use strict";Mt();Vh=Xe(St());He();Ja();xr();wn();Ya();Oo=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(p){try{l(r.next(p))}catch(m){s(m)}}function c(p){try{l(r.throw(p))}catch(m){s(m)}}function l(p){p.done?o(p.value):i(p.value).then(a,c)}l((r=r.apply(t,e||[])).next())})},Wo=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return c([l,p])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]{"use strict";He();Jh=Xe(St()),_e=Jh.loadMessageBundle(),Fr=Ke.Warning,Xh=Ke.Error,Nt=Ke.Ignore,Ie=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),Wy=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),pe={AllVendorPrefixes:new Ie("compatibleVendorPrefixes",_e("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Nt),IncludeStandardPropertyWhenUsingVendorPrefix:new Ie("vendorPrefix",_e("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),Fr),DuplicateDeclarations:new Ie("duplicateProperties",_e("rule.duplicateDeclarations","Do not use duplicate style definitions"),Nt),EmptyRuleSet:new Ie("emptyRules",_e("rule.emptyRuleSets","Do not use empty rulesets"),Fr),ImportStatemement:new Ie("importStatement",_e("rule.importDirective","Import statements do not load in parallel"),Nt),BewareOfBoxModelSize:new Ie("boxModel",_e("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Nt),UniversalSelector:new Ie("universalSelector",_e("rule.universalSelector","The universal selector (*) is known to be slow"),Nt),ZeroWithUnit:new Ie("zeroUnits",_e("rule.zeroWidthUnit","No unit for zero needed"),Nt),RequiredPropertiesForFontFace:new Ie("fontFaceProperties",_e("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),Fr),HexColorLength:new Ie("hexColorLength",_e("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Xh),ArgsInColorFunction:new Ie("argumentsInColorFunction",_e("rule.colorFunction","Invalid number of parameters"),Xh),UnknownProperty:new Ie("unknownProperties",_e("rule.unknownProperty","Unknown property."),Fr),UnknownAtRules:new Ie("unknownAtRules",_e("rule.unknownAtRules","Unknown at-rule."),Fr),IEStarHack:new Ie("ieHack",_e("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Nt),UnknownVendorSpecificProperty:new Ie("unknownVendorSpecificProperties",_e("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Nt),PropertyIgnoredDueToDisplay:new Ie("propertyIgnoredDueToDisplay",_e("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),Fr),AvoidImportant:new Ie("important",_e("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."),Nt),AvoidFloat:new Ie("float",_e("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Nt),AvoidIdSelector:new Ie("idSelector",_e("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Nt)},Yh={ValidProperties:new Wy("validProperties",_e("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},Qh=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=qy(this.conf[e.id]);if(n)return n}return e.defaultValue},t.prototype.getSetting=function(e){return this.conf[e.id]},t}()});var Zh,Ly,Lo,eu=H(()=>{"use strict";He();wn();qo();Mt();Zh=Xe(St()),Ly=Zh.loadMessageBundle(),Lo=function(){function t(e){this.cssDataManager=e}return t.prototype.doCodeActions=function(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(function(o){var s=o.edit&&o.edit.documentChanges&&o.edit.documentChanges[0];return Xt.create(o.title,"_css.applyCodeAction",e.uri,e.version,s&&s.edits)})},t.prototype.doCodeActions2=function(e,n,r,i){var o=[];if(r.diagnostics)for(var s=0,a=r.diagnostics;s=o.length/2&&s.push({property:b.name,score:v})}),s.sort(function(b,v){return v.score-b.score||b.property.localeCompare(v.property)});for(var a=3,c=0,l=s;c=0;c--){var l=a[c];if(l instanceof Qe){var p=l.getProperty();if(p&&p.offset===o&&p.end===s){this.getFixesForUnknownProperty(e,p,r,i);return}}}},t}()});function bi(t,e,n,r){var i=t[e];i.value=n,n&&(Ga(i.properties,r)||i.properties.push(r))}function jy(t,e,n){bi(t,"top",e,n),bi(t,"right",e,n),bi(t,"bottom",e,n),bi(t,"left",e,n)}function Je(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?bi(t,e,n,r):jy(t,n,r)}function rl(t,e,n){switch(e.length){case 1:Je(t,void 0,e[0],n);break;case 2:Je(t,"top",e[0],n),Je(t,"bottom",e[0],n),Je(t,"right",e[1],n),Je(t,"left",e[1],n);break;case 3:Je(t,"top",e[0],n),Je(t,"right",e[1],n),Je(t,"left",e[1],n),Je(t,"bottom",e[2],n);break;case 4:Je(t,"top",e[0],n),Je(t,"right",e[1],n),Je(t,"bottom",e[2],n),Je(t,"left",e[3],n);break}}function il(t,e){for(var n=0,r=e;n{"use strict";To();tu=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}()});var iu,ln,ou,su,au=H(()=>{"use strict";iu=Xe(St());xr();He();To();qo();ru();ln=iu.loadMessageBundle(),ou=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}(),su=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new ou,this.validProperties={};var o=n.getSetting(Yh.ValidProperties);Array.isArray(o)&&o.forEach(function(s){if(typeof s=="string"){var a=s.trim().toLowerCase();a.length&&(i.validProperties[a]=!0)}})}return t.entries=function(e,n,r,i,o){var s=new t(n,r,i);return e.acceptVisitor(s),s.completeValidations(),s.getEntries(o)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,o=e;i0)for(var T=this.fetch(r,"float"),R=0;R0)for(var T=this.fetch(r,"vertical-align"),R=0;R1)for(var O=0;O{"use strict";He();qo();au();Mt();Uo=function(){function t(e){this.cssDataManager=e}return t.prototype.configure=function(e){this.settings=e},t.prototype.doValidation=function(e,n,r){if(r===void 0&&(r=this.settings),r&&r.validate===!1)return[];var i=[];i.push.apply(i,Jp.entries(n)),i.push.apply(i,su.entries(n,e,new Qh(r&&r.lint),this.cssDataManager));var o=[];for(var s in pe)o.push(pe[s].id);function a(c){var l=ie.create(e.positionAt(c.getOffset()),e.positionAt(c.getOffset()+c.getLength())),p=e.languageId;return{code:c.getRule().id,source:p,message:c.getMessage(),severity:c.getLevel()===Ke.Warning?zn.Warning:zn.Error,range:l}}return i.filter(function(c){return c.getLevel()!==Ke.Ignore}).map(a)},t}()});var Vy,cu,$y,Ky,Hy,Gy,Jy,Xy,yi,Yy,Qy,Zy,sl,AS,cn,Bo,Dr,OS,al,ll,cl,dl,wi,WS,Vo,pl=H(()=>{"use strict";yn();Vy=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),cu="/".charCodeAt(0),$y=` +`.charCodeAt(0),Ky="\r".charCodeAt(0),Hy="\f".charCodeAt(0),Gy="$".charCodeAt(0),Jy="#".charCodeAt(0),Xy="{".charCodeAt(0),yi="=".charCodeAt(0),Yy="!".charCodeAt(0),Qy="<".charCodeAt(0),Zy=">".charCodeAt(0),sl=".".charCodeAt(0),AS="@".charCodeAt(0),cn=d.CustomToken,Bo=cn++,Dr=cn++,OS=cn++,al=cn++,ll=cn++,cl=cn++,dl=cn++,wi=cn++,WS=cn++,Vo=function(t){Vy(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){if(this.stream.advanceIfChar(Gy)){var r=["$"];if(this.ident(r))return this.finishToken(n,Bo,r.join(""));this.stream.goBackTo(n)}return this.stream.advanceIfChars([Jy,Xy])?this.finishToken(n,Dr):this.stream.advanceIfChars([yi,yi])?this.finishToken(n,al):this.stream.advanceIfChars([Yy,yi])?this.finishToken(n,ll):this.stream.advanceIfChar(Qy)?this.stream.advanceIfChar(yi)?this.finishToken(n,dl):this.finishToken(n,d.Delim):this.stream.advanceIfChar(Zy)?this.stream.advanceIfChar(yi)?this.finishToken(n,cl):this.finishToken(n,d.Delim):this.stream.advanceIfChars([sl,sl,sl])?this.finishToken(n,wi):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([cu,cu])?(this.stream.advanceWhileChar(function(n){switch(n){case $y:case Ky:case Hy:return!1;default:return!0}}),!0):!1},e}(jt)});var du,hl,ul,$o,pu=H(()=>{"use strict";du=Xe(St()),hl=du.loadMessageBundle(),ul=function(){function t(e,n){this.id=e,this.message=n}return t}(),$o={FromExpected:new ul("scss-fromexpected",hl("expected.from","'from' expected")),ThroughOrToExpected:new ul("scss-throughexpected",hl("expected.through","'through' or 'to' expected")),InExpected:new ul("scss-fromexpected",hl("expected.in","'in' expected"))}});var tw,hu,uu=H(()=>{"use strict";pl();yn();Po();He();pu();Co();tw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),hu=function(t){tw(e,t);function e(){return t.call(this,new Vo)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(d.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(br);if(this.consumeToken(),!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,w.URIOrStringExpected);for(;this.accept(d.Comma);)if(!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,w.URIOrStringExpected);return!this.peek(d.SemiColon)&&!this.peek(d.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n)},e.prototype._parseVariableDeclaration=function(n){if(n===void 0&&(n=[]),!this.peek(Bo))return null;var r=this.create(Sn);if(!r.setVariable(this._parseVariable()))return null;if(!this.accept(d.Colon))return this.finish(r,w.ColonExpected);if(this.prevToken&&(r.colonPosition=this.prevToken.offset),!r.setValue(this._parseExpr()))return this.finish(r,w.VariableValueExpected,[],n);for(;this.peek(d.Exclamation);)if(!r.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(d.Ident,/^(default|global)$/))return this.finish(r,w.UnknownKeyword);this.consumeToken()}return this.peek(d.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseMediaCondition=function(){return this._parseInterpolation()||t.prototype._parseMediaCondition.call(this)},e.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},e.prototype._parseVariable=function(){if(!this.peek(Bo))return null;var n=this.create(vr);return this.consumeToken(),n},e.prototype._parseModuleMember=function(){var n=this.mark(),r=this.create(Fa);return r.setIdentifier(this._parseIdent([X.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(n),null):r.addChild(this._parseVariable()||this._parseFunction())?r:this.finish(r,w.IdentifierOrVariableExpected):null},e.prototype._parseIdent=function(n){var r=this;if(!this.peek(d.Ident)&&!this.peek(Dr)&&!this.peekDelim("-"))return null;var i=this.create(Ue);i.referenceTypes=n,i.isCustomProperty=this.peekRegExp(d.Ident,/^--/);for(var o=!1,s=function(){var a=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(a),null):r._parseInterpolation()};(this.accept(d.Ident)||i.addChild(s())||o&&this.acceptRegexp(/^[\w-]/))&&(o=!0,!this.hasWhitespace()););return o?this.finish(i):null},e.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||t.prototype._parseTermExpression.call(this)},e.prototype._parseInterpolation=function(){if(this.peek(Dr)){var n=this.create(ai);return this.consumeToken(),!n.addChild(this._parseExpr())&&!this._parseSelectorCombinator()?this.accept(d.CurlyR)?this.finish(n):this.finish(n,w.ExpressionExpected):this.accept(d.CurlyR)?this.finish(n):this.finish(n,w.RightCurlyExpected)}return null},e.prototype._parseOperator=function(){if(this.peek(al)||this.peek(ll)||this.peek(cl)||this.peek(dl)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(u.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(d.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(d.Colon))return this.finish(i,w.ColonExpected,[d.Colon],n||[d.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var o=!1;if(i.setValue(this._parseExpr())&&(o=!0,i.addChild(this._parsePrio())),this.peek(d.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!o)return this.finish(i,w.PropertyValueExpected);return this.peek(d.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(Ca);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(kn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,w.SelectorExpected);for(;this.accept(d.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(d.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,w.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(u.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(d.Num)||this.accept(d.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(u.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(u.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(d.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(u.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(d.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(Rp);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,w.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(d.CurlyL)){var i=this.create(Pp);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(Fp);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,$o.ThroughOrToExpected,[d.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,w.ExpressionExpected,[d.CurlyR]):this.finish(r,w.ExpressionExpected,[d.CurlyR]):this.finish(r,$o.FromExpected,[d.CurlyR]):this.finish(r,w.VariableNameExpected,[d.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(Dp);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,w.VariableNameExpected,[d.CurlyR]);for(;this.accept(d.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,w.VariableNameExpected,[d.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,w.ExpressionExpected,[d.CurlyR]):this.finish(r,$o.InExpected,[d.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(Ep);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,w.ExpressionExpected,[d.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(On);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([X.Function])))return this.finish(n,w.IdentifierExpected,[d.CurlyR]);if(!this.accept(d.ParenthesisL))return this.finish(n,w.LeftParenthesisExpected,[d.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,w.VariableNameExpected)}return this.accept(d.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,w.RightParenthesisExpected,[d.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(u.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,w.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(rn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([X.Mixin])))return this.finish(n,w.IdentifierExpected,[d.CurlyR]);if(this.accept(d.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,w.VariableNameExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected,[d.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(xn);return n.setIdentifier(this._parseVariable())?(this.accept(wi),this.accept(d.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,w.VariableValueExpected,[],[d.Comma,d.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(Vp);if(this.consumeToken(),this.accept(d.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,w.ExpressionExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(qn);this.consumeToken();var r=this._parseIdent([X.Mixin]);if(!n.setIdentifier(r))return this.finish(n,w.IdentifierExpected,[d.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([X.Mixin]);if(!i)return this.finish(n,w.IdentifierExpected,[d.CurlyR]);var o=this.create(Fa);r.referenceTypes=[X.Module],o.setIdentifier(r),n.setIdentifier(i),n.addChild(o)}if(this.accept(d.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,w.ExpressionExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(d.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create($p);if(this.acceptIdent("using")){if(!this.accept(d.ParenthesisL))return this.finish(n,w.LeftParenthesisExpected,[d.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,w.VariableNameExpected)}if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected,[d.CurlyL])}return this.peek(d.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(_t),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(d.Colon))n.setIdentifier(i);else{if(this.accept(wi))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(wi),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(d.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(d.ParenthesisL))return null;var n=this.create(W);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(d.Comma);return this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,w.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create(Kp),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(d.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,w.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(_p);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,w.StringLiteralExpected);if(!this.peek(d.SemiColon)&&!this.peek(d.EOF)){if(!this.peekRegExp(d.Ident,/as|with/))return this.finish(n,w.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([X.Module]))&&!this.acceptDelim("*"))return this.finish(n,w.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(d.ParenthesisL))return this.finish(n,w.LeftParenthesisExpected,[d.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,w.VariableNameExpected);for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,w.VariableNameExpected);if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected)}}return!this.accept(d.SemiColon)&&!this.accept(d.EOF)?this.finish(n,w.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(zp);return n.setIdentifier(this._parseVariable())?!this.accept(d.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,w.VariableValueExpected,[],[d.Comma,d.ParenthesisR]):this.accept(d.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,w.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(Mp);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,w.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(d.ParenthesisL))return this.finish(n,w.LeftParenthesisExpected,[d.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,w.VariableNameExpected);for(;this.accept(d.Comma)&&!this.peek(d.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,w.VariableNameExpected);if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected)}if(!this.peek(d.SemiColon)&&!this.peek(d.EOF)){if(!this.peekRegExp(d.Ident,/as|hide|show/))return this.finish(n,w.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([X.Forward]);if(!n.setIdentifier(r))return this.finish(n,w.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,w.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,w.IdentifierOrVariableExpected)}return!this.accept(d.SemiColon)&&!this.accept(d.EOF)?this.finish(n,w.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(Np);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(d.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(Sr)});function gu(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"["+r.name+"]("+r.url+")"}).join(" | "),e.documentation=n}})}var mu,nw,_,fu,bu=H(()=>{"use strict";Io();He();Mt();mu=Xe(St()),nw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),_=mu.loadMessageBundle(),fu=function(t){nw(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return gu(e.scssModuleLoaders),gu(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===u.Forward||n===u.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===u.Forward||i===u.Use)for(var o=0,s=e.scssModuleBuiltIns;o{"use strict";yn();rw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),vu="/".charCodeAt(0),iw=` +`.charCodeAt(0),ow="\r".charCodeAt(0),sw="\f".charCodeAt(0),ml="`".charCodeAt(0),fl=".".charCodeAt(0),aw=d.CustomToken,Ko=aw++,Ho=function(t){rw(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([fl,fl,fl])?this.finishToken(n,Ko):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([vu,vu])?(this.stream.advanceWhileChar(function(n){switch(n){case iw:case ow:case sw:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===ml?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==ml}),this.stream.advanceIfChar(ml)?d.EscapedJavaScript:d.BadEscapedJavaScript):null},e}(jt)});var cw,yu,wu=H(()=>{"use strict";gl();yn();Po();He();Co();cw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),yu=function(t){cw(e,t);function e(){return t.call(this,new Ho)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(d.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(br);if(this.consumeToken(),this.accept(d.ParenthesisL)){if(!this.accept(d.Ident))return this.finish(n,w.IdentifierExpected,[d.SemiColon]);do if(!this.accept(d.Comma))break;while(this.accept(d.Ident));if(!this.accept(d.ParenthesisR))return this.finish(n,w.RightParenthesisExpected,[d.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,w.URIOrStringExpected,[d.SemiColon]):(!this.peek(d.SemiColon)&&!this.peek(d.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(u.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(d.SemiColon)?this.finish(n):this.finish(n,w.SemiColonExpected):this.finish(n,w.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(vo);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(Sn),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(d.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,w.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(d.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(d.ParenthesisL)){var r=this.create(rn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,w.IdentifierExpected,[],[d.ParenthesisR]);if(!this.accept(d.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(d.CurlyL))return null;var i=this.create(ve);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(d.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(d.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(d.BracketR)||this.accept(d.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(d.AtKeyword))return null;for(var o=this.create(vr),s=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(s),null;return!this.accept(d.AtKeyword)&&!this.accept(d.Ident)?(this.restoreAtMark(s),null):!r&&this.peek(d.BracketL)&&!this._addLookupChildren(o)?(this.restoreAtMark(s),null):o},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(d.EscapedJavaScript)||this.peek(d.BadEscapedJavaScript)){var n=this.createNode(u.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(u.EscapedValue);return this.consumeToken(),this.accept(d.String)||this.accept(d.EscapedJavaScript)?this.finish(n):this.finish(n,w.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(u.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(u.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(u.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(d.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([X.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(Ut),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var o=this.mark();if(r.addChild(this._parseGuard())&&this.peek(d.CurlyL))break;this.restoreAtMark(o),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(u.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(d.Num)||this.accept(d.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(u.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(),o=this.create(Ue);o.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var s=!1;return n?o.isCustomProperty?s=o.addChild(this._parseIdent()):s=o.addChild(this._parseRegexp(r)):o.isCustomProperty?s=this._acceptInterpolatedIdent(o):s=this._acceptInterpolatedIdent(o,r),s?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(o)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(d.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,o=!1,s=function(){var c=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(c),null):i._parseInterpolation()},a=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(d.Ident)};(a()||n.addChild(this._parseInterpolation()||this.try(s)))&&(o=!0,!this.hasWhitespace()););return o},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(u.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(d.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(d.CurlyR)?this.finish(r):this.finish(r,w.RightCurlyExpected):this.finish(r,w.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(rn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(d.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,w.IdentifierExpected,[],[d.ParenthesisR]);return this.accept(d.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(d.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(Ue),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(d.Hash))n=this.create(Ue),this.consumeToken();else return null;return n.referenceTypes=[X.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(d.Colon))return null;var n=this.mark(),r=this.create(kn);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(kn);return this.consumeToken(),this.hasWhitespace()||!this.accept(d.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(d.ParenthesisL))return this.finish(n,w.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,w.SelectorExpected);for(;this.accept(d.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,w.SelectorExpected);return this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,w.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(d.AtKeyword))return null;var n=this.mark(),r=this.create(qn);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(d.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(d.ParenthesisR)?this.finish(r):this.finish(r,w.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(qn),o=this._parseMixinDeclarationIdentifier();o;){this.acceptDelim(">");var s=this._parseMixinDeclarationIdentifier();if(s)i.getNamespaces().addChild(o),o=s;else break}if(!i.setIdentifier(o))return this.restoreAtMark(r),null;var a=!1;if(this.accept(d.ParenthesisL)){if(a=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,w.ExpressionExpected)}if(!this.accept(d.ParenthesisR))return this.finish(i,w.RightParenthesisExpected);o.referenceTypes=[X.Mixin]}else o.referenceTypes=[X.Mixin,X.Rule];return this.peek(d.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!a&&!this.peek(d.SemiColon)&&!this.peek(d.CurlyR)&&!this.peek(d.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(_t),r=this.mark(),i=this._parseVariable();return i&&(this.accept(d.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(xn);if(this.peekKeyword("@rest")){var r=this.create(W);return this.consumeToken(),this.accept(Ko)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,w.DotExpected,[],[d.Comma,d.ParenthesisR])}if(this.peek(Ko)){var i=this.create(W);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var o=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(d.Colon),o=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!o?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Hp);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,w.ConditionExpected);for(;this.acceptIdent("and")||this.accept(d.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,w.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(d.ParenthesisL))return null;var n=this.create(Gp);return this.consumeToken(),!n.addChild(this._parseExpr()),this.accept(d.ParenthesisR)?this.finish(n):this.finish(n,w.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(nn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(d.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(d.Comma)||this.accept(d.SemiColon))&&!this.peek(d.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,w.ExpressionExpected)}return this.accept(d.ParenthesisR)?this.finish(r):this.finish(r,w.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(Ue);return n.referenceTypes=[X.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(d.ParenthesisR)){this.restoreAtMark(n);var i=this.create(W);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(Sr)});var xu,dw,B,Su,ku=H(()=>{"use strict";Io();Mt();xu=Xe(St()),dw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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=xu.loadMessageBundle(),Su=function(t){dw(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,o){for(var s=0,a=n;s 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:B("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:B("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:B("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:B("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:B("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:B("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:B("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:B("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:B("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:B("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:B("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:B("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:B("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:B("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:B("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:B("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:B("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:B("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:B("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:B("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:B("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:B("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:B("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:B("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:B("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:B("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:B("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:B("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:B("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:B("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:B("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:B("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:B("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:B("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:B("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:B("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:B("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}(kr)});function Cu(t,e){var n=pw(t);return hw(n,e)}function pw(t){function e(m){return t.positionAt(m.offset).line}function n(m){return t.positionAt(m.offset+m.len).line}function r(){switch(t.languageId){case"scss":return new Vo;case"less":return new Ho;default:return new jt}}function i(m,g){var y=e(m),k=n(m);return y!==k?{startLine:y,endLine:k,kind:g}:null}var o=[],s=[],a=r();a.ignoreComment=!1,a.setSource(t.getText());for(var c=a.scan(),l=null,p=function(){switch(c.type){case d.CurlyL:case Dr:{s.push({line:e(c),type:"brace",isStart:!0});break}case d.CurlyR:{if(s.length!==0){var m=Ru(s,"brace");if(!m)break;var g=n(c);m.type==="brace"&&(l&&n(l)!==g&&g--,m.line!==g&&o.push({startLine:m.line,endLine:g,kind:void 0}))}break}case d.Comment:{var y=function(b){return b==="#region"?{line:e(c),type:"comment",isStart:!0}:{line:n(c),type:"comment",isStart:!1}},k=function(b){var v=b.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(v)return y(v[1]);if(t.languageId==="scss"||t.languageId==="less"){var E=b.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(E)return y(E[1])}return null},T=k(c);if(T)if(T.isStart)s.push(T);else{var m=Ru(s,"comment");if(!m)break;m.type==="comment"&&m.line!==T.line&&o.push({startLine:m.line,endLine:T.line,kind:"region"})}else{var R=i(c,"comment");R&&o.push(R)}break}}l=c,c=a.scan()};c.type!==d.EOF;)p();return o}function Ru(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 hw(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(s,a){var c=s.startLine-a.startLine;return c===0&&(c=s.endLine-a.endLine),c}),i=[],o=-1;return r.forEach(function(s){s.startLine{"use strict";yn();pl();gl()});var bl,vl=H(()=>{bl={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ && ]#",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:61,description:"Aligns a flex container\u2019s 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\u2019s 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\u2019s 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:51,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:52,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\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s 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\u2019s 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:70,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:52,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:"