@codingame/monaco-vscode-npm-default-extension 20.5.0 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -4,9 +4,9 @@ var manifest = {name:"npm",publisher:"vscode",displayName:"%displayName%",descri
4
4
 
5
5
  const { registerFileUrl, whenReady } = registerExtension(manifest, undefined, {"system":true,"readmePath":"README.md"});
6
6
  registerFileUrl('README.md', new URL('./resources/README.md', import.meta.url).toString(), {"mimeType":"text/markdown","size":2902});
7
- registerFileUrl('dist/browser/npmBrowserMain', new URL('./resources/npmBrowserMain.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":43307});
8
- registerFileUrl('dist/browser/npmBrowserMain.js', new URL('./resources/npmBrowserMain.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":43307});
9
- registerFileUrl('dist/browser/npmBrowserMain.js.map', new URL('./resources/npmBrowserMain.js.map', import.meta.url).toString(), {"mimeType":"application/json","size":191865});
7
+ registerFileUrl('dist/browser/npmBrowserMain', new URL('./resources/npmBrowserMain.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":39157});
8
+ registerFileUrl('dist/browser/npmBrowserMain.js', new URL('./resources/npmBrowserMain.js', import.meta.url).toString(), {"mimeType":"text/javascript","size":39157});
9
+ registerFileUrl('dist/browser/npmBrowserMain.js.map', new URL('./resources/npmBrowserMain.js.map', import.meta.url).toString(), {"mimeType":"application/json","size":179368});
10
10
  registerFileUrl('images/code.svg', new URL('./resources/code.svg', import.meta.url).toString(), {"mimeType":"image/svg+xml","size":434});
11
11
  registerFileUrl('images/npm_icon.png', new URL('./resources/npm_icon.png', import.meta.url).toString(), {"mimeType":"image/png","size":523});
12
12
  registerFileUrl('package.json', new URL('./resources/package.json', import.meta.url).toString(), {"mimeType":"application/json","size":5818});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-npm-default-extension",
3
- "version": "20.5.0",
3
+ "version": "21.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "@codingame/monaco-vscode-api": "20.5.0"
21
+ "@codingame/monaco-vscode-api": "21.0.0"
22
22
  }
23
23
  }
@@ -1,2 +1,2 @@
1
- (()=>{var e={126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BowerJSONContribution=void 0;const r=n(398),o="Visual Studio Code";t.BowerJSONContribution=class{constructor(e){this.topRanked=["twitter","bootstrap","angular-1.1.6","angular-latest","angulerjs","d3","myjquery","jq","abcdef1234567890","jQuery","jquery-1.11.1","jquery","sushi-vanilla-x-data","font-awsome","Font-Awesome","font-awesome","fontawesome","html5-boilerplate","impress.js","homebrew","backbone","moment1","momentjs","moment","linux","animate.css","animate-css","reveal.js","jquery-file-upload","blueimp-file-upload","threejs","express","chosen","normalize-css","normalize.css","semantic","semantic-ui","Semantic-UI","modernizr","underscore","underscore1","material-design-icons","ionic","chartjs","Chart.js","nnnick-chartjs","select2-ng","select2-dist","phantom","skrollr","scrollr","less.js","leancss","parser-lib","hui","bootstrap-languages","async","gulp","jquery-pjax","coffeescript","hammer.js","ace","leaflet","jquery-mobile","sweetalert","typeahead.js","soup","typehead.js","sails","codeigniter2"],this.xhr=e}getDocumentSelector(){return[{language:"json",scheme:"*",pattern:"**/bower.json"},{language:"json",scheme:"*",pattern:"**/.bower.json"}]}isEnabled(){return!!r.workspace.getConfiguration("npm").get("fetchOnlinePackageInfo")}collectDefaultSuggestions(e,t){const n=new r.CompletionItem(r.l10n.t("Default bower.json"));return n.kind=r.CompletionItemKind.Class,n.insertText=new r.SnippetString(JSON.stringify({name:"${1:name}",description:"${2:description}",authors:["${3:author}"],version:"${4:1.0.0}",main:"${5:pathToMain}",dependencies:{}},null,"\t")),t.add(n),Promise.resolve(null)}collectPropertySuggestions(e,t,n,s,i,a){if(!this.isEnabled())return null;if(t.matches(["dependencies"])||t.matches(["devDependencies"])){if(n.length>0){const e="https://registry.bower.io/packages/search/"+encodeURIComponent(n);return this.xhr({url:e,headers:{agent:o}}).then(e=>{if(200!==e.status)return a.error(r.l10n.t("Request to the bower repository failed: {0}",e.responseText)),0;try{const t=JSON.parse(e.responseText);if(Array.isArray(t)){const e=t;for(const t of e){const e=t.name,n=t.description||"",o=(new r.SnippetString).appendText(JSON.stringify(e));s&&(o.appendText(": ").appendPlaceholder("latest"),i||o.appendText(","));const l=new r.CompletionItem(e);l.kind=r.CompletionItemKind.Property,l.insertText=o,l.filterText=JSON.stringify(e),l.documentation=n,a.add(l)}a.setAsIncomplete()}}catch(e){}},e=>(a.error(r.l10n.t("Request to the bower repository failed: {0}",e.responseText)),0))}return this.topRanked.forEach(e=>{const t=(new r.SnippetString).appendText(JSON.stringify(e));s&&(t.appendText(": ").appendPlaceholder("latest"),i||t.appendText(","));const n=new r.CompletionItem(e);n.kind=r.CompletionItemKind.Property,n.insertText=t,n.filterText=JSON.stringify(e),n.documentation="",a.add(n)}),a.setAsIncomplete(),Promise.resolve(null)}return null}collectValueSuggestions(e,t,n){if(!this.isEnabled())return null;if(t.matches(["dependencies","*"])||t.matches(["devDependencies","*"])){const e=new r.CompletionItem(r.l10n.t("latest"));e.insertText=new r.SnippetString('"${1:latest}"'),e.filterText='""',e.kind=r.CompletionItemKind.Value,e.documentation="The latest version of the package",n.add(e)}return null}resolveSuggestion(e,t){if(t.kind===r.CompletionItemKind.Property&&""===t.documentation){let e=t.label;return"string"!=typeof e&&(e=e.label),this.getInfo(e).then(e=>e?(t.documentation=e,t):null)}return null}getInfo(e){const t="https://registry.bower.io/packages/"+encodeURIComponent(e);return this.xhr({url:t,headers:{agent:o}}).then(e=>{try{const t=JSON.parse(e.responseText);if(t&&t.url){let e=t.url;return 0===e.indexOf("git://")&&(e=e.substring(6)),e.length>=4&&".git"===e.substr(e.length-4)&&(e=e.substring(0,e.length-4)),e}}catch(e){}},()=>{})}getInfoContribution(e,t){if(!this.isEnabled())return null;if(t.matches(["dependencies","*"])||t.matches(["devDependencies","*"])){const e=t.path[t.path.length-1];if("string"==typeof e)return this.getInfo(e).then(e=>{if(e){const t=new r.MarkdownString;return t.appendText(e),[t]}return null})}return null}}},303:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return s(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.activate=async function(e){e.subscriptions.push((0,l.addJSONProviders)(a.xhr,void 0))},t.deactivate=function(){};const a=i(n(687)),l=n(508)},398:e=>{"use strict";e.exports=require("vscode")},453:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return s(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.PackageJSONContribution=void 0;const a=n(398),l=i(n(800)),c=n(942),f=n(977),u="Visual Studio Code";t.PackageJSONContribution=class{getDocumentSelector(){return[{language:"json",scheme:"*",pattern:"**/package.json"}]}constructor(e,t){this.xhr=e,this.npmCommandPath=t,this.mostDependedOn=["lodash","async","underscore","request","commander","express","debug","chalk","colors","q","coffee-script","mkdirp","optimist","through2","yeoman-generator","moment","bluebird","glob","gulp-util","minimist","cheerio","pug","redis","node-uuid","socket","io","uglify-js","winston","through","fs-extra","handlebars","body-parser","rimraf","mime","semver","mongodb","jquery","grunt","connect","yosay","underscore","string","xml2js","ejs","mongoose","marked","extend","mocha","superagent","js-yaml","xtend","shelljs","gulp","yargs","browserify","minimatch","react","less","prompt","inquirer","ws","event-stream","inherits","mysql","esprima","jsdom","stylus","when","readable-stream","aws-sdk","concat-stream","chai","Thenable","wrench"],this.knownScopes=["@types","@angular","@babel","@nuxtjs","@vue","@bazel"]}collectDefaultSuggestions(e,t){const n=new a.CompletionItem(a.l10n.t("Default package.json"));return n.kind=a.CompletionItemKind.Module,n.insertText=new a.SnippetString(JSON.stringify({name:"${1:name}",description:"${2:description}",authors:"${3:author}",version:"${4:1.0.0}",main:"${5:pathToMain}",dependencies:{}},null,"\t")),t.add(n),Promise.resolve(null)}isEnabled(){return this.npmCommandPath||this.onlineEnabled()}onlineEnabled(){return!!a.workspace.getConfiguration("npm").get("fetchOnlinePackageInfo")}collectPropertySuggestions(e,t,n,r,o,s){if(!this.isEnabled())return null;if(t.matches(["dependencies"])||t.matches(["devDependencies"])||t.matches(["optionalDependencies"])||t.matches(["peerDependencies"])){let e;if(n.length>0){if("@"===n[0]){if(-1!==n.indexOf("/"))return this.collectScopedPackages(n,r,o,s);for(const e of this.knownScopes){const t=new a.CompletionItem(e);t.kind=a.CompletionItemKind.Property,t.insertText=(new a.SnippetString).appendText(`"${e}/`).appendTabstop().appendText('"'),t.filterText=JSON.stringify(e),t.documentation="",t.command={title:"",command:"editor.action.triggerSuggest"},s.add(t)}s.setAsIncomplete()}return e=`https://registry.npmjs.org/-/v1/search?size=40&text=${encodeURIComponent(n)}`,this.xhr({url:e,headers:{agent:u}}).then(e=>{if(200!==e.status)return s.error(a.l10n.t("Request to the NPM repository failed: {0}",e.responseText)),0;try{const t=JSON.parse(e.responseText);if(t&&t.objects&&Array.isArray(t.objects)){const e=t.objects;for(const t of e)this.processPackage(t.package,r,o,s)}}catch(e){}s.setAsIncomplete()},e=>(s.error(a.l10n.t("Request to the NPM repository failed: {0}",e.responseText)),0))}return this.mostDependedOn.forEach(e=>{const t=(new a.SnippetString).appendText(JSON.stringify(e));r&&(t.appendText(': "').appendTabstop().appendText('"'),o||t.appendText(","));const n=new a.CompletionItem(e);n.kind=a.CompletionItemKind.Property,n.insertText=t,n.filterText=JSON.stringify(e),n.documentation="",s.add(n)}),this.collectScopedPackages(n,r,o,s),s.setAsIncomplete(),Promise.resolve(null)}return null}collectScopedPackages(e,t,n,r){const o=e.split("/");if(2===o.length&&o[0].length>1){const e=o[0].substr(1);let s=o[1];s.length<4&&(s="");const i=`https://registry.npmjs.com/-/v1/search?text=scope:${e}%20${s}&size=250`;return this.xhr({url:i,headers:{agent:u}}).then(e=>{if(200===e.status){try{const o=JSON.parse(e.responseText);if(o&&Array.isArray(o.objects)){const e=o.objects;for(const o of e)this.processPackage(o.package,t,n,r)}}catch(e){}r.setAsIncomplete()}else r.error(a.l10n.t("Request to the NPM repository failed: {0}",e.responseText));return null})}return Promise.resolve(null)}async collectValueSuggestions(e,t,n){if(!this.isEnabled())return null;if(t.matches(["dependencies","*"])||t.matches(["devDependencies","*"])||t.matches(["optionalDependencies","*"])||t.matches(["peerDependencies","*"])){const r=t.path[t.path.length-1];if("string"==typeof r){const t=await this.fetchPackageInfo(r,e);if(t&&t.version){let e=JSON.stringify(t.version),r=new a.CompletionItem(e);r.kind=a.CompletionItemKind.Property,r.insertText=e,r.documentation=a.l10n.t("The currently latest version of the package"),n.add(r),e=JSON.stringify("^"+t.version),r=new a.CompletionItem(e),r.kind=a.CompletionItemKind.Property,r.insertText=e,r.documentation=a.l10n.t("Matches the most recent major version (1.x.x)"),n.add(r),e=JSON.stringify("~"+t.version),r=new a.CompletionItem(e),r.kind=a.CompletionItemKind.Property,r.insertText=e,r.documentation=a.l10n.t("Matches the most recent minor version (1.2.x)"),n.add(r)}}}return null}getDocumentation(e,t,n,r){const o=new a.MarkdownString;return e&&o.appendText(e),t&&(o.appendText("\n\n"),o.appendText(n?a.l10n.t("Latest version: {0} published {1}",t,(0,f.fromNow)(Date.parse(n),!0,!0)):a.l10n.t("Latest version: {0}",t))),r&&(o.appendText("\n\n"),o.appendText(r)),o}resolveSuggestion(e,t){if(t.kind===a.CompletionItemKind.Property&&!t.documentation){let n=t.label;return"string"!=typeof n&&(n=n.label),this.fetchPackageInfo(n,e).then(e=>e?(t.documentation=this.getDocumentation(e.description,e.version,e.time,e.homepage),t):null)}return null}isValidNPMName(e){if(!e||e.length>214||e.match(/^[-_.\s]/))return!1;const t=e.match(/^(?:@([^/~\s)('!*]+?)[/])?([^/~)('!*\s]+?)$/);if(t){const e=t[1];if(e&&encodeURIComponent(e)!==e)return!1;const n=t[2];return encodeURIComponent(n)===n}return!1}async fetchPackageInfo(e,t){if(!this.isValidNPMName(e))return;let n;return this.npmCommandPath&&(n=await this.npmView(this.npmCommandPath,e,t)),!n&&this.onlineEnabled()&&(n=await this.npmjsView(e)),n}npmView(e,t,n){return new Promise((r,o)=>{const s=["view","--json","--",t,"description","dist-tags.latest","homepage","version","time"];let i={cwd:n&&"file"===n.scheme?(0,c.dirname)(n.fsPath):void 0,env:{COREPACK_ENABLE_AUTO_PIN:"0",COREPACK_ENABLE_PROJECT_SPEC:"0"}},a=e;l.execFile(a,s,i,(e,t)=>{if(!e)try{const e=JSON.parse(t),n=e["dist-tags.latest"]||e.version;return void r({description:e.description,version:n,time:e.time?.[n],homepage:e.homepage})}catch(e){}r(void 0)})})}async npmjsView(e){const t="https://registry.npmjs.org/"+encodeURIComponent(e);try{const e=await this.xhr({url:t,headers:{agent:u}}),n=JSON.parse(e.responseText),r=n["dist-tags"]?.latest||Object.keys(n.versions).pop()||"";return{description:n.description||"",version:r,time:n.time?.[r],homepage:n.homepage||""}}catch(e){}}getInfoContribution(e,t){if(!this.isEnabled())return null;if(t.matches(["dependencies","*"])||t.matches(["devDependencies","*"])||t.matches(["optionalDependencies","*"])||t.matches(["peerDependencies","*"])){const n=t.path[t.path.length-1];if("string"==typeof n)return this.fetchPackageInfo(n,e).then(e=>e?[this.getDocumentation(e.description,e.version,e.time,e.homepage)]:null)}return null}processPackage(e,t,n,r){if(e&&e.name){const o=e.name,s=(new a.SnippetString).appendText(JSON.stringify(o));t&&(s.appendText(': "'),e.version?s.appendVariable("version",e.version):s.appendTabstop(),s.appendText('"'),n||s.appendText(","));const i=new a.CompletionItem(o);i.kind=a.CompletionItemKind.Property,i.insertText=s,i.filterText=JSON.stringify(o),i.documentation=this.getDocumentation(e.description,e.version,void 0,e?.links?.homepage),r.add(i)}}}},508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xhrDisabled=t.JSONCompletionItemProvider=t.JSONHoverProvider=void 0,t.addJSONProviders=function(e,t){const n=[new s.PackageJSONContribution(e,t),new o.BowerJSONContribution(e)],r=[];return n.forEach(e=>{const t=e.getDocumentSelector();r.push(i.languages.registerCompletionItemProvider(t,new l(e),'"',":")),r.push(i.languages.registerHoverProvider(t,new a(e)))}),i.Disposable.from(...r)};const r=n(887),o=n(126),s=n(453),i=n(398);class a{constructor(e){this.jsonContribution=e}provideHover(e,t,n){const o=e.offsetAt(t),s=(0,r.getLocation)(e.getText(),o);if(!s.previousNode)return null;const a=s.previousNode;if(a&&a.offset<=o&&o<=a.offset+a.length){const t=this.jsonContribution.getInfoContribution(e.uri,s);if(t)return t.then(t=>({contents:t||[],range:new i.Range(e.positionAt(a.offset),e.positionAt(a.offset+a.length))}))}return null}}t.JSONHoverProvider=a;class l{constructor(e){this.jsonContribution=e}resolveCompletionItem(e,t){if(this.jsonContribution.resolveSuggestion){const t=this.jsonContribution.resolveSuggestion(this.lastResource,e);if(t)return t}return Promise.resolve(e)}provideCompletionItems(e,t,n){this.lastResource=e.uri;const o=this.getCurrentWord(e,t);let s;const a=[];let l=!1;const c=e.offsetAt(t),f=(0,r.getLocation)(e.getText(),c),u=f.previousNode;s=u&&u.offset<=c&&c<=u.offset+u.length&&("property"===u.type||"string"===u.type||"number"===u.type||"boolean"===u.type||"null"===u.type)?new i.Range(e.positionAt(u.offset),e.positionAt(u.offset+u.length)):new i.Range(e.positionAt(c-o.length),t);const d={},h={add:e=>{const t="string"==typeof e.label?e.label:e.label.label;d[t]||(d[t]=!0,e.range={replacing:s,inserting:new i.Range(s.start,s.start)},a.push(e))},setAsIncomplete:()=>l=!0,error:e=>console.error(e),log:e=>console.log(e)};let p=null;if(f.isAtPropertyKey){const n=(0,r.createScanner)(e.getText(),!0),s=!f.previousNode||!this.hasColonAfter(n,f.previousNode.offset+f.previousNode.length),i=this.isLast(n,e.offsetAt(t));p=this.jsonContribution.collectPropertySuggestions(e.uri,f,o,s,i,h)}else p=0===f.path.length?this.jsonContribution.collectDefaultSuggestions(e.uri,h):this.jsonContribution.collectValueSuggestions(e.uri,f,h);return p?p.then(()=>a.length>0||l?new i.CompletionList(a,l):null):null}getCurrentWord(e,t){let n=t.character-1;const r=e.lineAt(t.line).text;for(;n>=0&&-1===' \t\n\r\v":{[,'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t.character)}isLast(e,t){e.setPosition(t);let n=e.scan();return 10===n&&2===e.getTokenError()&&(n=e.scan()),2===n||17===n}hasColonAfter(e,t){return e.setPosition(t),6===e.scan()}}t.JSONCompletionItemProvider=l,t.xhrDisabled=()=>Promise.reject({responseText:"Use of online resources is disabled."})},687:(e,t)=>{(()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorStatusDescription=t.xhr=t.configure=void 0,t.configure=(e,t)=>{},t.xhr=async e=>{const t=new Headers;if(e.headers)for(const n in e.headers){const r=e.headers[n];Array.isArray(r)?r.forEach(e=>t.set(n,e)):t.set(n,r)}e.user&&e.password&&t.set("Authorization","Basic "+btoa(e.user+":"+e.password));const n={method:e.type,redirect:e.followRedirects>0?"follow":"manual",mode:"cors",headers:t};if(e.data&&(n.body=e.data),e.token){const t=new AbortController;e.token.isCancellationRequested&&t.abort(),e.token.onCancellationRequested(()=>{t.abort()}),n.signal=t.signal}const r=new Request(e.url,n),o=await fetch(r),s={};o.headers.forEach((e,t)=>{s[t]=e});const i=await o.arrayBuffer();return new class{constructor(){this.status=o.status,this.headers=s}get responseText(){return(new TextDecoder).decode(i)}get body(){return new Uint8Array(i)}}},t.getErrorStatusDescription=function(e){return String(e)}})();var n=t;for(var r in e)n[r]=e[r];e.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})()},800:()=>{},887:(e,t,n)=>{"use strict";function r(e,t=!1){const n=e.length;let r=0,a="",l=0,c=16,f=0,u=0,d=0,h=0,p=0;function g(t,n){let o=0,s=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)s=16*s+t-48;else if(t>=65&&t<=70)s=16*s+t-65+10;else{if(!(t>=97&&t<=102))break;s=16*s+t-97+10}r++,o++}return o<t&&(s=-1),s}function m(){if(a="",p=0,l=r,u=f,h=d,r>=n)return l=n,c=17;let t=e.charCodeAt(r);if(o(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(o(t));return c=15}if(s(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),f++,d=r,c=14;switch(t){case 123:return r++,c=1;case 125:return r++,c=2;case 91:return r++,c=3;case 93:return r++,c=4;case 58:return r++,c=6;case 44:return r++,c=5;case 34:return r++,a=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),p=2;break}const i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(s(i)){t+=e.substring(o,r),p=2;break}p=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=g(4,!0);e>=0?t+=String.fromCharCode(e):p=4;break;default:p=5}o=r}}return t}(),c=10;case 47:const o=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!s(e.charCodeAt(r));)r++;return a=e.substring(o,r),c=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let i=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,i=!0;break}r++,s(t)&&(13===t&&10===e.charCodeAt(r)&&r++,f++,d=r)}return i||(r++,p=1),a=e.substring(o,r),c=13}return a+=String.fromCharCode(t),r++,c=16;case 45:if(a+=String.fromCharCode(t),r++,r===n||!i(e.charCodeAt(r)))return c=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&i(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&i(e.charCodeAt(r))))return p=3,e.substring(t,r);for(r++;r<e.length&&i(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&i(e.charCodeAt(r))){for(r++;r<e.length&&i(e.charCodeAt(r));)r++;n=r}else p=3;return e.substring(t,n)}(),c=11;default:for(;r<n&&b(t);)r++,t=e.charCodeAt(r);if(l!==r){switch(a=e.substring(l,r),a){case"true":return c=8;case"false":return c=9;case"null":return c=7}return c=16}return a+=String.fromCharCode(t),r++,c=16}}function b(e){if(o(e)||s(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,a="",l=0,c=16,p=0},getPosition:()=>r,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>c,getTokenValue:()=>a,getTokenOffset:()=>l,getTokenLength:()=>r-l,getTokenStartLine:()=>u,getTokenStartCharacter:()=>l-h,getTokenError:()=>p}}function o(e){return 32===e||9===e}function s(e){return 10===e||13===e}function i(e){return e>=48&&e<=57}var a,l;function c(e,t,n){let o,s,i,a,l;if(t){for(a=t.offset,l=a+t.length,i=a;i>0&&!u(e,i-1);)i--;let r=l;for(;r<e.length&&!u(e,r);)r++;s=e.substring(i,r),o=function(e,t){let n=0,r=0;const o=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(" "===t)r++;else{if("\t"!==t)break;r+=o}n++}return Math.floor(r/o)}(s,n)}else s=e,o=0,i=0,a=0,l=e.length;const c=function(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}(n,e);let d,h=0,p=0;d=n.insertSpaces?f(" ",n.tabSize||4):"\t";let g=r(s,!1),m=!1;function b(){return h>1?f(c,h)+f(d,o+p):c+f(d,o+p)}function y(){let e=g.scan();for(h=0;15===e||14===e;)14===e&&n.keepLines?h+=1:14===e&&(h=1),e=g.scan();return m=16===e||0!==g.getTokenError(),e}const v=[];function k(n,r,o){m||t&&!(r<l&&o>a)||e.substring(r,o)===n||v.push({offset:r,length:o-r,content:n})}let C=y();if(n.keepLines&&h>0&&k(f(c,h),0,0),17!==C){let e=g.getTokenOffset()+i;k(f(d,o),i,e)}for(;17!==C;){let e=g.getTokenOffset()+g.getTokenLength()+i,t=y(),r="",o=!1;for(;0===h&&(12===t||13===t);)k(" ",e,g.getTokenOffset()+i),e=g.getTokenOffset()+g.getTokenLength()+i,o=12===t,r=o?b():"",t=y();if(2===t)1!==C&&p--,n.keepLines&&h>0||!n.keepLines&&1!==C?r=b():n.keepLines&&(r=" ");else if(4===t)3!==C&&p--,n.keepLines&&h>0||!n.keepLines&&3!==C?r=b():n.keepLines&&(r=" ");else{switch(C){case 3:case 1:p++,r=n.keepLines&&h>0||!n.keepLines?b():" ";break;case 5:r=n.keepLines&&h>0||!n.keepLines?b():" ";break;case 12:r=b();break;case 13:h>0?r=b():o||(r=" ");break;case 6:n.keepLines&&h>0?r=b():o||(r=" ");break;case 10:n.keepLines&&h>0?r=b():6!==t||o||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&h>0?r=b():12!==t&&13!==t||o?5!==t&&17!==t&&(m=!0):r=" ";break;case 16:m=!0}h>0&&(12===t||13===t)&&(r=b())}17===t&&(r=n.keepLines&&h>0?b():n.insertFinalNewline?c:""),k(r,e,g.getTokenOffset()+i),C=t}return v}function f(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function u(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function d(e,t=[],n=l.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(e){"property"===r.type&&(r.length=e-r.offset,r=r.parent)}function s(e){return r.children.push(e),e}p(e,{onObjectBegin:e=>{r=s({type:"object",offset:e,length:-1,parent:r,children:[]})},onObjectProperty:(e,t,n)=>{r=s({type:"property",offset:t,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:e,offset:t,length:n,parent:r})},onObjectEnd:(e,t)=>{o(e+t),r.length=e+t-r.offset,r=r.parent,o(e+t)},onArrayBegin:(e,t)=>{r=s({type:"array",offset:e,length:-1,parent:r,children:[]})},onArrayEnd:(e,t)=>{r.length=e+t-r.offset,r=r.parent,o(e+t)},onLiteralValue:(e,t,n)=>{s({type:g(e),offset:t,length:n,parent:r,value:e}),o(t+n)},onSeparator:(e,t,n)=>{"property"===r.type&&(":"===e?r.colonOffset=t:","===e&&o(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);const i=r.children[0];return i&&delete i.parent,i}function h(e,t){if(!e)return;let n=e;for(let e of t)if("string"==typeof e){if("object"!==n.type||!Array.isArray(n.children))return;let t=!1;for(const r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e&&2===r.children.length){n=r.children[1],t=!0;break}if(!t)return}else{const t=e;if("array"!==n.type||t<0||!Array.isArray(n.children)||t>=n.children.length)return;n=n.children[t]}return n}function p(e,t,n=l.DEFAULT){const o=r(e,!1),s=[];function i(e){return e?()=>e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}function a(e){return e?()=>e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>s.slice()):()=>!0}function c(e){return e?t=>e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}function f(e){return e?t=>e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>s.slice()):()=>!0}const u=a(t.onObjectBegin),d=f(t.onObjectProperty),h=i(t.onObjectEnd),p=a(t.onArrayBegin),g=i(t.onArrayEnd),m=f(t.onLiteralValue),b=c(t.onSeparator),y=i(t.onComment),v=c(t.onError),k=n&&n.disallowComments,C=n&&n.allowTrailingComma;function w(){for(;;){const e=o.scan();switch(o.getTokenError()){case 4:T(14);break;case 5:T(15);break;case 3:T(13);break;case 1:k||T(11);break;case 2:T(12);break;case 6:T(16)}switch(e){case 12:case 13:k?T(10):y();break;case 16:T(1);break;case 15:case 14:break;default:return e}}}function T(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=o.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function x(e){const t=o.getTokenValue();return e?m(t):(d(t),s.push(t)),w(),!0}function O(){return 10!==o.getToken()?(T(3,[],[2,5]),!1):(x(!1),6===o.getToken()?(b(":"),w(),S()||T(4,[],[2,5])):T(5,[],[2,5]),s.pop(),!0)}function S(){switch(o.getToken()){case 3:return function(){p(),w();let e=!0,t=!1;for(;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||T(4,[],[]),b(","),w(),4===o.getToken()&&C)break}else t&&T(6,[],[]);e?(s.push(0),e=!1):s[s.length-1]++,S()||T(4,[],[4,5]),t=!0}return g(),e||s.pop(),4!==o.getToken()?T(8,[4],[]):w(),!0}();case 1:return function(){u(),w();let e=!1;for(;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||T(4,[],[]),b(","),w(),2===o.getToken()&&C)break}else e&&T(6,[],[]);O()||T(4,[],[2,5]),e=!0}return h(),2!==o.getToken()?T(7,[2],[]):w(),!0}();case 10:return x(!0);default:return function(){switch(o.getToken()){case 11:const e=o.getTokenValue();let t=Number(e);isNaN(t)&&(T(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}return w(),17===o.getToken()?!!n.allowEmptyContent||(T(4,[],[]),!1):S()?(17!==o.getToken()&&T(9,[],[]),!0):(T(4,[],[]),!1)}function g(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":return e?Array.isArray(e)?"array":"object":"null";default:return"null"}}function m(e,t,n){if(!n.formattingOptions)return[t];let r=b(e,t),o=t.offset,s=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;o>0&&!u(r,o-1);)o--;for(;s<r.length&&!u(r,s);)s++}const i=c(r,{offset:o,length:s-o},{...n.formattingOptions,keepLines:!1});for(let e=i.length-1;e>=0;e--){const t=i[e];r=b(r,t),o=Math.min(o,t.offset),s=Math.max(s,t.offset+t.length),s+=t.content.length-t.length}return[{offset:o,length:e.length-(r.length-s)-o,content:r.substring(o,s)}]}function b(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}n.r(t),n.d(t,{ParseErrorCode:()=>P,ScanError:()=>v,SyntaxKind:()=>k,applyEdits:()=>L,createScanner:()=>y,findNodeAtLocation:()=>x,findNodeAtOffset:()=>O,format:()=>N,getLocation:()=>C,getNodePath:()=>S,getNodeValue:()=>A,modify:()=>_,parse:()=>w,parseTree:()=>T,printParseErrorCode:()=>I,stripComments:()=>E,visit:()=>j}),function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(a||(a={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(l||(l={}));const y=r;var v,k;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(v||(v={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(k||(k={}));const C=function(e,t){const n=[],r=new Object;let o;const s={value:{},offset:0,length:0,type:"object",parent:void 0};let i=!1;function a(e,t,n,r){s.value=e,s.offset=t,s.length=n,s.type=r,s.colonOffset=void 0,o=s}try{p(e,{onObjectBegin:(e,s)=>{if(t<=e)throw r;o=void 0,i=t>e,n.push("")},onObjectProperty:(e,o,s)=>{if(t<o)throw r;if(a(e,o,s,"property"),n[n.length-1]=e,t<=o+s)throw r},onObjectEnd:(e,s)=>{if(t<=e)throw r;o=void 0,n.pop()},onArrayBegin:(e,s)=>{if(t<=e)throw r;o=void 0,n.push(0)},onArrayEnd:(e,s)=>{if(t<=e)throw r;o=void 0,n.pop()},onLiteralValue:(e,n,o)=>{if(t<n)throw r;if(a(e,n,o,g(e)),t<=n+o)throw r},onSeparator:(e,s,a)=>{if(t<=s)throw r;if(":"===e&&o&&"property"===o.type)o.colonOffset=s,i=!1,o=void 0;else if(","===e){const e=n[n.length-1];"number"==typeof e?n[n.length-1]=e+1:(i=!0,n[n.length-1]=""),o=void 0}}})}catch(e){if(e!==r)throw e}return{path:n,previousNode:o,isAtPropertyKey:i,matches:e=>{let t=0;for(let r=0;t<e.length&&r<n.length;r++)if(e[t]===n[r]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}},w=function(e,t=[],n=l.DEFAULT){let r=null,o=[];const s=[];function i(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}return p(e,{onObjectBegin:()=>{const e={};i(e),s.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=s.pop()},onArrayBegin:()=>{const e=[];i(e),s.push(o),o=e,r=null},onArrayEnd:()=>{o=s.pop()},onLiteralValue:i,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),o[0]},T=d,x=h,O=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const o=t.children;if(Array.isArray(o))for(let t=0;t<o.length&&o[t].offset<=n;t++){const s=e(o[t],n,r);if(s)return s}return t}},S=function e(t){if(!t.parent||!t.parent.children)return[];const n=e(t.parent);if("property"===t.parent.type){const e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){const e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n},A=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}},j=p,E=function(e,t){let n,o,s=r(e),i=[],a=0;do{switch(o=s.getPosition(),n=s.scan(),n){case 12:case 13:case 17:a!==o&&i.push(e.substring(a,o)),void 0!==t&&i.push(s.getTokenValue().replace(/[^\r\n]/g,t)),a=s.getPosition()}}while(17!==n);return i.join("")};var P;function I(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function N(e,t,n){return c(e,t,n)}function _(e,t,n,r){return function(e,t,n,r){const o=t.slice(),s=d(e,[]);let i,a;for(;o.length>0&&(a=o.pop(),i=h(s,o),void 0===i&&void 0!==n);)n="string"==typeof a?{[a]:n}:[n];if(i){if("object"===i.type&&"string"==typeof a&&Array.isArray(i.children)){const t=h(i,[a]);if(void 0!==t){if(void 0===n){if(!t.parent)throw new Error("Malformed AST");const n=i.children.indexOf(t.parent);let o,s=t.parent.offset+t.parent.length;if(n>0){let e=i.children[n-1];o=e.offset+e.length}else o=i.offset+1,i.children.length>1&&(s=i.children[1].offset);return m(e,{offset:o,length:s-o,content:""},r)}return m(e,{offset:t.offset,length:t.length,content:JSON.stringify(n)},r)}{if(void 0===n)return[];const t=`${JSON.stringify(a)}: ${JSON.stringify(n)}`,o=r.getInsertionIndex?r.getInsertionIndex(i.children.map(e=>e.children[0].value)):i.children.length;let s;if(o>0){let e=i.children[o-1];s={offset:e.offset+e.length,length:0,content:","+t}}else s=0===i.children.length?{offset:i.offset+1,length:0,content:t}:{offset:i.offset+1,length:0,content:t+","};return m(e,s,r)}}if("array"===i.type&&"number"==typeof a&&Array.isArray(i.children)){const t=a;if(-1===t){const t=`${JSON.stringify(n)}`;let o;if(0===i.children.length)o={offset:i.offset+1,length:0,content:t};else{const e=i.children[i.children.length-1];o={offset:e.offset+e.length,length:0,content:","+t}}return m(e,o,r)}if(void 0===n&&i.children.length>=0){const t=a,n=i.children[t];let o;if(1===i.children.length)o={offset:i.offset+1,length:i.length-2,content:""};else if(i.children.length-1===t){let e=i.children[t-1],n=e.offset+e.length;o={offset:n,length:i.offset+i.length-2-n,content:""}}else o={offset:n.offset,length:i.children[t+1].offset-n.offset,content:""};return m(e,o,r)}if(void 0!==n){let t;const o=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&i.children.length>a){const e=i.children[a];t={offset:e.offset,length:e.length,content:o}}else if(0===i.children.length||0===a)t={offset:i.offset+1,length:0,content:0===i.children.length?o:o+","};else{const e=a>i.children.length?i.children.length:a,n=i.children[e-1];t={offset:n.offset+n.length,length:0,content:","+o}}return m(e,t,r)}throw new Error(`Can not ${void 0===n?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${t} as length is not sufficient`)}throw new Error(`Can not add ${"number"!=typeof a?"index":"property"} to parent of type ${i.type}`)}if(void 0===n)throw new Error("Can not delete in empty document");return m(e,{offset:s?s.offset:0,length:s?s.length:0,content:JSON.stringify(n)},r)}(e,t,n,r)}function L(e,t){let n=t.slice(0).sort((e,t)=>{const n=e.offset-t.offset;return 0===n?e.length-t.length:n}),r=e.length;for(let t=n.length-1;t>=0;t--){let o=n[t];if(!(o.offset+o.length<=r))throw new Error("Overlapping edit");e=b(e,o),r=o.offset}return e}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(P||(P={}))},942:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,s=-1,i=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===i);else if(s!==a-1&&2===i){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,i=0;continue}}else if(2===r.length||1===r.length){r="",o=0,s=a,i=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),o=a-s-1;s=a,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var i;s>=0?i=arguments[s]:(void 0===e&&(e=process.cwd()),i=e),t(i),0!==i.length&&(r=i+"/"+r,o=47===i.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var s=e.length,i=s-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,c=i<l?i:l,f=-1,u=0;u<=c;++u){if(u===c){if(l>c){if(47===n.charCodeAt(a+u))return n.slice(a+u+1);if(0===u)return n.slice(a+u)}else i>c&&(47===e.charCodeAt(o+u)?f=u:0===u&&(f=0));break}var d=e.charCodeAt(o+u);if(d!==n.charCodeAt(a+u))break;47===d&&(f=u)}var h="";for(u=o+f+1;u<=s;++u)u!==s&&47!==e.charCodeAt(u)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+f):(a+=f,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,s=!0,i=e.length-1;i>=1;--i)if(47===(n=e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,s=-1,i=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!i){o=r+1;break}}else-1===l&&(i=!1,l=r+1),a>=0&&(c===n.charCodeAt(a)?-1===--a&&(s=r):(a=-1,s=l))}return o===s?s=l:-1===s&&(s=e.length),e.slice(o,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!i){o=r+1;break}}else-1===s&&(i=!1,s=r+1);return-1===s?"":e.slice(o,s)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,s=!0,i=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===o&&(s=!1,o=a+1),46===l?-1===n?n=a:1!==i&&(i=1):-1!==n&&(i=-1);else if(!s){r=a+1;break}}return-1===n||-1===o||0===i||1===i&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),s=47===o;s?(n.root="/",r=1):r=0;for(var i=-1,a=0,l=-1,c=!0,f=e.length-1,u=0;f>=r;--f)if(47!==(o=e.charCodeAt(f)))-1===l&&(c=!1,l=f+1),46===o?-1===i?i=f:1!==u&&(u=1):-1!==i&&(u=-1);else if(!c){a=f+1;break}return-1===i||-1===l||0===u||1===u&&i===l-1&&i===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,i),n.base=e.slice(1,l)):(n.name=e.slice(a,i),n.base=e.slice(a,l)),n.ext=e.slice(i,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromNow=function e(t,n,f,u){"number"!=typeof t&&(t=t.getTime());const d=Math.round(((new Date).getTime()-t)/1e3);if(d<-30)return r.l10n.t("in {0}",e((new Date).getTime()+1e3*d,!1));if(!u&&d<30)return r.l10n.t("now");let h;return d<o?(h=d,n?1===h?f?r.l10n.t("{0} second ago",h):r.l10n.t("{0} sec ago",h):f?r.l10n.t("{0} seconds ago",h):r.l10n.t("{0} secs ago",h):1===h?f?r.l10n.t("{0} second",h):r.l10n.t("{0} sec",h):f?r.l10n.t("{0} seconds",h):r.l10n.t("{0} secs",h)):d<s?(h=Math.floor(d/o),n?1===h?f?r.l10n.t("{0} minute ago",h):r.l10n.t("{0} min ago",h):f?r.l10n.t("{0} minutes ago",h):r.l10n.t("{0} mins ago",h):1===h?f?r.l10n.t("{0} minute",h):r.l10n.t("{0} min",h):f?r.l10n.t("{0} minutes",h):r.l10n.t("{0} mins",h)):d<i?(h=Math.floor(d/s),n?1===h?f?r.l10n.t("{0} hour ago",h):r.l10n.t("{0} hr ago",h):f?r.l10n.t("{0} hours ago",h):r.l10n.t("{0} hrs ago",h):1===h?f?r.l10n.t("{0} hour",h):r.l10n.t("{0} hr",h):f?r.l10n.t("{0} hours",h):r.l10n.t("{0} hrs",h)):d<a?(h=Math.floor(d/i),n?1===h?r.l10n.t("{0} day ago",h):r.l10n.t("{0} days ago",h):1===h?r.l10n.t("{0} day",h):r.l10n.t("{0} days",h)):d<l?(h=Math.floor(d/a),n?1===h?f?r.l10n.t("{0} week ago",h):r.l10n.t("{0} wk ago",h):f?r.l10n.t("{0} weeks ago",h):r.l10n.t("{0} wks ago",h):1===h?f?r.l10n.t("{0} week",h):r.l10n.t("{0} wk",h):f?r.l10n.t("{0} weeks",h):r.l10n.t("{0} wks",h)):d<c?(h=Math.floor(d/l),n?1===h?f?r.l10n.t("{0} month ago",h):r.l10n.t("{0} mo ago",h):f?r.l10n.t("{0} months ago",h):r.l10n.t("{0} mos ago",h):1===h?f?r.l10n.t("{0} month",h):r.l10n.t("{0} mo",h):f?r.l10n.t("{0} months",h):r.l10n.t("{0} mos",h)):(h=Math.floor(d/c),n?1===h?f?r.l10n.t("{0} year ago",h):r.l10n.t("{0} yr ago",h):f?r.l10n.t("{0} years ago",h):r.l10n.t("{0} yrs ago",h):1===h?f?r.l10n.t("{0} year",h):r.l10n.t("{0} yr",h):f?r.l10n.t("{0} years",h):r.l10n.t("{0} yrs",h))};const r=n(398),o=60,s=60*o,i=24*s,a=7*i,l=30*i,c=365*i}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=n(303),o=exports;for(var s in r)o[s]=r[s];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
1
+ (()=>{var e={303:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.activate=async function(e){e.subscriptions.push((0,c.addJSONProviders)(a.xhr,void 0))},t.deactivate=function(){};const a=s(n(687)),c=n(508)},398:e=>{"use strict";e.exports=require("vscode")},453:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.PackageJSONContribution=void 0;const a=n(398),c=s(n(800)),l=n(942),f=n(977),u="Visual Studio Code";t.PackageJSONContribution=class{xhr;npmCommandPath;mostDependedOn=["lodash","async","underscore","request","commander","express","debug","chalk","colors","q","coffee-script","mkdirp","optimist","through2","yeoman-generator","moment","bluebird","glob","gulp-util","minimist","cheerio","pug","redis","node-uuid","socket","io","uglify-js","winston","through","fs-extra","handlebars","body-parser","rimraf","mime","semver","mongodb","jquery","grunt","connect","yosay","underscore","string","xml2js","ejs","mongoose","marked","extend","mocha","superagent","js-yaml","xtend","shelljs","gulp","yargs","browserify","minimatch","react","less","prompt","inquirer","ws","event-stream","inherits","mysql","esprima","jsdom","stylus","when","readable-stream","aws-sdk","concat-stream","chai","Thenable","wrench"];knownScopes=["@types","@angular","@babel","@nuxtjs","@vue","@bazel"];getDocumentSelector(){return[{language:"json",scheme:"*",pattern:"**/package.json"}]}constructor(e,t){this.xhr=e,this.npmCommandPath=t}collectDefaultSuggestions(e,t){const n=new a.CompletionItem(a.l10n.t("Default package.json"));return n.kind=a.CompletionItemKind.Module,n.insertText=new a.SnippetString(JSON.stringify({name:"${1:name}",description:"${2:description}",authors:"${3:author}",version:"${4:1.0.0}",main:"${5:pathToMain}",dependencies:{}},null,"\t")),t.add(n),Promise.resolve(null)}isEnabled(){return this.npmCommandPath||this.onlineEnabled()}onlineEnabled(){return!!a.workspace.getConfiguration("npm").get("fetchOnlinePackageInfo")}collectPropertySuggestions(e,t,n,r,o,i){if(!this.isEnabled())return null;if(t.matches(["dependencies"])||t.matches(["devDependencies"])||t.matches(["optionalDependencies"])||t.matches(["peerDependencies"])){let e;if(n.length>0){if("@"===n[0]){if(-1!==n.indexOf("/"))return this.collectScopedPackages(n,r,o,i);for(const e of this.knownScopes){const t=new a.CompletionItem(e);t.kind=a.CompletionItemKind.Property,t.insertText=(new a.SnippetString).appendText(`"${e}/`).appendTabstop().appendText('"'),t.filterText=JSON.stringify(e),t.documentation="",t.command={title:"",command:"editor.action.triggerSuggest"},i.add(t)}i.setAsIncomplete()}return e=`https://registry.npmjs.org/-/v1/search?size=40&text=${encodeURIComponent(n)}`,this.xhr({url:e,headers:{agent:u}}).then(e=>{if(200!==e.status)return i.error(a.l10n.t("Request to the NPM repository failed: {0}",e.responseText)),0;try{const t=JSON.parse(e.responseText);if(t&&t.objects&&Array.isArray(t.objects)){const e=t.objects;for(const t of e)this.processPackage(t.package,r,o,i)}}catch(e){}i.setAsIncomplete()},e=>(i.error(a.l10n.t("Request to the NPM repository failed: {0}",e.responseText)),0))}return this.mostDependedOn.forEach(e=>{const t=(new a.SnippetString).appendText(JSON.stringify(e));r&&(t.appendText(': "').appendTabstop().appendText('"'),o||t.appendText(","));const n=new a.CompletionItem(e);n.kind=a.CompletionItemKind.Property,n.insertText=t,n.filterText=JSON.stringify(e),n.documentation="",i.add(n)}),this.collectScopedPackages(n,r,o,i),i.setAsIncomplete(),Promise.resolve(null)}return null}collectScopedPackages(e,t,n,r){const o=e.split("/");if(2===o.length&&o[0].length>1){const e=o[0].substr(1);let i=o[1];i.length<4&&(i="");const s=`https://registry.npmjs.com/-/v1/search?text=scope:${e}%20${i}&size=250`;return this.xhr({url:s,headers:{agent:u}}).then(e=>{if(200===e.status){try{const o=JSON.parse(e.responseText);if(o&&Array.isArray(o.objects)){const e=o.objects;for(const o of e)this.processPackage(o.package,t,n,r)}}catch(e){}r.setAsIncomplete()}else r.error(a.l10n.t("Request to the NPM repository failed: {0}",e.responseText));return null})}return Promise.resolve(null)}async collectValueSuggestions(e,t,n){if(!this.isEnabled())return null;if(t.matches(["dependencies","*"])||t.matches(["devDependencies","*"])||t.matches(["optionalDependencies","*"])||t.matches(["peerDependencies","*"])){const r=t.path[t.path.length-1];if("string"==typeof r){const t=await this.fetchPackageInfo(r,e);if(t&&t.version){let e=JSON.stringify(t.version),r=new a.CompletionItem(e);r.kind=a.CompletionItemKind.Property,r.insertText=e,r.documentation=a.l10n.t("The currently latest version of the package"),n.add(r),e=JSON.stringify("^"+t.version),r=new a.CompletionItem(e),r.kind=a.CompletionItemKind.Property,r.insertText=e,r.documentation=a.l10n.t("Matches the most recent major version (1.x.x)"),n.add(r),e=JSON.stringify("~"+t.version),r=new a.CompletionItem(e),r.kind=a.CompletionItemKind.Property,r.insertText=e,r.documentation=a.l10n.t("Matches the most recent minor version (1.2.x)"),n.add(r)}}}return null}getDocumentation(e,t,n,r){const o=new a.MarkdownString;return e&&o.appendText(e),t&&(o.appendText("\n\n"),o.appendText(n?a.l10n.t("Latest version: {0} published {1}",t,(0,f.fromNow)(Date.parse(n),!0,!0)):a.l10n.t("Latest version: {0}",t))),r&&(o.appendText("\n\n"),o.appendText(r)),o}resolveSuggestion(e,t){if(t.kind===a.CompletionItemKind.Property&&!t.documentation){let n=t.label;return"string"!=typeof n&&(n=n.label),this.fetchPackageInfo(n,e).then(e=>e?(t.documentation=this.getDocumentation(e.description,e.version,e.time,e.homepage),t):null)}return null}isValidNPMName(e){if(!e||e.length>214||e.match(/^[-_.\s]/))return!1;const t=e.match(/^(?:@([^/~\s)('!*]+?)[/])?([^/~)('!*\s]+?)$/);if(t){const e=t[1];if(e&&encodeURIComponent(e)!==e)return!1;const n=t[2];return encodeURIComponent(n)===n}return!1}async fetchPackageInfo(e,t){if(!this.isValidNPMName(e))return;let n;return this.npmCommandPath&&(n=await this.npmView(this.npmCommandPath,e,t)),!n&&this.onlineEnabled()&&(n=await this.npmjsView(e)),n}npmView(e,t,n){return new Promise((r,o)=>{const i=["view","--json","--",t,"description","dist-tags.latest","homepage","version","time"];let s={cwd:n&&"file"===n.scheme?(0,l.dirname)(n.fsPath):void 0,env:{COREPACK_ENABLE_AUTO_PIN:"0",COREPACK_ENABLE_PROJECT_SPEC:"0"}},a=e;c.execFile(a,i,s,(e,t)=>{if(!e)try{const e=JSON.parse(t),n=e["dist-tags.latest"]||e.version;return void r({description:e.description,version:n,time:e.time?.[n],homepage:e.homepage})}catch(e){}r(void 0)})})}async npmjsView(e){const t="https://registry.npmjs.org/"+encodeURIComponent(e);try{const e=await this.xhr({url:t,headers:{agent:u}}),n=JSON.parse(e.responseText),r=n["dist-tags"]?.latest||Object.keys(n.versions).pop()||"";return{description:n.description||"",version:r,time:n.time?.[r],homepage:n.homepage||""}}catch(e){}}getInfoContribution(e,t){if(!this.isEnabled())return null;if(t.matches(["dependencies","*"])||t.matches(["devDependencies","*"])||t.matches(["optionalDependencies","*"])||t.matches(["peerDependencies","*"])){const n=t.path[t.path.length-1];if("string"==typeof n)return this.fetchPackageInfo(n,e).then(e=>e?[this.getDocumentation(e.description,e.version,e.time,e.homepage)]:null)}return null}processPackage(e,t,n,r){if(e&&e.name){const o=e.name,i=(new a.SnippetString).appendText(JSON.stringify(o));t&&(i.appendText(': "'),e.version?i.appendVariable("version",e.version):i.appendTabstop(),i.appendText('"'),n||i.appendText(","));const s=new a.CompletionItem(o);s.kind=a.CompletionItemKind.Property,s.insertText=i,s.filterText=JSON.stringify(o),s.documentation=this.getDocumentation(e.description,e.version,void 0,e?.links?.homepage),r.add(s)}}}},508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xhrDisabled=t.JSONCompletionItemProvider=t.JSONHoverProvider=void 0,t.addJSONProviders=function(e,t){const n=[new o.PackageJSONContribution(e,t)],r=[];return n.forEach(e=>{const t=e.getDocumentSelector();r.push(i.languages.registerCompletionItemProvider(t,new a(e),'"',":")),r.push(i.languages.registerHoverProvider(t,new s(e)))}),i.Disposable.from(...r)};const r=n(887),o=n(453),i=n(398);class s{jsonContribution;constructor(e){this.jsonContribution=e}provideHover(e,t,n){const o=e.offsetAt(t),s=(0,r.getLocation)(e.getText(),o);if(!s.previousNode)return null;const a=s.previousNode;if(a&&a.offset<=o&&o<=a.offset+a.length){const t=this.jsonContribution.getInfoContribution(e.uri,s);if(t)return t.then(t=>({contents:t||[],range:new i.Range(e.positionAt(a.offset),e.positionAt(a.offset+a.length))}))}return null}}t.JSONHoverProvider=s;class a{jsonContribution;lastResource;constructor(e){this.jsonContribution=e}resolveCompletionItem(e,t){if(this.jsonContribution.resolveSuggestion){const t=this.jsonContribution.resolveSuggestion(this.lastResource,e);if(t)return t}return Promise.resolve(e)}provideCompletionItems(e,t,n){this.lastResource=e.uri;const o=this.getCurrentWord(e,t);let s;const a=[];let c=!1;const l=e.offsetAt(t),f=(0,r.getLocation)(e.getText(),l),u=f.previousNode;s=u&&u.offset<=l&&l<=u.offset+u.length&&("property"===u.type||"string"===u.type||"number"===u.type||"boolean"===u.type||"null"===u.type)?new i.Range(e.positionAt(u.offset),e.positionAt(u.offset+u.length)):new i.Range(e.positionAt(l-o.length),t);const h={},d={add:e=>{const t="string"==typeof e.label?e.label:e.label.label;h[t]||(h[t]=!0,e.range={replacing:s,inserting:new i.Range(s.start,s.start)},a.push(e))},setAsIncomplete:()=>c=!0,error:e=>console.error(e),log:e=>console.log(e)};let g=null;if(f.isAtPropertyKey){const n=(0,r.createScanner)(e.getText(),!0),i=!f.previousNode||!this.hasColonAfter(n,f.previousNode.offset+f.previousNode.length),s=this.isLast(n,e.offsetAt(t));g=this.jsonContribution.collectPropertySuggestions(e.uri,f,o,i,s,d)}else g=0===f.path.length?this.jsonContribution.collectDefaultSuggestions(e.uri,d):this.jsonContribution.collectValueSuggestions(e.uri,f,d);return g?g.then(()=>a.length>0||c?new i.CompletionList(a,c):null):null}getCurrentWord(e,t){let n=t.character-1;const r=e.lineAt(t.line).text;for(;n>=0&&-1===' \t\n\r\v":{[,'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t.character)}isLast(e,t){e.setPosition(t);let n=e.scan();return 10===n&&2===e.getTokenError()&&(n=e.scan()),2===n||17===n}hasColonAfter(e,t){return e.setPosition(t),6===e.scan()}}t.JSONCompletionItemProvider=a,t.xhrDisabled=()=>Promise.reject({responseText:"Use of online resources is disabled."})},687:(e,t)=>{(()=>{"use strict";var e={};(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorStatusDescription=t.xhr=t.configure=void 0,t.configure=(e,t)=>{},t.xhr=async e=>{const t=new Headers;if(e.headers)for(const n in e.headers){const r=e.headers[n];Array.isArray(r)?r.forEach(e=>t.set(n,e)):t.set(n,r)}e.user&&e.password&&t.set("Authorization","Basic "+btoa(e.user+":"+e.password));const n={method:e.type,redirect:e.followRedirects>0?"follow":"manual",mode:"cors",headers:t};if(e.data&&(n.body=e.data),e.token){const t=new AbortController;e.token.isCancellationRequested&&t.abort(),e.token.onCancellationRequested(()=>{t.abort()}),n.signal=t.signal}const r=new Request(e.url,n),o=await fetch(r),i={};o.headers.forEach((e,t)=>{i[t]=e});const s=await o.arrayBuffer();return new class{constructor(){this.status=o.status,this.headers=i}get responseText(){return(new TextDecoder).decode(s)}get body(){return new Uint8Array(s)}}},t.getErrorStatusDescription=function(e){return String(e)}})();var n=t;for(var r in e)n[r]=e[r];e.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})()},800:()=>{},887:(e,t,n)=>{"use strict";function r(e,t=!1){const n=e.length;let r=0,a="",c=0,l=16,f=0,u=0,h=0,d=0,g=0;function p(t,n){let o=0,i=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)i=16*i+t-48;else if(t>=65&&t<=70)i=16*i+t-65+10;else{if(!(t>=97&&t<=102))break;i=16*i+t-97+10}r++,o++}return o<t&&(i=-1),i}function m(){if(a="",g=0,c=r,u=f,d=h,r>=n)return c=n,l=17;let t=e.charCodeAt(r);if(o(t)){do{r++,a+=String.fromCharCode(t),t=e.charCodeAt(r)}while(o(t));return l=15}if(i(t))return r++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,a+="\n"),f++,h=r,l=14;switch(t){case 123:return r++,l=1;case 125:return r++,l=2;case 91:return r++,l=3;case 93:return r++,l=4;case 58:return r++,l=6;case 44:return r++,l=5;case 34:return r++,a=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),g=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(o,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(i(s)){t+=e.substring(o,r),g=2;break}g=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){g=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=p(4,!0);e>=0?t+=String.fromCharCode(e):g=4;break;default:g=5}o=r}}return t}(),l=10;case 47:const o=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!i(e.charCodeAt(r));)r++;return a=e.substring(o,r),l=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let s=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,s=!0;break}r++,i(t)&&(13===t&&10===e.charCodeAt(r)&&r++,f++,h=r)}return s||(r++,g=1),a=e.substring(o,r),l=13}return a+=String.fromCharCode(t),r++,l=16;case 45:if(a+=String.fromCharCode(t),r++,r===n||!s(e.charCodeAt(r)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&s(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&s(e.charCodeAt(r))))return g=3,e.substring(t,r);for(r++;r<e.length&&s(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&s(e.charCodeAt(r))){for(r++;r<e.length&&s(e.charCodeAt(r));)r++;n=r}else g=3;return e.substring(t,n)}(),l=11;default:for(;r<n&&b(t);)r++,t=e.charCodeAt(r);if(c!==r){switch(a=e.substring(c,r),a){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return a+=String.fromCharCode(t),r++,l=16}}function b(e){if(o(e)||i(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,a="",c=0,l=16,g=0},getPosition:()=>r,scan:t?function(){let e;do{e=m()}while(e>=12&&e<=15);return e}:m,getToken:()=>l,getTokenValue:()=>a,getTokenOffset:()=>c,getTokenLength:()=>r-c,getTokenStartLine:()=>u,getTokenStartCharacter:()=>c-d,getTokenError:()=>g}}function o(e){return 32===e||9===e}function i(e){return 10===e||13===e}function s(e){return e>=48&&e<=57}var a,c;function l(e,t,n){let o,i,s,a,c;if(t){for(a=t.offset,c=a+t.length,s=a;s>0&&!u(e,s-1);)s--;let r=c;for(;r<e.length&&!u(e,r);)r++;i=e.substring(s,r),o=function(e,t){let n=0,r=0;const o=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(" "===t)r++;else{if("\t"!==t)break;r+=o}n++}return Math.floor(r/o)}(i,n)}else i=e,o=0,s=0,a=0,c=e.length;const l=function(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}(n,e);let h,d=0,g=0;h=n.insertSpaces?f(" ",n.tabSize||4):"\t";let p=r(i,!1),m=!1;function b(){return d>1?f(l,d)+f(h,o+g):l+f(h,o+g)}function y(){let e=p.scan();for(d=0;15===e||14===e;)14===e&&n.keepLines?d+=1:14===e&&(d=1),e=p.scan();return m=16===e||0!==p.getTokenError(),e}const v=[];function k(n,r,o){m||t&&!(r<c&&o>a)||e.substring(r,o)===n||v.push({offset:r,length:o-r,content:n})}let C=y();if(n.keepLines&&d>0&&k(f(l,d),0,0),17!==C){let e=p.getTokenOffset()+s;k(f(h,o),s,e)}for(;17!==C;){let e=p.getTokenOffset()+p.getTokenLength()+s,t=y(),r="",o=!1;for(;0===d&&(12===t||13===t);)k(" ",e,p.getTokenOffset()+s),e=p.getTokenOffset()+p.getTokenLength()+s,o=12===t,r=o?b():"",t=y();if(2===t)1!==C&&g--,n.keepLines&&d>0||!n.keepLines&&1!==C?r=b():n.keepLines&&(r=" ");else if(4===t)3!==C&&g--,n.keepLines&&d>0||!n.keepLines&&3!==C?r=b():n.keepLines&&(r=" ");else{switch(C){case 3:case 1:g++,r=n.keepLines&&d>0||!n.keepLines?b():" ";break;case 5:r=n.keepLines&&d>0||!n.keepLines?b():" ";break;case 12:r=b();break;case 13:d>0?r=b():o||(r=" ");break;case 6:n.keepLines&&d>0?r=b():o||(r=" ");break;case 10:n.keepLines&&d>0?r=b():6!==t||o||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&d>0?r=b():12!==t&&13!==t||o?5!==t&&17!==t&&(m=!0):r=" ";break;case 16:m=!0}d>0&&(12===t||13===t)&&(r=b())}17===t&&(r=n.keepLines&&d>0?b():n.insertFinalNewline?l:""),k(r,e,p.getTokenOffset()+s),C=t}return v}function f(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function u(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function h(e,t=[],n=c.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(e){"property"===r.type&&(r.length=e-r.offset,r=r.parent)}function i(e){return r.children.push(e),e}g(e,{onObjectBegin:e=>{r=i({type:"object",offset:e,length:-1,parent:r,children:[]})},onObjectProperty:(e,t,n)=>{r=i({type:"property",offset:t,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:e,offset:t,length:n,parent:r})},onObjectEnd:(e,t)=>{o(e+t),r.length=e+t-r.offset,r=r.parent,o(e+t)},onArrayBegin:(e,t)=>{r=i({type:"array",offset:e,length:-1,parent:r,children:[]})},onArrayEnd:(e,t)=>{r.length=e+t-r.offset,r=r.parent,o(e+t)},onLiteralValue:(e,t,n)=>{i({type:p(e),offset:t,length:n,parent:r,value:e}),o(t+n)},onSeparator:(e,t,n)=>{"property"===r.type&&(":"===e?r.colonOffset=t:","===e&&o(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);const s=r.children[0];return s&&delete s.parent,s}function d(e,t){if(!e)return;let n=e;for(let e of t)if("string"==typeof e){if("object"!==n.type||!Array.isArray(n.children))return;let t=!1;for(const r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e&&2===r.children.length){n=r.children[1],t=!0;break}if(!t)return}else{const t=e;if("array"!==n.type||t<0||!Array.isArray(n.children)||t>=n.children.length)return;n=n.children[t]}return n}function g(e,t,n=c.DEFAULT){const o=r(e,!1),i=[];function s(e){return e?()=>e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}function a(e){return e?()=>e(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(e){return e?t=>e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}function f(e){return e?t=>e(t,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}const u=a(t.onObjectBegin),h=f(t.onObjectProperty),d=s(t.onObjectEnd),g=a(t.onArrayBegin),p=s(t.onArrayEnd),m=f(t.onLiteralValue),b=l(t.onSeparator),y=s(t.onComment),v=l(t.onError),k=n&&n.disallowComments,C=n&&n.allowTrailingComma;function T(){for(;;){const e=o.scan();switch(o.getTokenError()){case 4:O(14);break;case 5:O(15);break;case 3:O(13);break;case 1:k||O(11);break;case 2:O(12);break;case 6:O(16)}switch(e){case 12:case 13:k?O(10):y();break;case 16:O(1);break;case 15:case 14:break;default:return e}}}function O(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=o.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){T();break}if(-1!==n.indexOf(e))break;e=T()}}}function w(e){const t=o.getTokenValue();return e?m(t):(h(t),i.push(t)),T(),!0}function x(){return 10!==o.getToken()?(O(3,[],[2,5]),!1):(w(!1),6===o.getToken()?(b(":"),T(),A()||O(4,[],[2,5])):O(5,[],[2,5]),i.pop(),!0)}function A(){switch(o.getToken()){case 3:return function(){g(),T();let e=!0,t=!1;for(;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(t||O(4,[],[]),b(","),T(),4===o.getToken()&&C)break}else t&&O(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,A()||O(4,[],[4,5]),t=!0}return p(),e||i.pop(),4!==o.getToken()?O(8,[4],[]):T(),!0}();case 1:return function(){u(),T();let e=!1;for(;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||O(4,[],[]),b(","),T(),2===o.getToken()&&C)break}else e&&O(6,[],[]);x()||O(4,[],[2,5]),e=!0}return d(),2!==o.getToken()?O(7,[2],[]):T(),!0}();case 10:return w(!0);default:return function(){switch(o.getToken()){case 11:const e=o.getTokenValue();let t=Number(e);isNaN(t)&&(O(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return T(),!0}()}}return T(),17===o.getToken()?!!n.allowEmptyContent||(O(4,[],[]),!1):A()?(17!==o.getToken()&&O(9,[],[]),!0):(O(4,[],[]),!1)}function p(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":return e?Array.isArray(e)?"array":"object":"null";default:return"null"}}function m(e,t,n){if(!n.formattingOptions)return[t];let r=b(e,t),o=t.offset,i=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;o>0&&!u(r,o-1);)o--;for(;i<r.length&&!u(r,i);)i++}const s=l(r,{offset:o,length:i-o},{...n.formattingOptions,keepLines:!1});for(let e=s.length-1;e>=0;e--){const t=s[e];r=b(r,t),o=Math.min(o,t.offset),i=Math.max(i,t.offset+t.length),i+=t.content.length-t.length}return[{offset:o,length:e.length-(r.length-i)-o,content:r.substring(o,i)}]}function b(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}n.r(t),n.d(t,{ParseErrorCode:()=>j,ScanError:()=>v,SyntaxKind:()=>k,applyEdits:()=>L,createScanner:()=>y,findNodeAtLocation:()=>w,findNodeAtOffset:()=>x,format:()=>I,getLocation:()=>C,getNodePath:()=>A,getNodeValue:()=>S,modify:()=>_,parse:()=>T,parseTree:()=>O,printParseErrorCode:()=>N,stripComments:()=>P,visit:()=>E}),function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(a||(a={})),function(e){e.DEFAULT={allowTrailingComma:!1}}(c||(c={}));const y=r;var v,k;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(v||(v={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(k||(k={}));const C=function(e,t){const n=[],r=new Object;let o;const i={value:{},offset:0,length:0,type:"object",parent:void 0};let s=!1;function a(e,t,n,r){i.value=e,i.offset=t,i.length=n,i.type=r,i.colonOffset=void 0,o=i}try{g(e,{onObjectBegin:(e,i)=>{if(t<=e)throw r;o=void 0,s=t>e,n.push("")},onObjectProperty:(e,o,i)=>{if(t<o)throw r;if(a(e,o,i,"property"),n[n.length-1]=e,t<=o+i)throw r},onObjectEnd:(e,i)=>{if(t<=e)throw r;o=void 0,n.pop()},onArrayBegin:(e,i)=>{if(t<=e)throw r;o=void 0,n.push(0)},onArrayEnd:(e,i)=>{if(t<=e)throw r;o=void 0,n.pop()},onLiteralValue:(e,n,o)=>{if(t<n)throw r;if(a(e,n,o,p(e)),t<=n+o)throw r},onSeparator:(e,i,a)=>{if(t<=i)throw r;if(":"===e&&o&&"property"===o.type)o.colonOffset=i,s=!1,o=void 0;else if(","===e){const e=n[n.length-1];"number"==typeof e?n[n.length-1]=e+1:(s=!0,n[n.length-1]=""),o=void 0}}})}catch(e){if(e!==r)throw e}return{path:n,previousNode:o,isAtPropertyKey:s,matches:e=>{let t=0;for(let r=0;t<e.length&&r<n.length;r++)if(e[t]===n[r]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}},T=function(e,t=[],n=c.DEFAULT){let r=null,o=[];const i=[];function s(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}return g(e,{onObjectBegin:()=>{const e={};s(e),i.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{const e=[];s(e),i.push(o),o=e,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),o[0]},O=h,w=d,x=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const o=t.children;if(Array.isArray(o))for(let t=0;t<o.length&&o[t].offset<=n;t++){const i=e(o[t],n,r);if(i)return i}return t}},A=function e(t){if(!t.parent||!t.parent.children)return[];const n=e(t.parent);if("property"===t.parent.type){const e=t.parent.children[0].value;n.push(e)}else if("array"===t.parent.type){const e=t.parent.children.indexOf(t);-1!==e&&n.push(e)}return n},S=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}},E=g,P=function(e,t){let n,o,i=r(e),s=[],a=0;do{switch(o=i.getPosition(),n=i.scan(),n){case 12:case 13:case 17:a!==o&&s.push(e.substring(a,o)),void 0!==t&&s.push(i.getTokenValue().replace(/[^\r\n]/g,t)),a=i.getPosition()}}while(17!==n);return s.join("")};var j;function N(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function I(e,t,n){return l(e,t,n)}function _(e,t,n,r){return function(e,t,n,r){const o=t.slice(),i=h(e,[]);let s,a;for(;o.length>0&&(a=o.pop(),s=d(i,o),void 0===s&&void 0!==n);)n="string"==typeof a?{[a]:n}:[n];if(s){if("object"===s.type&&"string"==typeof a&&Array.isArray(s.children)){const t=d(s,[a]);if(void 0!==t){if(void 0===n){if(!t.parent)throw new Error("Malformed AST");const n=s.children.indexOf(t.parent);let o,i=t.parent.offset+t.parent.length;if(n>0){let e=s.children[n-1];o=e.offset+e.length}else o=s.offset+1,s.children.length>1&&(i=s.children[1].offset);return m(e,{offset:o,length:i-o,content:""},r)}return m(e,{offset:t.offset,length:t.length,content:JSON.stringify(n)},r)}{if(void 0===n)return[];const t=`${JSON.stringify(a)}: ${JSON.stringify(n)}`,o=r.getInsertionIndex?r.getInsertionIndex(s.children.map(e=>e.children[0].value)):s.children.length;let i;if(o>0){let e=s.children[o-1];i={offset:e.offset+e.length,length:0,content:","+t}}else i=0===s.children.length?{offset:s.offset+1,length:0,content:t}:{offset:s.offset+1,length:0,content:t+","};return m(e,i,r)}}if("array"===s.type&&"number"==typeof a&&Array.isArray(s.children)){const t=a;if(-1===t){const t=`${JSON.stringify(n)}`;let o;if(0===s.children.length)o={offset:s.offset+1,length:0,content:t};else{const e=s.children[s.children.length-1];o={offset:e.offset+e.length,length:0,content:","+t}}return m(e,o,r)}if(void 0===n&&s.children.length>=0){const t=a,n=s.children[t];let o;if(1===s.children.length)o={offset:s.offset+1,length:s.length-2,content:""};else if(s.children.length-1===t){let e=s.children[t-1],n=e.offset+e.length;o={offset:n,length:s.offset+s.length-2-n,content:""}}else o={offset:n.offset,length:s.children[t+1].offset-n.offset,content:""};return m(e,o,r)}if(void 0!==n){let t;const o=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&s.children.length>a){const e=s.children[a];t={offset:e.offset,length:e.length,content:o}}else if(0===s.children.length||0===a)t={offset:s.offset+1,length:0,content:0===s.children.length?o:o+","};else{const e=a>s.children.length?s.children.length:a,n=s.children[e-1];t={offset:n.offset+n.length,length:0,content:","+o}}return m(e,t,r)}throw new Error(`Can not ${void 0===n?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${t} as length is not sufficient`)}throw new Error(`Can not add ${"number"!=typeof a?"index":"property"} to parent of type ${s.type}`)}if(void 0===n)throw new Error("Can not delete in empty document");return m(e,{offset:i?i.offset:0,length:i?i.length:0,content:JSON.stringify(n)},r)}(e,t,n,r)}function L(e,t){let n=t.slice(0).sort((e,t)=>{const n=e.offset-t.offset;return 0===n?e.length-t.length:n}),r=e.length;for(let t=n.length-1;t>=0;t--){let o=n[t];if(!(o.offset+o.length<=r))throw new Error("Overlapping edit");e=b(e,o),r=o.offset}return e}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(j||(j={}))},942:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,s=i-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var c=n.length-a,l=s<c?s:c,f=-1,u=0;u<=l;++u){if(u===l){if(c>l){if(47===n.charCodeAt(a+u))return n.slice(a+u+1);if(0===u)return n.slice(a+u)}else s>l&&(47===e.charCodeAt(o+u)?f=u:0===u&&(f=0));break}var h=e.charCodeAt(o+u);if(h!==n.charCodeAt(a+u))break;47===h&&(f=u)}var d="";for(u=o+f+1;u<=i;++u)u!==i&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+f):(a+=f,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!s){o=r+1;break}}else-1===c&&(s=!1,c=r+1),a>=0&&(l===n.charCodeAt(a)?-1===--a&&(i=r):(a=-1,i=c))}return o===i?i=c:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===o&&(i=!1,o=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,c=-1,l=!0,f=e.length-1,u=0;f>=r;--f)if(47!==(o=e.charCodeAt(f)))-1===c&&(l=!1,c=f+1),46===o?-1===s?s=f:1!==u&&(u=1):-1!==s&&(u=-1);else if(!l){a=f+1;break}return-1===s||-1===c||0===u||1===u&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&i?e.slice(1,c):e.slice(a,c)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromNow=function e(t,n,f,u){"number"!=typeof t&&(t=t.getTime());const h=Math.round(((new Date).getTime()-t)/1e3);if(h<-30)return r.l10n.t("in {0}",e((new Date).getTime()+1e3*h,!1));if(!u&&h<30)return r.l10n.t("now");let d;return h<o?(d=h,n?1===d?f?r.l10n.t("{0} second ago",d):r.l10n.t("{0} sec ago",d):f?r.l10n.t("{0} seconds ago",d):r.l10n.t("{0} secs ago",d):1===d?f?r.l10n.t("{0} second",d):r.l10n.t("{0} sec",d):f?r.l10n.t("{0} seconds",d):r.l10n.t("{0} secs",d)):h<i?(d=Math.floor(h/o),n?1===d?f?r.l10n.t("{0} minute ago",d):r.l10n.t("{0} min ago",d):f?r.l10n.t("{0} minutes ago",d):r.l10n.t("{0} mins ago",d):1===d?f?r.l10n.t("{0} minute",d):r.l10n.t("{0} min",d):f?r.l10n.t("{0} minutes",d):r.l10n.t("{0} mins",d)):h<s?(d=Math.floor(h/i),n?1===d?f?r.l10n.t("{0} hour ago",d):r.l10n.t("{0} hr ago",d):f?r.l10n.t("{0} hours ago",d):r.l10n.t("{0} hrs ago",d):1===d?f?r.l10n.t("{0} hour",d):r.l10n.t("{0} hr",d):f?r.l10n.t("{0} hours",d):r.l10n.t("{0} hrs",d)):h<a?(d=Math.floor(h/s),n?1===d?r.l10n.t("{0} day ago",d):r.l10n.t("{0} days ago",d):1===d?r.l10n.t("{0} day",d):r.l10n.t("{0} days",d)):h<c?(d=Math.floor(h/a),n?1===d?f?r.l10n.t("{0} week ago",d):r.l10n.t("{0} wk ago",d):f?r.l10n.t("{0} weeks ago",d):r.l10n.t("{0} wks ago",d):1===d?f?r.l10n.t("{0} week",d):r.l10n.t("{0} wk",d):f?r.l10n.t("{0} weeks",d):r.l10n.t("{0} wks",d)):h<l?(d=Math.floor(h/c),n?1===d?f?r.l10n.t("{0} month ago",d):r.l10n.t("{0} mo ago",d):f?r.l10n.t("{0} months ago",d):r.l10n.t("{0} mos ago",d):1===d?f?r.l10n.t("{0} month",d):r.l10n.t("{0} mo",d):f?r.l10n.t("{0} months",d):r.l10n.t("{0} mos",d)):(d=Math.floor(h/l),n?1===d?f?r.l10n.t("{0} year ago",d):r.l10n.t("{0} yr ago",d):f?r.l10n.t("{0} years ago",d):r.l10n.t("{0} yrs ago",d):1===d?f?r.l10n.t("{0} year",d):r.l10n.t("{0} yr",d):f?r.l10n.t("{0} years",d):r.l10n.t("{0} yrs",d))};const r=n(398),o=60,i=60*o,s=24*i,a=7*s,c=30*s,l=365*s}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=n(303),o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
2
2
  //# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/undefined/extensions/npm/dist/browser/npmBrowserMain.js.map