astro-vscode 2.14.1 → 2.14.2
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/dist/node/client.js +1 -1
- package/dist/node/server.js +2 -2
- package/package.json +6 -5
- package/syntaxes/mdx.astro.tmLanguage.json +37 -60
package/dist/node/client.js
CHANGED
|
@@ -43,4 +43,4 @@ globstar while`,e,m,t,g,D),this.matchOne(e.slice(m),t.slice(g),r))return this.de
|
|
|
43
43
|
`+t.data.toString():""}`}return e instanceof Error?Pn.string(e.stack)?e.stack:e.message:Pn.string(e)?e:e.toString()}debug(e,t,r=!0){this.logOutputMessage(j.MessageType.Debug,Jr.Debug,"Debug",e,t,r)}info(e,t,r=!0){this.logOutputMessage(j.MessageType.Info,Jr.Info,"Info",e,t,r)}warn(e,t,r=!0){this.logOutputMessage(j.MessageType.Warning,Jr.Warn,"Warn",e,t,r)}error(e,t,r=!0){this.logOutputMessage(j.MessageType.Error,Jr.Error,"Error",e,t,r)}logOutputMessage(e,t,r,i,s,o){this.outputChannel.appendLine(`[${r.padEnd(5)} - ${new Date().toLocaleTimeString()}] ${i}`),s!=null&&this.outputChannel.appendLine(this.data2String(s)),(o==="force"||o&&this._clientOptions.revealOutputChannelOn<=t)&&this.showNotificationMessage(e,i)}showNotificationMessage(e,t){t=t??"A request has failed. See the output for more information.",(e===j.MessageType.Error?Te.window.showErrorMessage:e===j.MessageType.Warning?Te.window.showWarningMessage:Te.window.showInformationMessage)(t,"Go to output").then(i=>{i!==void 0&&this.outputChannel.show(!0)})}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${new Date().toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${new Date().toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${new Date().toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===ce.Initial||this.$state===ce.Stopping||this.$state===ce.Stopped}needsStop(){return this.$state===ce.Starting||this.$state===ce.Running}activeConnection(){return this.$state===ce.Running&&this._connection!==void 0?this._connection:void 0}isRunning(){return this.$state===ce.Running}async start(){if(this._disposed==="disposing"||this._disposed==="disposed")throw new Error("Client got disposed and can't be restarted.");if(this.$state===ce.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(this._onStart!==void 0)return this._onStart;let[e,t,r]=this.createOnStartPromise();this._onStart=e,this._diagnostics===void 0&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?Te.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):Te.languages.createDiagnosticCollection());for(let[i,s]of this._notificationHandlers)this._pendingNotificationHandlers.has(i)||this._pendingNotificationHandlers.set(i,s);for(let[i,s]of this._requestHandlers)this._pendingRequestHandlers.has(i)||this._pendingRequestHandlers.set(i,s);for(let[i,s]of this._progressHandlers)this._pendingProgressHandlers.has(i)||this._pendingProgressHandlers.set(i,s);this.$state=ce.Starting;try{let i=await this.createConnection();i.onNotification(j.LogMessageNotification.type,s=>{switch(s.type){case j.MessageType.Error:this.error(s.message,void 0,!1);break;case j.MessageType.Warning:this.warn(s.message,void 0,!1);break;case j.MessageType.Info:this.info(s.message,void 0,!1);break;case j.MessageType.Debug:this.debug(s.message,void 0,!1);break;default:this.outputChannel.appendLine(s.message)}}),i.onNotification(j.ShowMessageNotification.type,s=>{switch(s.type){case j.MessageType.Error:Te.window.showErrorMessage(s.message);break;case j.MessageType.Warning:Te.window.showWarningMessage(s.message);break;case j.MessageType.Info:Te.window.showInformationMessage(s.message);break;default:Te.window.showInformationMessage(s.message)}}),i.onRequest(j.ShowMessageRequest.type,s=>{let o;switch(s.type){case j.MessageType.Error:o=Te.window.showErrorMessage;break;case j.MessageType.Warning:o=Te.window.showWarningMessage;break;case j.MessageType.Info:o=Te.window.showInformationMessage;break;default:o=Te.window.showInformationMessage}let a=s.actions||[];return o(s.message,...a)}),i.onNotification(j.TelemetryEventNotification.type,s=>{this._telemetryEmitter.fire(s)}),i.onRequest(j.ShowDocumentRequest.type,async s=>{let o=async u=>{let l=this.protocol2CodeConverter.asUri(u.uri);try{if(u.external===!0)return{success:await Te.env.openExternal(l)};{let p={};return u.selection!==void 0&&(p.selection=this.protocol2CodeConverter.asRange(u.selection)),u.takeFocus===void 0||u.takeFocus===!1?p.preserveFocus=!0:u.takeFocus===!0&&(p.preserveFocus=!1),await Te.window.showTextDocument(l,p),{success:!0}}}catch{return{success:!1}}},a=this._clientOptions.middleware.window?.showDocument;return a!==void 0?a(s,o):o(s)}),i.listen(),await this.initialize(i),t()}catch(i){this.$state=ce.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,i,"force"),r(i)}return this._onStart}createOnStartPromise(){let e,t;return[new Promise((i,s)=>{e=i,t=s}),e,t]}async initialize(e){this.refreshTrace(e,!1);let t=this._clientOptions.initializationOptions,[r,i]=this._clientOptions.workspaceFolder!==void 0?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:Te.env.appName,version:Te.version},locale:this.getLocale(),rootPath:r||null,rootUri:r?this._c2p.asUri(Te.Uri.file(r)):null,capabilities:this.computeClientCapabilities(),initializationOptions:Pn.func(t)?t():t,trace:j.Trace.toString(this._trace),workspaceFolders:i};if(this.fillInitializeParams(s),this._clientOptions.progressOnInitialization){let o=yy.generateUuid(),a=new OD.ProgressPart(e,o);s.workDoneToken=o;try{let u=await this.doInitialize(e,s);return a.done(),u}catch(u){throw a.cancel(),u}}else return this.doInitialize(e,s)}async doInitialize(e,t){try{let r=await e.initialize(t);if(r.capabilities.positionEncoding!==void 0&&r.capabilities.positionEncoding!==j.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${r.capabilities.positionEncoding}) received from server ${this.name}`);this._initializeResult=r,this.$state=ce.Running;let i;Pn.number(r.capabilities.textDocumentSync)?r.capabilities.textDocumentSync===j.TextDocumentSyncKind.None?i={openClose:!1,change:j.TextDocumentSyncKind.None,save:void 0}:i={openClose:!0,change:r.capabilities.textDocumentSync,save:{includeText:!1}}:r.capabilities.textDocumentSync!==void 0&&r.capabilities.textDocumentSync!==null&&(i=r.capabilities.textDocumentSync),this._capabilities=Object.assign({},r.capabilities,{resolvedTextDocumentSync:i}),e.onNotification(j.PublishDiagnosticsNotification.type,s=>this.handleDiagnostics(s)),e.onRequest(j.RegistrationRequest.type,s=>this.handleRegistrationRequest(s)),e.onRequest("client/registerFeature",s=>this.handleRegistrationRequest(s)),e.onRequest(j.UnregistrationRequest.type,s=>this.handleUnregistrationRequest(s)),e.onRequest("client/unregisterFeature",s=>this.handleUnregistrationRequest(s)),e.onRequest(j.ApplyWorkspaceEditRequest.type,s=>this.handleApplyWorkspaceEdit(s));for(let[s,o]of this._pendingNotificationHandlers)this._notificationDisposables.set(s,e.onNotification(s,o));this._pendingNotificationHandlers.clear();for(let[s,o]of this._pendingRequestHandlers)this._requestDisposables.set(s,e.onRequest(s,o));this._pendingRequestHandlers.clear();for(let[s,o]of this._pendingProgressHandlers)this._progressDisposables.set(s,e.onProgress(o.type,s,o.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(j.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),r}catch(r){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(r)?this.initialize(e):this.stop():r instanceof j.ResponseError&&r.data&&r.data.retry?Te.window.showErrorMessage(r.message,{title:"Retry",id:"retry"}).then(i=>{i&&i.id==="retry"?this.initialize(e):this.stop()}):(r&&r.message&&Te.window.showErrorMessage(r.message),this.error("Server initialization failed.",r),this.stop()),r}}_clientGetRootPath(){let e=Te.workspace.workspaceFolders;if(!e||e.length===0)return;let t=e[0];if(t.uri.scheme==="file")return t.uri.fsPath}stop(e=2e3){return this.shutdown("stop",e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,t){if(this.$state===ce.Stopped||this.$state===ce.Initial)return;if(this.$state===ce.Stopping){if(this._onStop!==void 0)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}let r=this.activeConnection();if(r===void 0||this.$state!==ce.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=ce.Stopping,this.cleanUp(e);let i=new Promise(o=>{(0,j.RAL)().timer.setTimeout(o,t)}),s=(async o=>(await o.shutdown(),await o.exit(),o))(r);return this._onStop=Promise.race([i,s]).then(o=>{if(o!==void 0)o.end(),o.dispose();else throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out")},o=>{throw this.error("Stopping server failed",o,!1),o}).finally(()=>{this.$state=ce.Stopped,e==="stop"&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()})}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();let t=this._listeners.splice(0,this._listeners.length);for(let r of t)r.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(let r of Array.from(this._features.entries()).map(i=>i[1]).reverse())r.clear();e==="stop"&&this._diagnostics!==void 0&&(this._diagnostics.dispose(),this._diagnostics=void 0),this._idleInterval!==void 0&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){this._outputChannel!==void 0&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){let t=this;async function r(s){return t._fileEvents.push(s),t._fileEventDelayer.trigger(async()=>{await t.sendNotification(j.DidChangeWatchedFilesNotification.type,{changes:t._fileEvents}),t._fileEvents=[]})}let i=this.clientOptions.middleware?.workspace;(i?.didChangeWatchedFile?i.didChangeWatchedFile(e,r):r(e)).catch(s=>{t.error("Notify file events failed.",s)})}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock(async()=>{try{let t=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(t.length===0)return;for(let r of t){let i=this.code2ProtocolConverter.asChangeTextDocumentParams(r);await e.sendNotification(j.DidChangeTextDocumentNotification.type,i),this._didChangeTextDocumentFeature.notificationSent(r,j.DidChangeTextDocumentNotification.type,i)}}catch(t){throw this.error("Sending pending changes failed",t,!1),t}})}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger(async()=>{let e=this.activeConnection();if(e===void 0){this.triggerPendingChangeDelivery();return}await this.sendPendingFullTextDocumentChanges(e)}).catch(e=>this.error("Delivering pending changes failed",e,!1))}handleDiagnostics(e){if(!this._diagnostics)return;let t=e.uri;this._diagnosticQueueState.state==="busy"&&this._diagnosticQueueState.document===t&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,j.RAL)().timer.setImmediate(()=>{this.workDiagnosticQueue()})}workDiagnosticQueue(){if(this._diagnosticQueueState.state==="busy")return;let e=this._diagnosticQueue.entries().next();if(e.done===!0)return;let[t,r]=e.value;this._diagnosticQueue.delete(t);let i=new Te.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:t,tokenSource:i},this._p2c.asDiagnostics(r,i.token).then(s=>{if(!i.token.isCancellationRequested){let o=this._p2c.asUri(t),a=this.clientOptions.middleware;a.handleDiagnostics?a.handleDiagnostics(o,s,(u,l)=>this.setDiagnostics(u,l)):this.setDiagnostics(o,s)}}).finally(()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()})}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t)}getLocale(){return Te.env.language}async $start(){if(this.$state===ce.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();let e=this.activeConnection();if(e===void 0)throw new Error("Starting server failed");return e}async createConnection(){let e=(i,s,o)=>{this.handleConnectionError(i,s,o).catch(a=>this.error("Handling connection error failed",a))},t=()=>{this.handleConnectionClosed().catch(i=>this.error("Handling connection close failed",i))},r=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=lS(r.reader,r.writer,e,t,this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===ce.Stopped)return;try{this._connection!==void 0&&this._connection.dispose()}catch{}let e={action:xr.DoNotRestart};if(this.$state!==ce.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch{}this._connection=void 0,e.action===xr.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,e.handled===!0?!1:"force"),this.cleanUp("stop"),this.$state===ce.Starting?this.$state=ce.StartFailed:this.$state=ce.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===xr.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp("restart"),this.$state=ce.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch(t=>this.error("Restarting server failed",t,"force")))}async handleConnectionError(e,t,r){let i=await this._clientOptions.errorHandler.error(e,t,r);i.action===ws.Shutdown?(this.error(i.message??`Client ${this._name}: connection to server is erroring.
|
|
44
44
|
${e.message}
|
|
45
45
|
Shutting down server.`,void 0,i.handled===!0?!1:"force"),this.stop().catch(s=>{this.error("Stopping server failed",s,!1)})):this.error(i.message??`Client ${this._name}: connection to server is erroring.
|
|
46
|
-
${e.message}`,void 0,i.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(Te.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,t=!1){let r=Te.workspace.getConfiguration(this._id),i=j.Trace.Off,s=j.TraceFormat.Text;if(r){let o=r.get("trace.server","off");typeof o=="string"?i=j.Trace.fromString(o):(i=j.Trace.fromString(r.get("trace.server.verbosity","off")),s=j.TraceFormat.fromString(r.get("trace.server.format","text")))}this._trace=i,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let t=this._clientOptions.synchronize.fileEvents;if(!t)return;let r;Pn.array(t)?r=t:r=[t],r&&this._dynamicFeatures.get(j.DidChangeWatchedFilesNotification.type.method).registerRaw(yy.generateUuid(),r)}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),Tn.DynamicFeature.is(e)){let t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){let t=this.getFeature(j.NotebookDocumentSyncRegistrationType.method);return t===void 0||!(t instanceof Cy.NotebookDocumentSyncFeature)?!1:t.handles(e)}registerBuiltinFeatures(){let e=new Map;this.registerFeature(new by.ConfigurationFeature(this)),this.registerFeature(new Fi.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new Fi.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new Fi.WillSaveFeature(this)),this.registerFeature(new Fi.WillSaveWaitUntilFeature(this)),this.registerFeature(new Fi.DidSaveTextDocumentFeature(this)),this.registerFeature(new Fi.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new GD.FileSystemWatcherFeature(this,t=>this.notifyFileEvent(t))),this.registerFeature(new ND.CompletionItemFeature(this)),this.registerFeature(new MD.HoverFeature(this)),this.registerFeature(new AD.SignatureHelpFeature(this)),this.registerFeature(new LD.DefinitionFeature(this)),this.registerFeature(new WD.ReferencesFeature(this)),this.registerFeature(new jD.DocumentHighlightFeature(this)),this.registerFeature(new $D.DocumentSymbolFeature(this)),this.registerFeature(new HD.WorkspaceSymbolFeature(this)),this.registerFeature(new UD.CodeActionFeature(this)),this.registerFeature(new KD.CodeLensFeature(this)),this.registerFeature(new Gd.DocumentFormattingFeature(this)),this.registerFeature(new Gd.DocumentRangeFormattingFeature(this)),this.registerFeature(new Gd.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new zD.RenameFeature(this)),this.registerFeature(new VD.DocumentLinkFeature(this)),this.registerFeature(new BD.ExecuteCommandFeature(this)),this.registerFeature(new by.SyncConfigurationFeature(this)),this.registerFeature(new QD.TypeDefinitionFeature(this)),this.registerFeature(new JD.ImplementationFeature(this)),this.registerFeature(new XD.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new YD.WorkspaceFoldersFeature(this)),this.registerFeature(new ZD.FoldingRangeFeature(this)),this.registerFeature(new eS.DeclarationFeature(this)),this.registerFeature(new tS.SelectionRangeFeature(this)),this.registerFeature(new nS.ProgressFeature(this)),this.registerFeature(new rS.CallHierarchyFeature(this)),this.registerFeature(new iS.SemanticTokensFeature(this)),this.registerFeature(new sS.LinkedEditingFeature(this)),this.registerFeature(new Ni.DidCreateFilesFeature(this)),this.registerFeature(new Ni.DidRenameFilesFeature(this)),this.registerFeature(new Ni.DidDeleteFilesFeature(this)),this.registerFeature(new Ni.WillCreateFilesFeature(this)),this.registerFeature(new Ni.WillRenameFilesFeature(this)),this.registerFeature(new Ni.WillDeleteFilesFeature(this)),this.registerFeature(new oS.TypeHierarchyFeature(this)),this.registerFeature(new aS.InlineValueFeature(this)),this.registerFeature(new cS.InlayHintsFeature(this)),this.registerFeature(new FD.DiagnosticFeature(this)),this.registerFeature(new Cy.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(Yd.createAll(this))}fillInitializeParams(e){for(let t of this._features)Pn.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};(0,Tn.ensure)(e,"workspace").applyEdit=!0;let t=(0,Tn.ensure)((0,Tn.ensure)(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[j.ResourceOperationKind.Create,j.ResourceOperationKind.Rename,j.ResourceOperationKind.Delete],t.failureHandling=j.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0};let r=(0,Tn.ensure)((0,Tn.ensure)(e,"textDocument"),"publishDiagnostics");r.relatedInformation=!0,r.versionSupport=!1,r.tagSupport={valueSet:[j.DiagnosticTag.Unnecessary,j.DiagnosticTag.Deprecated]},r.codeDescriptionSupport=!0,r.dataSupport=!0;let i=(0,Tn.ensure)(e,"window"),s=(0,Tn.ensure)(i,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};let o=(0,Tn.ensure)(i,"showDocument");o.support=!0;let a=(0,Tn.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(rr.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let u of this._features)u.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let r of this._features)Pn.func(r.preInitialize)&&r.preInitialize(this._capabilities,t);for(let r of this._features)r.initialize(this._capabilities,t)}async handleRegistrationRequest(e){let t=this.clientOptions.middleware?.handleRegisterCapability;return t?t(e,r=>this.doRegisterCapability(r)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(let t of e.registrations)this._ignoredRegistrations.add(t.id);return}for(let t of e.registrations){let r=this._dynamicFeatures.get(t.method);if(r===void 0)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));let i=t.registerOptions??{};i.documentSelector=i.documentSelector??this._clientOptions.documentSelector;let s={id:t.id,registerOptions:i};try{r.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){let t=this.clientOptions.middleware?.handleUnregisterCapability;return t?t(e,r=>this.doUnregisterCapability(r)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(let t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;let r=this._dynamicFeatures.get(t.method);if(!r)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));r.unregister(t.id)}}async handleApplyWorkspaceEdit(e){let t=e.edit,r=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(t)),i=new Map;Te.workspace.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let s=!1;if(t.documentChanges){for(let o of t.documentChanges)if(j.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let a=this._p2c.asUri(o.textDocument.uri).toString(),u=i.get(a);if(u&&u.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):Pn.asPromise(Te.workspace.applyEdit(r).then(o=>({applied:o})))}handleFailedRequest(e,t,r,i,s=!0){if(r instanceof j.ResponseError){if(r.code===j.ErrorCodes.PendingResponseRejected||r.code===j.ErrorCodes.ConnectionInactive)return i;if(r.code===j.LSPErrorCodes.RequestCancelled||r.code===j.LSPErrorCodes.ServerCancelled){if(t!==void 0&&t.isCancellationRequested)return i;throw r.data!==void 0?new Tn.LSPCancellationError(r.data):new Te.CancellationError}else if(r.code===j.LSPErrorCodes.ContentModified){if(rr.RequestsToCancelOnContentModified.has(e.method)||rr.CancellableResolveCalls.has(e.method))throw new Te.CancellationError;return i}}throw this.error(`Request ${e.method} failed.`,r,s),r}};ft.BaseLanguageClient=rr;rr.RequestsToCancelOnContentModified=new Set([j.SemanticTokensRequest.method,j.SemanticTokensRangeRequest.method,j.SemanticTokensDeltaRequest.method]);rr.CancellableResolveCalls=new Set([j.CompletionResolveRequest.method,j.CodeLensResolveRequest.method,j.CodeActionResolveRequest.method,j.InlayHintResolveRequest.method,j.DocumentLinkResolveRequest.method,j.WorkspaceSymbolResolveRequest.method]);var Qd=class{error(e){(0,j.RAL)().console.error(e)}warn(e){(0,j.RAL)().console.warn(e)}info(e){(0,j.RAL)().console.info(e)}log(e){(0,j.RAL)().console.log(e)}};function lS(n,e,t,r,i){let s=new Qd,o=(0,j.createProtocolConnection)(n,e,s,i);return o.onError(u=>{t(u[0],u[1],u[2])}),o.onClose(r),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(u,l,p)=>{let m={sendNotification:!1,traceFormat:j.TraceFormat.Text};return p===void 0?o.trace(u,l,m):(Pn.boolean(p),o.trace(u,l,p))},initialize:u=>o.sendRequest(j.InitializeRequest.type,u),shutdown:()=>o.sendRequest(j.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(j.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var Yd;(function(n){function e(t){return[new uS.InlineCompletionItemFeature(t)]}n.createAll=e})(Yd||(ft.ProposedFeatures=Yd={}))});var Sy=q(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.terminate=void 0;var Dy=require("child_process"),dS=require("path"),fS=process.platform==="win32",hS=process.platform==="darwin",pS=process.platform==="linux";function gS(n,e){if(fS)try{let i={stdio:["pipe","pipe","ignore"]};return e&&(i.cwd=e),Dy.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],i),!0}catch{return!1}else if(pS||hS)try{var t=(0,dS.join)(__dirname,"terminateProcess.sh"),r=Dy.spawnSync(t,[n.pid.toString()]);return!r.error}catch{return!1}else return n.kill("SIGKILL"),!0}ga.terminate=gS});var ef=q((rq,Ry)=>{"use strict";Ry.exports=Y()});var Ds=q((iq,Ty)=>{var mS=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};Ty.exports=mS});var ma=q((sq,Py)=>{var vS="2.0.0",yS=Number.MAX_SAFE_INTEGER||9007199254740991,CS=16,bS=256-6,_S=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Py.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:CS,MAX_SAFE_BUILD_LENGTH:bS,MAX_SAFE_INTEGER:yS,RELEASE_TYPES:_S,SEMVER_SPEC_VERSION:vS,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var va=q((ir,qy)=>{var{MAX_SAFE_COMPONENT_LENGTH:tf,MAX_SAFE_BUILD_LENGTH:wS,MAX_LENGTH:DS}=ma(),SS=Ds();ir=qy.exports={};var RS=ir.re=[],TS=ir.safeRe=[],V=ir.src=[],B=ir.t={},PS=0,nf="[a-zA-Z0-9-]",qS=[["\\s",1],["\\d",DS],[nf,wS]],ES=n=>{for(let[e,t]of qS)n=n.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return n},oe=(n,e,t)=>{let r=ES(e),i=PS++;SS(n,i,e),B[n]=i,V[i]=e,RS[i]=new RegExp(e,t?"g":void 0),TS[i]=new RegExp(r,t?"g":void 0)};oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${nf}*`);oe("MAINVERSION",`(${V[B.NUMERICIDENTIFIER]})\\.(${V[B.NUMERICIDENTIFIER]})\\.(${V[B.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${V[B.NUMERICIDENTIFIERLOOSE]})\\.(${V[B.NUMERICIDENTIFIERLOOSE]})\\.(${V[B.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${V[B.NUMERICIDENTIFIER]}|${V[B.NONNUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${V[B.NUMERICIDENTIFIERLOOSE]}|${V[B.NONNUMERICIDENTIFIER]})`);oe("PRERELEASE",`(?:-(${V[B.PRERELEASEIDENTIFIER]}(?:\\.${V[B.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${V[B.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[B.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${nf}+`);oe("BUILD",`(?:\\+(${V[B.BUILDIDENTIFIER]}(?:\\.${V[B.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${V[B.MAINVERSION]}${V[B.PRERELEASE]}?${V[B.BUILD]}?`);oe("FULL",`^${V[B.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${V[B.MAINVERSIONLOOSE]}${V[B.PRERELEASELOOSE]}?${V[B.BUILD]}?`);oe("LOOSE",`^${V[B.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${V[B.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${V[B.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${V[B.XRANGEIDENTIFIER]})(?:\\.(${V[B.XRANGEIDENTIFIER]})(?:\\.(${V[B.XRANGEIDENTIFIER]})(?:${V[B.PRERELEASE]})?${V[B.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${V[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[B.XRANGEIDENTIFIERLOOSE]})(?:${V[B.PRERELEASELOOSE]})?${V[B.BUILD]}?)?)?`);oe("XRANGE",`^${V[B.GTLT]}\\s*${V[B.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${V[B.GTLT]}\\s*${V[B.XRANGEPLAINLOOSE]}$`);oe("COERCE",`(^|[^\\d])(\\d{1,${tf}})(?:\\.(\\d{1,${tf}}))?(?:\\.(\\d{1,${tf}}))?(?:$|[^\\d])`);oe("COERCERTL",V[B.COERCE],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${V[B.LONETILDE]}\\s+`,!0);ir.tildeTrimReplace="$1~";oe("TILDE",`^${V[B.LONETILDE]}${V[B.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${V[B.LONETILDE]}${V[B.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${V[B.LONECARET]}\\s+`,!0);ir.caretTrimReplace="$1^";oe("CARET",`^${V[B.LONECARET]}${V[B.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${V[B.LONECARET]}${V[B.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${V[B.GTLT]}\\s*(${V[B.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${V[B.GTLT]}\\s*(${V[B.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${V[B.GTLT]}\\s*(${V[B.LOOSEPLAIN]}|${V[B.XRANGEPLAIN]})`,!0);ir.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${V[B.XRANGEPLAIN]})\\s+-\\s+(${V[B.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${V[B.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[B.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ya=q((oq,Ey)=>{var kS=Object.freeze({loose:!0}),xS=Object.freeze({}),IS=n=>n?typeof n!="object"?kS:n:xS;Ey.exports=IS});var Oy=q((aq,Iy)=>{var ky=/^[0-9]+$/,xy=(n,e)=>{let t=ky.test(n),r=ky.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:n<e?-1:1},OS=(n,e)=>xy(e,n);Iy.exports={compareIdentifiers:xy,rcompareIdentifiers:OS}});var Ss=q((cq,Ly)=>{var Ca=Ds(),{MAX_LENGTH:Fy,MAX_SAFE_INTEGER:ba}=ma(),{safeRe:Ny,t:My}=va(),FS=ya(),{compareIdentifiers:Mi}=Oy(),nn=class{constructor(e,t){if(t=FS(t),e instanceof nn){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Fy)throw new TypeError(`version is longer than ${Fy} characters`);Ca("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?Ny[My.LOOSE]:Ny[My.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>ba||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ba||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ba||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<ba)return s}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ca("SemVer.compare",this.version,this.options,e),!(e instanceof nn)){if(typeof e=="string"&&e===this.version)return 0;e=new nn(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof nn||(e=new nn(e,this.options)),Mi(this.major,e.major)||Mi(this.minor,e.minor)||Mi(this.patch,e.patch)}comparePre(e){if(e instanceof nn||(e=new nn(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(Ca("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return Mi(r,i)}while(++t)}compareBuild(e){e instanceof nn||(e=new nn(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(Ca("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return Mi(r,i)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(r)?1:0;if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){let s=[t,i];r===!1&&(s=[t]),Mi(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ly.exports=nn});var $y=q((uq,jy)=>{var Ay=Ss(),NS=(n,e,t=!1)=>{if(n instanceof Ay)return n;try{return new Ay(n,e)}catch(r){if(!t)return null;throw r}};jy.exports=NS});var Wy=q((lq,Hy)=>{"use strict";Hy.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ky=q((dq,Uy)=>{"use strict";Uy.exports=we;we.Node=Qr;we.create=we;function we(n){var e=this;if(e instanceof we||(e=new we),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}we.prototype.removeNode=function(n){if(n.list!==this)throw new Error("removing node which does not belong to this list");var e=n.next,t=n.prev;return e&&(e.prev=t),t&&(t.next=e),n===this.head&&(this.head=e),n===this.tail&&(this.tail=t),n.list.length--,n.next=null,n.prev=null,n.list=null,e};we.prototype.unshiftNode=function(n){if(n!==this.head){n.list&&n.list.removeNode(n);var e=this.head;n.list=this,n.next=e,e&&(e.prev=n),this.head=n,this.tail||(this.tail=n),this.length++}};we.prototype.pushNode=function(n){if(n!==this.tail){n.list&&n.list.removeNode(n);var e=this.tail;n.list=this,n.prev=e,e&&(e.next=n),this.tail=n,this.head||(this.head=n),this.length++}};we.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)LS(this,arguments[n]);return this.length};we.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)AS(this,arguments[n]);return this.length};we.prototype.pop=function(){if(this.tail){var n=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,n}};we.prototype.shift=function(){if(this.head){var n=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,n}};we.prototype.forEach=function(n,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)n.call(e,t.value,r,this),t=t.next};we.prototype.forEachReverse=function(n,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)n.call(e,t.value,r,this),t=t.prev};we.prototype.get=function(n){for(var e=0,t=this.head;t!==null&&e<n;e++)t=t.next;if(e===n&&t!==null)return t.value};we.prototype.getReverse=function(n){for(var e=0,t=this.tail;t!==null&&e<n;e++)t=t.prev;if(e===n&&t!==null)return t.value};we.prototype.map=function(n,e){e=e||this;for(var t=new we,r=this.head;r!==null;)t.push(n.call(e,r.value,this)),r=r.next;return t};we.prototype.mapReverse=function(n,e){e=e||this;for(var t=new we,r=this.tail;r!==null;)t.push(n.call(e,r.value,this)),r=r.prev;return t};we.prototype.reduce=function(n,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)t=n(t,r.value,i),r=r.next;return t};we.prototype.reduceReverse=function(n,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)t=n(t,r.value,i),r=r.prev;return t};we.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n};we.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n};we.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new we;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=0,i=this.head;i!==null&&r<n;r++)i=i.next;for(;i!==null&&r<e;r++,i=i.next)t.push(i.value);return t};we.prototype.sliceReverse=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new we;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=this.length,i=this.tail;i!==null&&r>e;r--)i=i.prev;for(;i!==null&&r>n;r--,i=i.prev)t.push(i.value);return t};we.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var r=0,i=this.head;i!==null&&r<n;r++)i=i.next;for(var s=[],r=0;i&&r<e;r++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<t.length;r++)i=MS(this,i,t[r]);return s};we.prototype.reverse=function(){for(var n=this.head,e=this.tail,t=n;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=n,this};function MS(n,e,t){var r=e===n.head?new Qr(t,null,e,n):new Qr(t,e,e.next,n);return r.next===null&&(n.tail=r),r.prev===null&&(n.head=r),n.length++,r}function LS(n,e){n.tail=new Qr(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function AS(n,e){n.head=new Qr(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function Qr(n,e,t,r){if(!(this instanceof Qr))return new Qr(n,e,t,r);this.list=r,this.value=n,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Wy()(we)}catch{}});var Xy=q((fq,Gy)=>{"use strict";var jS=Ky(),Yr=Symbol("max"),or=Symbol("length"),Li=Symbol("lengthCalculator"),Ts=Symbol("allowStale"),Zr=Symbol("maxAge"),sr=Symbol("dispose"),zy=Symbol("noDisposeOnSet"),ht=Symbol("lruList"),qn=Symbol("cache"),By=Symbol("updateAgeOnGet"),rf=()=>1,of=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Yr]=e.max||1/0,r=e.length||rf;if(this[Li]=typeof r!="function"?rf:r,this[Ts]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Zr]=e.maxAge||0,this[sr]=e.dispose,this[zy]=e.noDisposeOnSet||!1,this[By]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Yr]=e||1/0,Rs(this)}get max(){return this[Yr]}set allowStale(e){this[Ts]=!!e}get allowStale(){return this[Ts]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Zr]=e,Rs(this)}get maxAge(){return this[Zr]}set lengthCalculator(e){typeof e!="function"&&(e=rf),e!==this[Li]&&(this[Li]=e,this[or]=0,this[ht].forEach(t=>{t.length=this[Li](t.value,t.key),this[or]+=t.length})),Rs(this)}get lengthCalculator(){return this[Li]}get length(){return this[or]}get itemCount(){return this[ht].length}rforEach(e,t){t=t||this;for(let r=this[ht].tail;r!==null;){let i=r.prev;Vy(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[ht].head;r!==null;){let i=r.next;Vy(this,e,r,t),r=i}}keys(){return this[ht].toArray().map(e=>e.key)}values(){return this[ht].toArray().map(e=>e.value)}reset(){this[sr]&&this[ht]&&this[ht].length&&this[ht].forEach(e=>this[sr](e.key,e.value)),this[qn]=new Map,this[ht]=new jS,this[or]=0}dump(){return this[ht].map(e=>_a(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ht]}set(e,t,r){if(r=r||this[Zr],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let i=r?Date.now():0,s=this[Li](t,e);if(this[qn].has(e)){if(s>this[Yr])return Ai(this,this[qn].get(e)),!1;let u=this[qn].get(e).value;return this[sr]&&(this[zy]||this[sr](e,u.value)),u.now=i,u.maxAge=r,u.value=t,this[or]+=s-u.length,u.length=s,this.get(e),Rs(this),!0}let o=new af(e,t,s,i,r);return o.length>this[Yr]?(this[sr]&&this[sr](e,t),!1):(this[or]+=o.length,this[ht].unshift(o),this[qn].set(e,this[ht].head),Rs(this),!0)}has(e){if(!this[qn].has(e))return!1;let t=this[qn].get(e).value;return!_a(this,t)}get(e){return sf(this,e,!0)}peek(e){return sf(this,e,!1)}pop(){let e=this[ht].tail;return e?(Ai(this,e),e.value):null}del(e){Ai(this,this[qn].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let o=s-t;o>0&&this.set(i.k,i.v,o)}}}prune(){this[qn].forEach((e,t)=>sf(this,t,!1))}},sf=(n,e,t)=>{let r=n[qn].get(e);if(r){let i=r.value;if(_a(n,i)){if(Ai(n,r),!n[Ts])return}else t&&(n[By]&&(r.value.now=Date.now()),n[ht].unshiftNode(r));return i.value}},_a=(n,e)=>{if(!e||!e.maxAge&&!n[Zr])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[Zr]&&t>n[Zr]},Rs=n=>{if(n[or]>n[Yr])for(let e=n[ht].tail;n[or]>n[Yr]&&e!==null;){let t=e.prev;Ai(n,e),e=t}},Ai=(n,e)=>{if(e){let t=e.value;n[sr]&&n[sr](t.key,t.value),n[or]-=t.length,n[qn].delete(t.key),n[ht].removeNode(e)}},af=class{constructor(e,t,r,i,s){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=s||0}},Vy=(n,e,t,r)=>{let i=t.value;_a(n,i)&&(Ai(n,t),n[Ts]||(i=void 0)),i&&e.call(r,i.value,i.key,n)};Gy.exports=of});var ei=q((hq,Qy)=>{var Jy=Ss(),$S=(n,e,t)=>new Jy(n,t).compare(new Jy(e,t));Qy.exports=$S});var Zy=q((pq,Yy)=>{var HS=ei(),WS=(n,e,t)=>HS(n,e,t)===0;Yy.exports=WS});var tC=q((gq,eC)=>{var US=ei(),KS=(n,e,t)=>US(n,e,t)!==0;eC.exports=KS});var rC=q((mq,nC)=>{var zS=ei(),VS=(n,e,t)=>zS(n,e,t)>0;nC.exports=VS});var sC=q((vq,iC)=>{var BS=ei(),GS=(n,e,t)=>BS(n,e,t)>=0;iC.exports=GS});var aC=q((yq,oC)=>{var XS=ei(),JS=(n,e,t)=>XS(n,e,t)<0;oC.exports=JS});var uC=q((Cq,cC)=>{var QS=ei(),YS=(n,e,t)=>QS(n,e,t)<=0;cC.exports=YS});var dC=q((bq,lC)=>{var ZS=Zy(),eR=tC(),tR=rC(),nR=sC(),rR=aC(),iR=uC(),sR=(n,e,t,r)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return ZS(n,t,r);case"!=":return eR(n,t,r);case">":return tR(n,t,r);case">=":return nR(n,t,r);case"<":return rR(n,t,r);case"<=":return iR(n,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}};lC.exports=sR});var yC=q((_q,vC)=>{var Ps=Symbol("SemVer ANY"),ji=class{static get ANY(){return Ps}constructor(e,t){if(t=fC(t),e instanceof ji){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),uf("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ps?this.value="":this.value=this.operator+this.semver.version,uf("comp",this)}parse(e){let t=this.options.loose?hC[pC.COMPARATORLOOSE]:hC[pC.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new gC(r[2],this.options.loose):this.semver=Ps}toString(){return this.value}test(e){if(uf("Comparator.test",e,this.options.loose),this.semver===Ps||e===Ps)return!0;if(typeof e=="string")try{e=new gC(e,this.options)}catch{return!1}return cf(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof ji))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new mC(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new mC(this.value,t).test(e.semver):(t=fC(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||cf(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||cf(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};vC.exports=ji;var fC=ya(),{safeRe:hC,t:pC}=va(),cf=dC(),uf=Ds(),gC=Ss(),mC=lf()});var lf=q((wq,wC)=>{var ti=class{constructor(e,t){if(t=aR(t),e instanceof ti)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ti(e.raw,t);if(e instanceof df)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!bC(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&pR(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&fR)|(this.options.loose&&hR))+":"+e,i=CC.get(r);if(i)return i;let s=this.options.loose,o=s?Ut[kt.HYPHENRANGELOOSE]:Ut[kt.HYPHENRANGE];e=e.replace(o,SR(this.options.includePrerelease)),Ae("hyphen replace",e),e=e.replace(Ut[kt.COMPARATORTRIM],uR),Ae("comparator trim",e),e=e.replace(Ut[kt.TILDETRIM],lR),Ae("tilde trim",e),e=e.replace(Ut[kt.CARETTRIM],dR),Ae("caret trim",e);let a=e.split(" ").map(m=>gR(m,this.options)).join(" ").split(/\s+/).map(m=>DR(m,this.options));s&&(a=a.filter(m=>(Ae("loose invalid filter",m,this.options),!!m.match(Ut[kt.COMPARATORLOOSE])))),Ae("range list",a);let u=new Map,l=a.map(m=>new df(m,this.options));for(let m of l){if(bC(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let p=[...u.values()];return CC.set(r,p),p}intersects(e,t){if(!(e instanceof ti))throw new TypeError("a Range is required");return this.set.some(r=>_C(r,t)&&e.set.some(i=>_C(i,t)&&r.every(s=>i.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new cR(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(RR(this.set[t],e,this.options))return!0;return!1}};wC.exports=ti;var oR=Xy(),CC=new oR({max:1e3}),aR=ya(),df=yC(),Ae=Ds(),cR=Ss(),{safeRe:Ut,t:kt,comparatorTrimReplace:uR,tildeTrimReplace:lR,caretTrimReplace:dR}=va(),{FLAG_INCLUDE_PRERELEASE:fR,FLAG_LOOSE:hR}=ma(),bC=n=>n.value==="<0.0.0-0",pR=n=>n.value==="",_C=(n,e)=>{let t=!0,r=n.slice(),i=r.pop();for(;t&&r.length;)t=r.every(s=>i.intersects(s,e)),i=r.pop();return t},gR=(n,e)=>(Ae("comp",n,e),n=yR(n,e),Ae("caret",n),n=mR(n,e),Ae("tildes",n),n=bR(n,e),Ae("xrange",n),n=wR(n,e),Ae("stars",n),n),xt=n=>!n||n.toLowerCase()==="x"||n==="*",mR=(n,e)=>n.trim().split(/\s+/).map(t=>vR(t,e)).join(" "),vR=(n,e)=>{let t=e.loose?Ut[kt.TILDELOOSE]:Ut[kt.TILDE];return n.replace(t,(r,i,s,o,a)=>{Ae("tilde",n,r,i,s,o,a);let u;return xt(i)?u="":xt(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:xt(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ae("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ae("tilde return",u),u})},yR=(n,e)=>n.trim().split(/\s+/).map(t=>CR(t,e)).join(" "),CR=(n,e)=>{Ae("caret",n,e);let t=e.loose?Ut[kt.CARETLOOSE]:Ut[kt.CARET],r=e.includePrerelease?"-0":"";return n.replace(t,(i,s,o,a,u)=>{Ae("caret",n,i,s,o,a,u);let l;return xt(s)?l="":xt(o)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:xt(a)?s==="0"?l=`>=${s}.${o}.0${r} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${r} <${+s+1}.0.0-0`:u?(Ae("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(Ae("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${a}${r} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}${r} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ae("caret return",l),l})},bR=(n,e)=>(Ae("replaceXRanges",n,e),n.split(/\s+/).map(t=>_R(t,e)).join(" ")),_R=(n,e)=>{n=n.trim();let t=e.loose?Ut[kt.XRANGELOOSE]:Ut[kt.XRANGE];return n.replace(t,(r,i,s,o,a,u)=>{Ae("xRange",n,r,i,s,o,a,u);let l=xt(s),p=l||xt(o),m=p||xt(a),g=m;return i==="="&&g&&(i=""),u=e.includePrerelease?"-0":"",l?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&g?(p&&(o=0),a=0,i===">"?(i=">=",p?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",p?s=+s+1:o=+o+1),i==="<"&&(u="-0"),r=`${i+s}.${o}.${a}${u}`):p?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:m&&(r=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Ae("xRange return",r),r})},wR=(n,e)=>(Ae("replaceStars",n,e),n.trim().replace(Ut[kt.STAR],"")),DR=(n,e)=>(Ae("replaceGTE0",n,e),n.trim().replace(Ut[e.includePrerelease?kt.GTE0PRE:kt.GTE0],"")),SR=n=>(e,t,r,i,s,o,a,u,l,p,m,g,D)=>(xt(r)?t="":xt(i)?t=`>=${r}.0.0${n?"-0":""}`:xt(s)?t=`>=${r}.${i}.0${n?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,xt(l)?u="":xt(p)?u=`<${+l+1}.0.0-0`:xt(m)?u=`<${l}.${+p+1}.0-0`:g?u=`<=${l}.${p}.${m}-${g}`:n?u=`<${l}.${p}.${+m+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),RR=(n,e,t)=>{for(let r=0;r<n.length;r++)if(!n[r].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let r=0;r<n.length;r++)if(Ae(n[r].semver),n[r].semver!==df.ANY&&n[r].semver.prerelease.length>0){let i=n[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var SC=q((Dq,DC)=>{var TR=lf(),PR=(n,e,t)=>{try{e=new TR(e,t)}catch{return!1}return e.test(n)};DC.exports=PR});var TC=q(rn=>{"use strict";var qR=rn&&rn.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),ff=rn&&rn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&qR(e,n,t)};Object.defineProperty(rn,"__esModule",{value:!0});rn.DiagnosticPullMode=rn.vsdiag=void 0;ff(Y(),rn);ff(ve(),rn);var RC=yl();Object.defineProperty(rn,"vsdiag",{enumerable:!0,get:function(){return RC.vsdiag}});Object.defineProperty(rn,"DiagnosticPullMode",{enumerable:!0,get:function(){return RC.DiagnosticPullMode}});ff(Zd(),rn)});var _f=q(Kt=>{"use strict";var ER=Kt&&Kt.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),EC=Kt&&Kt.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ER(e,n,t)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.SettingMonitor=Kt.LanguageClient=Kt.TransportKind=void 0;var ar=require("child_process"),hf=require("fs"),pf=require("path"),Or=require("vscode"),Ue=ln(),PC=Zd(),kR=Sy(),Ve=ef(),xR=$y(),IR=SC();EC(ef(),Kt);EC(TC(),Kt);var qC="^1.82.0",Be;(function(n){n[n.stdio=0]="stdio",n[n.ipc=1]="ipc",n[n.pipe=2]="pipe",n[n.socket=3]="socket"})(Be||(Kt.TransportKind=Be={}));var Ir;(function(n){function e(t){let r=t;return r&&r.kind===Be.socket&&Ue.number(r.port)}n.isSocket=e})(Ir||(Ir={}));var gf;(function(n){function e(t){return Ue.string(t.command)}n.is=e})(gf||(gf={}));var mf;(function(n){function e(t){return Ue.string(t.module)}n.is=e})(mf||(mf={}));var vf;(function(n){function e(t){let r=t;return r&&r.writer!==void 0&&r.reader!==void 0}n.is=e})(vf||(vf={}));var yf;(function(n){function e(t){let r=t;return r&&r.process!==void 0&&typeof r.detached=="boolean"}n.is=e})(yf||(yf={}));var Cf=class extends PC.BaseLanguageClient{constructor(e,t,r,i,s){let o,a,u,l,p;Ue.string(t)?(o=e,a=t,u=r,l=i,p=!!s):(o=e.toLowerCase(),a=e,u=t,l=r,p=i),p===void 0&&(p=!1),super(o,a,l),this._serverOptions=u,this._forceDebug=p,this._isInDebugMode=p;try{this.checkVersion()}catch(m){throw Ue.string(m.message)&&this.outputChannel.appendLine(m.message),m}}checkVersion(){let e=xR(Or.version);if(!e)throw new Error(`No valid VS Code version detected. Version string is: ${Or.version}`);if(e.prerelease&&e.prerelease.length>0&&(e.prerelease=[]),!IR(e,qC))throw new Error(`The language client requires VS Code version ${qC} but received version ${Or.version}`)}get isInDebugMode(){return this._isInDebugMode}async restart(){await this.stop(),this.isInDebugMode?(await new Promise(e=>setTimeout(e,1e3)),await this.start()):await this.start()}stop(e=2e3){return super.stop(e).finally(()=>{if(this._serverProcess){let t=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(t),this._isDetached=void 0}})}checkProcessDied(e){!e||e.pid===void 0||setTimeout(()=>{try{e.pid!==void 0&&(process.kill(e.pid,0),(0,kR.terminate)(e))}catch{}},2e3)}handleConnectionClosed(){return this._serverProcess=void 0,super.handleConnectionClosed()}fillInitializeParams(e){super.fillInitializeParams(e),e.processId===null&&(e.processId=process.pid)}createMessageTransports(e){function t(p,m){if(!p&&!m)return;let g=Object.create(null);return Object.keys(process.env).forEach(D=>g[D]=process.env[D]),m&&(g.ELECTRON_RUN_AS_NODE="1",g.ELECTRON_NO_ASAR="1"),p&&Object.keys(p).forEach(D=>g[D]=p[D]),g}let r=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],i=["--debug","--debug-brk","--inspect","--inspect-brk"];function s(){let p=process.execArgv;return p?p.some(m=>r.some(g=>m.startsWith(g))||i.some(g=>m===g)):!1}function o(p){if(p.stdin===null||p.stdout===null||p.stderr===null)throw new Error("Process created without stdio streams")}let a=this._serverOptions;if(Ue.func(a))return a().then(p=>{if(PC.MessageTransports.is(p))return this._isDetached=!!p.detached,p;if(vf.is(p))return this._isDetached=!!p.detached,{reader:new Ve.StreamMessageReader(p.reader),writer:new Ve.StreamMessageWriter(p.writer)};{let m;return yf.is(p)?(m=p.process,this._isDetached=p.detached):(m=p,this._isDetached=!1),m.stderr.on("data",g=>this.outputChannel.append(Ue.string(g)?g:g.toString(e))),{reader:new Ve.StreamMessageReader(m.stdout),writer:new Ve.StreamMessageWriter(m.stdin)}}});let u,l=a;return l.run||l.debug?this._forceDebug||s()?(u=l.debug,this._isInDebugMode=!0):(u=l.run,this._isInDebugMode=!1):u=a,this._getServerWorkingDir(u.options).then(p=>{if(mf.is(u)&&u.module){let m=u,g=m.transport||Be.stdio;if(m.runtime){let D=[],y=m.options??Object.create(null);y.execArgv&&y.execArgv.forEach(L=>D.push(L)),D.push(m.module),m.args&&m.args.forEach(L=>D.push(L));let P=Object.create(null);P.cwd=p,P.env=t(y.env,!1);let E=this._getRuntimePath(m.runtime,p),O;if(g===Be.ipc?(P.stdio=[null,null,null,"ipc"],D.push("--node-ipc")):g===Be.stdio?D.push("--stdio"):g===Be.pipe?(O=(0,Ve.generateRandomPipeName)(),D.push(`--pipe=${O}`)):Ir.isSocket(g)&&D.push(`--socket=${g.port}`),D.push(`--clientProcessId=${process.pid.toString()}`),g===Be.ipc||g===Be.stdio){let L=ar.spawn(E,D,P);return!L||!L.pid?$i(L,`Launching server using runtime ${E} failed.`):(this._serverProcess=L,L.stderr.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),g===Be.ipc?(L.stdout.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),Promise.resolve({reader:new Ve.IPCMessageReader(L),writer:new Ve.IPCMessageWriter(L)})):Promise.resolve({reader:new Ve.StreamMessageReader(L.stdout),writer:new Ve.StreamMessageWriter(L.stdin)}))}else{if(g===Be.pipe)return(0,Ve.createClientPipeTransport)(O).then(L=>{let M=ar.spawn(E,D,P);return!M||!M.pid?$i(M,`Launching server using runtime ${E} failed.`):(this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>({reader:A[0],writer:A[1]})))});if(Ir.isSocket(g))return(0,Ve.createClientSocketTransport)(g.port).then(L=>{let M=ar.spawn(E,D,P);return!M||!M.pid?$i(M,`Launching server using runtime ${E} failed.`):(this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>({reader:A[0],writer:A[1]})))})}}else{let D;return new Promise((y,P)=>{let E=(m.args&&m.args.slice())??[];g===Be.ipc?E.push("--node-ipc"):g===Be.stdio?E.push("--stdio"):g===Be.pipe?(D=(0,Ve.generateRandomPipeName)(),E.push(`--pipe=${D}`)):Ir.isSocket(g)&&E.push(`--socket=${g.port}`),E.push(`--clientProcessId=${process.pid.toString()}`);let O=m.options??Object.create(null);if(O.env=t(O.env,!0),O.execArgv=O.execArgv||[],O.cwd=p,O.silent=!0,g===Be.ipc||g===Be.stdio){let L=ar.fork(m.module,E||[],O);o(L),this._serverProcess=L,L.stderr.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),g===Be.ipc?(L.stdout.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),y({reader:new Ve.IPCMessageReader(this._serverProcess),writer:new Ve.IPCMessageWriter(this._serverProcess)})):y({reader:new Ve.StreamMessageReader(L.stdout),writer:new Ve.StreamMessageWriter(L.stdin)})}else g===Be.pipe?(0,Ve.createClientPipeTransport)(D).then(L=>{let M=ar.fork(m.module,E||[],O);o(M),this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>{y({reader:A[0],writer:A[1]})},P)},P):Ir.isSocket(g)&&(0,Ve.createClientSocketTransport)(g.port).then(L=>{let M=ar.fork(m.module,E||[],O);o(M),this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>{y({reader:A[0],writer:A[1]})},P)},P)})}}else if(gf.is(u)&&u.command){let m=u,g=u.args!==void 0?u.args.slice(0):[],D,y=u.transport;if(y===Be.stdio)g.push("--stdio");else if(y===Be.pipe)D=(0,Ve.generateRandomPipeName)(),g.push(`--pipe=${D}`);else if(Ir.isSocket(y))g.push(`--socket=${y.port}`);else if(y===Be.ipc)throw new Error("Transport kind ipc is not support for command executable");let P=Object.assign({},m.options);if(P.cwd=P.cwd||p,y===void 0||y===Be.stdio){let E=ar.spawn(m.command,g,P);return!E||!E.pid?$i(E,`Launching server using command ${m.command} failed.`):(E.stderr.on("data",O=>this.outputChannel.append(Ue.string(O)?O:O.toString(e))),this._serverProcess=E,this._isDetached=!!P.detached,Promise.resolve({reader:new Ve.StreamMessageReader(E.stdout),writer:new Ve.StreamMessageWriter(E.stdin)}))}else{if(y===Be.pipe)return(0,Ve.createClientPipeTransport)(D).then(E=>{let O=ar.spawn(m.command,g,P);return!O||!O.pid?$i(O,`Launching server using command ${m.command} failed.`):(this._serverProcess=O,this._isDetached=!!P.detached,O.stderr.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),O.stdout.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),E.onConnected().then(L=>({reader:L[0],writer:L[1]})))});if(Ir.isSocket(y))return(0,Ve.createClientSocketTransport)(y.port).then(E=>{let O=ar.spawn(m.command,g,P);return!O||!O.pid?$i(O,`Launching server using command ${m.command} failed.`):(this._serverProcess=O,this._isDetached=!!P.detached,O.stderr.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),O.stdout.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),E.onConnected().then(L=>({reader:L[0],writer:L[1]})))})}}return Promise.reject(new Error("Unsupported server configuration "+JSON.stringify(a,null,4)))}).finally(()=>{this._serverProcess!==void 0&&this._serverProcess.on("exit",(p,m)=>{p!==null&&this.error(`Server process exited with code ${p}.`,void 0,!1),m!==null&&this.error(`Server process exited with signal ${m}.`,void 0,!1)})})}_getRuntimePath(e,t){if(pf.isAbsolute(e))return e;let r=this._mainGetRootPath();if(r!==void 0){let i=pf.join(r,e);if(hf.existsSync(i))return i}if(t!==void 0){let i=pf.join(t,e);if(hf.existsSync(i))return i}return e}_mainGetRootPath(){let e=Or.workspace.workspaceFolders;if(!e||e.length===0)return;let t=e[0];if(t.uri.scheme==="file")return t.uri.fsPath}_getServerWorkingDir(e){let t=e&&e.cwd;return t||(t=this.clientOptions.workspaceFolder?this.clientOptions.workspaceFolder.uri.fsPath:this._mainGetRootPath()),t?new Promise(r=>{hf.lstat(t,(i,s)=>{r(!i&&s.isDirectory()?t:void 0)})}):Promise.resolve(void 0)}};Kt.LanguageClient=Cf;var bf=class{constructor(e,t){this._client=e,this._setting=t,this._listeners=[]}start(){return Or.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration,this,this._listeners),this.onDidChangeConfiguration(),new Or.Disposable(()=>{this._client.needsStop()&&this._client.stop()})}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,r=e>=0?this._setting.substr(e+1):void 0,i=r?Or.workspace.getConfiguration(t).get(r,!1):Or.workspace.getConfiguration(t);i&&this._client.needsStart()?this._client.start().catch(s=>this._client.error("Start failed after configuration change",s,"force")):!i&&this._client.needsStop()&&this._client.stop().catch(s=>this._client.error("Stop failed after configuration change",s,"force"))}};Kt.SettingMonitor=bf;function $i(n,e){return n===null?Promise.reject(e):new Promise((t,r)=>{n.on("error",i=>{r(`${e} ${i}`)}),setImmediate(()=>r(e))})}});var xC=q(Pe=>{"use strict";var OR=Pe&&Pe.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),FR=Pe&&Pe.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&OR(e,n,t)};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.currentLabsVersion=Pe.middleware=Pe.getTsdk=Pe.activateTsVersionStatusItem=Pe.activateTsConfigStatusItem=Pe.activateReloadProjects=Pe.activateFindFileReferences=Pe.activateWriteVirtualFiles=Pe.activateDocumentDropEdit=Pe.activateAutoInsertion=void 0;Pe.parseServerCommand=Hi;Pe.createLabsInfo=HR;var cr=require("vscode"),NR=gm();Object.defineProperty(Pe,"activateAutoInsertion",{enumerable:!0,get:function(){return NR.activate}});var MR=mm();Object.defineProperty(Pe,"activateDocumentDropEdit",{enumerable:!0,get:function(){return MR.activate}});var LR=vm();Object.defineProperty(Pe,"activateWriteVirtualFiles",{enumerable:!0,get:function(){return LR.activate}});var AR=Tm();Object.defineProperty(Pe,"activateFindFileReferences",{enumerable:!0,get:function(){return AR.activate}});var jR=Pm();Object.defineProperty(Pe,"activateReloadProjects",{enumerable:!0,get:function(){return jR.activate}});var $R=km();Object.defineProperty(Pe,"activateTsConfigStatusItem",{enumerable:!0,get:function(){return $R.activate}});var kC=Lm();Object.defineProperty(Pe,"activateTsVersionStatusItem",{enumerable:!0,get:function(){return kC.activate}});Object.defineProperty(Pe,"getTsdk",{enumerable:!0,get:function(){return kC.getTsdk}});FR(_f(),Pe);Pe.middleware={async provideCodeActions(n,e,t,r,i){let s=await i(n,e,t,r);return s=s?.map(o=>o instanceof cr.CodeAction?(o.command&&(o.command=Hi(o.command)),o):Hi(o)),s},async resolveCodeAction(n,e,t){let r=await t(n,e);return r?.command&&(r.command=Hi(r.command)),r},async provideCodeLenses(n,e,t){let r=await t(n,e);return r=r?.map(i=>(i.command&&(i.command=Hi(i.command)),i)),r},async resolveCodeLens(n,e,t){let r=await t(n,e);return r?.command&&(r.command=Hi(r.command)),r}};function Hi(n){return n.command==="editor.action.rename"&&n.arguments?{...n,arguments:[[cr.Uri.parse(n.arguments[0]),new cr.Position(n.arguments[1].line,n.arguments[1].character)]]}:n.command==="editor.action.showReferences"&&n.arguments?{...n,arguments:[cr.Uri.parse(n.arguments[0]),new cr.Position(n.arguments[1].line,n.arguments[1].character),n.arguments[2].map(e=>new cr.Location(cr.Uri.parse(e.uri),new cr.Range(e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character)))]}:n}Pe.currentLabsVersion="2.3.1";function HR(n){let e=new cr.EventEmitter,t={volarLabs:{version:Pe.currentLabsVersion,languageClients:[],languageServerProtocol:n,onDidAddLanguageClient:e.event}};return{extensionExports:t,addLanguageClient(r){t.volarLabs.languageClients.push(r),e.fire(r)}}}});var OC=q((Pq,IC)=>{"use strict";IC.exports=_f()});var VR={};$C(VR,{activate:()=>UR,deactivate:()=>KR});module.exports=HC(VR);var wa=Wi(require("node:path")),WR=Wi(Tr()),zt=Wi(xC()),ur=Wi(require("vscode")),qs=Wi(OC()),Fr;async function UR(n){let e=ur.workspace.getConfiguration("astro.language-server"),{workspaceFolders:t}=ur.workspace,r=t?.[0].uri.fsPath,i=await zR(n.workspaceState);typeof i=="string"&&i.trim()!==""&&typeof r=="string"?(i=wa.isAbsolute(i)?i:wa.join(r,i),console.info(`Using language server at ${i}`)):i=void 0;let s=i?require.resolve(i):ur.Uri.joinPath(n.extensionUri,"dist/node/server.js").fsPath,o={execArgv:[]},a={execArgv:["--nolazy","--inspect=6009"]},u={run:{module:s,transport:qs.TransportKind.ipc,options:o},debug:{module:s,transport:qs.TransportKind.ipc,options:a}},l=e.get("runtime");l&&(u.run.runtime=l,u.debug.runtime=l,console.info(`Using ${l} as runtime`));let p=ur.workspace.getConfiguration("astro").get("content-intellisense"),m={typescript:{tsdk:(await(0,zt.getTsdk)(n)).tsdk},contentIntellisense:p},g={documentSelector:[{language:"astro"},...p?[{language:"markdown"},{language:"mdx"},{language:"mdoc"}]:[]],initializationOptions:m};Fr=new qs.LanguageClient("astro","Astro Language Server",u,g),await Fr.start(),(0,zt.activateAutoInsertion)("astro",Fr),(0,zt.activateFindFileReferences)("astro.findFileReferences",Fr),(0,zt.activateReloadProjects)("astro.reloadProjects",Fr),(0,zt.activateTsConfigStatusItem)("astro","astro.openTsConfig",Fr),(0,zt.activateTsVersionStatusItem)("astro","astro.selectTypescriptVersion",n,y=>y);let D=(0,zt.createLabsInfo)(WR);return D.addLanguageClient(Fr),D.extensionExports}function KR(){return Fr?.stop()}async function zR(n){let e="astro.language-server",t=ur.workspace.getConfiguration(e).inspect("ls-path"),r=t?.globalLanguageValue||t?.defaultLanguageValue||t?.globalValue||t?.defaultValue,i=t?.workspaceFolderLanguageValue||t?.workspaceLanguageValue||t?.workspaceFolderValue||t?.workspaceValue,s=`${e}.useLocalLS`,o=n.get(s);if(o===void 0&&i!==void 0){let a="This workspace contains an Astro Language Server version. Would you like to use the workplace version?",u="Allow",l="Dismiss",p="Never in This Workspace",m=await ur.window.showInformationMessage(a,u,l,p);m===u?(await n.update(s,!0),o=!0):m===p&&await n.update(s,!1)}return o===!0&&i||r}0&&(module.exports={activate,deactivate});
|
|
46
|
+
${e.message}`,void 0,i.handled===!0?!1:"force")}hookConfigurationChanged(e){this._listeners.push(Te.workspace.onDidChangeConfiguration(()=>{this.refreshTrace(e,!0)}))}refreshTrace(e,t=!1){let r=Te.workspace.getConfiguration(this._id),i=j.Trace.Off,s=j.TraceFormat.Text;if(r){let o=r.get("trace.server","off");typeof o=="string"?i=j.Trace.fromString(o):(i=j.Trace.fromString(r.get("trace.server.verbosity","off")),s=j.TraceFormat.fromString(r.get("trace.server.format","text")))}this._trace=i,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch(o=>{this.error("Updating trace failed with error",o,!1)})}hookFileEvents(e){let t=this._clientOptions.synchronize.fileEvents;if(!t)return;let r;Pn.array(t)?r=t:r=[t],r&&this._dynamicFeatures.get(j.DidChangeWatchedFilesNotification.type.method).registerRaw(yy.generateUuid(),r)}registerFeatures(e){for(let t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),Tn.DynamicFeature.is(e)){let t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){let t=this.getFeature(j.NotebookDocumentSyncRegistrationType.method);return t===void 0||!(t instanceof Cy.NotebookDocumentSyncFeature)?!1:t.handles(e)}registerBuiltinFeatures(){let e=new Map;this.registerFeature(new by.ConfigurationFeature(this)),this.registerFeature(new Fi.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new Fi.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded(()=>{this.triggerPendingChangeDelivery()}),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new Fi.WillSaveFeature(this)),this.registerFeature(new Fi.WillSaveWaitUntilFeature(this)),this.registerFeature(new Fi.DidSaveTextDocumentFeature(this)),this.registerFeature(new Fi.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new GD.FileSystemWatcherFeature(this,t=>this.notifyFileEvent(t))),this.registerFeature(new ND.CompletionItemFeature(this)),this.registerFeature(new MD.HoverFeature(this)),this.registerFeature(new AD.SignatureHelpFeature(this)),this.registerFeature(new LD.DefinitionFeature(this)),this.registerFeature(new WD.ReferencesFeature(this)),this.registerFeature(new jD.DocumentHighlightFeature(this)),this.registerFeature(new $D.DocumentSymbolFeature(this)),this.registerFeature(new HD.WorkspaceSymbolFeature(this)),this.registerFeature(new UD.CodeActionFeature(this)),this.registerFeature(new KD.CodeLensFeature(this)),this.registerFeature(new Gd.DocumentFormattingFeature(this)),this.registerFeature(new Gd.DocumentRangeFormattingFeature(this)),this.registerFeature(new Gd.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new zD.RenameFeature(this)),this.registerFeature(new VD.DocumentLinkFeature(this)),this.registerFeature(new BD.ExecuteCommandFeature(this)),this.registerFeature(new by.SyncConfigurationFeature(this)),this.registerFeature(new QD.TypeDefinitionFeature(this)),this.registerFeature(new JD.ImplementationFeature(this)),this.registerFeature(new XD.ColorProviderFeature(this)),this.clientOptions.workspaceFolder===void 0&&this.registerFeature(new YD.WorkspaceFoldersFeature(this)),this.registerFeature(new ZD.FoldingRangeFeature(this)),this.registerFeature(new eS.DeclarationFeature(this)),this.registerFeature(new tS.SelectionRangeFeature(this)),this.registerFeature(new nS.ProgressFeature(this)),this.registerFeature(new rS.CallHierarchyFeature(this)),this.registerFeature(new iS.SemanticTokensFeature(this)),this.registerFeature(new sS.LinkedEditingFeature(this)),this.registerFeature(new Ni.DidCreateFilesFeature(this)),this.registerFeature(new Ni.DidRenameFilesFeature(this)),this.registerFeature(new Ni.DidDeleteFilesFeature(this)),this.registerFeature(new Ni.WillCreateFilesFeature(this)),this.registerFeature(new Ni.WillRenameFilesFeature(this)),this.registerFeature(new Ni.WillDeleteFilesFeature(this)),this.registerFeature(new oS.TypeHierarchyFeature(this)),this.registerFeature(new aS.InlineValueFeature(this)),this.registerFeature(new cS.InlayHintsFeature(this)),this.registerFeature(new FD.DiagnosticFeature(this)),this.registerFeature(new Cy.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(Yd.createAll(this))}fillInitializeParams(e){for(let t of this._features)Pn.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){let e={};(0,Tn.ensure)(e,"workspace").applyEdit=!0;let t=(0,Tn.ensure)((0,Tn.ensure)(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[j.ResourceOperationKind.Create,j.ResourceOperationKind.Rename,j.ResourceOperationKind.Delete],t.failureHandling=j.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0};let r=(0,Tn.ensure)((0,Tn.ensure)(e,"textDocument"),"publishDiagnostics");r.relatedInformation=!0,r.versionSupport=!1,r.tagSupport={valueSet:[j.DiagnosticTag.Unnecessary,j.DiagnosticTag.Deprecated]},r.codeDescriptionSupport=!0,r.dataSupport=!0;let i=(0,Tn.ensure)(e,"window"),s=(0,Tn.ensure)(i,"showMessage");s.messageActionItem={additionalPropertiesSupport:!0};let o=(0,Tn.ensure)(i,"showDocument");o.support=!0;let a=(0,Tn.ensure)(e,"general");a.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(rr.RequestsToCancelOnContentModified)},a.regularExpressions={engine:"ECMAScript",version:"ES2020"},a.markdown={parser:"marked",version:"1.1.0"},a.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(a.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(let u of this._features)u.fillClientCapabilities(e);return e}initializeFeatures(e){let t=this._clientOptions.documentSelector;for(let r of this._features)Pn.func(r.preInitialize)&&r.preInitialize(this._capabilities,t);for(let r of this._features)r.initialize(this._capabilities,t)}async handleRegistrationRequest(e){let t=this.clientOptions.middleware?.handleRegisterCapability;return t?t(e,r=>this.doRegisterCapability(r)):this.doRegisterCapability(e)}async doRegisterCapability(e){if(!this.isRunning()){for(let t of e.registrations)this._ignoredRegistrations.add(t.id);return}for(let t of e.registrations){let r=this._dynamicFeatures.get(t.method);if(r===void 0)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));let i=t.registerOptions??{};i.documentSelector=i.documentSelector??this._clientOptions.documentSelector;let s={id:t.id,registerOptions:i};try{r.register(s)}catch(o){return Promise.reject(o)}}}async handleUnregistrationRequest(e){let t=this.clientOptions.middleware?.handleUnregisterCapability;return t?t(e,r=>this.doUnregisterCapability(r)):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(let t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;let r=this._dynamicFeatures.get(t.method);if(!r)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));r.unregister(t.id)}}async handleApplyWorkspaceEdit(e){let t=e.edit,r=await this.workspaceEditLock.lock(()=>this._p2c.asWorkspaceEdit(t)),i=new Map;Te.workspace.textDocuments.forEach(o=>i.set(o.uri.toString(),o));let s=!1;if(t.documentChanges){for(let o of t.documentChanges)if(j.TextDocumentEdit.is(o)&&o.textDocument.version&&o.textDocument.version>=0){let a=this._p2c.asUri(o.textDocument.uri).toString(),u=i.get(a);if(u&&u.version!==o.textDocument.version){s=!0;break}}}return s?Promise.resolve({applied:!1}):Pn.asPromise(Te.workspace.applyEdit(r).then(o=>({applied:o})))}handleFailedRequest(e,t,r,i,s=!0){if(r instanceof j.ResponseError){if(r.code===j.ErrorCodes.PendingResponseRejected||r.code===j.ErrorCodes.ConnectionInactive)return i;if(r.code===j.LSPErrorCodes.RequestCancelled||r.code===j.LSPErrorCodes.ServerCancelled){if(t!==void 0&&t.isCancellationRequested)return i;throw r.data!==void 0?new Tn.LSPCancellationError(r.data):new Te.CancellationError}else if(r.code===j.LSPErrorCodes.ContentModified){if(rr.RequestsToCancelOnContentModified.has(e.method)||rr.CancellableResolveCalls.has(e.method))throw new Te.CancellationError;return i}}throw this.error(`Request ${e.method} failed.`,r,s),r}};ft.BaseLanguageClient=rr;rr.RequestsToCancelOnContentModified=new Set([j.SemanticTokensRequest.method,j.SemanticTokensRangeRequest.method,j.SemanticTokensDeltaRequest.method]);rr.CancellableResolveCalls=new Set([j.CompletionResolveRequest.method,j.CodeLensResolveRequest.method,j.CodeActionResolveRequest.method,j.InlayHintResolveRequest.method,j.DocumentLinkResolveRequest.method,j.WorkspaceSymbolResolveRequest.method]);var Qd=class{error(e){(0,j.RAL)().console.error(e)}warn(e){(0,j.RAL)().console.warn(e)}info(e){(0,j.RAL)().console.info(e)}log(e){(0,j.RAL)().console.log(e)}};function lS(n,e,t,r,i){let s=new Qd,o=(0,j.createProtocolConnection)(n,e,s,i);return o.onError(u=>{t(u[0],u[1],u[2])}),o.onClose(r),{listen:()=>o.listen(),sendRequest:o.sendRequest,onRequest:o.onRequest,hasPendingResponse:o.hasPendingResponse,sendNotification:o.sendNotification,onNotification:o.onNotification,onProgress:o.onProgress,sendProgress:o.sendProgress,trace:(u,l,p)=>{let m={sendNotification:!1,traceFormat:j.TraceFormat.Text};return p===void 0?o.trace(u,l,m):(Pn.boolean(p),o.trace(u,l,p))},initialize:u=>o.sendRequest(j.InitializeRequest.type,u),shutdown:()=>o.sendRequest(j.ShutdownRequest.type,void 0),exit:()=>o.sendNotification(j.ExitNotification.type),end:()=>o.end(),dispose:()=>o.dispose()}}var Yd;(function(n){function e(t){return[new uS.InlineCompletionItemFeature(t)]}n.createAll=e})(Yd||(ft.ProposedFeatures=Yd={}))});var Sy=q(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.terminate=void 0;var Dy=require("child_process"),dS=require("path"),fS=process.platform==="win32",hS=process.platform==="darwin",pS=process.platform==="linux";function gS(n,e){if(fS)try{let i={stdio:["pipe","pipe","ignore"]};return e&&(i.cwd=e),Dy.execFileSync("taskkill",["/T","/F","/PID",n.pid.toString()],i),!0}catch{return!1}else if(pS||hS)try{var t=(0,dS.join)(__dirname,"terminateProcess.sh"),r=Dy.spawnSync(t,[n.pid.toString()]);return!r.error}catch{return!1}else return n.kill("SIGKILL"),!0}ga.terminate=gS});var ef=q((rq,Ry)=>{"use strict";Ry.exports=Y()});var Ds=q((iq,Ty)=>{var mS=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};Ty.exports=mS});var ma=q((sq,Py)=>{var vS="2.0.0",yS=Number.MAX_SAFE_INTEGER||9007199254740991,CS=16,bS=256-6,_S=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Py.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:CS,MAX_SAFE_BUILD_LENGTH:bS,MAX_SAFE_INTEGER:yS,RELEASE_TYPES:_S,SEMVER_SPEC_VERSION:vS,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var va=q((ir,qy)=>{var{MAX_SAFE_COMPONENT_LENGTH:tf,MAX_SAFE_BUILD_LENGTH:wS,MAX_LENGTH:DS}=ma(),SS=Ds();ir=qy.exports={};var RS=ir.re=[],TS=ir.safeRe=[],V=ir.src=[],B=ir.t={},PS=0,nf="[a-zA-Z0-9-]",qS=[["\\s",1],["\\d",DS],[nf,wS]],ES=n=>{for(let[e,t]of qS)n=n.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return n},oe=(n,e,t)=>{let r=ES(e),i=PS++;SS(n,i,e),B[n]=i,V[i]=e,RS[i]=new RegExp(e,t?"g":void 0),TS[i]=new RegExp(r,t?"g":void 0)};oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${nf}*`);oe("MAINVERSION",`(${V[B.NUMERICIDENTIFIER]})\\.(${V[B.NUMERICIDENTIFIER]})\\.(${V[B.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${V[B.NUMERICIDENTIFIERLOOSE]})\\.(${V[B.NUMERICIDENTIFIERLOOSE]})\\.(${V[B.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${V[B.NUMERICIDENTIFIER]}|${V[B.NONNUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${V[B.NUMERICIDENTIFIERLOOSE]}|${V[B.NONNUMERICIDENTIFIER]})`);oe("PRERELEASE",`(?:-(${V[B.PRERELEASEIDENTIFIER]}(?:\\.${V[B.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${V[B.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[B.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${nf}+`);oe("BUILD",`(?:\\+(${V[B.BUILDIDENTIFIER]}(?:\\.${V[B.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${V[B.MAINVERSION]}${V[B.PRERELEASE]}?${V[B.BUILD]}?`);oe("FULL",`^${V[B.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${V[B.MAINVERSIONLOOSE]}${V[B.PRERELEASELOOSE]}?${V[B.BUILD]}?`);oe("LOOSE",`^${V[B.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${V[B.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${V[B.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${V[B.XRANGEIDENTIFIER]})(?:\\.(${V[B.XRANGEIDENTIFIER]})(?:\\.(${V[B.XRANGEIDENTIFIER]})(?:${V[B.PRERELEASE]})?${V[B.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${V[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[B.XRANGEIDENTIFIERLOOSE]})(?:${V[B.PRERELEASELOOSE]})?${V[B.BUILD]}?)?)?`);oe("XRANGE",`^${V[B.GTLT]}\\s*${V[B.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${V[B.GTLT]}\\s*${V[B.XRANGEPLAINLOOSE]}$`);oe("COERCE",`(^|[^\\d])(\\d{1,${tf}})(?:\\.(\\d{1,${tf}}))?(?:\\.(\\d{1,${tf}}))?(?:$|[^\\d])`);oe("COERCERTL",V[B.COERCE],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${V[B.LONETILDE]}\\s+`,!0);ir.tildeTrimReplace="$1~";oe("TILDE",`^${V[B.LONETILDE]}${V[B.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${V[B.LONETILDE]}${V[B.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${V[B.LONECARET]}\\s+`,!0);ir.caretTrimReplace="$1^";oe("CARET",`^${V[B.LONECARET]}${V[B.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${V[B.LONECARET]}${V[B.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${V[B.GTLT]}\\s*(${V[B.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${V[B.GTLT]}\\s*(${V[B.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${V[B.GTLT]}\\s*(${V[B.LOOSEPLAIN]}|${V[B.XRANGEPLAIN]})`,!0);ir.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${V[B.XRANGEPLAIN]})\\s+-\\s+(${V[B.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${V[B.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[B.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ya=q((oq,Ey)=>{var kS=Object.freeze({loose:!0}),xS=Object.freeze({}),IS=n=>n?typeof n!="object"?kS:n:xS;Ey.exports=IS});var Oy=q((aq,Iy)=>{var ky=/^[0-9]+$/,xy=(n,e)=>{let t=ky.test(n),r=ky.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:n<e?-1:1},OS=(n,e)=>xy(e,n);Iy.exports={compareIdentifiers:xy,rcompareIdentifiers:OS}});var Ss=q((cq,Ly)=>{var Ca=Ds(),{MAX_LENGTH:Fy,MAX_SAFE_INTEGER:ba}=ma(),{safeRe:Ny,t:My}=va(),FS=ya(),{compareIdentifiers:Mi}=Oy(),nn=class{constructor(e,t){if(t=FS(t),e instanceof nn){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Fy)throw new TypeError(`version is longer than ${Fy} characters`);Ca("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?Ny[My.LOOSE]:Ny[My.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>ba||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ba||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ba||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<ba)return s}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ca("SemVer.compare",this.version,this.options,e),!(e instanceof nn)){if(typeof e=="string"&&e===this.version)return 0;e=new nn(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof nn||(e=new nn(e,this.options)),Mi(this.major,e.major)||Mi(this.minor,e.minor)||Mi(this.patch,e.patch)}comparePre(e){if(e instanceof nn||(e=new nn(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(Ca("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return Mi(r,i)}while(++t)}compareBuild(e){e instanceof nn||(e=new nn(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(Ca("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return Mi(r,i)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(r)?1:0;if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){let s=[t,i];r===!1&&(s=[t]),Mi(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ly.exports=nn});var $y=q((uq,jy)=>{var Ay=Ss(),NS=(n,e,t=!1)=>{if(n instanceof Ay)return n;try{return new Ay(n,e)}catch(r){if(!t)return null;throw r}};jy.exports=NS});var Wy=q((lq,Hy)=>{"use strict";Hy.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ky=q((dq,Uy)=>{"use strict";Uy.exports=we;we.Node=Qr;we.create=we;function we(n){var e=this;if(e instanceof we||(e=new we),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}we.prototype.removeNode=function(n){if(n.list!==this)throw new Error("removing node which does not belong to this list");var e=n.next,t=n.prev;return e&&(e.prev=t),t&&(t.next=e),n===this.head&&(this.head=e),n===this.tail&&(this.tail=t),n.list.length--,n.next=null,n.prev=null,n.list=null,e};we.prototype.unshiftNode=function(n){if(n!==this.head){n.list&&n.list.removeNode(n);var e=this.head;n.list=this,n.next=e,e&&(e.prev=n),this.head=n,this.tail||(this.tail=n),this.length++}};we.prototype.pushNode=function(n){if(n!==this.tail){n.list&&n.list.removeNode(n);var e=this.tail;n.list=this,n.prev=e,e&&(e.next=n),this.tail=n,this.head||(this.head=n),this.length++}};we.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)LS(this,arguments[n]);return this.length};we.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)AS(this,arguments[n]);return this.length};we.prototype.pop=function(){if(this.tail){var n=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,n}};we.prototype.shift=function(){if(this.head){var n=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,n}};we.prototype.forEach=function(n,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)n.call(e,t.value,r,this),t=t.next};we.prototype.forEachReverse=function(n,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)n.call(e,t.value,r,this),t=t.prev};we.prototype.get=function(n){for(var e=0,t=this.head;t!==null&&e<n;e++)t=t.next;if(e===n&&t!==null)return t.value};we.prototype.getReverse=function(n){for(var e=0,t=this.tail;t!==null&&e<n;e++)t=t.prev;if(e===n&&t!==null)return t.value};we.prototype.map=function(n,e){e=e||this;for(var t=new we,r=this.head;r!==null;)t.push(n.call(e,r.value,this)),r=r.next;return t};we.prototype.mapReverse=function(n,e){e=e||this;for(var t=new we,r=this.tail;r!==null;)t.push(n.call(e,r.value,this)),r=r.prev;return t};we.prototype.reduce=function(n,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)t=n(t,r.value,i),r=r.next;return t};we.prototype.reduceReverse=function(n,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)t=n(t,r.value,i),r=r.prev;return t};we.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n};we.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n};we.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new we;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=0,i=this.head;i!==null&&r<n;r++)i=i.next;for(;i!==null&&r<e;r++,i=i.next)t.push(i.value);return t};we.prototype.sliceReverse=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new we;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=this.length,i=this.tail;i!==null&&r>e;r--)i=i.prev;for(;i!==null&&r>n;r--,i=i.prev)t.push(i.value);return t};we.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var r=0,i=this.head;i!==null&&r<n;r++)i=i.next;for(var s=[],r=0;i&&r<e;r++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<t.length;r++)i=MS(this,i,t[r]);return s};we.prototype.reverse=function(){for(var n=this.head,e=this.tail,t=n;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=n,this};function MS(n,e,t){var r=e===n.head?new Qr(t,null,e,n):new Qr(t,e,e.next,n);return r.next===null&&(n.tail=r),r.prev===null&&(n.head=r),n.length++,r}function LS(n,e){n.tail=new Qr(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function AS(n,e){n.head=new Qr(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function Qr(n,e,t,r){if(!(this instanceof Qr))return new Qr(n,e,t,r);this.list=r,this.value=n,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Wy()(we)}catch{}});var Xy=q((fq,Gy)=>{"use strict";var jS=Ky(),Yr=Symbol("max"),or=Symbol("length"),Li=Symbol("lengthCalculator"),Ts=Symbol("allowStale"),Zr=Symbol("maxAge"),sr=Symbol("dispose"),zy=Symbol("noDisposeOnSet"),ht=Symbol("lruList"),qn=Symbol("cache"),By=Symbol("updateAgeOnGet"),rf=()=>1,of=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Yr]=e.max||1/0,r=e.length||rf;if(this[Li]=typeof r!="function"?rf:r,this[Ts]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Zr]=e.maxAge||0,this[sr]=e.dispose,this[zy]=e.noDisposeOnSet||!1,this[By]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Yr]=e||1/0,Rs(this)}get max(){return this[Yr]}set allowStale(e){this[Ts]=!!e}get allowStale(){return this[Ts]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Zr]=e,Rs(this)}get maxAge(){return this[Zr]}set lengthCalculator(e){typeof e!="function"&&(e=rf),e!==this[Li]&&(this[Li]=e,this[or]=0,this[ht].forEach(t=>{t.length=this[Li](t.value,t.key),this[or]+=t.length})),Rs(this)}get lengthCalculator(){return this[Li]}get length(){return this[or]}get itemCount(){return this[ht].length}rforEach(e,t){t=t||this;for(let r=this[ht].tail;r!==null;){let i=r.prev;Vy(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[ht].head;r!==null;){let i=r.next;Vy(this,e,r,t),r=i}}keys(){return this[ht].toArray().map(e=>e.key)}values(){return this[ht].toArray().map(e=>e.value)}reset(){this[sr]&&this[ht]&&this[ht].length&&this[ht].forEach(e=>this[sr](e.key,e.value)),this[qn]=new Map,this[ht]=new jS,this[or]=0}dump(){return this[ht].map(e=>_a(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ht]}set(e,t,r){if(r=r||this[Zr],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let i=r?Date.now():0,s=this[Li](t,e);if(this[qn].has(e)){if(s>this[Yr])return Ai(this,this[qn].get(e)),!1;let u=this[qn].get(e).value;return this[sr]&&(this[zy]||this[sr](e,u.value)),u.now=i,u.maxAge=r,u.value=t,this[or]+=s-u.length,u.length=s,this.get(e),Rs(this),!0}let o=new af(e,t,s,i,r);return o.length>this[Yr]?(this[sr]&&this[sr](e,t),!1):(this[or]+=o.length,this[ht].unshift(o),this[qn].set(e,this[ht].head),Rs(this),!0)}has(e){if(!this[qn].has(e))return!1;let t=this[qn].get(e).value;return!_a(this,t)}get(e){return sf(this,e,!0)}peek(e){return sf(this,e,!1)}pop(){let e=this[ht].tail;return e?(Ai(this,e),e.value):null}del(e){Ai(this,this[qn].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let o=s-t;o>0&&this.set(i.k,i.v,o)}}}prune(){this[qn].forEach((e,t)=>sf(this,t,!1))}},sf=(n,e,t)=>{let r=n[qn].get(e);if(r){let i=r.value;if(_a(n,i)){if(Ai(n,r),!n[Ts])return}else t&&(n[By]&&(r.value.now=Date.now()),n[ht].unshiftNode(r));return i.value}},_a=(n,e)=>{if(!e||!e.maxAge&&!n[Zr])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[Zr]&&t>n[Zr]},Rs=n=>{if(n[or]>n[Yr])for(let e=n[ht].tail;n[or]>n[Yr]&&e!==null;){let t=e.prev;Ai(n,e),e=t}},Ai=(n,e)=>{if(e){let t=e.value;n[sr]&&n[sr](t.key,t.value),n[or]-=t.length,n[qn].delete(t.key),n[ht].removeNode(e)}},af=class{constructor(e,t,r,i,s){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=s||0}},Vy=(n,e,t,r)=>{let i=t.value;_a(n,i)&&(Ai(n,t),n[Ts]||(i=void 0)),i&&e.call(r,i.value,i.key,n)};Gy.exports=of});var ei=q((hq,Qy)=>{var Jy=Ss(),$S=(n,e,t)=>new Jy(n,t).compare(new Jy(e,t));Qy.exports=$S});var Zy=q((pq,Yy)=>{var HS=ei(),WS=(n,e,t)=>HS(n,e,t)===0;Yy.exports=WS});var tC=q((gq,eC)=>{var US=ei(),KS=(n,e,t)=>US(n,e,t)!==0;eC.exports=KS});var rC=q((mq,nC)=>{var zS=ei(),VS=(n,e,t)=>zS(n,e,t)>0;nC.exports=VS});var sC=q((vq,iC)=>{var BS=ei(),GS=(n,e,t)=>BS(n,e,t)>=0;iC.exports=GS});var aC=q((yq,oC)=>{var XS=ei(),JS=(n,e,t)=>XS(n,e,t)<0;oC.exports=JS});var uC=q((Cq,cC)=>{var QS=ei(),YS=(n,e,t)=>QS(n,e,t)<=0;cC.exports=YS});var dC=q((bq,lC)=>{var ZS=Zy(),eR=tC(),tR=rC(),nR=sC(),rR=aC(),iR=uC(),sR=(n,e,t,r)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return ZS(n,t,r);case"!=":return eR(n,t,r);case">":return tR(n,t,r);case">=":return nR(n,t,r);case"<":return rR(n,t,r);case"<=":return iR(n,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}};lC.exports=sR});var yC=q((_q,vC)=>{var Ps=Symbol("SemVer ANY"),ji=class{static get ANY(){return Ps}constructor(e,t){if(t=fC(t),e instanceof ji){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),uf("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ps?this.value="":this.value=this.operator+this.semver.version,uf("comp",this)}parse(e){let t=this.options.loose?hC[pC.COMPARATORLOOSE]:hC[pC.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new gC(r[2],this.options.loose):this.semver=Ps}toString(){return this.value}test(e){if(uf("Comparator.test",e,this.options.loose),this.semver===Ps||e===Ps)return!0;if(typeof e=="string")try{e=new gC(e,this.options)}catch{return!1}return cf(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof ji))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new mC(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new mC(this.value,t).test(e.semver):(t=fC(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||cf(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||cf(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};vC.exports=ji;var fC=ya(),{safeRe:hC,t:pC}=va(),cf=dC(),uf=Ds(),gC=Ss(),mC=lf()});var lf=q((wq,wC)=>{var ti=class{constructor(e,t){if(t=aR(t),e instanceof ti)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ti(e.raw,t);if(e instanceof df)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!bC(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&pR(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&fR)|(this.options.loose&&hR))+":"+e,i=CC.get(r);if(i)return i;let s=this.options.loose,o=s?Ut[kt.HYPHENRANGELOOSE]:Ut[kt.HYPHENRANGE];e=e.replace(o,SR(this.options.includePrerelease)),Ae("hyphen replace",e),e=e.replace(Ut[kt.COMPARATORTRIM],uR),Ae("comparator trim",e),e=e.replace(Ut[kt.TILDETRIM],lR),Ae("tilde trim",e),e=e.replace(Ut[kt.CARETTRIM],dR),Ae("caret trim",e);let a=e.split(" ").map(m=>gR(m,this.options)).join(" ").split(/\s+/).map(m=>DR(m,this.options));s&&(a=a.filter(m=>(Ae("loose invalid filter",m,this.options),!!m.match(Ut[kt.COMPARATORLOOSE])))),Ae("range list",a);let u=new Map,l=a.map(m=>new df(m,this.options));for(let m of l){if(bC(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let p=[...u.values()];return CC.set(r,p),p}intersects(e,t){if(!(e instanceof ti))throw new TypeError("a Range is required");return this.set.some(r=>_C(r,t)&&e.set.some(i=>_C(i,t)&&r.every(s=>i.every(o=>s.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new cR(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(RR(this.set[t],e,this.options))return!0;return!1}};wC.exports=ti;var oR=Xy(),CC=new oR({max:1e3}),aR=ya(),df=yC(),Ae=Ds(),cR=Ss(),{safeRe:Ut,t:kt,comparatorTrimReplace:uR,tildeTrimReplace:lR,caretTrimReplace:dR}=va(),{FLAG_INCLUDE_PRERELEASE:fR,FLAG_LOOSE:hR}=ma(),bC=n=>n.value==="<0.0.0-0",pR=n=>n.value==="",_C=(n,e)=>{let t=!0,r=n.slice(),i=r.pop();for(;t&&r.length;)t=r.every(s=>i.intersects(s,e)),i=r.pop();return t},gR=(n,e)=>(Ae("comp",n,e),n=yR(n,e),Ae("caret",n),n=mR(n,e),Ae("tildes",n),n=bR(n,e),Ae("xrange",n),n=wR(n,e),Ae("stars",n),n),xt=n=>!n||n.toLowerCase()==="x"||n==="*",mR=(n,e)=>n.trim().split(/\s+/).map(t=>vR(t,e)).join(" "),vR=(n,e)=>{let t=e.loose?Ut[kt.TILDELOOSE]:Ut[kt.TILDE];return n.replace(t,(r,i,s,o,a)=>{Ae("tilde",n,r,i,s,o,a);let u;return xt(i)?u="":xt(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:xt(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Ae("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Ae("tilde return",u),u})},yR=(n,e)=>n.trim().split(/\s+/).map(t=>CR(t,e)).join(" "),CR=(n,e)=>{Ae("caret",n,e);let t=e.loose?Ut[kt.CARETLOOSE]:Ut[kt.CARET],r=e.includePrerelease?"-0":"";return n.replace(t,(i,s,o,a,u)=>{Ae("caret",n,i,s,o,a,u);let l;return xt(s)?l="":xt(o)?l=`>=${s}.0.0${r} <${+s+1}.0.0-0`:xt(a)?s==="0"?l=`>=${s}.${o}.0${r} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${r} <${+s+1}.0.0-0`:u?(Ae("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(Ae("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${a}${r} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}${r} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Ae("caret return",l),l})},bR=(n,e)=>(Ae("replaceXRanges",n,e),n.split(/\s+/).map(t=>_R(t,e)).join(" ")),_R=(n,e)=>{n=n.trim();let t=e.loose?Ut[kt.XRANGELOOSE]:Ut[kt.XRANGE];return n.replace(t,(r,i,s,o,a,u)=>{Ae("xRange",n,r,i,s,o,a,u);let l=xt(s),p=l||xt(o),m=p||xt(a),g=m;return i==="="&&g&&(i=""),u=e.includePrerelease?"-0":"",l?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&g?(p&&(o=0),a=0,i===">"?(i=">=",p?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",p?s=+s+1:o=+o+1),i==="<"&&(u="-0"),r=`${i+s}.${o}.${a}${u}`):p?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:m&&(r=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),Ae("xRange return",r),r})},wR=(n,e)=>(Ae("replaceStars",n,e),n.trim().replace(Ut[kt.STAR],"")),DR=(n,e)=>(Ae("replaceGTE0",n,e),n.trim().replace(Ut[e.includePrerelease?kt.GTE0PRE:kt.GTE0],"")),SR=n=>(e,t,r,i,s,o,a,u,l,p,m,g,D)=>(xt(r)?t="":xt(i)?t=`>=${r}.0.0${n?"-0":""}`:xt(s)?t=`>=${r}.${i}.0${n?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${n?"-0":""}`,xt(l)?u="":xt(p)?u=`<${+l+1}.0.0-0`:xt(m)?u=`<${l}.${+p+1}.0-0`:g?u=`<=${l}.${p}.${m}-${g}`:n?u=`<${l}.${p}.${+m+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),RR=(n,e,t)=>{for(let r=0;r<n.length;r++)if(!n[r].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let r=0;r<n.length;r++)if(Ae(n[r].semver),n[r].semver!==df.ANY&&n[r].semver.prerelease.length>0){let i=n[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var SC=q((Dq,DC)=>{var TR=lf(),PR=(n,e,t)=>{try{e=new TR(e,t)}catch{return!1}return e.test(n)};DC.exports=PR});var TC=q(rn=>{"use strict";var qR=rn&&rn.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),ff=rn&&rn.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&qR(e,n,t)};Object.defineProperty(rn,"__esModule",{value:!0});rn.DiagnosticPullMode=rn.vsdiag=void 0;ff(Y(),rn);ff(ve(),rn);var RC=yl();Object.defineProperty(rn,"vsdiag",{enumerable:!0,get:function(){return RC.vsdiag}});Object.defineProperty(rn,"DiagnosticPullMode",{enumerable:!0,get:function(){return RC.DiagnosticPullMode}});ff(Zd(),rn)});var _f=q(Kt=>{"use strict";var ER=Kt&&Kt.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),EC=Kt&&Kt.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ER(e,n,t)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.SettingMonitor=Kt.LanguageClient=Kt.TransportKind=void 0;var ar=require("child_process"),hf=require("fs"),pf=require("path"),Or=require("vscode"),Ue=ln(),PC=Zd(),kR=Sy(),Ve=ef(),xR=$y(),IR=SC();EC(ef(),Kt);EC(TC(),Kt);var qC="^1.82.0",Be;(function(n){n[n.stdio=0]="stdio",n[n.ipc=1]="ipc",n[n.pipe=2]="pipe",n[n.socket=3]="socket"})(Be||(Kt.TransportKind=Be={}));var Ir;(function(n){function e(t){let r=t;return r&&r.kind===Be.socket&&Ue.number(r.port)}n.isSocket=e})(Ir||(Ir={}));var gf;(function(n){function e(t){return Ue.string(t.command)}n.is=e})(gf||(gf={}));var mf;(function(n){function e(t){return Ue.string(t.module)}n.is=e})(mf||(mf={}));var vf;(function(n){function e(t){let r=t;return r&&r.writer!==void 0&&r.reader!==void 0}n.is=e})(vf||(vf={}));var yf;(function(n){function e(t){let r=t;return r&&r.process!==void 0&&typeof r.detached=="boolean"}n.is=e})(yf||(yf={}));var Cf=class extends PC.BaseLanguageClient{constructor(e,t,r,i,s){let o,a,u,l,p;Ue.string(t)?(o=e,a=t,u=r,l=i,p=!!s):(o=e.toLowerCase(),a=e,u=t,l=r,p=i),p===void 0&&(p=!1),super(o,a,l),this._serverOptions=u,this._forceDebug=p,this._isInDebugMode=p;try{this.checkVersion()}catch(m){throw Ue.string(m.message)&&this.outputChannel.appendLine(m.message),m}}checkVersion(){let e=xR(Or.version);if(!e)throw new Error(`No valid VS Code version detected. Version string is: ${Or.version}`);if(e.prerelease&&e.prerelease.length>0&&(e.prerelease=[]),!IR(e,qC))throw new Error(`The language client requires VS Code version ${qC} but received version ${Or.version}`)}get isInDebugMode(){return this._isInDebugMode}async restart(){await this.stop(),this.isInDebugMode?(await new Promise(e=>setTimeout(e,1e3)),await this.start()):await this.start()}stop(e=2e3){return super.stop(e).finally(()=>{if(this._serverProcess){let t=this._serverProcess;this._serverProcess=void 0,(this._isDetached===void 0||!this._isDetached)&&this.checkProcessDied(t),this._isDetached=void 0}})}checkProcessDied(e){!e||e.pid===void 0||setTimeout(()=>{try{e.pid!==void 0&&(process.kill(e.pid,0),(0,kR.terminate)(e))}catch{}},2e3)}handleConnectionClosed(){return this._serverProcess=void 0,super.handleConnectionClosed()}fillInitializeParams(e){super.fillInitializeParams(e),e.processId===null&&(e.processId=process.pid)}createMessageTransports(e){function t(p,m){if(!p&&!m)return;let g=Object.create(null);return Object.keys(process.env).forEach(D=>g[D]=process.env[D]),m&&(g.ELECTRON_RUN_AS_NODE="1",g.ELECTRON_NO_ASAR="1"),p&&Object.keys(p).forEach(D=>g[D]=p[D]),g}let r=["--debug=","--debug-brk=","--inspect=","--inspect-brk="],i=["--debug","--debug-brk","--inspect","--inspect-brk"];function s(){let p=process.execArgv;return p?p.some(m=>r.some(g=>m.startsWith(g))||i.some(g=>m===g)):!1}function o(p){if(p.stdin===null||p.stdout===null||p.stderr===null)throw new Error("Process created without stdio streams")}let a=this._serverOptions;if(Ue.func(a))return a().then(p=>{if(PC.MessageTransports.is(p))return this._isDetached=!!p.detached,p;if(vf.is(p))return this._isDetached=!!p.detached,{reader:new Ve.StreamMessageReader(p.reader),writer:new Ve.StreamMessageWriter(p.writer)};{let m;return yf.is(p)?(m=p.process,this._isDetached=p.detached):(m=p,this._isDetached=!1),m.stderr.on("data",g=>this.outputChannel.append(Ue.string(g)?g:g.toString(e))),{reader:new Ve.StreamMessageReader(m.stdout),writer:new Ve.StreamMessageWriter(m.stdin)}}});let u,l=a;return l.run||l.debug?this._forceDebug||s()?(u=l.debug,this._isInDebugMode=!0):(u=l.run,this._isInDebugMode=!1):u=a,this._getServerWorkingDir(u.options).then(p=>{if(mf.is(u)&&u.module){let m=u,g=m.transport||Be.stdio;if(m.runtime){let D=[],y=m.options??Object.create(null);y.execArgv&&y.execArgv.forEach(L=>D.push(L)),D.push(m.module),m.args&&m.args.forEach(L=>D.push(L));let P=Object.create(null);P.cwd=p,P.env=t(y.env,!1);let E=this._getRuntimePath(m.runtime,p),O;if(g===Be.ipc?(P.stdio=[null,null,null,"ipc"],D.push("--node-ipc")):g===Be.stdio?D.push("--stdio"):g===Be.pipe?(O=(0,Ve.generateRandomPipeName)(),D.push(`--pipe=${O}`)):Ir.isSocket(g)&&D.push(`--socket=${g.port}`),D.push(`--clientProcessId=${process.pid.toString()}`),g===Be.ipc||g===Be.stdio){let L=ar.spawn(E,D,P);return!L||!L.pid?$i(L,`Launching server using runtime ${E} failed.`):(this._serverProcess=L,L.stderr.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),g===Be.ipc?(L.stdout.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),Promise.resolve({reader:new Ve.IPCMessageReader(L),writer:new Ve.IPCMessageWriter(L)})):Promise.resolve({reader:new Ve.StreamMessageReader(L.stdout),writer:new Ve.StreamMessageWriter(L.stdin)}))}else{if(g===Be.pipe)return(0,Ve.createClientPipeTransport)(O).then(L=>{let M=ar.spawn(E,D,P);return!M||!M.pid?$i(M,`Launching server using runtime ${E} failed.`):(this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>({reader:A[0],writer:A[1]})))});if(Ir.isSocket(g))return(0,Ve.createClientSocketTransport)(g.port).then(L=>{let M=ar.spawn(E,D,P);return!M||!M.pid?$i(M,`Launching server using runtime ${E} failed.`):(this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>({reader:A[0],writer:A[1]})))})}}else{let D;return new Promise((y,P)=>{let E=(m.args&&m.args.slice())??[];g===Be.ipc?E.push("--node-ipc"):g===Be.stdio?E.push("--stdio"):g===Be.pipe?(D=(0,Ve.generateRandomPipeName)(),E.push(`--pipe=${D}`)):Ir.isSocket(g)&&E.push(`--socket=${g.port}`),E.push(`--clientProcessId=${process.pid.toString()}`);let O=m.options??Object.create(null);if(O.env=t(O.env,!0),O.execArgv=O.execArgv||[],O.cwd=p,O.silent=!0,g===Be.ipc||g===Be.stdio){let L=ar.fork(m.module,E||[],O);o(L),this._serverProcess=L,L.stderr.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),g===Be.ipc?(L.stdout.on("data",M=>this.outputChannel.append(Ue.string(M)?M:M.toString(e))),y({reader:new Ve.IPCMessageReader(this._serverProcess),writer:new Ve.IPCMessageWriter(this._serverProcess)})):y({reader:new Ve.StreamMessageReader(L.stdout),writer:new Ve.StreamMessageWriter(L.stdin)})}else g===Be.pipe?(0,Ve.createClientPipeTransport)(D).then(L=>{let M=ar.fork(m.module,E||[],O);o(M),this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>{y({reader:A[0],writer:A[1]})},P)},P):Ir.isSocket(g)&&(0,Ve.createClientSocketTransport)(g.port).then(L=>{let M=ar.fork(m.module,E||[],O);o(M),this._serverProcess=M,M.stderr.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),M.stdout.on("data",A=>this.outputChannel.append(Ue.string(A)?A:A.toString(e))),L.onConnected().then(A=>{y({reader:A[0],writer:A[1]})},P)},P)})}}else if(gf.is(u)&&u.command){let m=u,g=u.args!==void 0?u.args.slice(0):[],D,y=u.transport;if(y===Be.stdio)g.push("--stdio");else if(y===Be.pipe)D=(0,Ve.generateRandomPipeName)(),g.push(`--pipe=${D}`);else if(Ir.isSocket(y))g.push(`--socket=${y.port}`);else if(y===Be.ipc)throw new Error("Transport kind ipc is not support for command executable");let P=Object.assign({},m.options);if(P.cwd=P.cwd||p,y===void 0||y===Be.stdio){let E=ar.spawn(m.command,g,P);return!E||!E.pid?$i(E,`Launching server using command ${m.command} failed.`):(E.stderr.on("data",O=>this.outputChannel.append(Ue.string(O)?O:O.toString(e))),this._serverProcess=E,this._isDetached=!!P.detached,Promise.resolve({reader:new Ve.StreamMessageReader(E.stdout),writer:new Ve.StreamMessageWriter(E.stdin)}))}else{if(y===Be.pipe)return(0,Ve.createClientPipeTransport)(D).then(E=>{let O=ar.spawn(m.command,g,P);return!O||!O.pid?$i(O,`Launching server using command ${m.command} failed.`):(this._serverProcess=O,this._isDetached=!!P.detached,O.stderr.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),O.stdout.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),E.onConnected().then(L=>({reader:L[0],writer:L[1]})))});if(Ir.isSocket(y))return(0,Ve.createClientSocketTransport)(y.port).then(E=>{let O=ar.spawn(m.command,g,P);return!O||!O.pid?$i(O,`Launching server using command ${m.command} failed.`):(this._serverProcess=O,this._isDetached=!!P.detached,O.stderr.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),O.stdout.on("data",L=>this.outputChannel.append(Ue.string(L)?L:L.toString(e))),E.onConnected().then(L=>({reader:L[0],writer:L[1]})))})}}return Promise.reject(new Error("Unsupported server configuration "+JSON.stringify(a,null,4)))}).finally(()=>{this._serverProcess!==void 0&&this._serverProcess.on("exit",(p,m)=>{p!==null&&this.error(`Server process exited with code ${p}.`,void 0,!1),m!==null&&this.error(`Server process exited with signal ${m}.`,void 0,!1)})})}_getRuntimePath(e,t){if(pf.isAbsolute(e))return e;let r=this._mainGetRootPath();if(r!==void 0){let i=pf.join(r,e);if(hf.existsSync(i))return i}if(t!==void 0){let i=pf.join(t,e);if(hf.existsSync(i))return i}return e}_mainGetRootPath(){let e=Or.workspace.workspaceFolders;if(!e||e.length===0)return;let t=e[0];if(t.uri.scheme==="file")return t.uri.fsPath}_getServerWorkingDir(e){let t=e&&e.cwd;return t||(t=this.clientOptions.workspaceFolder?this.clientOptions.workspaceFolder.uri.fsPath:this._mainGetRootPath()),t?new Promise(r=>{hf.lstat(t,(i,s)=>{r(!i&&s.isDirectory()?t:void 0)})}):Promise.resolve(void 0)}};Kt.LanguageClient=Cf;var bf=class{constructor(e,t){this._client=e,this._setting=t,this._listeners=[]}start(){return Or.workspace.onDidChangeConfiguration(this.onDidChangeConfiguration,this,this._listeners),this.onDidChangeConfiguration(),new Or.Disposable(()=>{this._client.needsStop()&&this._client.stop()})}onDidChangeConfiguration(){let e=this._setting.indexOf("."),t=e>=0?this._setting.substr(0,e):this._setting,r=e>=0?this._setting.substr(e+1):void 0,i=r?Or.workspace.getConfiguration(t).get(r,!1):Or.workspace.getConfiguration(t);i&&this._client.needsStart()?this._client.start().catch(s=>this._client.error("Start failed after configuration change",s,"force")):!i&&this._client.needsStop()&&this._client.stop().catch(s=>this._client.error("Stop failed after configuration change",s,"force"))}};Kt.SettingMonitor=bf;function $i(n,e){return n===null?Promise.reject(e):new Promise((t,r)=>{n.on("error",i=>{r(`${e} ${i}`)}),setImmediate(()=>r(e))})}});var xC=q(Pe=>{"use strict";var OR=Pe&&Pe.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),FR=Pe&&Pe.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&OR(e,n,t)};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.currentLabsVersion=Pe.middleware=Pe.getTsdk=Pe.activateTsVersionStatusItem=Pe.activateTsConfigStatusItem=Pe.activateReloadProjects=Pe.activateFindFileReferences=Pe.activateWriteVirtualFiles=Pe.activateDocumentDropEdit=Pe.activateAutoInsertion=void 0;Pe.parseServerCommand=Hi;Pe.createLabsInfo=HR;var cr=require("vscode"),NR=gm();Object.defineProperty(Pe,"activateAutoInsertion",{enumerable:!0,get:function(){return NR.activate}});var MR=mm();Object.defineProperty(Pe,"activateDocumentDropEdit",{enumerable:!0,get:function(){return MR.activate}});var LR=vm();Object.defineProperty(Pe,"activateWriteVirtualFiles",{enumerable:!0,get:function(){return LR.activate}});var AR=Tm();Object.defineProperty(Pe,"activateFindFileReferences",{enumerable:!0,get:function(){return AR.activate}});var jR=Pm();Object.defineProperty(Pe,"activateReloadProjects",{enumerable:!0,get:function(){return jR.activate}});var $R=km();Object.defineProperty(Pe,"activateTsConfigStatusItem",{enumerable:!0,get:function(){return $R.activate}});var kC=Lm();Object.defineProperty(Pe,"activateTsVersionStatusItem",{enumerable:!0,get:function(){return kC.activate}});Object.defineProperty(Pe,"getTsdk",{enumerable:!0,get:function(){return kC.getTsdk}});FR(_f(),Pe);Pe.middleware={async provideCodeActions(n,e,t,r,i){let s=await i(n,e,t,r);return s=s?.map(o=>o instanceof cr.CodeAction?(o.command&&(o.command=Hi(o.command)),o):Hi(o)),s},async resolveCodeAction(n,e,t){let r=await t(n,e);return r?.command&&(r.command=Hi(r.command)),r},async provideCodeLenses(n,e,t){let r=await t(n,e);return r=r?.map(i=>(i.command&&(i.command=Hi(i.command)),i)),r},async resolveCodeLens(n,e,t){let r=await t(n,e);return r?.command&&(r.command=Hi(r.command)),r}};function Hi(n){return n.command==="editor.action.rename"&&n.arguments?{...n,arguments:[[cr.Uri.parse(n.arguments[0]),new cr.Position(n.arguments[1].line,n.arguments[1].character)]]}:n.command==="editor.action.showReferences"&&n.arguments?{...n,arguments:[cr.Uri.parse(n.arguments[0]),new cr.Position(n.arguments[1].line,n.arguments[1].character),n.arguments[2].map(e=>new cr.Location(cr.Uri.parse(e.uri),new cr.Range(e.range.start.line,e.range.start.character,e.range.end.line,e.range.end.character)))]}:n}Pe.currentLabsVersion="2.3.1";function HR(n){let e=new cr.EventEmitter,t={volarLabs:{version:Pe.currentLabsVersion,languageClients:[],languageServerProtocol:n,onDidAddLanguageClient:e.event}};return{extensionExports:t,addLanguageClient(r){t.volarLabs.languageClients.push(r),e.fire(r)}}}});var OC=q((Pq,IC)=>{"use strict";IC.exports=_f()});var VR={};$C(VR,{activate:()=>UR,deactivate:()=>KR});module.exports=HC(VR);var wa=Wi(require("node:path")),WR=Wi(Tr()),zt=Wi(xC()),ur=Wi(require("vscode")),qs=Wi(OC()),Fr;async function UR(n){let e=ur.workspace.getConfiguration("astro.language-server"),{workspaceFolders:t}=ur.workspace,r=t?.[0].uri.fsPath,i=await zR(n.workspaceState);typeof i=="string"&&i.trim()!==""&&typeof r=="string"?(i=wa.isAbsolute(i)?i:wa.join(r,i),console.info(`Using language server at ${i}`)):i=void 0;let s=i?require.resolve(i):ur.Uri.joinPath(n.extensionUri,"dist/node/server.js").fsPath,o={execArgv:[]},a={execArgv:["--nolazy","--inspect=6009"]},u={run:{module:s,transport:qs.TransportKind.ipc,options:o},debug:{module:s,transport:qs.TransportKind.ipc,options:a}},l=e.get("runtime");l&&(u.run.runtime=l,u.debug.runtime=l,console.info(`Using ${l} as runtime`));let p=ur.workspace.getConfiguration("astro").get("content-intellisense"),m={typescript:{tsdk:(await(0,zt.getTsdk)(n)).tsdk},contentIntellisense:p},g={documentSelector:[{language:"astro"},...p?[{language:"markdown"},{language:"mdx"},{language:"markdoc"}]:[]],initializationOptions:m};Fr=new qs.LanguageClient("astro","Astro Language Server",u,g),await Fr.start(),(0,zt.activateAutoInsertion)("astro",Fr),(0,zt.activateFindFileReferences)("astro.findFileReferences",Fr),(0,zt.activateReloadProjects)("astro.reloadProjects",Fr),(0,zt.activateTsConfigStatusItem)("astro","astro.openTsConfig",Fr),(0,zt.activateTsVersionStatusItem)("astro","astro.selectTypescriptVersion",n,y=>y);let D=(0,zt.createLabsInfo)(WR);return D.addLanguageClient(Fr),D.extensionExports}function KR(){return Fr?.stop()}async function zR(n){let e="astro.language-server",t=ur.workspace.getConfiguration(e).inspect("ls-path"),r=t?.globalLanguageValue||t?.defaultLanguageValue||t?.globalValue||t?.defaultValue,i=t?.workspaceFolderLanguageValue||t?.workspaceLanguageValue||t?.workspaceFolderValue||t?.workspaceValue,s=`${e}.useLocalLS`,o=n.get(s);if(o===void 0&&i!==void 0){let a="This workspace contains an Astro Language Server version. Would you like to use the workplace version?",u="Allow",l="Dismiss",p="Never in This Workspace",m=await ur.window.showInformationMessage(a,u,l,p);m===u?(await n.update(s,!0),o=!0):m===p&&await n.update(s,!1)}return o===!0&&i||r}0&&(module.exports={activate,deactivate});
|
package/dist/node/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var hDe=Object.create;var U0=Object.defineProperty;var fDe=Object.getOwnPropertyDescriptor;var pDe=Object.getOwnPropertyNames;var mDe=Object.getPrototypeOf,gDe=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ul=(t,e)=>{for(var n in e)U0(t,n,{get:e[n],enumerable:!0})},r7=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pDe(e))!gDe.call(t,i)&&i!==n&&U0(t,i,{get:()=>e[i],enumerable:!(r=fDe(e,i))||r.enumerable});return t};var Pr=(t,e,n)=>(n=t!=null?hDe(mDe(t)):{},r7(e||!t||!t.__esModule?U0(n,"default",{value:t,enumerable:!0}):n,t)),ti=t=>r7(U0({},"__esModule",{value:!0}),t);var i7=M((CSt,bDe)=>{bDe.exports={name:"@astrojs/language-server",version:"2.14.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch","sync-fixture":"pnpm --dir ./test/fixture sync",test:"pnpm run sync-fixture && mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.10.3","@astrojs/yaml2ts":"^0.2.1","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~2.4.0","@volar/language-core":"~2.4.0","@volar/language-server":"~2.4.0","@volar/language-service":"~2.4.0","@volar/typescript":"~2.4.0","fast-glob":"^3.2.12","muggle-string":"^0.4.1","volar-service-css":"0.0.61","volar-service-emmet":"0.0.61","volar-service-html":"0.0.61","volar-service-prettier":"0.0.61","volar-service-typescript":"0.0.61","volar-service-typescript-twoslash-queries":"0.0.61","volar-service-yaml":"0.0.61","vscode-html-languageservice":"^5.2.0","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^5.0.3","@astrojs/vue":"^4.0.8","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^18.17.8","@volar/test-utils":"~2.4.0",astro:"^4.14.0",chai:"^4.3.7",mocha:"^10.2.0",svelte:"^4.2.10",tsx:"^3.12.7",typescript:"^5.5.4","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var H0=M(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.thenable=ni.typedArray=ni.stringArray=ni.array=ni.func=ni.error=ni.number=ni.string=ni.boolean=void 0;function vDe(t){return t===!0||t===!1}ni.boolean=vDe;function s7(t){return typeof t=="string"||t instanceof String}ni.string=s7;function yDe(t){return typeof t=="number"||t instanceof Number}ni.number=yDe;function wDe(t){return t instanceof Error}ni.error=wDe;function o7(t){return typeof t=="function"}ni.func=o7;function a7(t){return Array.isArray(t)}ni.array=a7;function _De(t){return a7(t)&&t.every(e=>s7(e))}ni.stringArray=_De;function SDe(t,e){return Array.isArray(t)&&t.every(e)}ni.typedArray=SDe;function kDe(t){return t&&o7(t.then)}ni.thenable=kDe});var tm=M(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.stringArray=Zi.array=Zi.func=Zi.error=Zi.number=Zi.string=Zi.boolean=void 0;function TDe(t){return t===!0||t===!1}Zi.boolean=TDe;function l7(t){return typeof t=="string"||t instanceof String}Zi.string=l7;function xDe(t){return typeof t=="number"||t instanceof Number}Zi.number=xDe;function CDe(t){return t instanceof Error}Zi.error=CDe;function EDe(t){return typeof t=="function"}Zi.func=EDe;function c7(t){return Array.isArray(t)}Zi.array=c7;function ADe(t){return c7(t)&&t.every(e=>l7(e))}Zi.stringArray=ADe});var dI=M(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.Message=ct.NotificationType9=ct.NotificationType8=ct.NotificationType7=ct.NotificationType6=ct.NotificationType5=ct.NotificationType4=ct.NotificationType3=ct.NotificationType2=ct.NotificationType1=ct.NotificationType0=ct.NotificationType=ct.RequestType9=ct.RequestType8=ct.RequestType7=ct.RequestType6=ct.RequestType5=ct.RequestType4=ct.RequestType3=ct.RequestType2=ct.RequestType1=ct.RequestType=ct.RequestType0=ct.AbstractMessageSignature=ct.ParameterStructures=ct.ResponseError=ct.ErrorCodes=void 0;var pf=tm(),$P;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})($P||(ct.ErrorCodes=$P={}));var Zv=class extends Error{constructor(e,n,r){super(n),this.code=pf.number(e)?e:$P.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Zv.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ct.ResponseError=Zv;var xi=class{constructor(e){this.kind=e}static is(e){return e===xi.auto||e===xi.byName||e===xi.byPosition}toString(){return this.kind}};ct.ParameterStructures=xi;xi.auto=new xi("auto");xi.byPosition=new xi("byPosition");xi.byName=new xi("byName");var or=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return xi.auto}};ct.AbstractMessageSignature=or;var UP=class extends or{constructor(e){super(e,0)}};ct.RequestType0=UP;var HP=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.RequestType=HP;var BP=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.RequestType1=BP;var VP=class extends or{constructor(e){super(e,2)}};ct.RequestType2=VP;var KP=class extends or{constructor(e){super(e,3)}};ct.RequestType3=KP;var GP=class extends or{constructor(e){super(e,4)}};ct.RequestType4=GP;var JP=class extends or{constructor(e){super(e,5)}};ct.RequestType5=JP;var YP=class extends or{constructor(e){super(e,6)}};ct.RequestType6=YP;var QP=class extends or{constructor(e){super(e,7)}};ct.RequestType7=QP;var XP=class extends or{constructor(e){super(e,8)}};ct.RequestType8=XP;var ZP=class extends or{constructor(e){super(e,9)}};ct.RequestType9=ZP;var eI=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.NotificationType=eI;var tI=class extends or{constructor(e){super(e,0)}};ct.NotificationType0=tI;var nI=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.NotificationType1=nI;var rI=class extends or{constructor(e){super(e,2)}};ct.NotificationType2=rI;var iI=class extends or{constructor(e){super(e,3)}};ct.NotificationType3=iI;var sI=class extends or{constructor(e){super(e,4)}};ct.NotificationType4=sI;var oI=class extends or{constructor(e){super(e,5)}};ct.NotificationType5=oI;var aI=class extends or{constructor(e){super(e,6)}};ct.NotificationType6=aI;var lI=class extends or{constructor(e){super(e,7)}};ct.NotificationType7=lI;var cI=class extends or{constructor(e){super(e,8)}};ct.NotificationType8=cI;var uI=class extends or{constructor(e){super(e,9)}};ct.NotificationType9=uI;var u7;(function(t){function e(i){let s=i;return s&&pf.string(s.method)&&(pf.string(s.id)||pf.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&pf.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(pf.string(s.id)||pf.number(s.id)||s.id===null)}t.isResponse=r})(u7||(ct.Message=u7={}))});var fI=M(Ed=>{"use strict";var d7;Object.defineProperty(Ed,"__esModule",{value:!0});Ed.LRUCache=Ed.LinkedMap=Ed.Touch=void 0;var es;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(es||(Ed.Touch=es={}));var B0=class{constructor(){this[d7]="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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=es.None){let r=this._map.get(e);if(r)return n!==es.None&&this.touch(r,n),r.value}set(e,n,r=es.None){let i=this._map.get(e);if(i)i.value=n,r!==es.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case es.None:this.addItemLast(i);break;case es.First:this.addItemFirst(i);break;case es.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._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(d7=Symbol.toStringTag,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!==es.First&&n!==es.Last)){if(n===es.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===es.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)}};Ed.LinkedMap=B0;var hI=class extends B0{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=es.AsNew){return super.get(e,n)}peek(e){return super.get(e,es.None)}set(e,n){return super.set(e,n,es.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Ed.LRUCache=hI});var f7=M(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.Disposable=void 0;var h7;(function(t){function e(n){return{dispose:n}}t.create=e})(h7||(V0.Disposable=h7={}))});var Ad=M(gI=>{"use strict";Object.defineProperty(gI,"__esModule",{value:!0});var pI;function mI(){if(pI===void 0)throw new Error("No runtime abstraction layer installed");return pI}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");pI=n}t.install=e})(mI||(mI={}));gI.default=mI});var im=M(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.Emitter=rm.Event=void 0;var DDe=Ad(),p7;(function(t){let e={dispose(){}};t.None=function(){return e}})(p7||(rm.Event=p7={}));var bI=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,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(l){(0,DDe.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},nm=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new bI),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=nm._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)}};rm.Emitter=nm;nm._noop=function(){}});var J0=M(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.CancellationTokenSource=sm.CancellationToken=void 0;var RDe=Ad(),PDe=tm(),vI=im(),K0;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:vI.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:vI.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||PDe.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(K0||(sm.CancellationToken=K0={}));var IDe=Object.freeze(function(t,e){let n=(0,RDe.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),G0=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?IDe:(this._emitter||(this._emitter=new vI.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},yI=class{get token(){return this._token||(this._token=new G0),this._token}cancel(){this._token?this._token.cancel():this._token=K0.Cancelled}dispose(){this._token?this._token instanceof G0&&this._token.dispose():this._token=K0.None}};sm.CancellationTokenSource=yI});var m7=M(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.SharedArrayReceiverStrategy=om.SharedArraySenderStrategy=void 0;var ODe=J0(),ey;(function(t){t.Continue=0,t.Cancelled=1})(ey||(ey={}));var wI=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=ey.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,ey.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};om.SharedArraySenderStrategy=wI;var _I=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ey.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},SI=class{constructor(e){this.token=new _I(e)}cancel(){}dispose(){}},kI=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new ODe.CancellationTokenSource:new SI(n)}};om.SharedArrayReceiverStrategy=kI});var xI=M(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.Semaphore=void 0;var MDe=Ad(),TI=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||(0,MDe.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()}}};Y0.Semaphore=TI});var b7=M(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.ReadableStreamMessageReader=Dd.AbstractMessageReader=Dd.MessageReader=void 0;var EI=Ad(),am=tm(),CI=im(),FDe=xI(),g7;(function(t){function e(n){let r=n;return r&&am.func(r.listen)&&am.func(r.dispose)&&am.func(r.onError)&&am.func(r.onClose)&&am.func(r.onPartialMessage)}t.is=e})(g7||(Dd.MessageReader=g7={}));var Q0=class{constructor(){this.errorEmitter=new CI.Emitter,this.closeEmitter=new CI.Emitter,this.partialMessageEmitter=new CI.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: ${am.string(e.message)?e.message:"unknown"}`)}};Dd.AbstractMessageReader=Q0;var AI;(function(t){function e(n){let r,i,s,o=new Map,l,a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,a.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)a.set(c.name,c)}return l===void 0&&(l=(0,EI.default)().applicationJson.decoder,a.set(l.name,l)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:l,contentTypeDecoders:a}}t.fromOptions=e})(AI||(AI={}));var DI=class extends Q0{constructor(e,n){super(),this.readable=e,this.options=AI.fromOptions(n),this.buffer=(0,EI.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new FDe.Semaphore(1)}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){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
2
|
+
var hDe=Object.create;var U0=Object.defineProperty;var fDe=Object.getOwnPropertyDescriptor;var pDe=Object.getOwnPropertyNames;var mDe=Object.getPrototypeOf,gDe=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ul=(t,e)=>{for(var n in e)U0(t,n,{get:e[n],enumerable:!0})},r7=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pDe(e))!gDe.call(t,i)&&i!==n&&U0(t,i,{get:()=>e[i],enumerable:!(r=fDe(e,i))||r.enumerable});return t};var Pr=(t,e,n)=>(n=t!=null?hDe(mDe(t)):{},r7(e||!t||!t.__esModule?U0(n,"default",{value:t,enumerable:!0}):n,t)),ti=t=>r7(U0({},"__esModule",{value:!0}),t);var i7=M((CSt,bDe)=>{bDe.exports={name:"@astrojs/language-server",version:"2.14.2",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch","sync-fixture":"pnpm --dir ./test/fixture sync",test:"pnpm run sync-fixture && mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.10.3","@astrojs/yaml2ts":"^0.2.1","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~2.4.0","@volar/language-core":"~2.4.0","@volar/language-server":"~2.4.0","@volar/language-service":"~2.4.0","@volar/typescript":"~2.4.0","fast-glob":"^3.2.12","muggle-string":"^0.4.1","volar-service-css":"0.0.61","volar-service-emmet":"0.0.61","volar-service-html":"0.0.61","volar-service-prettier":"0.0.61","volar-service-typescript":"0.0.61","volar-service-typescript-twoslash-queries":"0.0.61","volar-service-yaml":"0.0.61","vscode-html-languageservice":"^5.2.0","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^5.0.3","@astrojs/vue":"^4.0.8","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^18.17.8","@volar/test-utils":"~2.4.0",astro:"^4.14.0",chai:"^4.3.7",mocha:"^10.2.0",svelte:"^4.2.10",tsx:"^3.12.7",typescript:"^5.5.4","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var H0=M(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.thenable=ni.typedArray=ni.stringArray=ni.array=ni.func=ni.error=ni.number=ni.string=ni.boolean=void 0;function vDe(t){return t===!0||t===!1}ni.boolean=vDe;function s7(t){return typeof t=="string"||t instanceof String}ni.string=s7;function yDe(t){return typeof t=="number"||t instanceof Number}ni.number=yDe;function wDe(t){return t instanceof Error}ni.error=wDe;function o7(t){return typeof t=="function"}ni.func=o7;function a7(t){return Array.isArray(t)}ni.array=a7;function _De(t){return a7(t)&&t.every(e=>s7(e))}ni.stringArray=_De;function SDe(t,e){return Array.isArray(t)&&t.every(e)}ni.typedArray=SDe;function kDe(t){return t&&o7(t.then)}ni.thenable=kDe});var tm=M(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.stringArray=Zi.array=Zi.func=Zi.error=Zi.number=Zi.string=Zi.boolean=void 0;function TDe(t){return t===!0||t===!1}Zi.boolean=TDe;function l7(t){return typeof t=="string"||t instanceof String}Zi.string=l7;function xDe(t){return typeof t=="number"||t instanceof Number}Zi.number=xDe;function CDe(t){return t instanceof Error}Zi.error=CDe;function EDe(t){return typeof t=="function"}Zi.func=EDe;function c7(t){return Array.isArray(t)}Zi.array=c7;function ADe(t){return c7(t)&&t.every(e=>l7(e))}Zi.stringArray=ADe});var dI=M(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.Message=ct.NotificationType9=ct.NotificationType8=ct.NotificationType7=ct.NotificationType6=ct.NotificationType5=ct.NotificationType4=ct.NotificationType3=ct.NotificationType2=ct.NotificationType1=ct.NotificationType0=ct.NotificationType=ct.RequestType9=ct.RequestType8=ct.RequestType7=ct.RequestType6=ct.RequestType5=ct.RequestType4=ct.RequestType3=ct.RequestType2=ct.RequestType1=ct.RequestType=ct.RequestType0=ct.AbstractMessageSignature=ct.ParameterStructures=ct.ResponseError=ct.ErrorCodes=void 0;var pf=tm(),$P;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})($P||(ct.ErrorCodes=$P={}));var Zv=class extends Error{constructor(e,n,r){super(n),this.code=pf.number(e)?e:$P.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,Zv.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ct.ResponseError=Zv;var xi=class{constructor(e){this.kind=e}static is(e){return e===xi.auto||e===xi.byName||e===xi.byPosition}toString(){return this.kind}};ct.ParameterStructures=xi;xi.auto=new xi("auto");xi.byPosition=new xi("byPosition");xi.byName=new xi("byName");var or=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return xi.auto}};ct.AbstractMessageSignature=or;var UP=class extends or{constructor(e){super(e,0)}};ct.RequestType0=UP;var HP=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.RequestType=HP;var BP=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.RequestType1=BP;var VP=class extends or{constructor(e){super(e,2)}};ct.RequestType2=VP;var KP=class extends or{constructor(e){super(e,3)}};ct.RequestType3=KP;var GP=class extends or{constructor(e){super(e,4)}};ct.RequestType4=GP;var JP=class extends or{constructor(e){super(e,5)}};ct.RequestType5=JP;var YP=class extends or{constructor(e){super(e,6)}};ct.RequestType6=YP;var QP=class extends or{constructor(e){super(e,7)}};ct.RequestType7=QP;var XP=class extends or{constructor(e){super(e,8)}};ct.RequestType8=XP;var ZP=class extends or{constructor(e){super(e,9)}};ct.RequestType9=ZP;var eI=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.NotificationType=eI;var tI=class extends or{constructor(e){super(e,0)}};ct.NotificationType0=tI;var nI=class extends or{constructor(e,n=xi.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ct.NotificationType1=nI;var rI=class extends or{constructor(e){super(e,2)}};ct.NotificationType2=rI;var iI=class extends or{constructor(e){super(e,3)}};ct.NotificationType3=iI;var sI=class extends or{constructor(e){super(e,4)}};ct.NotificationType4=sI;var oI=class extends or{constructor(e){super(e,5)}};ct.NotificationType5=oI;var aI=class extends or{constructor(e){super(e,6)}};ct.NotificationType6=aI;var lI=class extends or{constructor(e){super(e,7)}};ct.NotificationType7=lI;var cI=class extends or{constructor(e){super(e,8)}};ct.NotificationType8=cI;var uI=class extends or{constructor(e){super(e,9)}};ct.NotificationType9=uI;var u7;(function(t){function e(i){let s=i;return s&&pf.string(s.method)&&(pf.string(s.id)||pf.number(s.id))}t.isRequest=e;function n(i){let s=i;return s&&pf.string(s.method)&&i.id===void 0}t.isNotification=n;function r(i){let s=i;return s&&(s.result!==void 0||!!s.error)&&(pf.string(s.id)||pf.number(s.id)||s.id===null)}t.isResponse=r})(u7||(ct.Message=u7={}))});var fI=M(Ed=>{"use strict";var d7;Object.defineProperty(Ed,"__esModule",{value:!0});Ed.LRUCache=Ed.LinkedMap=Ed.Touch=void 0;var es;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(es||(Ed.Touch=es={}));var B0=class{constructor(){this[d7]="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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=es.None){let r=this._map.get(e);if(r)return n!==es.None&&this.touch(r,n),r.value}set(e,n,r=es.None){let i=this._map.get(e);if(i)i.value=n,r!==es.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case es.None:this.addItemLast(i);break;case es.First:this.addItemFirst(i);break;case es.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._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(d7=Symbol.toStringTag,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!==es.First&&n!==es.Last)){if(n===es.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===es.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)}};Ed.LinkedMap=B0;var hI=class extends B0{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=es.AsNew){return super.get(e,n)}peek(e){return super.get(e,es.None)}set(e,n){return super.set(e,n,es.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Ed.LRUCache=hI});var f7=M(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.Disposable=void 0;var h7;(function(t){function e(n){return{dispose:n}}t.create=e})(h7||(V0.Disposable=h7={}))});var Ad=M(gI=>{"use strict";Object.defineProperty(gI,"__esModule",{value:!0});var pI;function mI(){if(pI===void 0)throw new Error("No runtime abstraction layer installed");return pI}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");pI=n}t.install=e})(mI||(mI={}));gI.default=mI});var im=M(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.Emitter=rm.Event=void 0;var DDe=Ad(),p7;(function(t){let e={dispose(){}};t.None=function(){return e}})(p7||(rm.Event=p7={}));var bI=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,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=r.length;s<o;s++)try{n.push(r[s].apply(i[s],e))}catch(l){(0,DDe.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},nm=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new bI),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=nm._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)}};rm.Emitter=nm;nm._noop=function(){}});var J0=M(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.CancellationTokenSource=sm.CancellationToken=void 0;var RDe=Ad(),PDe=tm(),vI=im(),K0;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:vI.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:vI.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||PDe.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(K0||(sm.CancellationToken=K0={}));var IDe=Object.freeze(function(t,e){let n=(0,RDe.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),G0=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?IDe:(this._emitter||(this._emitter=new vI.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},yI=class{get token(){return this._token||(this._token=new G0),this._token}cancel(){this._token?this._token.cancel():this._token=K0.Cancelled}dispose(){this._token?this._token instanceof G0&&this._token.dispose():this._token=K0.None}};sm.CancellationTokenSource=yI});var m7=M(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.SharedArrayReceiverStrategy=om.SharedArraySenderStrategy=void 0;var ODe=J0(),ey;(function(t){t.Continue=0,t.Cancelled=1})(ey||(ey={}));var wI=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=ey.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,ey.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};om.SharedArraySenderStrategy=wI;var _I=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ey.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},SI=class{constructor(e){this.token=new _I(e)}cancel(){}dispose(){}},kI=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new ODe.CancellationTokenSource:new SI(n)}};om.SharedArrayReceiverStrategy=kI});var xI=M(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.Semaphore=void 0;var MDe=Ad(),TI=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||(0,MDe.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()}}};Y0.Semaphore=TI});var b7=M(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.ReadableStreamMessageReader=Dd.AbstractMessageReader=Dd.MessageReader=void 0;var EI=Ad(),am=tm(),CI=im(),FDe=xI(),g7;(function(t){function e(n){let r=n;return r&&am.func(r.listen)&&am.func(r.dispose)&&am.func(r.onError)&&am.func(r.onClose)&&am.func(r.onPartialMessage)}t.is=e})(g7||(Dd.MessageReader=g7={}));var Q0=class{constructor(){this.errorEmitter=new CI.Emitter,this.closeEmitter=new CI.Emitter,this.partialMessageEmitter=new CI.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: ${am.string(e.message)?e.message:"unknown"}`)}};Dd.AbstractMessageReader=Q0;var AI;(function(t){function e(n){let r,i,s,o=new Map,l,a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,a.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)a.set(c.name,c)}return l===void 0&&(l=(0,EI.default)().applicationJson.decoder,a.set(l.name,l)),{charset:r,contentDecoder:s,contentDecoders:o,contentTypeDecoder:l,contentTypeDecoders:a}}t.fromOptions=e})(AI||(AI={}));var DI=class extends Q0{constructor(e,n){super(),this.readable=e,this.options=AI.fromOptions(n),this.buffer=(0,EI.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new FDe.Semaphore(1)}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){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
|
|
3
3
|
${JSON.stringify(Object.fromEntries(r))}`));return}let s=parseInt(i);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,EI.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))}};Dd.ReadableStreamMessageReader=DI});var S7=M(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.WriteableStreamMessageWriter=Rd.AbstractMessageWriter=Rd.MessageWriter=void 0;var v7=Ad(),ty=tm(),NDe=xI(),y7=im(),LDe="Content-Length: ",w7=`\r
|
|
4
4
|
`,_7;(function(t){function e(n){let r=n;return r&&ty.func(r.dispose)&&ty.func(r.onClose)&&ty.func(r.onError)&&ty.func(r.write)}t.is=e})(_7||(Rd.MessageWriter=_7={}));var X0=class{constructor(){this.errorEmitter=new y7.Emitter,this.closeEmitter=new y7.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: ${ty.string(e.message)?e.message:"unknown"}`)}};Rd.AbstractMessageWriter=X0;var RI;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,v7.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,v7.default)().applicationJson.encoder}}t.fromOptions=e})(RI||(RI={}));var PI=class extends X0{constructor(e,n){super(),this.writable=e,this.options=RI.fromOptions(n),this.errorCount=0,this.writeSemaphore=new NDe.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(LDe,r.byteLength.toString(),w7),i.push(w7),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()}};Rd.WriteableStreamMessageWriter=PI});var k7=M(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});Z0.AbstractMessageBuffer=void 0;var qDe=13,zDe=10,WDe=`\r
|
|
5
5
|
`,II=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(e=!1){if(this._chunks.length===0)return;let n=0,r=0,i=0,s=0;e:for(;r<this._chunks.length;){let c=this._chunks[r];i=0;t:for(;i<c.length;){switch(c[i]){case qDe:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case zDe:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}s+=c.byteLength,r++}if(n!==4)return;let o=this._read(s+i),l=new Map,a=this.toString(o,"ascii").split(WDe);if(a.length<2)return l;for(let c=0;c<a.length-2;c++){let u=a[c],d=u.indexOf(":");if(d===-1)throw new Error(`Message header must separate key and value using ':'
|
|
@@ -220,7 +220,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
220
220
|
`,yi.default.visit.REMOVE}function l(c){return s+="[",c.items.forEach(u=>((0,yi.isScalar)(u)&&(s+="null,"),(0,yi.isMap)(u)&&o(u),(0,yi.isSeq)(u)&&l(u),yi.default.visit.REMOVE)),s+=`],
|
|
221
221
|
`,yi.default.visit.REMOVE}function a(c){let u=JSON.stringify(c.toJS(r)),d=yi.CST.isScalar(c.srcToken)?c.srcToken.source.length:0;return n.push({generatedOffsets:[i.length+s.length],sourceOffsets:[c.range[0]],lengths:[d],generatedLengths:[u.length],data:s5e}),u}return i+=`${s}) satisfies InferEntrySchema<"${e}">;
|
|
222
222
|
|
|
223
|
-
`,{errors:r.errors,virtualCode:{id:ma.VIRTUAL_CODE_ID,languageId:"typescript",snapshot:{getText:(c,u)=>i.substring(c,u),getLength:()=>i.length,getChangeRange:()=>{}},mappings:n}}}});var zte=M(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.VIRTUAL_CODE_ID=Gm.yaml2ts=void 0;var qte=Lte();Object.defineProperty(Gm,"yaml2ts",{enumerable:!0,get:function(){return qte.yaml2ts}});Object.defineProperty(Gm,"VIRTUAL_CODE_ID",{enumerable:!0,get:function(){return qte.VIRTUAL_CODE_ID}})});var IT=M(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.FrontmatterHolder=Wi.frontmatterRE=Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS=Wi.SUPPORTED_FRONTMATTER_EXTENSIONS=void 0;Wi.getFrontmatterLanguagePlugin=u5e;var Wte=zte(),a5e=Yt();Wi.SUPPORTED_FRONTMATTER_EXTENSIONS={md:"markdown",mdx:"mdx",mdoc:"mdoc"};Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS=Object.keys(Wi.SUPPORTED_FRONTMATTER_EXTENSIONS);var l5e=Object.values(Wi.SUPPORTED_FRONTMATTER_EXTENSIONS);Wi.frontmatterRE=/^---(.*?)^---/ms;function c5e(t,e){for(let n of t)if(n.config.entries[e])return n.config.entries[e]}function u5e(t){return{getLanguageId(e){let n=Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS.find(r=>e.path.endsWith(`.${r}`));if(n)return Wi.SUPPORTED_FRONTMATTER_EXTENSIONS[n]},createVirtualCode(e,n,r){if(l5e.includes(n))return new PT(e.fsPath.replace(/\\/g,"/"),n,r,c5e(t,decodeURIComponent(e.toString()).toLowerCase()))},typescript:{extraFileExtensions:Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS.map(e=>({extension:e,isMixedContent:!0,scriptKind:7})),getServiceScript(e){for(let n of(0,a5e.forEachEmbeddedCode)(e))if(n.id===Wte.VIRTUAL_CODE_ID)return{code:n,extension:".ts",scriptKind:3}}}}}var PT=class{constructor(e,n,r,i){if(this.fileName=e,this.languageId=n,this.snapshot=r,this.collection=i,this.id="frontmatter-holder",this.hasFrontmatter=!1,this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.snapshot=r,!this.collection)return;let s=Wi.frontmatterRE.exec(this.snapshot.getText(0,this.snapshot.getLength()))?.[0].replaceAll("---"," ")??"";if(this.hasFrontmatter=s.length>0,this.embeddedCodes.push({id:`yaml_frontmatter_${this.collection}`,languageId:"yaml",snapshot:{getText:(o,l)=>s.substring(o,l),getLength:()=>s.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[s.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}]}),this.hasFrontmatter){let o=(0,Wte.yaml2ts)(s,this.collection);this.embeddedCodes.push(o.virtualCode)}}};Wi.FrontmatterHolder=PT});var MT=M(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.setIsTrusted=d5e;_u.getPackagePath=OT;_u.importSvelteIntegration=h5e;_u.importVueIntegration=f5e;_u.importPrettier=p5e;_u.getPrettierPluginPath=m5e;_u.getWorkspacePnpPath=g5e;var SL=require("node:path"),jte=!0;function d5e(t){jte=t}function OT(t,e,n=!0){let r=[];jte&&r.unshift(...e);try{return n?(0,SL.dirname)(require.resolve(t+"/package.json",{paths:r})):require.resolve(t,{paths:r})}catch{return}}function $te(t,e){let n=OT(t,[e]);if(n)try{let r=(0,SL.resolve)(n,"dist","editor.cjs");return require(r)}catch(r){console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration. Reason: ${r}`);return}else console.info(`Couldn't find package ${t} (searching from ${e}). Make sure it's installed. If you believe this to be an error, please open an issue.`)}function h5e(t){return $te("@astrojs/svelte",t)}function f5e(t){return $te("@astrojs/vue",t)}function p5e(t){let e=OT("prettier",[t,__dirname]);if(e)return require(e)}function m5e(t){let e=OT("prettier-plugin-astro",[t,__dirname],!1);if(e)return e}function g5e(t){try{let e=(0,SL.resolve)(t,".pnp.cjs");return require.resolve(e),e}catch{return null}}});var kL=M(ic=>{"use strict";var b5e=ic&&ic.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),v5e=ic&&ic.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y5e=ic&&ic.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&b5e(e,t,n);return v5e(e,t),e};Object.defineProperty(ic,"__esModule",{value:!0});ic.getLanguageServerTypesDir=w5e;ic.getAstroInstall=_5e;var Jm=y5e(require("node:path")),Ute=MT();function w5e(t){return t.sys.resolvePath(Jm.resolve(__dirname,"../types"))}function _5e(t,e){let n,r;if(e&&e.nearestPackageJson){t.push(Jm.dirname(e.nearestPackageJson));let l=new Set;try{let a=require(e.nearestPackageJson);[...Object.keys(a.dependencies??{}),...Object.keys(a.devDependencies??{}),...Object.keys(a.peerDependencies??{})].forEach(c=>l.add(c))}catch{}if(!l.has("astro")&&!e.readDirectory(Jm.dirname(e.nearestPackageJson),[".js",".mjs",".cjs",".ts",".mts",".cts"],void 0,void 0,1).some(c=>Jm.basename(c).startsWith("astro.config")))return"not-an-astro-project"}try{if(n=(0,Ute.getPackagePath)("astro",t),!n)throw Error;r=require(Jm.resolve(n,"package.json")).version}catch{try{if(n=(0,Ute.getPackagePath)("./packages/astro",t),!n)throw Error;r=require(Jm.resolve(n,"package.json")).version}catch{return console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`),"not-found"}}if(!r)return"not-found";let[i,s,o]=r.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:n,version:{full:r,major:Number(i),minor:Number(s),patch:Number(o)}}}});var Bte=M((FT,Hte)=>{(function(t,e){typeof FT=="object"&&typeof Hte<"u"?e(FT):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.sourcemapCodec={}))})(FT,function(t){"use strict";let e=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),s=new Uint8Array(128);for(let p=0;p<r.length;p++){let S=r.charCodeAt(p);i[p]=S,s[S]=p}let o=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(p){return Buffer.from(p.buffer,p.byteOffset,p.byteLength).toString()}}:{decode(p){let S="";for(let w=0;w<p.length;w++)S+=String.fromCharCode(p[w]);return S}};function l(p){let S=new Int32Array(5),w=[],b=0;do{let _=a(p,b),x=[],A=!0,I=0;S[0]=0;for(let k=b;k<_;k++){let v;k=c(p,k,S,0);let T=S[0];T<I&&(A=!1),I=T,u(p,k,_)?(k=c(p,k,S,1),k=c(p,k,S,2),k=c(p,k,S,3),u(p,k,_)?(k=c(p,k,S,4),v=[T,S[1],S[2],S[3],S[4]]):v=[T,S[1],S[2],S[3]]):v=[T],x.push(v)}A||d(x),w.push(x),b=_+1}while(b<=p.length);return w}function a(p,S){let w=p.indexOf(";",S);return w===-1?p.length:w}function c(p,S,w,b){let _=0,x=0,A=0;do{let k=p.charCodeAt(S++);A=s[k],_|=(A&31)<<x,x+=5}while(A&32);let I=_&1;return _>>>=1,I&&(_=-2147483648|-_),w[b]+=_,S}function u(p,S,w){return S>=w?!1:p.charCodeAt(S)!==e}function d(p){p.sort(h)}function h(p,S){return p[0]-S[0]}function m(p){let S=new Int32Array(5),w=1024*16,b=w-36,_=new Uint8Array(w),x=_.subarray(0,b),A=0,I="";for(let k=0;k<p.length;k++){let v=p[k];if(k>0&&(A===w&&(I+=o.decode(_),A=0),_[A++]=n),v.length!==0){S[0]=0;for(let T=0;T<v.length;T++){let D=v[T];A>b&&(I+=o.decode(x),_.copyWithin(0,b,A),A-=b),T>0&&(_[A++]=e),A=y(_,A,S,D,0),D.length!==1&&(A=y(_,A,S,D,1),A=y(_,A,S,D,2),A=y(_,A,S,D,3),D.length!==4&&(A=y(_,A,S,D,4)))}}}return I+o.decode(_.subarray(0,A))}function y(p,S,w,b,_){let x=b[_],A=x-w[_];w[_]=x,A=A<0?-A<<1|1:A<<1;do{let I=A&31;A>>>=5,A>0&&(I|=32),p[S++]=i[I]}while(A>0);return S}t.decode=l,t.encode=m,Object.defineProperty(t,"__esModule",{value:!0})})});var Ei=M((lxt,Jte)=>{"use strict";var TL=Object.defineProperty,S5e=Object.getOwnPropertyDescriptor,k5e=Object.getOwnPropertyNames,T5e=Object.prototype.hasOwnProperty,x5e=(t,e)=>{for(var n in e)TL(t,n,{get:e[n],enumerable:!0})},C5e=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of k5e(e))!T5e.call(t,i)&&i!==n&&TL(t,i,{get:()=>e[i],enumerable:!(r=S5e(e,i))||r.enumerable});return t},E5e=t=>C5e(TL({},"__esModule",{value:!0}),t),Kte={};x5e(Kte,{config:()=>I5e,t:()=>Gte});Jte.exports=E5e(Kte);var A5e=require("fs"),D5e=require("fs/promises");async function R5e(t){if(t.protocol==="file:")return await(0,D5e.readFile)(t,"utf8");if(t.protocol==="http:"||t.protocol==="https:"){let e=await fetch(t.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let r=`Unexpected ${e.status} response while trying to read ${t}`;try{r+=`: ${await e.text()}`}catch{}throw new Error(r)}return await e.text()}throw new Error("Unsupported protocol")}function P5e(t){return(0,A5e.readFileSync)(t,"utf8")}var tw;function I5e(t){if("contents"in t){typeof t.contents=="string"?tw=JSON.parse(t.contents):tw=t.contents;return}if("fsPath"in t){let e=P5e(t.fsPath),n=JSON.parse(e);tw=Vte(n)?n.contents.bundle:n;return}if(t.uri){let e=t.uri;return typeof t.uri=="string"&&(e=new URL(t.uri)),new Promise((n,r)=>{R5e(e).then(i=>{try{let s=JSON.parse(i);tw=Vte(s)?s.contents.bundle:s,n()}catch(s){r(s)}}).catch(i=>{r(i)})})}}function Gte(...t){let e=t[0],n,r,i;if(typeof e=="string")n=e,r=e,t.splice(0,1),i=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){let o=t.slice(1);if(e.length!==o.length+1)throw new Error("expected a string as the first argument to l10n.t");let l=e[0];for(let a=1;a<e.length;a++)l+=`{${a-1}}`+e[a];return Gte(l,...o)}else r=e.message,n=r,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),i=e.args??{};let s=tw?.[n];return s?typeof s=="string"?NT(s,i):s.comment?NT(s.message,i):NT(r,i):NT(r,i)}var O5e=/{([^}]+)}/g;function NT(t,e){return Object.keys(e).length===0?t:t.replace(O5e,(n,r)=>e[r]??n)}function Vte(t){return typeof t?.contents?.bundle=="object"&&typeof t?.version=="string"}});var nh,xL,Yte,LT,dt,ke,ji,Qte,cl,sc,oc,oi,ac,CL,Mr,Xte,Zte,wi,rs,Ne,EL,Ym,ene,Su,AL,DL,RL,ul,tne,rh,PL,nne,Nt,Po,Re,et,is,Qm,Xm,rne,ga,lc,ba,cc,ine,sne,Ur,uc,Dn,one,Ys,ane,Qs,ih,qT,Zm,sh,lne,eg,dc,Fr,cne,une,dne,hne,fne,pne,mne,IL,OL,gne,bne,vne,yne,wne,_ne,Sne,kne,Tne,ML,ve,nw=_e(()=>{"use strict";(function(t){function e(n){return typeof n=="string"}t.is=e})(nh||(nh={}));(function(t){function e(n){return typeof n=="string"}t.is=e})(xL||(xL={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Yte||(Yte={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(LT||(LT={}));(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=LT.MAX_VALUE),i===Number.MAX_VALUE&&(i=LT.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.uinteger(i.line)&&ve.uinteger(i.character)}t.is=n})(dt||(dt={}));(function(t){function e(r,i,s,o){if(ve.uinteger(r)&&ve.uinteger(i)&&ve.uinteger(s)&&ve.uinteger(o))return{start:dt.create(r,i),end:dt.create(s,o)};if(dt.is(r)&&dt.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&dt.is(i.start)&&dt.is(i.end)}t.is=n})(ke||(ke={}));(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.range)&&(ve.string(i.uri)||ve.undefined(i.uri))}t.is=n})(ji||(ji={}));(function(t){function e(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.targetRange)&&ve.string(i.targetUri)&&ke.is(i.targetSelectionRange)&&(ke.is(i.originSelectionRange)||ve.undefined(i.originSelectionRange))}t.is=n})(Qte||(Qte={}));(function(t){function e(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.numberRange(i.red,0,1)&&ve.numberRange(i.green,0,1)&&ve.numberRange(i.blue,0,1)&&ve.numberRange(i.alpha,0,1)}t.is=n})(cl||(cl={}));(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.range)&&cl.is(i.color)}t.is=n})(sc||(sc={}));(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.string(i.label)&&(ve.undefined(i.textEdit)||Ne.is(i))&&(ve.undefined(i.additionalTextEdits)||ve.typedArray(i.additionalTextEdits,Ne.is))}t.is=n})(oc||(oc={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(oi||(oi={}));(function(t){function e(r,i,s,o,l,a){let c={startLine:r,endLine:i};return ve.defined(s)&&(c.startCharacter=s),ve.defined(o)&&(c.endCharacter=o),ve.defined(l)&&(c.kind=l),ve.defined(a)&&(c.collapsedText=a),c}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.uinteger(i.startLine)&&ve.uinteger(i.startLine)&&(ve.undefined(i.startCharacter)||ve.uinteger(i.startCharacter))&&(ve.undefined(i.endCharacter)||ve.uinteger(i.endCharacter))&&(ve.undefined(i.kind)||ve.string(i.kind))}t.is=n})(ac||(ac={}));(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ji.is(i.location)&&ve.string(i.message)}t.is=n})(CL||(CL={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Mr||(Mr={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(Xte||(Xte={}));(function(t){function e(n){let r=n;return ve.objectLiteral(r)&&ve.string(r.href)}t.is=e})(Zte||(Zte={}));(function(t){function e(r,i,s,o,l,a){let c={range:r,message:i};return ve.defined(s)&&(c.severity=s),ve.defined(o)&&(c.code=o),ve.defined(l)&&(c.source=l),ve.defined(a)&&(c.relatedInformation=a),c}t.create=e;function n(r){var i;let s=r;return ve.defined(s)&&ke.is(s.range)&&ve.string(s.message)&&(ve.number(s.severity)||ve.undefined(s.severity))&&(ve.integer(s.code)||ve.string(s.code)||ve.undefined(s.code))&&(ve.undefined(s.codeDescription)||ve.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(ve.string(s.source)||ve.undefined(s.source))&&(ve.undefined(s.relatedInformation)||ve.typedArray(s.relatedInformation,CL.is))}t.is=n})(wi||(wi={}));(function(t){function e(r,i,...s){let o={title:r,command:i};return ve.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.title)&&ve.string(i.command)}t.is=n})(rs||(rs={}));(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){let o=s;return ve.objectLiteral(o)&&ve.string(o.newText)&&ke.is(o.range)}t.is=i})(Ne||(Ne={}));(function(t){function e(r,i,s){let o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.string(i.label)&&(ve.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ve.string(i.description)||i.description===void 0)}t.is=n})(EL||(EL={}));(function(t){function e(n){let r=n;return ve.string(r)}t.is=e})(Ym||(Ym={}));(function(t){function e(s,o,l){return{range:s,newText:o,annotationId:l}}t.replace=e;function n(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}t.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}t.del=r;function i(s){let o=s;return Ne.is(o)&&(EL.is(o.annotationId)||Ym.is(o.annotationId))}t.is=i})(ene||(ene={}));(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&PL.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Su||(Su={}));(function(t){function e(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&ve.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ve.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ve.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ym.is(i.annotationId))}t.is=n})(AL||(AL={}));(function(t){function e(r,i,s,o){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&ve.string(i.oldUri)&&ve.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ve.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ve.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ym.is(i.annotationId))}t.is=n})(DL||(DL={}));(function(t){function e(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&ve.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ve.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ve.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ym.is(i.annotationId))}t.is=n})(RL||(RL={}));(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>ve.string(i.kind)?AL.is(i)||DL.is(i)||RL.is(i):Su.is(i)))}t.is=e})(ul||(ul={}));(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)}t.is=n})(tne||(tne={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)&&ve.integer(i.version)}t.is=n})(rh||(rh={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)&&(i.version===null||ve.integer(i.version))}t.is=n})(PL||(PL={}));(function(t){function e(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)&&ve.string(i.languageId)&&ve.integer(i.version)&&ve.string(i.text)}t.is=n})(nne||(nne={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){let r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(Nt||(Nt={}));(function(t){function e(n){let r=n;return ve.objectLiteral(n)&&Nt.is(r.kind)&&ve.string(r.value)}t.is=e})(Po||(Po={}));(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})(Re||(Re={}));(function(t){t.PlainText=1,t.Snippet=2})(et||(et={}));(function(t){t.Deprecated=1})(is||(is={}));(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){let i=r;return i&&ve.string(i.newText)&&ke.is(i.insert)&&ke.is(i.replace)}t.is=n})(Qm||(Qm={}));(function(t){t.asIs=1,t.adjustIndentation=2})(Xm||(Xm={}));(function(t){function e(n){let r=n;return r&&(ve.string(r.detail)||r.detail===void 0)&&(ve.string(r.description)||r.description===void 0)}t.is=e})(rne||(rne={}));(function(t){function e(n){return{label:n}}t.create=e})(ga||(ga={}));(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(lc||(lc={}));(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){let i=r;return ve.string(i)||ve.objectLiteral(i)&&ve.string(i.language)&&ve.string(i.value)}t.is=n})(ba||(ba={}));(function(t){function e(n){let r=n;return!!r&&ve.objectLiteral(r)&&(Po.is(r.contents)||ba.is(r.contents)||ve.typedArray(r.contents,ba.is))&&(n.range===void 0||ke.is(n.range))}t.is=e})(cc||(cc={}));(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(ine||(ine={}));(function(t){function e(n,r,...i){let s={label:n};return ve.defined(r)&&(s.documentation=r),ve.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(sne||(sne={}));(function(t){t.Text=1,t.Read=2,t.Write=3})(Ur||(Ur={}));(function(t){function e(n,r){let i={range:n};return ve.number(r)&&(i.kind=r),i}t.create=e})(uc||(uc={}));(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Dn||(Dn={}));(function(t){t.Deprecated=1})(one||(one={}));(function(t){function e(n,r,i,s,o){let l={name:n,kind:r,location:{uri:s,range:i}};return o&&(l.containerName=o),l}t.create=e})(Ys||(Ys={}));(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(ane||(ane={}));(function(t){function e(r,i,s,o,l,a){let c={name:r,detail:i,kind:s,range:o,selectionRange:l};return a!==void 0&&(c.children=a),c}t.create=e;function n(r){let i=r;return i&&ve.string(i.name)&&ve.number(i.kind)&&ke.is(i.range)&&ke.is(i.selectionRange)&&(i.detail===void 0||ve.string(i.detail))&&(i.deprecated===void 0||ve.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(Qs||(Qs={}));(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(ih||(ih={}));(function(t){t.Invoked=1,t.Automatic=2})(qT||(qT={}));(function(t){function e(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.typedArray(i.diagnostics,wi.is)&&(i.only===void 0||ve.typedArray(i.only,ve.string))&&(i.triggerKind===void 0||i.triggerKind===qT.Invoked||i.triggerKind===qT.Automatic)}t.is=n})(Zm||(Zm={}));(function(t){function e(r,i,s){let o={title:r},l=!0;return typeof i=="string"?(l=!1,o.kind=i):rs.is(i)?o.command=i:o.edit=i,l&&s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return i&&ve.string(i.title)&&(i.diagnostics===void 0||ve.typedArray(i.diagnostics,wi.is))&&(i.kind===void 0||ve.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||rs.is(i.command))&&(i.isPreferred===void 0||ve.boolean(i.isPreferred))&&(i.edit===void 0||ul.is(i.edit))}t.is=n})(sh||(sh={}));(function(t){function e(r,i){let s={range:r};return ve.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return ve.defined(i)&&ke.is(i.range)&&(ve.undefined(i.command)||rs.is(i.command))}t.is=n})(lne||(lne={}));(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.uinteger(i.tabSize)&&ve.boolean(i.insertSpaces)}t.is=n})(eg||(eg={}));(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ke.is(i.range)&&(ve.undefined(i.target)||ve.string(i.target))}t.is=n})(dc||(dc={}));(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Fr||(Fr={}));(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",t.decorator="decorator"})(cne||(cne={}));(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"})(une||(une={}));(function(t){function e(n){let r=n;return ve.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(dne||(dne={}));(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){let i=r;return i!=null&&ke.is(i.range)&&ve.string(i.text)}t.is=n})(hne||(hne={}));(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){let i=r;return i!=null&&ke.is(i.range)&&ve.boolean(i.caseSensitiveLookup)&&(ve.string(i.variableName)||i.variableName===void 0)}t.is=n})(fne||(fne={}));(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){let i=r;return i!=null&&ke.is(i.range)&&(ve.string(i.expression)||i.expression===void 0)}t.is=n})(pne||(pne={}));(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ke.is(r.stoppedLocation)}t.is=n})(mne||(mne={}));(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(IL||(IL={}));(function(t){function e(r){return{value:r}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&(i.tooltip===void 0||ve.string(i.tooltip)||Po.is(i.tooltip))&&(i.location===void 0||ji.is(i.location))&&(i.command===void 0||rs.is(i.command))}t.is=n})(OL||(OL={}));(function(t){function e(r,i,s){let o={position:r,label:i};return s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&dt.is(i.position)&&(ve.string(i.label)||ve.typedArray(i.label,OL.is))&&(i.kind===void 0||IL.is(i.kind))&&i.textEdits===void 0||ve.typedArray(i.textEdits,Ne.is)&&(i.tooltip===void 0||ve.string(i.tooltip)||Po.is(i.tooltip))&&(i.paddingLeft===void 0||ve.boolean(i.paddingLeft))&&(i.paddingRight===void 0||ve.boolean(i.paddingRight))}t.is=n})(gne||(gne={}));(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(bne||(bne={}));(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(vne||(vne={}));(function(t){function e(n){return{items:n}}t.create=e})(yne||(yne={}));(function(t){t.Invoked=0,t.Automatic=1})(wne||(wne={}));(function(t){function e(n,r){return{range:n,text:r}}t.create=e})(_ne||(_ne={}));(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(Sne||(Sne={}));(function(t){function e(n){let r=n;return ve.objectLiteral(r)&&xL.is(r.uri)&&ve.string(r.name)}t.is=e})(kne||(kne={}));(function(t){function e(s,o,l,a){return new ML(s,o,l,a)}t.create=e;function n(s){let o=s;return!!(ve.defined(o)&&ve.string(o.uri)&&(ve.undefined(o.languageId)||ve.string(o.languageId))&&ve.uinteger(o.lineCount)&&ve.func(o.getText)&&ve.func(o.positionAt)&&ve.func(o.offsetAt))}t.is=n;function r(s,o){let l=s.getText(),a=i(o,(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),c=l.length;for(let u=a.length-1;u>=0;u--){let d=a[u],h=s.offsetAt(d.range.start),m=s.offsetAt(d.range.end);if(m<=c)l=l.substring(0,h)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");c=h}return l}t.applyEdits=r;function i(s,o){if(s.length<=1)return s;let l=s.length/2|0,a=s.slice(0,l),c=s.slice(l);i(a,o),i(c,o);let u=0,d=0,h=0;for(;u<a.length&&d<c.length;)o(a[u],c[d])<=0?s[h++]=a[u++]:s[h++]=c[d++];for(;u<a.length;)s[h++]=a[u++];for(;d<c.length;)s[h++]=c[d++];return s}})(Tne||(Tne={}));ML=class{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(e.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
|
|
223
|
+
`,{errors:r.errors,virtualCode:{id:ma.VIRTUAL_CODE_ID,languageId:"typescript",snapshot:{getText:(c,u)=>i.substring(c,u),getLength:()=>i.length,getChangeRange:()=>{}},mappings:n}}}});var zte=M(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.VIRTUAL_CODE_ID=Gm.yaml2ts=void 0;var qte=Lte();Object.defineProperty(Gm,"yaml2ts",{enumerable:!0,get:function(){return qte.yaml2ts}});Object.defineProperty(Gm,"VIRTUAL_CODE_ID",{enumerable:!0,get:function(){return qte.VIRTUAL_CODE_ID}})});var IT=M(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.FrontmatterHolder=Wi.frontmatterRE=Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS=Wi.SUPPORTED_FRONTMATTER_EXTENSIONS=void 0;Wi.getFrontmatterLanguagePlugin=u5e;var Wte=zte(),a5e=Yt();Wi.SUPPORTED_FRONTMATTER_EXTENSIONS={md:"markdown",mdx:"mdx",mdoc:"markdoc"};Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS=Object.keys(Wi.SUPPORTED_FRONTMATTER_EXTENSIONS);var l5e=Object.values(Wi.SUPPORTED_FRONTMATTER_EXTENSIONS);Wi.frontmatterRE=/^---(.*?)^---/ms;function c5e(t,e){for(let n of t)if(n.config.entries[e])return n.config.entries[e]}function u5e(t){return{getLanguageId(e){let n=Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS.find(r=>e.path.endsWith(`.${r}`));if(n)return Wi.SUPPORTED_FRONTMATTER_EXTENSIONS[n]},createVirtualCode(e,n,r){if(l5e.includes(n))return new PT(e.fsPath.replace(/\\/g,"/"),n,r,c5e(t,decodeURIComponent(e.toString()).toLowerCase()))},typescript:{extraFileExtensions:Wi.SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS.map(e=>({extension:e,isMixedContent:!0,scriptKind:7})),getServiceScript(e){for(let n of(0,a5e.forEachEmbeddedCode)(e))if(n.id===Wte.VIRTUAL_CODE_ID)return{code:n,extension:".ts",scriptKind:3}}}}}var PT=class{constructor(e,n,r,i){if(this.fileName=e,this.languageId=n,this.snapshot=r,this.collection=i,this.id="frontmatter-holder",this.hasFrontmatter=!1,this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.snapshot=r,!this.collection)return;let s=Wi.frontmatterRE.exec(this.snapshot.getText(0,this.snapshot.getLength()))?.[0].replaceAll("---"," ")??"";if(this.hasFrontmatter=s.length>0,this.embeddedCodes.push({id:`yaml_frontmatter_${this.collection}`,languageId:"yaml",snapshot:{getText:(o,l)=>s.substring(o,l),getLength:()=>s.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[s.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}]}),this.hasFrontmatter){let o=(0,Wte.yaml2ts)(s,this.collection);this.embeddedCodes.push(o.virtualCode)}}};Wi.FrontmatterHolder=PT});var MT=M(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.setIsTrusted=d5e;_u.getPackagePath=OT;_u.importSvelteIntegration=h5e;_u.importVueIntegration=f5e;_u.importPrettier=p5e;_u.getPrettierPluginPath=m5e;_u.getWorkspacePnpPath=g5e;var SL=require("node:path"),jte=!0;function d5e(t){jte=t}function OT(t,e,n=!0){let r=[];jte&&r.unshift(...e);try{return n?(0,SL.dirname)(require.resolve(t+"/package.json",{paths:r})):require.resolve(t,{paths:r})}catch{return}}function $te(t,e){let n=OT(t,[e]);if(n)try{let r=(0,SL.resolve)(n,"dist","editor.cjs");return require(r)}catch(r){console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration. Reason: ${r}`);return}else console.info(`Couldn't find package ${t} (searching from ${e}). Make sure it's installed. If you believe this to be an error, please open an issue.`)}function h5e(t){return $te("@astrojs/svelte",t)}function f5e(t){return $te("@astrojs/vue",t)}function p5e(t){let e=OT("prettier",[t,__dirname]);if(e)return require(e)}function m5e(t){let e=OT("prettier-plugin-astro",[t,__dirname],!1);if(e)return e}function g5e(t){try{let e=(0,SL.resolve)(t,".pnp.cjs");return require.resolve(e),e}catch{return null}}});var kL=M(ic=>{"use strict";var b5e=ic&&ic.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),v5e=ic&&ic.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y5e=ic&&ic.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&b5e(e,t,n);return v5e(e,t),e};Object.defineProperty(ic,"__esModule",{value:!0});ic.getLanguageServerTypesDir=w5e;ic.getAstroInstall=_5e;var Jm=y5e(require("node:path")),Ute=MT();function w5e(t){return t.sys.resolvePath(Jm.resolve(__dirname,"../types"))}function _5e(t,e){let n,r;if(e&&e.nearestPackageJson){t.push(Jm.dirname(e.nearestPackageJson));let l=new Set;try{let a=require(e.nearestPackageJson);[...Object.keys(a.dependencies??{}),...Object.keys(a.devDependencies??{}),...Object.keys(a.peerDependencies??{})].forEach(c=>l.add(c))}catch{}if(!l.has("astro")&&!e.readDirectory(Jm.dirname(e.nearestPackageJson),[".js",".mjs",".cjs",".ts",".mts",".cts"],void 0,void 0,1).some(c=>Jm.basename(c).startsWith("astro.config")))return"not-an-astro-project"}try{if(n=(0,Ute.getPackagePath)("astro",t),!n)throw Error;r=require(Jm.resolve(n,"package.json")).version}catch{try{if(n=(0,Ute.getPackagePath)("./packages/astro",t),!n)throw Error;r=require(Jm.resolve(n,"package.json")).version}catch{return console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`),"not-found"}}if(!r)return"not-found";let[i,s,o]=r.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:n,version:{full:r,major:Number(i),minor:Number(s),patch:Number(o)}}}});var Bte=M((FT,Hte)=>{(function(t,e){typeof FT=="object"&&typeof Hte<"u"?e(FT):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.sourcemapCodec={}))})(FT,function(t){"use strict";let e=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),s=new Uint8Array(128);for(let p=0;p<r.length;p++){let S=r.charCodeAt(p);i[p]=S,s[S]=p}let o=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(p){return Buffer.from(p.buffer,p.byteOffset,p.byteLength).toString()}}:{decode(p){let S="";for(let w=0;w<p.length;w++)S+=String.fromCharCode(p[w]);return S}};function l(p){let S=new Int32Array(5),w=[],b=0;do{let _=a(p,b),x=[],A=!0,I=0;S[0]=0;for(let k=b;k<_;k++){let v;k=c(p,k,S,0);let T=S[0];T<I&&(A=!1),I=T,u(p,k,_)?(k=c(p,k,S,1),k=c(p,k,S,2),k=c(p,k,S,3),u(p,k,_)?(k=c(p,k,S,4),v=[T,S[1],S[2],S[3],S[4]]):v=[T,S[1],S[2],S[3]]):v=[T],x.push(v)}A||d(x),w.push(x),b=_+1}while(b<=p.length);return w}function a(p,S){let w=p.indexOf(";",S);return w===-1?p.length:w}function c(p,S,w,b){let _=0,x=0,A=0;do{let k=p.charCodeAt(S++);A=s[k],_|=(A&31)<<x,x+=5}while(A&32);let I=_&1;return _>>>=1,I&&(_=-2147483648|-_),w[b]+=_,S}function u(p,S,w){return S>=w?!1:p.charCodeAt(S)!==e}function d(p){p.sort(h)}function h(p,S){return p[0]-S[0]}function m(p){let S=new Int32Array(5),w=1024*16,b=w-36,_=new Uint8Array(w),x=_.subarray(0,b),A=0,I="";for(let k=0;k<p.length;k++){let v=p[k];if(k>0&&(A===w&&(I+=o.decode(_),A=0),_[A++]=n),v.length!==0){S[0]=0;for(let T=0;T<v.length;T++){let D=v[T];A>b&&(I+=o.decode(x),_.copyWithin(0,b,A),A-=b),T>0&&(_[A++]=e),A=y(_,A,S,D,0),D.length!==1&&(A=y(_,A,S,D,1),A=y(_,A,S,D,2),A=y(_,A,S,D,3),D.length!==4&&(A=y(_,A,S,D,4)))}}}return I+o.decode(_.subarray(0,A))}function y(p,S,w,b,_){let x=b[_],A=x-w[_];w[_]=x,A=A<0?-A<<1|1:A<<1;do{let I=A&31;A>>>=5,A>0&&(I|=32),p[S++]=i[I]}while(A>0);return S}t.decode=l,t.encode=m,Object.defineProperty(t,"__esModule",{value:!0})})});var Ei=M((lxt,Jte)=>{"use strict";var TL=Object.defineProperty,S5e=Object.getOwnPropertyDescriptor,k5e=Object.getOwnPropertyNames,T5e=Object.prototype.hasOwnProperty,x5e=(t,e)=>{for(var n in e)TL(t,n,{get:e[n],enumerable:!0})},C5e=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of k5e(e))!T5e.call(t,i)&&i!==n&&TL(t,i,{get:()=>e[i],enumerable:!(r=S5e(e,i))||r.enumerable});return t},E5e=t=>C5e(TL({},"__esModule",{value:!0}),t),Kte={};x5e(Kte,{config:()=>I5e,t:()=>Gte});Jte.exports=E5e(Kte);var A5e=require("fs"),D5e=require("fs/promises");async function R5e(t){if(t.protocol==="file:")return await(0,D5e.readFile)(t,"utf8");if(t.protocol==="http:"||t.protocol==="https:"){let e=await fetch(t.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let r=`Unexpected ${e.status} response while trying to read ${t}`;try{r+=`: ${await e.text()}`}catch{}throw new Error(r)}return await e.text()}throw new Error("Unsupported protocol")}function P5e(t){return(0,A5e.readFileSync)(t,"utf8")}var tw;function I5e(t){if("contents"in t){typeof t.contents=="string"?tw=JSON.parse(t.contents):tw=t.contents;return}if("fsPath"in t){let e=P5e(t.fsPath),n=JSON.parse(e);tw=Vte(n)?n.contents.bundle:n;return}if(t.uri){let e=t.uri;return typeof t.uri=="string"&&(e=new URL(t.uri)),new Promise((n,r)=>{R5e(e).then(i=>{try{let s=JSON.parse(i);tw=Vte(s)?s.contents.bundle:s,n()}catch(s){r(s)}}).catch(i=>{r(i)})})}}function Gte(...t){let e=t[0],n,r,i;if(typeof e=="string")n=e,r=e,t.splice(0,1),i=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){let o=t.slice(1);if(e.length!==o.length+1)throw new Error("expected a string as the first argument to l10n.t");let l=e[0];for(let a=1;a<e.length;a++)l+=`{${a-1}}`+e[a];return Gte(l,...o)}else r=e.message,n=r,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),i=e.args??{};let s=tw?.[n];return s?typeof s=="string"?NT(s,i):s.comment?NT(s.message,i):NT(r,i):NT(r,i)}var O5e=/{([^}]+)}/g;function NT(t,e){return Object.keys(e).length===0?t:t.replace(O5e,(n,r)=>e[r]??n)}function Vte(t){return typeof t?.contents?.bundle=="object"&&typeof t?.version=="string"}});var nh,xL,Yte,LT,dt,ke,ji,Qte,cl,sc,oc,oi,ac,CL,Mr,Xte,Zte,wi,rs,Ne,EL,Ym,ene,Su,AL,DL,RL,ul,tne,rh,PL,nne,Nt,Po,Re,et,is,Qm,Xm,rne,ga,lc,ba,cc,ine,sne,Ur,uc,Dn,one,Ys,ane,Qs,ih,qT,Zm,sh,lne,eg,dc,Fr,cne,une,dne,hne,fne,pne,mne,IL,OL,gne,bne,vne,yne,wne,_ne,Sne,kne,Tne,ML,ve,nw=_e(()=>{"use strict";(function(t){function e(n){return typeof n=="string"}t.is=e})(nh||(nh={}));(function(t){function e(n){return typeof n=="string"}t.is=e})(xL||(xL={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Yte||(Yte={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(LT||(LT={}));(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=LT.MAX_VALUE),i===Number.MAX_VALUE&&(i=LT.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.uinteger(i.line)&&ve.uinteger(i.character)}t.is=n})(dt||(dt={}));(function(t){function e(r,i,s,o){if(ve.uinteger(r)&&ve.uinteger(i)&&ve.uinteger(s)&&ve.uinteger(o))return{start:dt.create(r,i),end:dt.create(s,o)};if(dt.is(r)&&dt.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${o}]`)}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&dt.is(i.start)&&dt.is(i.end)}t.is=n})(ke||(ke={}));(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.range)&&(ve.string(i.uri)||ve.undefined(i.uri))}t.is=n})(ji||(ji={}));(function(t){function e(r,i,s,o){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.targetRange)&&ve.string(i.targetUri)&&ke.is(i.targetSelectionRange)&&(ke.is(i.originSelectionRange)||ve.undefined(i.originSelectionRange))}t.is=n})(Qte||(Qte={}));(function(t){function e(r,i,s,o){return{red:r,green:i,blue:s,alpha:o}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.numberRange(i.red,0,1)&&ve.numberRange(i.green,0,1)&&ve.numberRange(i.blue,0,1)&&ve.numberRange(i.alpha,0,1)}t.is=n})(cl||(cl={}));(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.range)&&cl.is(i.color)}t.is=n})(sc||(sc={}));(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.string(i.label)&&(ve.undefined(i.textEdit)||Ne.is(i))&&(ve.undefined(i.additionalTextEdits)||ve.typedArray(i.additionalTextEdits,Ne.is))}t.is=n})(oc||(oc={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(oi||(oi={}));(function(t){function e(r,i,s,o,l,a){let c={startLine:r,endLine:i};return ve.defined(s)&&(c.startCharacter=s),ve.defined(o)&&(c.endCharacter=o),ve.defined(l)&&(c.kind=l),ve.defined(a)&&(c.collapsedText=a),c}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.uinteger(i.startLine)&&ve.uinteger(i.startLine)&&(ve.undefined(i.startCharacter)||ve.uinteger(i.startCharacter))&&(ve.undefined(i.endCharacter)||ve.uinteger(i.endCharacter))&&(ve.undefined(i.kind)||ve.string(i.kind))}t.is=n})(ac||(ac={}));(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ji.is(i.location)&&ve.string(i.message)}t.is=n})(CL||(CL={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Mr||(Mr={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(Xte||(Xte={}));(function(t){function e(n){let r=n;return ve.objectLiteral(r)&&ve.string(r.href)}t.is=e})(Zte||(Zte={}));(function(t){function e(r,i,s,o,l,a){let c={range:r,message:i};return ve.defined(s)&&(c.severity=s),ve.defined(o)&&(c.code=o),ve.defined(l)&&(c.source=l),ve.defined(a)&&(c.relatedInformation=a),c}t.create=e;function n(r){var i;let s=r;return ve.defined(s)&&ke.is(s.range)&&ve.string(s.message)&&(ve.number(s.severity)||ve.undefined(s.severity))&&(ve.integer(s.code)||ve.string(s.code)||ve.undefined(s.code))&&(ve.undefined(s.codeDescription)||ve.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(ve.string(s.source)||ve.undefined(s.source))&&(ve.undefined(s.relatedInformation)||ve.typedArray(s.relatedInformation,CL.is))}t.is=n})(wi||(wi={}));(function(t){function e(r,i,...s){let o={title:r,command:i};return ve.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.title)&&ve.string(i.command)}t.is=n})(rs||(rs={}));(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){let o=s;return ve.objectLiteral(o)&&ve.string(o.newText)&&ke.is(o.range)}t.is=i})(Ne||(Ne={}));(function(t){function e(r,i,s){let o={label:r};return i!==void 0&&(o.needsConfirmation=i),s!==void 0&&(o.description=s),o}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ve.string(i.label)&&(ve.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ve.string(i.description)||i.description===void 0)}t.is=n})(EL||(EL={}));(function(t){function e(n){let r=n;return ve.string(r)}t.is=e})(Ym||(Ym={}));(function(t){function e(s,o,l){return{range:s,newText:o,annotationId:l}}t.replace=e;function n(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}t.insert=n;function r(s,o){return{range:s,newText:"",annotationId:o}}t.del=r;function i(s){let o=s;return Ne.is(o)&&(EL.is(o.annotationId)||Ym.is(o.annotationId))}t.is=i})(ene||(ene={}));(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&PL.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Su||(Su={}));(function(t){function e(r,i,s){let o={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&ve.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ve.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ve.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ym.is(i.annotationId))}t.is=n})(AL||(AL={}));(function(t){function e(r,i,s,o){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&ve.string(i.oldUri)&&ve.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ve.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ve.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ym.is(i.annotationId))}t.is=n})(DL||(DL={}));(function(t){function e(r,i,s){let o={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(o.options=i),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&ve.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ve.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ve.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ym.is(i.annotationId))}t.is=n})(RL||(RL={}));(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>ve.string(i.kind)?AL.is(i)||DL.is(i)||RL.is(i):Su.is(i)))}t.is=e})(ul||(ul={}));(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)}t.is=n})(tne||(tne={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)&&ve.integer(i.version)}t.is=n})(rh||(rh={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)&&(i.version===null||ve.integer(i.version))}t.is=n})(PL||(PL={}));(function(t){function e(r,i,s,o){return{uri:r,languageId:i,version:s,text:o}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.string(i.uri)&&ve.string(i.languageId)&&ve.integer(i.version)&&ve.string(i.text)}t.is=n})(nne||(nne={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){let r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(Nt||(Nt={}));(function(t){function e(n){let r=n;return ve.objectLiteral(n)&&Nt.is(r.kind)&&ve.string(r.value)}t.is=e})(Po||(Po={}));(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})(Re||(Re={}));(function(t){t.PlainText=1,t.Snippet=2})(et||(et={}));(function(t){t.Deprecated=1})(is||(is={}));(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){let i=r;return i&&ve.string(i.newText)&&ke.is(i.insert)&&ke.is(i.replace)}t.is=n})(Qm||(Qm={}));(function(t){t.asIs=1,t.adjustIndentation=2})(Xm||(Xm={}));(function(t){function e(n){let r=n;return r&&(ve.string(r.detail)||r.detail===void 0)&&(ve.string(r.description)||r.description===void 0)}t.is=e})(rne||(rne={}));(function(t){function e(n){return{label:n}}t.create=e})(ga||(ga={}));(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(lc||(lc={}));(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){let i=r;return ve.string(i)||ve.objectLiteral(i)&&ve.string(i.language)&&ve.string(i.value)}t.is=n})(ba||(ba={}));(function(t){function e(n){let r=n;return!!r&&ve.objectLiteral(r)&&(Po.is(r.contents)||ba.is(r.contents)||ve.typedArray(r.contents,ba.is))&&(n.range===void 0||ke.is(n.range))}t.is=e})(cc||(cc={}));(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(ine||(ine={}));(function(t){function e(n,r,...i){let s={label:n};return ve.defined(r)&&(s.documentation=r),ve.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(sne||(sne={}));(function(t){t.Text=1,t.Read=2,t.Write=3})(Ur||(Ur={}));(function(t){function e(n,r){let i={range:n};return ve.number(r)&&(i.kind=r),i}t.create=e})(uc||(uc={}));(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Dn||(Dn={}));(function(t){t.Deprecated=1})(one||(one={}));(function(t){function e(n,r,i,s,o){let l={name:n,kind:r,location:{uri:s,range:i}};return o&&(l.containerName=o),l}t.create=e})(Ys||(Ys={}));(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(ane||(ane={}));(function(t){function e(r,i,s,o,l,a){let c={name:r,detail:i,kind:s,range:o,selectionRange:l};return a!==void 0&&(c.children=a),c}t.create=e;function n(r){let i=r;return i&&ve.string(i.name)&&ve.number(i.kind)&&ke.is(i.range)&&ke.is(i.selectionRange)&&(i.detail===void 0||ve.string(i.detail))&&(i.deprecated===void 0||ve.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(Qs||(Qs={}));(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(ih||(ih={}));(function(t){t.Invoked=1,t.Automatic=2})(qT||(qT={}));(function(t){function e(r,i,s){let o={diagnostics:r};return i!=null&&(o.only=i),s!=null&&(o.triggerKind=s),o}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.typedArray(i.diagnostics,wi.is)&&(i.only===void 0||ve.typedArray(i.only,ve.string))&&(i.triggerKind===void 0||i.triggerKind===qT.Invoked||i.triggerKind===qT.Automatic)}t.is=n})(Zm||(Zm={}));(function(t){function e(r,i,s){let o={title:r},l=!0;return typeof i=="string"?(l=!1,o.kind=i):rs.is(i)?o.command=i:o.edit=i,l&&s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return i&&ve.string(i.title)&&(i.diagnostics===void 0||ve.typedArray(i.diagnostics,wi.is))&&(i.kind===void 0||ve.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||rs.is(i.command))&&(i.isPreferred===void 0||ve.boolean(i.isPreferred))&&(i.edit===void 0||ul.is(i.edit))}t.is=n})(sh||(sh={}));(function(t){function e(r,i){let s={range:r};return ve.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return ve.defined(i)&&ke.is(i.range)&&(ve.undefined(i.command)||rs.is(i.command))}t.is=n})(lne||(lne={}));(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ve.uinteger(i.tabSize)&&ve.boolean(i.insertSpaces)}t.is=n})(eg||(eg={}));(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ke.is(i.range)&&(ve.undefined(i.target)||ve.string(i.target))}t.is=n})(dc||(dc={}));(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&ke.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Fr||(Fr={}));(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",t.decorator="decorator"})(cne||(cne={}));(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"})(une||(une={}));(function(t){function e(n){let r=n;return ve.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(dne||(dne={}));(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){let i=r;return i!=null&&ke.is(i.range)&&ve.string(i.text)}t.is=n})(hne||(hne={}));(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){let i=r;return i!=null&&ke.is(i.range)&&ve.boolean(i.caseSensitiveLookup)&&(ve.string(i.variableName)||i.variableName===void 0)}t.is=n})(fne||(fne={}));(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){let i=r;return i!=null&&ke.is(i.range)&&(ve.string(i.expression)||i.expression===void 0)}t.is=n})(pne||(pne={}));(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){let i=r;return ve.defined(i)&&ke.is(r.stoppedLocation)}t.is=n})(mne||(mne={}));(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(IL||(IL={}));(function(t){function e(r){return{value:r}}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&(i.tooltip===void 0||ve.string(i.tooltip)||Po.is(i.tooltip))&&(i.location===void 0||ji.is(i.location))&&(i.command===void 0||rs.is(i.command))}t.is=n})(OL||(OL={}));(function(t){function e(r,i,s){let o={position:r,label:i};return s!==void 0&&(o.kind=s),o}t.create=e;function n(r){let i=r;return ve.objectLiteral(i)&&dt.is(i.position)&&(ve.string(i.label)||ve.typedArray(i.label,OL.is))&&(i.kind===void 0||IL.is(i.kind))&&i.textEdits===void 0||ve.typedArray(i.textEdits,Ne.is)&&(i.tooltip===void 0||ve.string(i.tooltip)||Po.is(i.tooltip))&&(i.paddingLeft===void 0||ve.boolean(i.paddingLeft))&&(i.paddingRight===void 0||ve.boolean(i.paddingRight))}t.is=n})(gne||(gne={}));(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(bne||(bne={}));(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(vne||(vne={}));(function(t){function e(n){return{items:n}}t.create=e})(yne||(yne={}));(function(t){t.Invoked=0,t.Automatic=1})(wne||(wne={}));(function(t){function e(n,r){return{range:n,text:r}}t.create=e})(_ne||(_ne={}));(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(Sne||(Sne={}));(function(t){function e(n){let r=n;return ve.objectLiteral(r)&&xL.is(r.uri)&&ve.string(r.name)}t.is=e})(kne||(kne={}));(function(t){function e(s,o,l,a){return new ML(s,o,l,a)}t.create=e;function n(s){let o=s;return!!(ve.defined(o)&&ve.string(o.uri)&&(ve.undefined(o.languageId)||ve.string(o.languageId))&&ve.uinteger(o.lineCount)&&ve.func(o.getText)&&ve.func(o.positionAt)&&ve.func(o.offsetAt))}t.is=n;function r(s,o){let l=s.getText(),a=i(o,(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),c=l.length;for(let u=a.length-1;u>=0;u--){let d=a[u],h=s.offsetAt(d.range.start),m=s.offsetAt(d.range.end);if(m<=c)l=l.substring(0,h)+d.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");c=h}return l}t.applyEdits=r;function i(s,o){if(s.length<=1)return s;let l=s.length/2|0,a=s.slice(0,l),c=s.slice(l);i(a,o),i(c,o);let u=0,d=0,h=0;for(;u<a.length&&d<c.length;)o(a[u],c[d])<=0?s[h++]=a[u++]:s[h++]=c[d++];for(;u<a.length;)s[h++]=a[u++];for(;d<c.length;)s[h++]=c[d++];return s}})(Tne||(Tne={}));ML=class{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(e.push(i),r=!1);let s=n.charAt(i);r=s==="\r"||s===`
|
|
224
224
|
`,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
225
225
|
`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return dt.create(0,e);for(;r<i;){let o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}let s=r-1;return dt.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(t){let e=Object.prototype.toString;function n(m){return typeof m<"u"}t.defined=n;function r(m){return typeof m>"u"}t.undefined=r;function i(m){return m===!0||m===!1}t.boolean=i;function s(m){return e.call(m)==="[object String]"}t.string=s;function o(m){return e.call(m)==="[object Number]"}t.number=o;function l(m,y,p){return e.call(m)==="[object Number]"&&y<=m&&m<=p}t.numberRange=l;function a(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}t.integer=a;function c(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}t.uinteger=c;function u(m){return e.call(m)==="[object Function]"}t.func=u;function d(m){return m!==null&&typeof m=="object"}t.objectLiteral=d;function h(m,y){return Array.isArray(m)&&m.every(y)}t.typedArray=h})(ve||(ve={}))});var Ee,ht,FL,rw,Xs=_e(()=>{nw();Jl();(function(t){t[t.StartCommentTag=0]="StartCommentTag",t[t.Comment=1]="Comment",t[t.EndCommentTag=2]="EndCommentTag",t[t.StartTagOpen=3]="StartTagOpen",t[t.StartTagClose=4]="StartTagClose",t[t.StartTagSelfClose=5]="StartTagSelfClose",t[t.StartTag=6]="StartTag",t[t.EndTagOpen=7]="EndTagOpen",t[t.EndTagClose=8]="EndTagClose",t[t.EndTag=9]="EndTag",t[t.DelimiterAssign=10]="DelimiterAssign",t[t.AttributeName=11]="AttributeName",t[t.AttributeValue=12]="AttributeValue",t[t.StartDoctypeTag=13]="StartDoctypeTag",t[t.Doctype=14]="Doctype",t[t.EndDoctypeTag=15]="EndDoctypeTag",t[t.Content=16]="Content",t[t.Whitespace=17]="Whitespace",t[t.Unknown=18]="Unknown",t[t.Script=19]="Script",t[t.Styles=20]="Styles",t[t.EOS=21]="EOS"})(Ee||(Ee={}));(function(t){t[t.WithinContent=0]="WithinContent",t[t.AfterOpeningStartTag=1]="AfterOpeningStartTag",t[t.AfterOpeningEndTag=2]="AfterOpeningEndTag",t[t.WithinDoctype=3]="WithinDoctype",t[t.WithinTag=4]="WithinTag",t[t.WithinEndTag=5]="WithinEndTag",t[t.WithinComment=6]="WithinComment",t[t.WithinScriptContent=7]="WithinScriptContent",t[t.WithinStyleContent=8]="WithinStyleContent",t[t.AfterAttributeName=9]="AfterAttributeName",t[t.BeforeAttributeValue=10]="BeforeAttributeValue"})(ht||(ht={}));(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Nt.Markdown,Nt.PlainText]}},hover:{contentFormat:[Nt.Markdown,Nt.PlainText]}}}})(FL||(FL={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(rw||(rw={}))});function Hr(t,e=0,n=ht.WithinContent,r=!1){let i=new LL(t,e),s=n,o=0,l=Ee.Unknown,a,c,u,d,h;function m(){return i.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function y(){return i.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function p(b,_,x){return l=_,o=b,a=x,_}function S(){let b=i.pos(),_=s,x=w();return x!==Ee.EOS&&b===i.pos()&&!(r&&(x===Ee.StartTagClose||x===Ee.EndTagClose))?(console.warn("Scanner.scan has not advanced at offset "+b+", state before: "+_+" after: "+s),i.advance(1),p(b,Ee.Unknown)):x}function w(){let b=i.pos();if(i.eos())return p(b,Ee.EOS);let _;switch(s){case ht.WithinComment:return i.advanceIfChars([tg,tg,hc])?(s=ht.WithinContent,p(b,Ee.EndCommentTag)):(i.advanceUntilChars([tg,tg,hc]),p(b,Ee.Comment));case ht.WithinDoctype:return i.advanceIfChar(hc)?(s=ht.WithinContent,p(b,Ee.EndDoctypeTag)):(i.advanceUntilChar(hc),p(b,Ee.Doctype));case ht.WithinContent:if(i.advanceIfChar(zT)){if(!i.eos()&&i.peekChar()===xne){if(i.advanceIfChars([xne,tg,tg]))return s=ht.WithinComment,p(b,Ee.StartCommentTag);if(i.advanceIfRegExp(/^!doctype/i))return s=ht.WithinDoctype,p(b,Ee.StartDoctypeTag)}return i.advanceIfChar(NL)?(s=ht.AfterOpeningEndTag,p(b,Ee.EndTagOpen)):(s=ht.AfterOpeningStartTag,p(b,Ee.StartTagOpen))}return i.advanceUntilChar(zT),p(b,Ee.Content);case ht.AfterOpeningEndTag:return m().length>0?(s=ht.WithinEndTag,p(b,Ee.EndTag)):i.skipWhitespace()?p(b,Ee.Whitespace,ku.t("Tag name must directly follow the open bracket.")):(s=ht.WithinEndTag,i.advanceUntilChar(hc),b<i.pos()?p(b,Ee.Unknown,ku.t("End tag name expected.")):w());case ht.WithinEndTag:if(i.skipWhitespace())return p(b,Ee.Whitespace);if(i.advanceIfChar(hc))return s=ht.WithinContent,p(b,Ee.EndTagClose);if(r&&i.peekChar()===zT)return s=ht.WithinContent,p(b,Ee.EndTagClose,ku.t("Closing bracket missing."));_=ku.t("Closing bracket expected.");break;case ht.AfterOpeningStartTag:return u=m(),h=void 0,d=void 0,u.length>0?(c=!1,s=ht.WithinTag,p(b,Ee.StartTag)):i.skipWhitespace()?p(b,Ee.Whitespace,ku.t("Tag name must directly follow the open bracket.")):(s=ht.WithinTag,i.advanceUntilChar(hc),b<i.pos()?p(b,Ee.Unknown,ku.t("Start tag name expected.")):w());case ht.WithinTag:return i.skipWhitespace()?(c=!0,p(b,Ee.Whitespace)):c&&(d=y(),d.length>0)?(s=ht.AfterAttributeName,c=!1,p(b,Ee.AttributeName)):i.advanceIfChars([NL,hc])?(s=ht.WithinContent,p(b,Ee.StartTagSelfClose)):i.advanceIfChar(hc)?(u==="script"?h&&$5e[h]?s=ht.WithinContent:s=ht.WithinScriptContent:u==="style"?s=ht.WithinStyleContent:s=ht.WithinContent,p(b,Ee.StartTagClose)):r&&i.peekChar()===zT?(s=ht.WithinContent,p(b,Ee.StartTagClose,ku.t("Closing bracket missing."))):(i.advance(1),p(b,Ee.Unknown,ku.t("Unexpected character in tag.")));case ht.AfterAttributeName:return i.skipWhitespace()?(c=!0,p(b,Ee.Whitespace)):i.advanceIfChar(M5e)?(s=ht.BeforeAttributeValue,p(b,Ee.DelimiterAssign)):(s=ht.WithinTag,w());case ht.BeforeAttributeValue:if(i.skipWhitespace())return p(b,Ee.Whitespace);let A=i.advanceIfRegExp(/^[^\s"'`=<>]+/);if(A.length>0&&(i.peekChar()===hc&&i.peekChar(-1)===NL&&(i.goBack(1),A=A.substring(0,A.length-1)),d==="type"&&(h=A),A.length>0))return s=ht.WithinTag,c=!1,p(b,Ee.AttributeValue);let I=i.peekChar();return I===N5e||I===F5e?(i.advance(1),i.advanceUntilChar(I)&&i.advance(1),d==="type"&&(h=i.getSource().substring(b+1,i.pos()-1)),s=ht.WithinTag,c=!1,p(b,Ee.AttributeValue)):(s=ht.WithinTag,c=!1,w());case ht.WithinScriptContent:let k=1;for(;!i.eos();){let v=i.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(v.length===0)return i.goToEnd(),p(b,Ee.Script);if(v==="<!--")k===1&&(k=2);else if(v==="-->")k=1;else if(v[1]!=="/")k===2&&(k=3);else if(k===3)k=2;else{i.goBack(v.length);break}}return s=ht.WithinContent,b<i.pos()?p(b,Ee.Script):w();case ht.WithinStyleContent:return i.advanceUntilRegExp(/<\/style/i),s=ht.WithinContent,b<i.pos()?p(b,Ee.Styles):w()}return i.advance(1),s=ht.WithinContent,p(b,Ee.Unknown,_)}return{scan:S,getTokenType:()=>l,getTokenOffset:()=>o,getTokenLength:()=>i.pos()-o,getTokenEnd:()=>i.pos(),getTokenText:()=>i.getSource().substring(o,i.pos()),getScannerState:()=>s,getTokenError:()=>a}}var ku,LL,xne,tg,zT,hc,NL,M5e,F5e,N5e,L5e,q5e,z5e,W5e,j5e,$5e,Tu=_e(()=>{ku=Pr(Ei());Xs();LL=class{constructor(e,n){this.source=e,this.len=e.length,this.position=n}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){let n;if(this.position+e.length>this.source.length)return!1;for(n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceIfRegExp(e){let r=this.source.substr(this.position).match(e);return r?(this.position=this.position+r.index+r[0].length,r[0]):""}advanceUntilRegExp(e){let r=this.source.substr(this.position).match(e);return r?(this.position=this.position+r.index,r[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let n=0;for(;n<e.length&&this.source.charCodeAt(this.position+n)===e[n];n++);if(n===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(n=>n===W5e||n===j5e||n===L5e||n===z5e||n===q5e)>0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},xne="!".charCodeAt(0),tg="-".charCodeAt(0),zT="<".charCodeAt(0),hc=">".charCodeAt(0),NL="/".charCodeAt(0),M5e="=".charCodeAt(0),F5e='"'.charCodeAt(0),N5e="'".charCodeAt(0),L5e=`
|
|
226
226
|
`.charCodeAt(0),q5e="\r".charCodeAt(0),z5e="\f".charCodeAt(0),W5e=" ".charCodeAt(0),j5e=" ".charCodeAt(0),$5e={"text/x-handlebars-template":!0,"text/html":!0}});function qL(t,e){let n=0,r=t.length;if(r===0)return 0;for(;n<r;){let i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}return n}function Cne(t,e,n){let r=0,i=t.length-1;for(;r<=i;){let s=(r+i)/2|0,o=n(t[s],e);if(o<0)r=s+1;else if(o>0)i=s-1;else return s}return-(r+1)}var zL=_e(()=>{});var WT,jT,Ene=_e(()=>{Tu();zL();Xs();WT=class{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,n,r,i){this.start=e,this.end=n,this.children=r,this.parent=i,this.closed=!1}isSameTag(e){return this.tag===void 0?e===void 0:e!==void 0&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){let n=qL(this.children,r=>e<=r.start)-1;if(n>=0){let r=this.children[n];if(e>r.start){if(e<r.end)return r.findNodeBefore(e);let i=r.lastChild;return i&&i.end===r.end?r.findNodeBefore(e):r}}return this}findNodeAt(e){let n=qL(this.children,r=>e<=r.start)-1;if(n>=0){let r=this.children[n];if(e>r.start&&e<=r.end)return r.findNodeAt(e)}return this}},jT=class{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,n){let r=Hr(e,void 0,void 0,!0),i=new WT(0,e.length,[],void 0),s=i,o=-1,l,a=null,c=r.scan();for(;c!==Ee.EOS;){switch(c){case Ee.StartTagOpen:let u=new WT(r.getTokenOffset(),e.length,[],s);s.children.push(u),s=u;break;case Ee.StartTag:s.tag=r.getTokenText();break;case Ee.StartTagClose:s.parent&&(s.end=r.getTokenEnd(),r.getTokenLength()?(s.startTagEnd=r.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,n)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case Ee.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=r.getTokenEnd(),s.startTagEnd=r.getTokenEnd(),s=s.parent);break;case Ee.EndTagOpen:o=r.getTokenOffset(),l=void 0;break;case Ee.EndTag:l=r.getTokenText().toLowerCase();break;case Ee.EndTagClose:let d=s;for(;!d.isSameTag(l)&&d.parent;)d=d.parent;if(d.parent){for(;s!==d;)s.end=o,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=o,s.end=r.getTokenEnd(),s=s.parent}break;case Ee.AttributeName:{a=r.getTokenText();let h=s.attributes;h||(s.attributes=h={}),h[a]=null;break}case Ee.AttributeValue:{let h=r.getTokenText(),m=s.attributes;m&&a&&(m[a]=h,a=null);break}}c=r.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}}}});var If,WL=_e(()=>{If={"Aacute;":"\xC1",Aacute:"\xC1","aacute;":"\xE1",aacute:"\xE1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223E","acd;":"\u223F","acE;":"\u223E\u0333","Acirc;":"\xC2",Acirc:"\xC2","acirc;":"\xE2",acirc:"\xE2","acute;":"\xB4",acute:"\xB4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xC6",AElig:"\xC6","aelig;":"\xE6",aelig:"\xE6","af;":"\u2061","Afr;":"\u{1D504}","afr;":"\u{1D51E}","Agrave;":"\xC0",Agrave:"\xC0","agrave;":"\xE0",agrave:"\xE0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03B1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2A3F","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2A53","and;":"\u2227","andand;":"\u2A55","andd;":"\u2A5C","andslope;":"\u2A58","andv;":"\u2A5A","ang;":"\u2220","ange;":"\u29A4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29A8","angmsdab;":"\u29A9","angmsdac;":"\u29AA","angmsdad;":"\u29AB","angmsdae;":"\u29AC","angmsdaf;":"\u29AD","angmsdag;":"\u29AE","angmsdah;":"\u29AF","angrt;":"\u221F","angrtvb;":"\u22BE","angrtvbd;":"\u299D","angsph;":"\u2222","angst;":"\xC5","angzarr;":"\u237C","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\u{1D538}","aopf;":"\u{1D552}","ap;":"\u2248","apacir;":"\u2A6F","apE;":"\u2A70","ape;":"\u224A","apid;":"\u224B","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224A","Aring;":"\xC5",Aring:"\xC5","aring;":"\xE5",aring:"\xE5","Ascr;":"\u{1D49C}","ascr;":"\u{1D4B6}","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224D","Atilde;":"\xC3",Atilde:"\xC3","atilde;":"\xE3",atilde:"\xE3","Auml;":"\xC4",Auml:"\xC4","auml;":"\xE4",auml:"\xE4","awconint;":"\u2233","awint;":"\u2A11","backcong;":"\u224C","backepsilon;":"\u03F6","backprime;":"\u2035","backsim;":"\u223D","backsimeq;":"\u22CD","Backslash;":"\u2216","Barv;":"\u2AE7","barvee;":"\u22BD","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23B5","bbrktbrk;":"\u23B6","bcong;":"\u224C","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201E","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29B0","bepsi;":"\u03F6","bernou;":"\u212C","Bernoullis;":"\u212C","Beta;":"\u0392","beta;":"\u03B2","beth;":"\u2136","between;":"\u226C","Bfr;":"\u{1D505}","bfr;":"\u{1D51F}","bigcap;":"\u22C2","bigcirc;":"\u25EF","bigcup;":"\u22C3","bigodot;":"\u2A00","bigoplus;":"\u2A01","bigotimes;":"\u2A02","bigsqcup;":"\u2A06","bigstar;":"\u2605","bigtriangledown;":"\u25BD","bigtriangleup;":"\u25B3","biguplus;":"\u2A04","bigvee;":"\u22C1","bigwedge;":"\u22C0","bkarow;":"\u290D","blacklozenge;":"\u29EB","blacksquare;":"\u25AA","blacktriangle;":"\u25B4","blacktriangledown;":"\u25BE","blacktriangleleft;":"\u25C2","blacktriangleright;":"\u25B8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20E5","bnequiv;":"\u2261\u20E5","bNot;":"\u2AED","bnot;":"\u2310","Bopf;":"\u{1D539}","bopf;":"\u{1D553}","bot;":"\u22A5","bottom;":"\u22A5","bowtie;":"\u22C8","boxbox;":"\u29C9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250C","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252C","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229F","boxplus;":"\u229E","boxtimes;":"\u22A0","boxUL;":"\u255D","boxUl;":"\u255C","boxuL;":"\u255B","boxul;":"\u2518","boxUR;":"\u255A","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256C","boxVh;":"\u256B","boxvH;":"\u256A","boxvh;":"\u253C","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255F","boxvR;":"\u255E","boxvr;":"\u251C","bprime;":"\u2035","Breve;":"\u02D8","breve;":"\u02D8","brvbar;":"\xA6",brvbar:"\xA6","Bscr;":"\u212C","bscr;":"\u{1D4B7}","bsemi;":"\u204F","bsim;":"\u223D","bsime;":"\u22CD","bsol;":"\\","bsolb;":"\u29C5","bsolhsub;":"\u27C8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224E","bumpE;":"\u2AAE","bumpe;":"\u224F","Bumpeq;":"\u224E","bumpeq;":"\u224F","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22D2","cap;":"\u2229","capand;":"\u2A44","capbrcup;":"\u2A49","capcap;":"\u2A4B","capcup;":"\u2A47","capdot;":"\u2A40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\uFE00","caret;":"\u2041","caron;":"\u02C7","Cayleys;":"\u212D","ccaps;":"\u2A4D","Ccaron;":"\u010C","ccaron;":"\u010D","Ccedil;":"\xC7",Ccedil:"\xC7","ccedil;":"\xE7",ccedil:"\xE7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2A4C","ccupssm;":"\u2A50","Cdot;":"\u010A","cdot;":"\u010B","cedil;":"\xB8",cedil:"\xB8","Cedilla;":"\xB8","cemptyv;":"\u29B2","cent;":"\xA2",cent:"\xA2","CenterDot;":"\xB7","centerdot;":"\xB7","Cfr;":"\u212D","cfr;":"\u{1D520}","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03A7","chi;":"\u03C7","cir;":"\u25CB","circ;":"\u02C6","circeq;":"\u2257","circlearrowleft;":"\u21BA","circlearrowright;":"\u21BB","circledast;":"\u229B","circledcirc;":"\u229A","circleddash;":"\u229D","CircleDot;":"\u2299","circledR;":"\xAE","circledS;":"\u24C8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29C3","cire;":"\u2257","cirfnint;":"\u2A10","cirmid;":"\u2AEF","cirscir;":"\u29C2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201D","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2A74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2A6D","Congruent;":"\u2261","Conint;":"\u222F","conint;":"\u222E","ContourIntegral;":"\u222E","Copf;":"\u2102","copf;":"\u{1D554}","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xA9",COPY:"\xA9","copy;":"\xA9",copy:"\xA9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21B5","Cross;":"\u2A2F","cross;":"\u2717","Cscr;":"\u{1D49E}","cscr;":"\u{1D4B8}","csub;":"\u2ACF","csube;":"\u2AD1","csup;":"\u2AD0","csupe;":"\u2AD2","ctdot;":"\u22EF","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22DE","cuesc;":"\u22DF","cularr;":"\u21B6","cularrp;":"\u293D","Cup;":"\u22D3","cup;":"\u222A","cupbrcap;":"\u2A48","CupCap;":"\u224D","cupcap;":"\u2A46","cupcup;":"\u2A4A","cupdot;":"\u228D","cupor;":"\u2A45","cups;":"\u222A\uFE00","curarr;":"\u21B7","curarrm;":"\u293C","curlyeqprec;":"\u22DE","curlyeqsucc;":"\u22DF","curlyvee;":"\u22CE","curlywedge;":"\u22CF","curren;":"\xA4",curren:"\xA4","curvearrowleft;":"\u21B6","curvearrowright;":"\u21B7","cuvee;":"\u22CE","cuwed;":"\u22CF","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232D","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21A1","dArr;":"\u21D3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2AE4","dashv;":"\u22A3","dbkarow;":"\u290F","dblac;":"\u02DD","Dcaron;":"\u010E","dcaron;":"\u010F","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21CA","DDotrahd;":"\u2911","ddotseq;":"\u2A77","deg;":"\xB0",deg:"\xB0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03B4","demptyv;":"\u29B1","dfisht;":"\u297F","Dfr;":"\u{1D507}","dfr;":"\u{1D521}","dHar;":"\u2965","dharl;":"\u21C3","dharr;":"\u21C2","DiacriticalAcute;":"\xB4","DiacriticalDot;":"\u02D9","DiacriticalDoubleAcute;":"\u02DD","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02DC","diam;":"\u22C4","Diamond;":"\u22C4","diamond;":"\u22C4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xA8","DifferentialD;":"\u2146","digamma;":"\u03DD","disin;":"\u22F2","div;":"\xF7","divide;":"\xF7",divide:"\xF7","divideontimes;":"\u22C7","divonx;":"\u22C7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231E","dlcrop;":"\u230D","dollar;":"$","Dopf;":"\u{1D53B}","dopf;":"\u{1D555}","Dot;":"\xA8","dot;":"\u02D9","DotDot;":"\u20DC","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22A1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222F","DoubleDot;":"\xA8","DoubleDownArrow;":"\u21D3","DoubleLeftArrow;":"\u21D0","DoubleLeftRightArrow;":"\u21D4","DoubleLeftTee;":"\u2AE4","DoubleLongLeftArrow;":"\u27F8","DoubleLongLeftRightArrow;":"\u27FA","DoubleLongRightArrow;":"\u27F9","DoubleRightArrow;":"\u21D2","DoubleRightTee;":"\u22A8","DoubleUpArrow;":"\u21D1","DoubleUpDownArrow;":"\u21D5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21D3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21F5","DownBreve;":"\u0311","downdownarrows;":"\u21CA","downharpoonleft;":"\u21C3","downharpoonright;":"\u21C2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295E","DownLeftVector;":"\u21BD","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295F","DownRightVector;":"\u21C1","DownRightVectorBar;":"\u2957","DownTee;":"\u22A4","DownTeeArrow;":"\u21A7","drbkarow;":"\u2910","drcorn;":"\u231F","drcrop;":"\u230C","Dscr;":"\u{1D49F}","dscr;":"\u{1D4B9}","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29F6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22F1","dtri;":"\u25BF","dtrif;":"\u25BE","duarr;":"\u21F5","duhar;":"\u296F","dwangle;":"\u29A6","DZcy;":"\u040F","dzcy;":"\u045F","dzigrarr;":"\u27FF","Eacute;":"\xC9",Eacute:"\xC9","eacute;":"\xE9",eacute:"\xE9","easter;":"\u2A6E","Ecaron;":"\u011A","ecaron;":"\u011B","ecir;":"\u2256","Ecirc;":"\xCA",Ecirc:"\xCA","ecirc;":"\xEA",ecirc:"\xEA","ecolon;":"\u2255","Ecy;":"\u042D","ecy;":"\u044D","eDDot;":"\u2A77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\u{1D508}","efr;":"\u{1D522}","eg;":"\u2A9A","Egrave;":"\xC8",Egrave:"\xC8","egrave;":"\xE8",egrave:"\xE8","egs;":"\u2A96","egsdot;":"\u2A98","el;":"\u2A99","Element;":"\u2208","elinters;":"\u23E7","ell;":"\u2113","els;":"\u2A95","elsdot;":"\u2A97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25FB","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25AB","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014A","eng;":"\u014B","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\u{1D53C}","eopf;":"\u{1D556}","epar;":"\u22D5","eparsl;":"\u29E3","eplus;":"\u2A71","epsi;":"\u03B5","Epsilon;":"\u0395","epsilon;":"\u03B5","epsiv;":"\u03F5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2A96","eqslantless;":"\u2A95","Equal;":"\u2A75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225F","Equilibrium;":"\u21CC","equiv;":"\u2261","equivDD;":"\u2A78","eqvparsl;":"\u29E5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212F","esdot;":"\u2250","Esim;":"\u2A73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03B7","ETH;":"\xD0",ETH:"\xD0","eth;":"\xF0",eth:"\xF0","Euml;":"\xCB",Euml:"\xCB","euml;":"\xEB",euml:"\xEB","euro;":"\u20AC","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\uFB03","fflig;":"\uFB00","ffllig;":"\uFB04","Ffr;":"\u{1D509}","ffr;":"\u{1D523}","filig;":"\uFB01","FilledSmallSquare;":"\u25FC","FilledVerySmallSquare;":"\u25AA","fjlig;":"fj","flat;":"\u266D","fllig;":"\uFB02","fltns;":"\u25B1","fnof;":"\u0192","Fopf;":"\u{1D53D}","fopf;":"\u{1D557}","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22D4","forkv;":"\u2AD9","Fouriertrf;":"\u2131","fpartint;":"\u2A0D","frac12;":"\xBD",frac12:"\xBD","frac13;":"\u2153","frac14;":"\xBC",frac14:"\xBC","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215B","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xBE",frac34:"\xBE","frac35;":"\u2157","frac38;":"\u215C","frac45;":"\u2158","frac56;":"\u215A","frac58;":"\u215D","frac78;":"\u215E","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\u{1D4BB}","gacute;":"\u01F5","Gamma;":"\u0393","gamma;":"\u03B3","Gammad;":"\u03DC","gammad;":"\u03DD","gap;":"\u2A86","Gbreve;":"\u011E","gbreve;":"\u011F","Gcedil;":"\u0122","Gcirc;":"\u011C","gcirc;":"\u011D","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2A8C","gel;":"\u22DB","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2A7E","ges;":"\u2A7E","gescc;":"\u2AA9","gesdot;":"\u2A80","gesdoto;":"\u2A82","gesdotol;":"\u2A84","gesl;":"\u22DB\uFE00","gesles;":"\u2A94","Gfr;":"\u{1D50A}","gfr;":"\u{1D524}","Gg;":"\u22D9","gg;":"\u226B","ggg;":"\u22D9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2AA5","glE;":"\u2A92","glj;":"\u2AA4","gnap;":"\u2A8A","gnapprox;":"\u2A8A","gnE;":"\u2269","gne;":"\u2A88","gneq;":"\u2A88","gneqq;":"\u2269","gnsim;":"\u22E7","Gopf;":"\u{1D53E}","gopf;":"\u{1D558}","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22DB","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2AA2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2A7E","GreaterTilde;":"\u2273","Gscr;":"\u{1D4A2}","gscr;":"\u210A","gsim;":"\u2273","gsime;":"\u2A8E","gsiml;":"\u2A90","GT;":">",GT:">","Gt;":"\u226B","gt;":">",gt:">","gtcc;":"\u2AA7","gtcir;":"\u2A7A","gtdot;":"\u22D7","gtlPar;":"\u2995","gtquest;":"\u2A7C","gtrapprox;":"\u2A86","gtrarr;":"\u2978","gtrdot;":"\u22D7","gtreqless;":"\u22DB","gtreqqless;":"\u2A8C","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\uFE00","gvnE;":"\u2269\uFE00","Hacek;":"\u02C7","hairsp;":"\u200A","half;":"\xBD","hamilt;":"\u210B","HARDcy;":"\u042A","hardcy;":"\u044A","hArr;":"\u21D4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21AD","Hat;":"^","hbar;":"\u210F","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22B9","Hfr;":"\u210C","hfr;":"\u{1D525}","HilbertSpace;":"\u210B","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21FF","homtht;":"\u223B","hookleftarrow;":"\u21A9","hookrightarrow;":"\u21AA","Hopf;":"\u210D","hopf;":"\u{1D559}","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210B","hscr;":"\u{1D4BD}","hslash;":"\u210F","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224E","HumpEqual;":"\u224F","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xCD",Iacute:"\xCD","iacute;":"\xED",iacute:"\xED","ic;":"\u2063","Icirc;":"\xCE",Icirc:"\xCE","icirc;":"\xEE",icirc:"\xEE","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xA1",iexcl:"\xA1","iff;":"\u21D4","Ifr;":"\u2111","ifr;":"\u{1D526}","Igrave;":"\xCC",Igrave:"\xCC","igrave;":"\xEC",igrave:"\xEC","ii;":"\u2148","iiiint;":"\u2A0C","iiint;":"\u222D","iinfin;":"\u29DC","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012A","imacr;":"\u012B","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22B7","imped;":"\u01B5","Implies;":"\u21D2","in;":"\u2208","incare;":"\u2105","infin;":"\u221E","infintie;":"\u29DD","inodot;":"\u0131","Int;":"\u222C","int;":"\u222B","intcal;":"\u22BA","integers;":"\u2124","Integral;":"\u222B","intercal;":"\u22BA","Intersection;":"\u22C2","intlarhk;":"\u2A17","intprod;":"\u2A3C","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012E","iogon;":"\u012F","Iopf;":"\u{1D540}","iopf;":"\u{1D55A}","Iota;":"\u0399","iota;":"\u03B9","iprod;":"\u2A3C","iquest;":"\xBF",iquest:"\xBF","Iscr;":"\u2110","iscr;":"\u{1D4BE}","isin;":"\u2208","isindot;":"\u22F5","isinE;":"\u22F9","isins;":"\u22F4","isinsv;":"\u22F3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xCF",Iuml:"\xCF","iuml;":"\xEF",iuml:"\xEF","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\u{1D50D}","jfr;":"\u{1D527}","jmath;":"\u0237","Jopf;":"\u{1D541}","jopf;":"\u{1D55B}","Jscr;":"\u{1D4A5}","jscr;":"\u{1D4BF}","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039A","kappa;":"\u03BA","kappav;":"\u03F0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041A","kcy;":"\u043A","Kfr;":"\u{1D50E}","kfr;":"\u{1D528}","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040C","kjcy;":"\u045C","Kopf;":"\u{1D542}","kopf;":"\u{1D55C}","Kscr;":"\u{1D4A6}","kscr;":"\u{1D4C0}","lAarr;":"\u21DA","Lacute;":"\u0139","lacute;":"\u013A","laemptyv;":"\u29B4","lagran;":"\u2112","Lambda;":"\u039B","lambda;":"\u03BB","Lang;":"\u27EA","lang;":"\u27E8","langd;":"\u2991","langle;":"\u27E8","lap;":"\u2A85","Laplacetrf;":"\u2112","laquo;":"\xAB",laquo:"\xAB","Larr;":"\u219E","lArr;":"\u21D0","larr;":"\u2190","larrb;":"\u21E4","larrbfs;":"\u291F","larrfs;":"\u291D","larrhk;":"\u21A9","larrlp;":"\u21AB","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21A2","lat;":"\u2AAB","lAtail;":"\u291B","latail;":"\u2919","late;":"\u2AAD","lates;":"\u2AAD\uFE00","lBarr;":"\u290E","lbarr;":"\u290C","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298B","lbrksld;":"\u298F","lbrkslu;":"\u298D","Lcaron;":"\u013D","lcaron;":"\u013E","Lcedil;":"\u013B","lcedil;":"\u013C","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041B","lcy;":"\u043B","ldca;":"\u2936","ldquo;":"\u201C","ldquor;":"\u201E","ldrdhar;":"\u2967","ldrushar;":"\u294B","ldsh;":"\u21B2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27E8","LeftArrow;":"\u2190","Leftarrow;":"\u21D0","leftarrow;":"\u2190","LeftArrowBar;":"\u21E4","LeftArrowRightArrow;":"\u21C6","leftarrowtail;":"\u21A2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27E6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21C3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230A","leftharpoondown;":"\u21BD","leftharpoonup;":"\u21BC","leftleftarrows;":"\u21C7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21D4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21C6","leftrightharpoons;":"\u21CB","leftrightsquigarrow;":"\u21AD","LeftRightVector;":"\u294E","LeftTee;":"\u22A3","LeftTeeArrow;":"\u21A4","LeftTeeVector;":"\u295A","leftthreetimes;":"\u22CB","LeftTriangle;":"\u22B2","LeftTriangleBar;":"\u29CF","LeftTriangleEqual;":"\u22B4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21BF","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21BC","LeftVectorBar;":"\u2952","lEg;":"\u2A8B","leg;":"\u22DA","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2A7D","les;":"\u2A7D","lescc;":"\u2AA8","lesdot;":"\u2A7F","lesdoto;":"\u2A81","lesdotor;":"\u2A83","lesg;":"\u22DA\uFE00","lesges;":"\u2A93","lessapprox;":"\u2A85","lessdot;":"\u22D6","lesseqgtr;":"\u22DA","lesseqqgtr;":"\u2A8B","LessEqualGreater;":"\u22DA","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2AA1","lesssim;":"\u2272","LessSlantEqual;":"\u2A7D","LessTilde;":"\u2272","lfisht;":"\u297C","lfloor;":"\u230A","Lfr;":"\u{1D50F}","lfr;":"\u{1D529}","lg;":"\u2276","lgE;":"\u2A91","lHar;":"\u2962","lhard;":"\u21BD","lharu;":"\u21BC","lharul;":"\u296A","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22D8","ll;":"\u226A","llarr;":"\u21C7","llcorner;":"\u231E","Lleftarrow;":"\u21DA","llhard;":"\u296B","lltri;":"\u25FA","Lmidot;":"\u013F","lmidot;":"\u0140","lmoust;":"\u23B0","lmoustache;":"\u23B0","lnap;":"\u2A89","lnapprox;":"\u2A89","lnE;":"\u2268","lne;":"\u2A87","lneq;":"\u2A87","lneqq;":"\u2268","lnsim;":"\u22E6","loang;":"\u27EC","loarr;":"\u21FD","lobrk;":"\u27E6","LongLeftArrow;":"\u27F5","Longleftarrow;":"\u27F8","longleftarrow;":"\u27F5","LongLeftRightArrow;":"\u27F7","Longleftrightarrow;":"\u27FA","longleftrightarrow;":"\u27F7","longmapsto;":"\u27FC","LongRightArrow;":"\u27F6","Longrightarrow;":"\u27F9","longrightarrow;":"\u27F6","looparrowleft;":"\u21AB","looparrowright;":"\u21AC","lopar;":"\u2985","Lopf;":"\u{1D543}","lopf;":"\u{1D55D}","loplus;":"\u2A2D","lotimes;":"\u2A34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25CA","lozenge;":"\u25CA","lozf;":"\u29EB","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21C6","lrcorner;":"\u231F","lrhar;":"\u21CB","lrhard;":"\u296D","lrm;":"\u200E","lrtri;":"\u22BF","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\u{1D4C1}","Lsh;":"\u21B0","lsh;":"\u21B0","lsim;":"\u2272","lsime;":"\u2A8D","lsimg;":"\u2A8F","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201A","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226A","lt;":"<",lt:"<","ltcc;":"\u2AA6","ltcir;":"\u2A79","ltdot;":"\u22D6","lthree;":"\u22CB","ltimes;":"\u22C9","ltlarr;":"\u2976","ltquest;":"\u2A7B","ltri;":"\u25C3","ltrie;":"\u22B4","ltrif;":"\u25C2","ltrPar;":"\u2996","lurdshar;":"\u294A","luruhar;":"\u2966","lvertneqq;":"\u2268\uFE00","lvnE;":"\u2268\uFE00","macr;":"\xAF",macr:"\xAF","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21A6","mapsto;":"\u21A6","mapstodown;":"\u21A7","mapstoleft;":"\u21A4","mapstoup;":"\u21A5","marker;":"\u25AE","mcomma;":"\u2A29","Mcy;":"\u041C","mcy;":"\u043C","mdash;":"\u2014","mDDot;":"\u223A","measuredangle;":"\u2221","MediumSpace;":"\u205F","Mellintrf;":"\u2133","Mfr;":"\u{1D510}","mfr;":"\u{1D52A}","mho;":"\u2127","micro;":"\xB5",micro:"\xB5","mid;":"\u2223","midast;":"*","midcir;":"\u2AF0","middot;":"\xB7",middot:"\xB7","minus;":"\u2212","minusb;":"\u229F","minusd;":"\u2238","minusdu;":"\u2A2A","MinusPlus;":"\u2213","mlcp;":"\u2ADB","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22A7","Mopf;":"\u{1D544}","mopf;":"\u{1D55E}","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\u{1D4C2}","mstpos;":"\u223E","Mu;":"\u039C","mu;":"\u03BC","multimap;":"\u22B8","mumap;":"\u22B8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20D2","nap;":"\u2249","napE;":"\u2A70\u0338","napid;":"\u224B\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266E","natural;":"\u266E","naturals;":"\u2115","nbsp;":"\xA0",nbsp:"\xA0","nbump;":"\u224E\u0338","nbumpe;":"\u224F\u0338","ncap;":"\u2A43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2A6D\u0338","ncup;":"\u2A42","Ncy;":"\u041D","ncy;":"\u043D","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21D7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200B","NegativeThickSpace;":"\u200B","NegativeThinSpace;":"\u200B","NegativeVeryThinSpace;":"\u200B","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226B","NestedLessLess;":"\u226A","NewLine;":`
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"color": "#17191E",
|
|
25
25
|
"theme": "dark"
|
|
26
26
|
},
|
|
27
|
-
"version": "2.14.
|
|
27
|
+
"version": "2.14.2",
|
|
28
28
|
"author": "withastro",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"publisher": "astro-build",
|
|
@@ -217,20 +217,21 @@
|
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
"scopeName": "
|
|
220
|
+
"scopeName": "source.mdx.astro",
|
|
221
221
|
"path": "./syntaxes/mdx.astro.tmLanguage.json",
|
|
222
222
|
"injectTo": [
|
|
223
223
|
"source.mdx"
|
|
224
224
|
],
|
|
225
225
|
"embeddedLanguages": {
|
|
226
|
-
"mdx.embedded.astro": "astro"
|
|
226
|
+
"mdx.embedded.astro": "astro",
|
|
227
|
+
"mdx.embedded.astro.frontmatter": "typescriptreact"
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
230
|
]
|
|
230
231
|
},
|
|
231
232
|
"devDependencies": {
|
|
232
|
-
"@astrojs/language-server": "^2.14.
|
|
233
|
-
"@astrojs/ts-plugin": "^1.10.
|
|
233
|
+
"@astrojs/language-server": "^2.14.2",
|
|
234
|
+
"@astrojs/ts-plugin": "^1.10.2",
|
|
234
235
|
"@types/glob": "^8.1.0",
|
|
235
236
|
"@types/mocha": "^10.0.1",
|
|
236
237
|
"@types/node": "^18.17.8",
|
|
@@ -1,84 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"scopeName": "text.mdx.astro.codeblock",
|
|
2
|
+
"scopeName": "source.mdx.astro",
|
|
4
3
|
"injectionSelector": "L:source.mdx",
|
|
5
4
|
"patterns": [
|
|
6
5
|
{
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "entity.name.function.mdx"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"contentName": "meta.embedded.astro",
|
|
17
|
-
"end": "(\\1)(?:[\\t ]*$)",
|
|
18
|
-
"endCaptures": {
|
|
19
|
-
"1": {
|
|
20
|
-
"name": "string.other.end.code.fenced.mdx"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"name": "markup.code.astro.mdx",
|
|
24
|
-
"patterns": [
|
|
25
|
-
{
|
|
26
|
-
"include": "#astro-code-block"
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"begin": "(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?astro))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)",
|
|
6
|
+
"include": "#mdx_fenced_code_block_astro"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"mdx_fenced_code_block_astro": {
|
|
11
|
+
"begin": "(?:^|\\G)[\\t ]*([`~]{3,})(?:[\\t ]*((?:astro|(?:.*\\.)?(?:astro)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)",
|
|
32
12
|
"beginCaptures": {
|
|
33
13
|
"1": {
|
|
34
|
-
"name": "
|
|
14
|
+
"name": "punctuation.definition.markdown"
|
|
35
15
|
},
|
|
36
16
|
"2": {
|
|
37
|
-
"name": "entity.name.function.
|
|
17
|
+
"name": "entity.name.function.markdown"
|
|
38
18
|
}
|
|
39
19
|
},
|
|
40
|
-
"
|
|
41
|
-
"end": "(\\1)(?:[\\t ]*$)",
|
|
20
|
+
"end": "(^\\1)\\s*$",
|
|
42
21
|
"endCaptures": {
|
|
43
|
-
"
|
|
44
|
-
"name": "
|
|
22
|
+
"3": {
|
|
23
|
+
"name": "punctuation.definition.markdown"
|
|
45
24
|
}
|
|
46
25
|
},
|
|
47
26
|
"name": "markup.code.astro.mdx",
|
|
48
27
|
"patterns": [
|
|
49
28
|
{
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"repository": {
|
|
56
|
-
"astro-code-block": {
|
|
57
|
-
"patterns": [
|
|
58
|
-
{
|
|
59
|
-
"begin": "^\\s*---\\s*$",
|
|
60
|
-
"end": "^\\s*---\\s*$",
|
|
61
|
-
"beginCaptures": {
|
|
62
|
-
"0": {
|
|
63
|
-
"name": "punctuation.definition.tag.xi.begin.t"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"endCaptures": {
|
|
67
|
-
"0": {
|
|
68
|
-
"name": "punctuation.definition.tag.xi.end.t"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"contentName": "meta.embedded.block.astro.frontmatter",
|
|
29
|
+
"begin": "(^|\\G)(\\s*)(.*)",
|
|
30
|
+
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
|
|
72
31
|
"patterns": [
|
|
73
32
|
{
|
|
74
|
-
"
|
|
33
|
+
"begin": "^\\s*---\\s*$",
|
|
34
|
+
"end": "^\\s*---\\s*$",
|
|
35
|
+
"beginCaptures": {
|
|
36
|
+
"0": {
|
|
37
|
+
"name": "punctuation.definition.tag.xi.begin.t"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"endCaptures": {
|
|
41
|
+
"0": {
|
|
42
|
+
"name": "punctuation.definition.tag.xi.end.t"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"contentName": "mdx.embedded.astro.frontmatter",
|
|
46
|
+
"patterns": [
|
|
47
|
+
{
|
|
48
|
+
"include": "source.tsx"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"contentName": "mdx.embedded.astro",
|
|
54
|
+
"include": "source.astro"
|
|
75
55
|
}
|
|
76
56
|
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"include": "source.astro"
|
|
80
57
|
}
|
|
81
58
|
]
|
|
82
59
|
}
|
|
83
60
|
}
|
|
84
|
-
}
|
|
61
|
+
}
|