????

Your IP : 18.189.184.99


Current Path : C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/api/node/
Upload File :
Current File : C:/Program Files/Azure Data Studio/resources/app/out/vs/workbench/api/node/extensionHostProcess.js

/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(function(){var ye=["exports","require","vs/base/common/uri","vs/workbench/api/common/extHost.protocol","vs/base/common/event","vs/base/common/lifecycle","vs/platform/instantiation/common/instantiation","vs/workbench/api/common/extHostTypes","vs/base/common/errors","vs/nls","vs/nls!vs/workbench/api/node/extensionHostProcess","vs/workbench/api/common/extHostTypeConverters","vs/platform/log/common/log","vs/base/common/async","vs/base/common/platform","vs/base/common/network","vs/base/common/strings","vs/base/common/path","vs/base/common/types","vs/base/common/arrays","vs/workbench/api/common/extHostRpcService","vs/base/common/buffer","vs/base/common/cancellation","vs/platform/extensions/common/extensions","vs/base/common/objects","vs/base/common/resources","vs/workbench/api/common/extHostInitDataService","vs/workbench/services/extensions/common/extensions","vs/base/common/map","vs/base/common/uuid","vs/platform/files/common/files","vs/base/node/pfs","vs/workbench/api/common/extHostCommands","vs/base/common/extpath","vs/base/common/glob","vs/workbench/services/search/common/search","vs/base/common/stopwatch","vs/editor/common/core/range","vs/platform/registry/common/platform","vs/workbench/api/common/extHostExtensionService","sql/workbench/api/common/sqlExtHost.protocol","vs/base/common/collections","vs/base/common/assert","vs/base/common/severity","vs/base/common/process","vs/platform/contextkey/common/contextkey","sql/workbench/api/common/sqlExtHostTypes","vs/base/common/errorMessage","vs/workbench/api/common/extHostTerminalService","vs/workbench/api/common/extHostWorkspace","vs/workbench/api/common/extHostConfiguration","vs/base/common/iterator","fs","vs/platform/configuration/common/configuration","vs/platform/workspace/common/workspace","vs/workbench/api/common/extHostFileSystemInfo","vs/workbench/api/common/extHostUriTransformerService","vs/base/common/lazy","vs/base/common/themables","vs/editor/common/core/position","os","vs/platform/remote/common/remoteHosts","vs/base/common/performance","vs/workbench/contrib/testing/common/testId","vs/workbench/services/extensions/common/proxyIdentifier","vs/workbench/api/common/extHostDocumentsAndEditors","vs/workbench/api/common/extHostFileSystemConsumer","vs/workbench/api/common/extHostTunnelService","vs/base/common/decorators","vs/base/common/functional","vs/base/common/linkedList","vs/base/common/normalization","vs/base/common/hash","vs/base/common/ternarySearchTree","vs/base/common/codicons","net","vs/base/common/marshalling","vs/base/common/htmlContent","vs/base/parts/ipc/common/ipc","vs/base/parts/ipc/common/ipc.net","child_process","vs/editor/common/languages","vs/platform/files/common/watcher","vs/platform/progress/common/progress","vs/platform/remote/common/remoteAuthorityResolver","vs/platform/telemetry/common/telemetryUtils","vs/workbench/api/common/cache","vs/workbench/contrib/testing/common/testTypes","vs/workbench/api/common/extHostTelemetry","vs/workbench/api/common/extHostApiDeprecationService","vs/workbench/api/common/extHostStoragePaths","vs/workbench/api/common/extHostWebview","vs/workbench/services/search/common/searchExtTypes","vs/workbench/api/common/extHostTask","vs/workbench/api/common/extHostVariableResolverService","vs/workbench/api/common/extHostSearch","vs/base/common/stream","vs/base/common/mime","vs/base/node/extpath","vs/platform/instantiation/common/descriptors","vs/platform/instantiation/common/extensions","vs/platform/instantiation/common/serviceCollection","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/platform/sign/common/sign","vs/platform/tunnel/common/tunnel","vs/workbench/contrib/notebook/common/notebookCommon","vs/workbench/contrib/testing/common/testItemCollection","vs/workbench/contrib/webview/common/webview","vs/workbench/services/extensions/common/extensionHostProtocol","vs/workbench/api/common/extHostEditorTabs","vs/workbench/api/common/extHostLocalizationService","vs/workbench/api/common/extHostManagedSockets","vs/workbench/api/common/extHostSecretState","vs/workbench/api/common/extHostStorage","vs/workbench/services/search/node/ripgrepSearchUtils","vs/base/parts/ipc/node/ipc.net","sql/platform/connection/common/constants","vs/base/common/idGenerator","vs/base/common/numbers","vs/base/common/filters","vs/base/common/uint","vs/editor/common/core/characterClassifier","vs/editor/common/core/wordHelper","vs/editor/common/model","vs/base/common/comparers","vs/base/common/fuzzyScorer","vs/base/common/processes","vs/base/common/labels","vs/base/common/uriIpc","vs/base/node/processes","vs/editor/common/services/semanticTokensDto","vs/editor/common/config/editorOptions","vs/platform/extensionManagement/common/extensionManagement","vs/platform/markers/common/markers","vs/platform/opener/common/opener","vs/platform/product/common/product","vs/platform/product/common/productService","vs/platform/configuration/common/configurationRegistry","vs/platform/extensionManagement/common/implicitActivationEvents","vs/workbench/common/editor","vs/workbench/api/common/extHostDocumentData","vs/workbench/api/common/extHostTestingPrivateApi","vs/workbench/services/editor/common/editorGroupsService","vs/workbench/api/common/extHostNotebookEditor","vs/workbench/api/common/extHostTestItem","vs/workbench/api/common/extHostTextEditor","vs/workbench/services/extensions/common/extensionDescriptionRegistry","vs/workbench/api/common/extHostTreeViews","vs/workbench/api/common/extHostDecorations","vs/workbench/api/common/extHostLoggerService","vs/workbench/api/common/extHostWindow","vs/workbench/api/common/extHostOutput","vs/workbench/services/search/common/textSearchManager","vs/workbench/services/search/node/textSearchManager","vs/workbench/services/search/node/ripgrepTextSearchEngine","sql/base/common/map","sql/workbench/common/views","vs/base/common/amd","vs/base/common/json","vs/base/common/marked/marked","sql/workbench/api/common/extHostDashboard","vs/base/common/cache","vs/base/common/symbols","vs/base/common/iconLabels","vs/base/common/dataTransfer","vs/base/node/ports","vs/editor/common/core/editOperation","vs/editor/common/core/selection","vs/editor/common/core/textModelDefaults","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/languages/languageConfiguration","vs/editor/common/languages/linkComputer","vs/editor/common/model/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/editor/common/model/textModelSearch","vs/editor/common/services/treeViewsDnd","vs/editor/common/tokenizationRegistry","vs/nls!sql/base/common/locConstants","sql/base/common/locConstants","vs/nls!sql/workbench/api/common/extHostModelView","vs/nls!sql/workbench/api/common/extHostModelViewDialog","vs/nls!sql/workbench/api/common/extHostModelViewTree","vs/nls!sql/workbench/api/common/extHostNotebook","vs/nls!sql/workbench/api/common/extHostNotebookDocumentsAndEditors","vs/nls!sql/workbench/common/constants","vs/nls!vs/base/common/actions","vs/base/common/actions","vs/nls!vs/base/common/date","vs/base/common/date","vs/nls!vs/base/common/errorMessage","vs/nls!vs/base/common/platform","vs/base/common/console","vs/amdX","vs/base/parts/ipc/node/ipc.cp","vs/editor/common/languageSelector","vs/nls!vs/editor/common/config/editorOptions","vs/nls!vs/editor/common/languages","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/contextkey/common/contextkey","vs/nls!vs/platform/contextkey/common/scanner","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/extensions/common/extensionValidator","vs/nls!vs/platform/files/common/files","vs/nls!vs/platform/files/common/io","vs/nls!vs/platform/files/node/diskFileSystemProvider","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/theme/common/iconRegistry","vs/nls!vs/platform/workspace/common/workspace","vs/nls!vs/workbench/api/common/extHostChat","vs/nls!vs/workbench/api/common/extHostDiagnostics","vs/nls!vs/workbench/api/common/extHostExtensionService","vs/nls!vs/workbench/api/common/extHostLanguageFeatures","vs/nls!vs/workbench/api/common/extHostLogService","vs/nls!vs/workbench/api/common/extHostNotebook","vs/nls!vs/workbench/api/common/extHostProgress","vs/nls!vs/workbench/api/common/extHostStatusBar","vs/nls!vs/workbench/api/common/extHostTelemetry","vs/nls!vs/workbench/api/common/extHostTerminalService","vs/nls!vs/workbench/api/common/extHostTreeViews","vs/nls!vs/workbench/api/common/extHostTunnelService","vs/nls!vs/workbench/api/common/extHostWorkspace","vs/nls!vs/workbench/common/editor","vs/nls!vs/workbench/common/views","vs/nls!vs/workbench/contrib/debug/common/debug","vs/nls!vs/workbench/contrib/tasks/common/taskDefinitionRegistry","vs/nls!vs/workbench/contrib/tasks/common/tasks","vs/nls!vs/workbench/services/configurationResolver/common/variableResolver","vs/nls!vs/workbench/services/extensions/common/extensionsRegistry","vs/nls!vs/workbench/services/search/common/queryBuilder","vs/platform/contextkey/common/scanner","vs/platform/extensions/common/extensionValidator","vs/platform/instantiation/common/graph","sql/workbench/common/constants","vs/platform/environment/common/environment","vs/platform/files/common/io","vs/platform/files/node/watcher/nodejs/nodejsWatcherLib","vs/platform/files/node/watcher/nodejs/nodejsWatcher","vs/platform/files/node/watcher/nodejs/nodejsClient","vs/platform/files/node/watcher/watcherClient","vs/platform/instantiation/common/instantiationService","vs/platform/files/common/diskFileSystemProvider","vs/platform/files/node/diskFileSystemProvider","vs/platform/log/common/logService","vs/platform/log/node/spdlogLog","vs/platform/notification/common/notification","sql/platform/notebooks/common/outputRegistry","vs/platform/configuration/common/configurationModels","vs/platform/remote/common/managedSocket","vs/platform/remote/common/remoteAgentConnection","vs/platform/remote/common/remoteSocketFactoryService","vs/platform/sign/common/abstractSignService","vs/platform/sign/node/signService","vs/platform/telemetry/common/commonProperties","vs/platform/telemetry/common/telemetry","vs/platform/extensionManagement/common/extensionManagementUtil","vs/platform/terminal/common/environmentVariableShared","vs/platform/terminal/common/terminalDataBuffering","vs/platform/theme/common/iconRegistry","vs/platform/workspace/common/editSessions","vs/platform/workspace/common/virtualWorkspace","vs/workbench/api/common/extHostLogService","vs/workbench/api/common/extHostMemento","vs/workbench/api/common/extHostNotebookDocuments","vs/workbench/api/common/extHostSecrets","vs/workbench/api/common/extHostWebviewMessaging","vs/workbench/api/node/proxyResolver","http","vs/workbench/api/node/uriTransformer","vs/workbench/common/views","vs/workbench/contrib/debug/common/debug","sql/workbench/api/common/extHostNotebookDocumentData","sql/workbench/api/common/extHostNotebookEditor","vs/workbench/api/common/extHostTheming","vs/workbench/contrib/notebook/common/notebookExecutionService","vs/workbench/api/common/extHostCodeInsets","vs/workbench/services/configurationResolver/common/configurationResolver","vs/workbench/services/configurationResolver/common/variableResolver","vs/workbench/services/editor/common/editorService","sql/workbench/api/common/sqlExtHostTypeConverters","vs/workbench/api/common/extHostDocumentSaveParticipant","vs/workbench/api/common/extHostNotebookDocument","vs/workbench/api/common/extHostNotebookDocumentSaveParticipant","vs/workbench/api/common/extHostNotebookEditors","vs/workbench/api/common/extHostProgress","vs/workbench/services/environment/common/environmentService","vs/workbench/services/extensions/common/extensionHostEnv","sql/workbench/api/common/extHostRequireInterceptor","vs/workbench/api/common/extHostExtensionActivator","vs/workbench/services/extensions/common/extensionsApiProposals","vs/workbench/services/extensions/common/extensionsRegistry","vs/workbench/contrib/tasks/common/taskDefinitionRegistry","vs/workbench/contrib/tasks/common/tasks","vs/workbench/services/extensions/common/lazyPromise","sql/workbench/api/common/extHostAccountManagement","sql/workbench/api/common/extHostBackgroundTaskManagement","sql/workbench/api/common/extHostConnectionManagement","sql/workbench/api/common/extHostCredentialManagement","sql/workbench/api/common/extHostDashboardWebview","sql/workbench/api/common/extHostDataProtocol","sql/workbench/api/common/extHostErrorDiagnostics","sql/workbench/api/common/extHostExtensionManagement","sql/workbench/api/common/extHostModalDialog","sql/workbench/api/common/extHostModelView","sql/workbench/api/common/extHostModelViewDialog","sql/workbench/api/common/extHostModelViewTree","sql/workbench/api/common/extHostNotebook","sql/workbench/api/common/extHostNotebookDocumentsAndEditors","sql/workbench/api/common/extHostObjectExplorer","sql/workbench/api/common/extHostQueryEditor","sql/workbench/api/common/extHostResourceProvider","sql/workbench/api/common/extHostTasks","sql/workbench/api/common/extHostWindow","sql/workbench/api/common/extHostWorkspace","vs/workbench/api/common/extHostAiRelatedInformation","vs/workbench/api/common/extHostAuthentication","vs/workbench/api/common/extHostBulkEdits","vs/workbench/api/common/extHostChat","vs/workbench/api/common/extHostChatProvider","vs/workbench/api/common/extHostChatSlashCommand","vs/workbench/api/common/extHostChatVariables","vs/workbench/api/common/extHostClipboard","vs/workbench/api/common/extHostApiCommands","vs/workbench/api/common/extHostComments","vs/workbench/api/common/extHostConsoleForwarder","vs/workbench/api/common/extHostDiagnostics","vs/workbench/api/common/extHostDialogs","vs/workbench/api/common/extHostDocumentContentProviders","vs/workbench/api/common/extHostDocuments","vs/workbench/api/common/extHostEmbeddingVector","vs/workbench/api/common/extHostFileSystem","vs/workbench/api/common/extHostFileSystemEventService","vs/workbench/api/common/extHostInlineChat","vs/workbench/api/common/extHostIssueReporter","vs/workbench/api/common/extHostLabelService","vs/workbench/api/common/extHostLanguageFeatures","vs/workbench/api/common/extHostLanguages","vs/workbench/api/common/extHostMessageService","vs/workbench/api/common/extHostNotebook","vs/workbench/api/common/extHostNotebookKernels","vs/workbench/api/common/extHostNotebookRenderers","vs/workbench/api/common/extHostProfileContentHandler","vs/workbench/api/common/extHostQuickDiff","vs/workbench/api/common/extHostQuickOpen","vs/workbench/api/common/extHostSCM","vs/workbench/api/common/extHostShare","vs/workbench/api/common/extHostStatusBar","vs/workbench/api/common/extHostTesting","vs/workbench/api/common/extHostTextEditors","vs/workbench/api/common/extHostTimeline","vs/workbench/api/common/extHostUriOpener","vs/workbench/api/common/extHostUrls","vs/workbench/api/common/extHostCustomEditors","vs/workbench/api/common/extHostWebviewPanels","vs/workbench/api/common/extHostWebviewView","vs/workbench/api/node/extHostConsoleForwarder","vs/workbench/api/node/extHostDiskFileSystemProvider","vs/workbench/api/node/extHostDownloadService","vs/workbench/api/node/extHostLoggerService","vs/workbench/api/node/extHostStoragePaths","vs/workbench/api/node/extHostTerminalService","vs/workbench/services/extensions/common/rpcProtocol","vs/workbench/services/output/common/output","vs/workbench/services/remote/common/remoteAgentService","vs/workbench/services/path/common/pathService","vs/workbench/services/search/common/fileSearchManager","vs/workbench/services/search/common/queryBuilder","vs/workbench/services/extensions/common/workspaceContains","sql/workbench/api/common/extHostAzureAccount","sql/workbench/api/common/extHostAzureBlob","vs/workbench/api/common/extHostRequireInterceptor","vs/workbench/api/common/extensionHostMain","vs/workbench/api/node/extHostTask","vs/workbench/api/node/extHostVariableResolverService","vs/workbench/api/common/extHost.api.impl","sql/workbench/api/common/sqlExtHost.api.impl","vs/workbench/api/common/extHost.common.services","vs/workbench/services/search/node/ripgrepFileSearch","@vscode/ripgrep","vs/workbench/services/search/node/fileSearch","string_decoder","vs/workbench/services/textfile/common/encoding","vs/workbench/services/search/node/ripgrepSearchProvider","vs/workbench/services/search/node/textSearchAdapter","vs/workbench/services/search/node/rawSearchService","vs/workbench/api/node/extHostSearch","vs/platform/tunnel/node/tunnelService","vs/workbench/api/node/extHostCLIServer","vs/workbench/api/node/extHostExtensionService","vs/workbench/api/node/extHostTunnelService","vs/workbench/api/node/extHost.node.services","util","vs/base/common/semver/semver","graceful-fs","https","tls","@vscode/proxy-agent","events","vscode-regexpp","crypto","zlib","vs/workbench/api/node/extensionHostProcess","minimist"],Ce=function(ge){for(var e=[],w=0,M=ge.length;w<M;w++)e[w]=ye[ge[w]];return e};define(ye[155],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializableToMap=e.mapToSerializable=e.ReverseLookUpMap=e.toObject=void 0;function w(R){if(R){let u=Object.create(null);return R.forEach((p,f)=>{u[f]=p}),u}return{}}e.toObject=w;class M{constructor(){this.forward=new Map,this.reverse=new Map}clear(){this.forward.clear(),this.reverse.clear()}delete(u){const p=this.forward.get(u);return u&&p?this.forward.delete(u)&&this.reverse.delete(p):!1}forEach(u,p){this.forward.forEach(u,p)}get(u){return this.forward.get(u)}reverseGet(u){return this.reverse.get(u)}has(u){return this.forward.has(u)}reverseHas(u){return this.reverse.has(u)}set(u,p){return this.forward.set(u,p),this.reverse.set(p,u),this}get size(){return this.forward.size}}e.ReverseLookUpMap=M;function d(R){const u=[];return R.forEach((p,f)=>{u.push([f,p])}),u}e.mapToSerializable=d;function A(R){const u=new Map;for(const[p,f]of R)u.set(p,f);return u}e.serializableToMap=A}),define(ye[116],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gen3Version=e.sqlDataWarehouse=e.UNSAVED_GROUP_ID=e.cmsProviderName=e.Actions=e.AuthenticationType=e.trustServerCertificate=e.defaultAuthenticationType=e.enableSqlAuthenticationProviderConfig=e.passwordChars=e.defaultEngine=e.mssqlApplicationNameOption=e.applicationName=e.connectionProviderContextKey=e.anyProviderName=e.pgsqlProviderName=e.mysqlProviderName=e.mssqlCmsProviderName=e.mssqlProviderName=e.capabilitiesOptions=e.outputChannelName=e.sqlConfigSectionName=void 0,e.sqlConfigSectionName="sql",e.outputChannelName="MSSQL",e.capabilitiesOptions="OPTIONS_METADATA",e.mssqlProviderName="MSSQL",e.mssqlCmsProviderName="MSSQL-CMS",e.mysqlProviderName="MYSQL",e.pgsqlProviderName="PGSQL",e.anyProviderName="*",e.connectionProviderContextKey="connectionProvider",e.applicationName="azdata",e.mssqlApplicationNameOption="applicationName",e.defaultEngine="defaultEngine",e.passwordChars="***************",e.enableSqlAuthenticationProviderConfig="mssql.enableSqlAuthenticationProvider",e.defaultAuthenticationType="defaultAuthenticationType",e.trustServerCertificate="trustServerCertificate";var w;(function(d){d.SqlLogin="SqlLogin",d.Integrated="Integrated",d.AzureMFA="AzureMFA",d.AzureMFAAndUser="AzureMFAAndUser",d.DSTSAuth="dstsAuth",d.None="None"})(w||(e.AuthenticationType=w={}));var M;(function(d){d.Show="show",d.Hide="hide"})(M||(e.Actions=M={})),e.cmsProviderName="MSSQL-CMS",e.UNSAVED_GROUP_ID="unsaved",e.sqlDataWarehouse="Azure SQL Data Warehouse",e.gen3Version=12}),define(ye[40],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostCredentialManagementShape=e.ExtHostErrorDiagnosticsShape=e.ExtHostResourceProviderShape=e.ExtHostDataProtocolShape=e.ExtHostConnectionManagementShape=e.ExtHostAccountManagementShape=e.ExtHostAzureAccountShape=e.ExtHostAzureBlobShape=void 0;class w{$createSas(t,s,g,C,r){throw y()}}e.ExtHostAzureBlobShape=w;class M{$getSubscriptions(t,s,g){throw y()}$getStorageAccounts(t,s,g){throw y()}$getBlobContainers(t,s,g,C){throw y()}$getBlobs(t,s,g,C,r){throw y()}$getStorageAccountAccessKey(t,s,g,C){throw y()}}e.ExtHostAzureAccountShape=M;class d{$autoOAuthCancelled(t){throw y()}$clear(t,s){throw y()}$getSecurityToken(t,s){throw y()}$getAccountSecurityToken(t,s,g){throw y()}$initialize(t,s){throw y()}$prompt(t){throw y()}$refresh(t,s){throw y()}$accountsChanged(t,s){throw y()}$clearTokenCache(){throw y()}}e.ExtHostAccountManagementShape=d;class A{$onConnectionEvent(t,s,g,C){throw y()}}e.ExtHostConnectionManagementShape=A;class R{$connect(t,s,g){throw y()}$disconnect(t,s){throw y()}$changePassword(t,s,g,C){throw y()}$cancelConnect(t,s){throw y()}$changeDatabase(t,s,g){throw y()}$listDatabases(t,s){throw y()}$getConnectionString(t,s,g){throw y()}$buildConnectionInfo(t,s){throw y()}$languageFlavorChanged(t){throw y()}$onConnectComplete(t,s){throw y()}$onIntelliSenseCacheComplete(t,s){throw y()}$getServerCapabilities(t,s){throw y()}$getConnectionIconId(t,s,g){throw y()}$getMetadata(t,s){throw y()}$getDatabases(t,s){throw y()}$getTableInfo(t,s,g){throw y()}$getViewInfo(t,s,g){throw y()}$createObjectExplorerSession(t,s){throw y()}$expandObjectExplorerNode(t,s){throw y()}$refreshObjectExplorerNode(t,s){throw y()}$closeObjectExplorerSession(t,s){throw y()}$findNodes(t,s){throw y()}$createObjectExplorerNodeProviderSession(t,s){throw y()}$handleSessionClose(t,s){throw y()}$getAllTasks(t,s){throw y()}$cancelTask(t,s){throw y()}$scriptAsOperation(t,s,g,C,r){throw y()}$cancelQuery(t,s){throw y()}$runQuery(t,s,g,C){throw y()}$runQueryStatement(t,s,g,C){throw y()}$runQueryString(t,s,g){throw y()}$runQueryAndReturn(t,s,g){throw y()}$parseSyntax(t,s,g){throw y()}$getQueryRows(t,s){throw y()}$setQueryExecutionOptions(t,s,g){throw y()}$connectWithProfile(t,s,g){throw y()}$disposeQuery(t,s){throw y()}$connectionUriChanged(t,s,g){throw y()}$rebuildIntelliSenseCache(t,s){throw y()}$onQueryComplete(t,s){throw y()}$onBatchStart(t,s){throw y()}$onBatchComplete(t,s){throw y()}$onResultSetAvailable(t,s){throw y()}$onResultSetUpdate(t,s){throw y()}$onQueryMessage(t){throw y()}$saveResults(t,s){throw y()}$copyResults(t,s){throw y()}$commitEdit(t,s){throw y()}$createRow(t,s){throw y()}$deleteRow(t,s,g){throw y()}$initializeEdit(t,s,g,C,r,h,o){throw y()}$revertCell(t,s,g,C){throw y()}$revertRow(t,s,g){throw y()}$updateCell(t,s,g,C,r){throw y()}$getEditRows(t,s){throw y()}$disposeEdit(t,s){throw y()}$createDatabase(t,s,g){throw y()}$getDefaultDatabaseInfo(t,s){throw y()}$getDatabaseInfo(t,s){throw y()}$createLogin(t,s,g){throw y()}$backup(t,s,g,C){throw y()}$getBackupConfigInfo(t,s){throw y()}$restore(t,s,g){throw y()}$getRestorePlan(t,s,g){throw y()}$cancelRestorePlan(t,s,g){throw y()}$getRestoreConfigInfo(t,s){throw y()}$openFileBrowser(t,s,g,C,r,h){throw y()}$expandFolderNode(t,s,g){throw y()}$validateFilePaths(t,s,g,C){throw y()}$closeFileBrowser(t,s){throw y()}$createSession(t,s,g,C){throw y()}$startSession(t,s,g,C){throw y()}$stopSession(t,s){throw y()}$pauseSession(t,s){throw y()}$getXEventSessions(t,s){throw y()}$disconnectSession(t,s){throw y()}$getJobs(t,s){throw y()}$getJobHistory(t,s,g,C){throw y()}$jobAction(t,s,g,C){throw y()}$deleteJob(t,s,g){throw y()}$deleteJobStep(t,s,g){throw y()}$getNotebooks(t,s){throw y()}$getNotebookHistory(t,s,g,C,r){throw y()}$getMaterializedNotebook(t,s,g,C){throw y()}$getTemplateNotebook(t,s,g,C){throw y()}$deleteNotebook(t,s,g){throw y()}$updateNotebookMaterializedName(t,s,g,C,r){throw y()}$deleteMaterializedNotebook(t,s,g,C){throw y()}$updateNotebookMaterializedPin(t,s,g,C,r){throw y()}$getAlerts(t,s){throw y()}$deleteAlert(t,s,g){throw y()}$getOperators(t,s){throw y()}$deleteOperator(t,s,g){throw y()}$getProxies(t,s){throw y()}$deleteProxy(t,s,g){throw y()}$getCredentials(t,s){throw y()}$startSerialization(t,s){throw y()}$continueSerialization(t,s){throw y()}$assessmentInvoke(t,s,g){throw y()}$getAssessmentItems(t,s,g){throw y()}$generateAssessmentScript(t,s){throw y()}$getDataGridItems(t){throw y()}$getDataGridColumns(t){throw y()}$initializeTableDesigner(t,s){throw y()}$processTableDesignerEdit(t,s,g){throw y()}$publishTableDesignerChanges(t,s){throw y()}$generateScriptForTableDesigner(t,s){throw y()}$generatePreviewReportForTableDesigner(t,s){throw y()}$disposeTableDesigner(t,s){throw y()}$openTableDesigner(t,s,g,C){throw y()}$getExecutionPlan(t,s){throw y()}$compareExecutionPlanGraph(t,s,g){throw y()}$isExecutionPlan(t,s){throw y()}$getServerContextualization(t,s){throw y()}}e.ExtHostDataProtocolShape=R;class u{$createFirewallRule(t,s,g){throw y()}$handleFirewallRule(t,s,g,C){throw y()}}e.ExtHostResourceProviderShape=u;class p{$handleConnectionError(t,s,g){throw y()}}e.ExtHostErrorDiagnosticsShape=p;class f{$saveCredential(t,s){throw y()}$readCredential(t){throw y()}$deleteCredential(t){throw y()}}e.ExtHostCredentialManagementShape=f;function y(){return new Error("Not implemented")}}),define(ye[156],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeType=void 0;var w;(function(M){M.Server="Server",M.Database="Database"})(w||(e.NodeType=w={}))}),define(ye[157],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoaderStats=e.isESM=void 0,e.isESM=!1;class w{static get(){const d=new Map,A=new Map,R=new Map,u=new Map;function p(s,g){s.has(g.detail)||s.set(g.detail,-g.timestamp)}function f(s,g){const C=s.get(g.detail);C&&(C>=0||s.set(g.detail,C+g.timestamp))}let y=[];typeof ge=="function"&&typeof ge.getStats=="function"&&(y=ge.getStats().slice(0).sort((s,g)=>s.timestamp-g.timestamp));for(const s of y)switch(s.type){case 10:p(d,s);break;case 11:case 12:f(d,s);break;case 21:p(A,s);break;case 22:f(A,s);break;case 33:p(R,s);break;case 34:f(R,s);break;case 31:p(u,s);break;case 32:f(u,s);break}let E=0;R.forEach(s=>E+=s);function t(s){const g=[];return s.forEach((C,r)=>g.push([r,C])),g}return{amdLoad:t(d),amdInvoke:t(A),nodeRequire:t(R),nodeEval:t(u),nodeRequireTotal:E}}static toMarkdownTable(d,A){let R="";const u=[];return d.forEach((p,f)=>{u[f]=p.length}),A.forEach(p=>{p.forEach((f,y)=>{typeof f>"u"&&(f=p[y]="-");const E=f.toString().length;u[y]=Math.max(E,u[y])})}),d.forEach((p,f)=>{R+=`| ${p+" ".repeat(u[f]-p.toString().length)} `}),R+=`|
`,d.forEach((p,f)=>{R+=`| ${"-".repeat(u[f])} `}),R+=`|
`,A.forEach(p=>{p.forEach((f,y)=>{typeof f<"u"&&(R+=`| ${f+" ".repeat(u[y]-f.toString().length)} `)}),R+=`|
`}),R}}e.LoaderStats=w}),define(ye[41],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetMap=e.diffMaps=e.diffSets=e.groupBy=e.forEach=e.values=void 0;const w=Object.prototype.hasOwnProperty;function M(f){const y=[];for(let E in f)w.call(f,E)&&y.push(f[E]);return y}e.values=M;function d(f,y){for(let E in f)if(w.call(f,E)&&y({key:E,value:f[E]},function(){delete f[E]})===!1)return}e.forEach=d;function A(f,y){const E=Object.create(null);for(const t of f){const s=y(t);let g=E[s];g||(g=E[s]=[]),g.push(t)}return E}e.groupBy=A;function R(f,y){const E=[],t=[];for(const s of f)y.has(s)||E.push(s);for(const s of y)f.has(s)||t.push(s);return{removed:E,added:t}}e.diffSets=R;function u(f,y){const E=[],t=[];for(const[s,g]of f)y.has(s)||E.push(g);for(const[s,g]of y)f.has(s)||t.push(g);return{removed:E,added:t}}e.diffMaps=u;class p{constructor(){this.map=new Map}add(y,E){let t=this.map.get(y);t||(t=new Set,this.map.set(y,t)),t.add(E)}delete(y,E){const t=this.map.get(y);t&&(t.delete(E),t.size===0&&this.map.delete(y))}forEach(y,E){const t=this.map.get(y);t&&t.forEach(E)}get(y){const E=this.map.get(y);return E||new Set}}e.SetMap=p}),define(ye[68],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=void 0;function w(R){return(u,p,f)=>{let y=null,E=null;if(typeof f.value=="function"?(y="value",E=f.value):typeof f.get=="function"&&(y="get",E=f.get),!E)throw new Error("not supported");f[y]=R(E,p)}}function M(R,u,p){let f=null,y=null;if(typeof p.value=="function"?(f="value",y=p.value,y.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof p.get=="function"&&(f="get",y=p.get),!y)throw new Error("not supported");const E=`$memoize$${u}`;p[f]=function(...t){return this.hasOwnProperty(E)||Object.defineProperty(this,E,{configurable:!1,enumerable:!1,writable:!1,value:y.apply(this,t)}),this[E]}}e.memoize=M;function d(R,u,p){return w((f,y)=>{const E=`$debounce$${y}`,t=`$debounce$result$${y}`;return function(...s){this[t]||(this[t]=p?p():void 0),clearTimeout(this[E]),u&&(this[t]=u(this[t],...s),s=[this[t]]),this[E]=setTimeout(()=>{f.apply(this,s),this[t]=p?p():void 0},R)}})}e.debounce=d;function A(R,u,p){return w((f,y)=>{const E=`$throttle$timer$${y}`,t=`$throttle$result$${y}`,s=`$throttle$lastRun$${y}`,g=`$throttle$pending$${y}`;return function(...C){if(this[t]||(this[t]=p?p():void 0),(this[s]===null||this[s]===void 0)&&(this[s]=-Number.MAX_VALUE),u&&(this[t]=u(this[t],...C)),this[g])return;const r=this[s]+R;r<=Date.now()?(this[s]=Date.now(),f.apply(this,[this[t]]),this[t]=p?p():void 0):(this[g]=!0,this[E]=setTimeout(()=>{this[g]=!1,this[s]=Date.now(),f.apply(this,[this[t]]),this[t]=p?p():void 0},r-Date.now()))}})}e.throttle=A}),define(ye[8],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.isSigPipeError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class w{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(a){setTimeout(()=>{throw a.stack?P.isErrorNoTelemetry(a)?new P(a.message+`

`+a.stack):new Error(a.message+`

`+a.stack):a},0)}}addListener(a){return this.listeners.push(a),()=>{this._removeListener(a)}}emit(a){this.listeners.forEach(l=>{l(a)})}_removeListener(a){this.listeners.splice(this.listeners.indexOf(a),1)}setUnexpectedErrorHandler(a){this.unexpectedErrorHandler=a}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(a){this.unexpectedErrorHandler(a),this.emit(a)}onUnexpectedExternalError(a){this.unexpectedErrorHandler(a)}}e.ErrorHandler=w,e.errorHandler=new w;function M(n){e.errorHandler.setUnexpectedErrorHandler(n)}e.setUnexpectedErrorHandler=M;function d(n){if(!n||typeof n!="object")return!1;const a=n;return a.code==="EPIPE"&&a.syscall?.toUpperCase()==="WRITE"}e.isSigPipeError=d;function A(n){f(n)||e.errorHandler.onUnexpectedError(n)}e.onUnexpectedError=A;function R(n){f(n)||e.errorHandler.onUnexpectedExternalError(n)}e.onUnexpectedExternalError=R;function u(n){if(n instanceof Error){const{name:a,message:l}=n;let i=n.errorCode;const c=n.stacktrace||n.stack;return{$isError:!0,name:a,message:l,stack:c,errorCode:i,data:n.data}}return n}e.transformErrorForSerialization=u;const p="Canceled";function f(n){return n instanceof y?!0:n instanceof Error&&n.name===p&&n.message===p}e.isCancellationError=f;class y extends Error{constructor(){super(p),this.name=this.message}}e.CancellationError=y;function E(){const n=new Error(p);return n.name=n.message,n}e.canceled=E;function t(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}e.illegalArgument=t;function s(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}e.illegalState=s;function g(n){return n?new Error(`readonly property '${n} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=g;function C(n){const a=new Error(`${n} has been disposed`);return a.name="DISPOSED",a}e.disposed=C;function r(n){return n?n.message?n.message:n.stack?n.stack.split(`
`)[0]:String(n):"Error"}e.getErrorMessage=r;class h extends Error{constructor(a){super("NotImplemented"),a&&(this.message=a)}}e.NotImplementedError=h;class o extends Error{constructor(a){super("NotSupported"),a&&(this.message=a)}}e.NotSupportedError=o;class b extends Error{constructor(){super(...arguments),this.isExpected=!0}}e.ExpectedError=b;class P extends Error{constructor(a){super(a),this.name="CodeExpectedError"}static fromError(a){if(a instanceof P)return a;const l=new P;return l.message=a.message,l.stack=a.stack,l}static isErrorNoTelemetry(a){return a.name==="CodeExpectedError"}}e.ErrorNoTelemetry=P;class T extends Error{constructor(a){super(a||"An unexpected bug occurred."),Object.setPrototypeOf(this,T.prototype)}}e.BugIndicatingError=T}),define(ye[19],Ce([1,0,8]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.findMaxIdxBy=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.reverseOrder=e.booleanComparator=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushMany=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.lastOrDefault=e.firstOrDefault=e.findLastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function M(I,V=0){return I[I.length-(1+V)]}e.tail=M;function d(I){if(I.length===0)throw new Error("Invalid tail call");return[I.slice(0,I.length-1),I[I.length-1]]}e.tail2=d;function A(I,V,j=(Z,he)=>Z===he){if(I===V)return!0;if(!I||!V||I.length!==V.length)return!1;for(let Z=0,he=I.length;Z<he;Z++)if(!j(I[Z],V[Z]))return!1;return!0}e.equals=A;function R(I,V){const j=I.length-1;V<j&&(I[V]=I[j]),I.pop()}e.removeFastWithoutKeepingOrder=R;function u(I,V,j){return p(I.length,Z=>j(I[Z],V))}e.binarySearch=u;function p(I,V){let j=0,Z=I-1;for(;j<=Z;){const he=(j+Z)/2|0,Pe=V(he);if(Pe<0)j=he+1;else if(Pe>0)Z=he-1;else return he}return-(j+1)}e.binarySearch2=p;function f(I,V){let j=0,Z=I.length;if(Z===0)return 0;for(;j<Z;){const he=Math.floor((j+Z)/2);V(I[he])?Z=he:j=he+1}return j}e.findFirstInSorted=f;function y(I,V,j){if(I=I|0,I>=V.length)throw new TypeError("invalid index");const Z=V[Math.floor(V.length*Math.random())],he=[],Pe=[],z=[];for(const ee of V){const ie=j(ee,Z);ie<0?he.push(ee):ie>0?Pe.push(ee):z.push(ee)}return I<he.length?y(I,he,j):I<he.length+z.length?z[0]:y(I-(he.length+z.length),Pe,j)}e.quickSelect=y;function E(I,V){const j=[];let Z;for(const he of I.slice(0).sort(V))!Z||V(Z[0],he)!==0?(Z=[he],j.push(Z)):Z.push(he);return j}e.groupBy=E;function t(I,V,j){const Z=[];function he(ee,ie,ue){if(ie===0&&ue.length===0)return;const Y=Z[Z.length-1];Y&&Y.start+Y.deleteCount===ee?(Y.deleteCount+=ie,Y.toInsert.push(...ue)):Z.push({start:ee,deleteCount:ie,toInsert:ue})}let Pe=0,z=0;for(;;){if(Pe===I.length){he(Pe,0,V.slice(z));break}if(z===V.length){he(Pe,I.length-Pe,[]);break}const ee=I[Pe],ie=V[z],ue=j(ee,ie);ue===0?(Pe+=1,z+=1):ue<0?(he(Pe,1,[]),Pe+=1):ue>0&&(he(Pe,0,[ie]),z+=1)}return Z}e.sortedDiff=t;function s(I,V,j){const Z=t(I,V,j),he=[],Pe=[];for(const z of Z)he.push(...I.slice(z.start,z.start+z.deleteCount)),Pe.push(...z.toInsert);return{removed:he,added:Pe}}e.delta=s;function g(I,V,j){if(j===0)return[];const Z=I.slice(0,j).sort(V);return r(I,V,Z,j,I.length),Z}e.top=g;function C(I,V,j,Z,he){return j===0?Promise.resolve([]):new Promise((Pe,z)=>{(async()=>{const ee=I.length,ie=I.slice(0,j).sort(V);for(let ue=j,Y=Math.min(j+Z,ee);ue<ee;ue=Y,Y=Math.min(Y+Z,ee)){if(ue>j&&await new Promise(me=>setTimeout(me)),he&&he.isCancellationRequested)throw new w.CancellationError;r(I,V,ie,ue,Y)}return ie})().then(Pe,z)})}e.topAsync=C;function r(I,V,j,Z,he){for(const Pe=j.length;Z<he;Z++){const z=I[Z];if(V(z,j[Pe-1])<0){j.pop();const ee=f(j,ie=>V(z,ie)<0);j.splice(ee,0,z)}}}function h(I){return I.filter(V=>!!V)}e.coalesce=h;function o(I){let V=0;for(let j=0;j<I.length;j++)I[j]&&(I[V]=I[j],V+=1);I.length=V}e.coalesceInPlace=o;function b(I,V,j){I.splice(j,0,I.splice(V,1)[0])}e.move=b;function P(I){return!Array.isArray(I)||I.length===0}e.isFalsyOrEmpty=P;function T(I){return Array.isArray(I)&&I.length>0}e.isNonEmptyArray=T;function n(I,V=j=>j){const j=new Set;return I.filter(Z=>{const he=V(Z);return j.has(he)?!1:(j.add(he),!0)})}e.distinct=n;function a(I){const V=new Set;return j=>{const Z=I(j);return V.has(Z)?!1:(V.add(Z),!0)}}e.uniqueFilter=a;function l(I,V){const j=i(I,V);if(j!==-1)return I[j]}e.findLast=l;function i(I,V){for(let j=I.length-1;j>=0;j--){const Z=I[j];if(V(Z))return j}return-1}e.findLastIndex=i;function c(I,V){return I.length>0?I[0]:V}e.firstOrDefault=c;function _(I,V){return I.length>0?I[I.length-1]:V}e.lastOrDefault=_;function S(I,V,j=(Z,he)=>Z===he){let Z=0;for(let he=0,Pe=Math.min(I.length,V.length);he<Pe&&j(I[he],V[he]);he++)Z++;return Z}e.commonPrefixLength=S;function k(I){return[].concat(...I)}e.flatten=k;function m(I,V){let j=typeof V=="number"?I:0;typeof V=="number"?j=I:(j=0,V=I);const Z=[];if(j<=V)for(let he=j;he<V;he++)Z.push(he);else for(let he=j;he>V;he--)Z.push(he);return Z}e.range=m;function v(I,V,j){return I.reduce((Z,he)=>(Z[V(he)]=j?j(he):he,Z),Object.create(null))}e.index=v;function D(I,V){return I.push(V),()=>L(I,V)}e.insert=D;function L(I,V){const j=I.indexOf(V);if(j>-1)return I.splice(j,1),V}e.remove=L;function O(I,V,j){const Z=I.slice(0,V),he=I.slice(V);return Z.concat(j,he)}e.arrayInsert=O;function H(I,V){let j;if(typeof V=="number"){let Z=V;j=()=>{const he=Math.sin(Z++)*179426549;return he-Math.floor(he)}}else j=Math.random;for(let Z=I.length-1;Z>0;Z-=1){const he=Math.floor(j()*(Z+1)),Pe=I[Z];I[Z]=I[he],I[he]=Pe}}e.shuffle=H;function N(I,V){const j=I.indexOf(V);j>-1&&(I.splice(j,1),I.unshift(V))}e.pushToStart=N;function $(I,V){const j=I.indexOf(V);j>-1&&(I.splice(j,1),I.push(V))}e.pushToEnd=$;function U(I,V){for(const j of V)I.push(j)}e.pushMany=U;function x(I,V){return Array.isArray(I)?I.map(V):V(I)}e.mapArrayOrNot=x;function X(I){return Array.isArray(I)?I:[I]}e.asArray=X;function K(I){return I[Math.floor(Math.random()*I.length)]}e.getRandomElement=K;function pe(I,V){for(const j of I){const Z=V(j);if(Z!==void 0)return Z}}e.mapFind=pe;function le(I,V,j){const Z=q(I,V),he=I.length,Pe=j.length;I.length=he+Pe;for(let z=he-1;z>=Z;z--)I[z+Pe]=I[z];for(let z=0;z<Pe;z++)I[z+Z]=j[z]}e.insertInto=le;function re(I,V,j,Z){const he=q(I,V),Pe=I.splice(he,j);return le(I,he,Z),Pe}e.splice=re;function q(I,V){return V<0?Math.max(V+I.length,0):Math.min(V,I.length)}var oe;(function(I){function V(Pe){return Pe<0}I.isLessThan=V;function j(Pe){return Pe<=0}I.isLessThanOrEqual=j;function Z(Pe){return Pe>0}I.isGreaterThan=Z;function he(Pe){return Pe===0}I.isNeitherLessOrGreaterThan=he,I.greaterThan=1,I.lessThan=-1,I.neitherLessOrGreaterThan=0})(oe||(e.CompareResult=oe={}));function ve(I,V){return(j,Z)=>V(I(j),I(Z))}e.compareBy=ve;function ce(...I){return(V,j)=>{for(const Z of I){const he=Z(V,j);if(!oe.isNeitherLessOrGreaterThan(he))return he}return oe.neitherLessOrGreaterThan}}e.tieBreakComparators=ce;const se=(I,V)=>I-V;e.numberComparator=se;const te=(I,V)=>(0,e.numberComparator)(I?1:0,V?1:0);e.booleanComparator=te;function B(I){return(V,j)=>-I(V,j)}e.reverseOrder=B;function G(I,V){if(I.length===0)return;let j=I[0];for(let Z=1;Z<I.length;Z++){const he=I[Z];V(he,j)>0&&(j=he)}return j}e.findMaxBy=G;function fe(I,V){if(I.length===0)return;let j=I[0];for(let Z=1;Z<I.length;Z++){const he=I[Z];V(he,j)>=0&&(j=he)}return j}e.findLastMaxBy=fe;function _e(I,V){return G(I,(j,Z)=>-V(j,Z))}e.findMinBy=_e;function Ee(I,V){if(I.length===0)return-1;let j=0;for(let Z=1;Z<I.length;Z++){const he=I[Z];V(he,I[j])>0&&(j=Z)}return j}e.findMaxIdxBy=Ee;class F{constructor(V){this.items=V,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(V){let j=this.firstIdx;for(;j<this.items.length&&V(this.items[j]);)j++;const Z=j===this.firstIdx?null:this.items.slice(this.firstIdx,j);return this.firstIdx=j,Z}takeFromEndWhile(V){let j=this.lastIdx;for(;j>=0&&V(this.items[j]);)j--;const Z=j===this.lastIdx?null:this.items.slice(j+1,this.lastIdx+1);return this.lastIdx=j,Z}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const V=this.items[this.firstIdx];return this.firstIdx++,V}removeLast(){const V=this.items[this.lastIdx];return this.lastIdx--,V}takeCount(V){const j=this.items.slice(this.firstIdx,this.firstIdx+V);return this.firstIdx+=V,j}}e.ArrayQueue=F;class J{static{this.empty=new J(V=>{})}constructor(V){this.iterate=V}forEach(V){this.iterate(j=>(V(j),!0))}toArray(){const V=[];return this.iterate(j=>(V.push(j),!0)),V}filter(V){return new J(j=>this.iterate(Z=>V(Z)?j(Z):!0))}map(V){return new J(j=>this.iterate(Z=>j(V(Z))))}some(V){let j=!1;return this.iterate(Z=>(j=V(Z),!j)),j}findFirst(V){let j;return this.iterate(Z=>V(Z)?(j=Z,!1):!0),j}findLast(V){let j;return this.iterate(Z=>(V(Z)&&(j=Z),!0)),j}findLastMaxBy(V){let j,Z=!0;return this.iterate(he=>((Z||oe.isGreaterThan(V(he,j)))&&(Z=!1,j=he),!0)),j}}e.CallbackIterable=J}),define(ye[42],Ce([1,0,8]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkAdjacentItems=e.assertFn=e.assert=e.assertNever=e.ok=void 0;function M(p,f){if(!p)throw new Error(f?`Assertion failed (${f})`:"Assertion Failed")}e.ok=M;function d(p,f="Unreachable"){throw new Error(f)}e.assertNever=d;function A(p){if(!p)throw new w.BugIndicatingError("Assertion Failed")}e.assert=A;function R(p){if(!p()){debugger;p(),(0,w.onUnexpectedError)(new w.BugIndicatingError("Assertion Failed"))}}e.assertFn=R;function u(p,f){let y=0;for(;y<p.length-1;){const E=p[y],t=p[y+1];if(!f(E,t))return!1;y++}return!0}e.checkAdjacentItems=u}),define(ye[69],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function w(M){const d=this;let A=!1,R;return function(){return A||(A=!0,R=M.apply(d,arguments)),R}}e.once=w}),define(ye[117],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class w{constructor(d){this._prefix=d,this._lastId=0}nextId(){return this._prefix+ ++this._lastId+"-id"}}e.IdGenerator=w,e.defaultGenerator=new w("id#")}),define(ye[51],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var w;(function(M){function d(P){return P&&typeof P=="object"&&typeof P[Symbol.iterator]=="function"}M.is=d;const A=Object.freeze([]);function R(){return A}M.empty=R;function*u(P){yield P}M.single=u;function p(P){return d(P)?P:u(P)}M.wrap=p;function f(P){return P||A}M.from=f;function y(P){return!P||P[Symbol.iterator]().next().done===!0}M.isEmpty=y;function E(P){return P[Symbol.iterator]().next().value}M.first=E;function t(P,T){for(const n of P)if(T(n))return!0;return!1}M.some=t;function s(P,T){for(const n of P)if(T(n))return n}M.find=s;function*g(P,T){for(const n of P)T(n)&&(yield n)}M.filter=g;function*C(P,T){let n=0;for(const a of P)yield T(a,n++)}M.map=C;function*r(...P){for(const T of P)for(const n of T)yield n}M.concat=r;function h(P,T,n){let a=n;for(const l of P)a=T(a,l);return a}M.reduce=h;function*o(P,T,n=P.length){for(T<0&&(T+=P.length),n<0?n+=P.length:n>P.length&&(n=P.length);T<n;T++)yield P[T]}M.slice=o;function b(P,T=Number.POSITIVE_INFINITY){const n=[];if(T===0)return[n,P];const a=P[Symbol.iterator]();for(let l=0;l<T;l++){const i=a.next();if(i.done)return[n,M.empty()];n.push(i.value)}return[n,{[Symbol.iterator](){return a}}]}M.consume=b})(w||(e.Iterable=w={}))}),define(ye[158],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeType=e.stripComments=e.visit=e.findNodeAtOffset=e.contains=e.getNodeValue=e.getNodePath=e.findNodeAtLocation=e.parseTree=e.parse=e.getLocation=e.createScanner=e.ParseOptions=e.ParseErrorCode=e.SyntaxKind=e.ScanError=void 0;var w;(function(n){n[n.None=0]="None",n[n.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",n[n.UnexpectedEndOfString=2]="UnexpectedEndOfString",n[n.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",n[n.InvalidUnicode=4]="InvalidUnicode",n[n.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",n[n.InvalidCharacter=6]="InvalidCharacter"})(w||(e.ScanError=w={}));var M;(function(n){n[n.OpenBraceToken=1]="OpenBraceToken",n[n.CloseBraceToken=2]="CloseBraceToken",n[n.OpenBracketToken=3]="OpenBracketToken",n[n.CloseBracketToken=4]="CloseBracketToken",n[n.CommaToken=5]="CommaToken",n[n.ColonToken=6]="ColonToken",n[n.NullKeyword=7]="NullKeyword",n[n.TrueKeyword=8]="TrueKeyword",n[n.FalseKeyword=9]="FalseKeyword",n[n.StringLiteral=10]="StringLiteral",n[n.NumericLiteral=11]="NumericLiteral",n[n.LineCommentTrivia=12]="LineCommentTrivia",n[n.BlockCommentTrivia=13]="BlockCommentTrivia",n[n.LineBreakTrivia=14]="LineBreakTrivia",n[n.Trivia=15]="Trivia",n[n.Unknown=16]="Unknown",n[n.EOF=17]="EOF"})(M||(e.SyntaxKind=M={}));var d;(function(n){n[n.InvalidSymbol=1]="InvalidSymbol",n[n.InvalidNumberFormat=2]="InvalidNumberFormat",n[n.PropertyNameExpected=3]="PropertyNameExpected",n[n.ValueExpected=4]="ValueExpected",n[n.ColonExpected=5]="ColonExpected",n[n.CommaExpected=6]="CommaExpected",n[n.CloseBraceExpected=7]="CloseBraceExpected",n[n.CloseBracketExpected=8]="CloseBracketExpected",n[n.EndOfFileExpected=9]="EndOfFileExpected",n[n.InvalidCommentToken=10]="InvalidCommentToken",n[n.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",n[n.UnexpectedEndOfString=12]="UnexpectedEndOfString",n[n.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",n[n.InvalidUnicode=14]="InvalidUnicode",n[n.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",n[n.InvalidCharacter=16]="InvalidCharacter"})(d||(e.ParseErrorCode=d={}));var A;(function(n){n.DEFAULT={allowTrailingComma:!0}})(A||(e.ParseOptions=A={}));function R(n,a=!1){let l=0;const i=n.length;let c="",_=0,S=16,k=0;function m($){let U=0,x=0;for(;U<$;){const X=n.charCodeAt(l);if(X>=48&&X<=57)x=x*16+X-48;else if(X>=65&&X<=70)x=x*16+X-65+10;else if(X>=97&&X<=102)x=x*16+X-97+10;else break;l++,U++}return U<$&&(x=-1),x}function v($){l=$,c="",_=0,S=16,k=0}function D(){const $=l;if(n.charCodeAt(l)===48)l++;else for(l++;l<n.length&&f(n.charCodeAt(l));)l++;if(l<n.length&&n.charCodeAt(l)===46)if(l++,l<n.length&&f(n.charCodeAt(l)))for(l++;l<n.length&&f(n.charCodeAt(l));)l++;else return k=3,n.substring($,l);let U=l;if(l<n.length&&(n.charCodeAt(l)===69||n.charCodeAt(l)===101))if(l++,(l<n.length&&n.charCodeAt(l)===43||n.charCodeAt(l)===45)&&l++,l<n.length&&f(n.charCodeAt(l))){for(l++;l<n.length&&f(n.charCodeAt(l));)l++;U=l}else k=3;return n.substring($,U)}function L(){let $="",U=l;for(;;){if(l>=i){$+=n.substring(U,l),k=2;break}const x=n.charCodeAt(l);if(x===34){$+=n.substring(U,l),l++;break}if(x===92){if($+=n.substring(U,l),l++,l>=i){k=2;break}switch(n.charCodeAt(l++)){case 34:$+='"';break;case 92:$+="\\";break;case 47:$+="/";break;case 98:$+="\b";break;case 102:$+="\f";break;case 110:$+=`
`;break;case 114:$+="\r";break;case 116:$+="	";break;case 117:{const K=m(4);K>=0?$+=String.fromCharCode(K):k=4;break}default:k=5}U=l;continue}if(x>=0&&x<=31)if(p(x)){$+=n.substring(U,l),k=2;break}else k=6;l++}return $}function O(){if(c="",k=0,_=l,l>=i)return _=i,S=17;let $=n.charCodeAt(l);if(u($)){do l++,c+=String.fromCharCode($),$=n.charCodeAt(l);while(u($));return S=15}if(p($))return l++,c+=String.fromCharCode($),$===13&&n.charCodeAt(l)===10&&(l++,c+=`
`),S=14;switch($){case 123:return l++,S=1;case 125:return l++,S=2;case 91:return l++,S=3;case 93:return l++,S=4;case 58:return l++,S=6;case 44:return l++,S=5;case 34:return l++,c=L(),S=10;case 47:{const U=l-1;if(n.charCodeAt(l+1)===47){for(l+=2;l<i&&!p(n.charCodeAt(l));)l++;return c=n.substring(U,l),S=12}if(n.charCodeAt(l+1)===42){l+=2;const x=i-1;let X=!1;for(;l<x;){if(n.charCodeAt(l)===42&&n.charCodeAt(l+1)===47){l+=2,X=!0;break}l++}return X||(l++,k=1),c=n.substring(U,l),S=13}return c+=String.fromCharCode($),l++,S=16}case 45:if(c+=String.fromCharCode($),l++,l===i||!f(n.charCodeAt(l)))return S=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c+=D(),S=11;default:for(;l<i&&H($);)l++,$=n.charCodeAt(l);if(_!==l){switch(c=n.substring(_,l),c){case"true":return S=8;case"false":return S=9;case"null":return S=7}return S=16}return c+=String.fromCharCode($),l++,S=16}}function H($){if(u($)||p($))return!1;switch($){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function N(){let $;do $=O();while($>=12&&$<=15);return $}return{setPosition:v,getPosition:()=>l,scan:a?N:O,getToken:()=>S,getTokenValue:()=>c,getTokenOffset:()=>_,getTokenLength:()=>l-_,getTokenError:()=>k}}e.createScanner=R;function u(n){return n===32||n===9||n===11||n===12||n===160||n===5760||n>=8192&&n<=8203||n===8239||n===8287||n===12288||n===65279}function p(n){return n===10||n===13||n===8232||n===8233}function f(n){return n>=48&&n<=57}var y;(function(n){n[n.nullCharacter=0]="nullCharacter",n[n.maxAsciiCharacter=127]="maxAsciiCharacter",n[n.lineFeed=10]="lineFeed",n[n.carriageReturn=13]="carriageReturn",n[n.lineSeparator=8232]="lineSeparator",n[n.paragraphSeparator=8233]="paragraphSeparator",n[n.nextLine=133]="nextLine",n[n.space=32]="space",n[n.nonBreakingSpace=160]="nonBreakingSpace",n[n.enQuad=8192]="enQuad",n[n.emQuad=8193]="emQuad",n[n.enSpace=8194]="enSpace",n[n.emSpace=8195]="emSpace",n[n.threePerEmSpace=8196]="threePerEmSpace",n[n.fourPerEmSpace=8197]="fourPerEmSpace",n[n.sixPerEmSpace=8198]="sixPerEmSpace",n[n.figureSpace=8199]="figureSpace",n[n.punctuationSpace=8200]="punctuationSpace",n[n.thinSpace=8201]="thinSpace",n[n.hairSpace=8202]="hairSpace",n[n.zeroWidthSpace=8203]="zeroWidthSpace",n[n.narrowNoBreakSpace=8239]="narrowNoBreakSpace",n[n.ideographicSpace=12288]="ideographicSpace",n[n.mathematicalSpace=8287]="mathematicalSpace",n[n.ogham=5760]="ogham",n[n._=95]="_",n[n.$=36]="$",n[n._0=48]="_0",n[n._1=49]="_1",n[n._2=50]="_2",n[n._3=51]="_3",n[n._4=52]="_4",n[n._5=53]="_5",n[n._6=54]="_6",n[n._7=55]="_7",n[n._8=56]="_8",n[n._9=57]="_9",n[n.a=97]="a",n[n.b=98]="b",n[n.c=99]="c",n[n.d=100]="d",n[n.e=101]="e",n[n.f=102]="f",n[n.g=103]="g",n[n.h=104]="h",n[n.i=105]="i",n[n.j=106]="j",n[n.k=107]="k",n[n.l=108]="l",n[n.m=109]="m",n[n.n=110]="n",n[n.o=111]="o",n[n.p=112]="p",n[n.q=113]="q",n[n.r=114]="r",n[n.s=115]="s",n[n.t=116]="t",n[n.u=117]="u",n[n.v=118]="v",n[n.w=119]="w",n[n.x=120]="x",n[n.y=121]="y",n[n.z=122]="z",n[n.A=65]="A",n[n.B=66]="B",n[n.C=67]="C",n[n.D=68]="D",n[n.E=69]="E",n[n.F=70]="F",n[n.G=71]="G",n[n.H=72]="H",n[n.I=73]="I",n[n.J=74]="J",n[n.K=75]="K",n[n.L=76]="L",n[n.M=77]="M",n[n.N=78]="N",n[n.O=79]="O",n[n.P=80]="P",n[n.Q=81]="Q",n[n.R=82]="R",n[n.S=83]="S",n[n.T=84]="T",n[n.U=85]="U",n[n.V=86]="V",n[n.W=87]="W",n[n.X=88]="X",n[n.Y=89]="Y",n[n.Z=90]="Z",n[n.ampersand=38]="ampersand",n[n.asterisk=42]="asterisk",n[n.at=64]="at",n[n.backslash=92]="backslash",n[n.bar=124]="bar",n[n.caret=94]="caret",n[n.closeBrace=125]="closeBrace",n[n.closeBracket=93]="closeBracket",n[n.closeParen=41]="closeParen",n[n.colon=58]="colon",n[n.comma=44]="comma",n[n.dot=46]="dot",n[n.doubleQuote=34]="doubleQuote",n[n.equals=61]="equals",n[n.exclamation=33]="exclamation",n[n.greaterThan=62]="greaterThan",n[n.lessThan=60]="lessThan",n[n.minus=45]="minus",n[n.openBrace=123]="openBrace",n[n.openBracket=91]="openBracket",n[n.openParen=40]="openParen",n[n.percent=37]="percent",n[n.plus=43]="plus",n[n.question=63]="question",n[n.semicolon=59]="semicolon",n[n.singleQuote=39]="singleQuote",n[n.slash=47]="slash",n[n.tilde=126]="tilde",n[n.backspace=8]="backspace",n[n.formFeed=12]="formFeed",n[n.byteOrderMark=65279]="byteOrderMark",n[n.tab=9]="tab",n[n.verticalTab=11]="verticalTab"})(y||(y={}));function E(n,a){const l=[],i=new Object;let c;const _={value:{},offset:0,length:0,type:"object",parent:void 0};let S=!1;function k(m,v,D,L){_.value=m,_.offset=v,_.length=D,_.type=L,_.colonOffset=void 0,c=_}try{b(n,{onObjectBegin:(m,v)=>{if(a<=m)throw i;c=void 0,S=a>m,l.push("")},onObjectProperty:(m,v,D)=>{if(a<v||(k(m,v,D,"property"),l[l.length-1]=m,a<=v+D))throw i},onObjectEnd:(m,v)=>{if(a<=m)throw i;c=void 0,l.pop()},onArrayBegin:(m,v)=>{if(a<=m)throw i;c=void 0,l.push(0)},onArrayEnd:(m,v)=>{if(a<=m)throw i;c=void 0,l.pop()},onLiteralValue:(m,v,D)=>{if(a<v||(k(m,v,D,T(m)),a<=v+D))throw i},onSeparator:(m,v,D)=>{if(a<=v)throw i;if(m===":"&&c&&c.type==="property")c.colonOffset=v,S=!1,c=void 0;else if(m===","){const L=l[l.length-1];typeof L=="number"?l[l.length-1]=L+1:(S=!0,l[l.length-1]=""),c=void 0}}})}catch(m){if(m!==i)throw m}return{path:l,previousNode:c,isAtPropertyKey:S,matches:m=>{let v=0;for(let D=0;v<m.length&&D<l.length;D++)if(m[v]===l[D]||m[v]==="*")v++;else if(m[v]!=="**")return!1;return v===m.length}}}e.getLocation=E;function t(n,a=[],l=A.DEFAULT){let i=null,c=[];const _=[];function S(m){Array.isArray(c)?c.push(m):i!==null&&(c[i]=m)}return b(n,{onObjectBegin:()=>{const m={};S(m),_.push(c),c=m,i=null},onObjectProperty:m=>{i=m},onObjectEnd:()=>{c=_.pop()},onArrayBegin:()=>{const m=[];S(m),_.push(c),c=m,i=null},onArrayEnd:()=>{c=_.pop()},onLiteralValue:S,onError:(m,v,D)=>{a.push({error:m,offset:v,length:D})}},l),c[0]}e.parse=t;function s(n,a=[],l=A.DEFAULT){let i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function c(m){i.type==="property"&&(i.length=m-i.offset,i=i.parent)}function _(m){return i.children.push(m),m}b(n,{onObjectBegin:m=>{i=_({type:"object",offset:m,length:-1,parent:i,children:[]})},onObjectProperty:(m,v,D)=>{i=_({type:"property",offset:v,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:m,offset:v,length:D,parent:i})},onObjectEnd:(m,v)=>{i.length=m+v-i.offset,i=i.parent,c(m+v)},onArrayBegin:(m,v)=>{i=_({type:"array",offset:m,length:-1,parent:i,children:[]})},onArrayEnd:(m,v)=>{i.length=m+v-i.offset,i=i.parent,c(m+v)},onLiteralValue:(m,v,D)=>{_({type:T(m),offset:v,length:D,parent:i,value:m}),c(v+D)},onSeparator:(m,v,D)=>{i.type==="property"&&(m===":"?i.colonOffset=v:m===","&&c(v))},onError:(m,v,D)=>{a.push({error:m,offset:v,length:D})}},l);const k=i.children[0];return k&&delete k.parent,k}e.parseTree=s;function g(n,a){if(!n)return;let l=n;for(const i of a)if(typeof i=="string"){if(l.type!=="object"||!Array.isArray(l.children))return;let c=!1;for(const _ of l.children)if(Array.isArray(_.children)&&_.children[0].value===i){l=_.children[1],c=!0;break}if(!c)return}else{const c=i;if(l.type!=="array"||c<0||!Array.isArray(l.children)||c>=l.children.length)return;l=l.children[c]}return l}e.findNodeAtLocation=g;function C(n){if(!n.parent||!n.parent.children)return[];const a=C(n.parent);if(n.parent.type==="property"){const l=n.parent.children[0].value;a.push(l)}else if(n.parent.type==="array"){const l=n.parent.children.indexOf(n);l!==-1&&a.push(l)}return a}e.getNodePath=C;function r(n){switch(n.type){case"array":return n.children.map(r);case"object":{const a=Object.create(null);for(const l of n.children){const i=l.children[1];i&&(a[l.children[0].value]=r(i))}return a}case"null":case"string":case"number":case"boolean":return n.value;default:return}}e.getNodeValue=r;function h(n,a,l=!1){return a>=n.offset&&a<n.offset+n.length||l&&a===n.offset+n.length}e.contains=h;function o(n,a,l=!1){if(h(n,a,l)){const i=n.children;if(Array.isArray(i))for(let c=0;c<i.length&&i[c].offset<=a;c++){const _=o(i[c],a,l);if(_)return _}return n}}e.findNodeAtOffset=o;function b(n,a,l=A.DEFAULT){const i=R(n,!1);function c(ve){return ve?()=>ve(i.getTokenOffset(),i.getTokenLength()):()=>!0}function _(ve){return ve?ce=>ve(ce,i.getTokenOffset(),i.getTokenLength()):()=>!0}const S=c(a.onObjectBegin),k=_(a.onObjectProperty),m=c(a.onObjectEnd),v=c(a.onArrayBegin),D=c(a.onArrayEnd),L=_(a.onLiteralValue),O=_(a.onSeparator),H=c(a.onComment),N=_(a.onError),$=l&&l.disallowComments,U=l&&l.allowTrailingComma;function x(){for(;;){const ve=i.scan();switch(i.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:$||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(ve){case 12:case 13:$?X(10):H();break;case 16:X(1);break;case 15:case 14:break;default:return ve}}}function X(ve,ce=[],se=[]){if(N(ve),ce.length+se.length>0){let te=i.getToken();for(;te!==17;){if(ce.indexOf(te)!==-1){x();break}else if(se.indexOf(te)!==-1)break;te=x()}}}function K(ve){const ce=i.getTokenValue();return ve?L(ce):k(ce),x(),!0}function pe(){switch(i.getToken()){case 11:{let ve=0;try{ve=JSON.parse(i.getTokenValue()),typeof ve!="number"&&(X(2),ve=0)}catch{X(2)}L(ve);break}case 7:L(null);break;case 8:L(!0);break;case 9:L(!1);break;default:return!1}return x(),!0}function le(){return i.getToken()!==10?(X(3,[],[2,5]),!1):(K(!1),i.getToken()===6?(O(":"),x(),oe()||X(4,[],[2,5])):X(5,[],[2,5]),!0)}function re(){S(),x();let ve=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(ve||X(4,[],[]),O(","),x(),i.getToken()===2&&U)break}else ve&&X(6,[],[]);le()||X(4,[],[2,5]),ve=!0}return m(),i.getToken()!==2?X(7,[2],[]):x(),!0}function q(){v(),x();let ve=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(ve||X(4,[],[]),O(","),x(),i.getToken()===4&&U)break}else ve&&X(6,[],[]);oe()||X(4,[],[4,5]),ve=!0}return D(),i.getToken()!==4?X(8,[4],[]):x(),!0}function oe(){switch(i.getToken()){case 3:return q();case 1:return re();case 10:return K(!0);default:return pe()}}return x(),i.getToken()===17?l.allowEmptyContent?!0:(X(4,[],[]),!1):oe()?(i.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}e.visit=b;function P(n,a){const l=R(n),i=[];let c,_=0,S;do switch(S=l.getPosition(),c=l.scan(),c){case 12:case 13:case 17:_!==S&&i.push(n.substring(_,S)),a!==void 0&&i.push(l.getTokenValue().replace(/[^\r\n]/g,a)),_=l.getPosition();break}while(c!==17);return i.join("")}e.stripComments=P;function T(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(n){if(Array.isArray(n))return"array"}else return"null";return"object"}default:return"null"}}e.getNodeType=T}),define(ye[57],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class w{constructor(d){this.executor=d,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(d){this._error=d}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}e.Lazy=w}),define(ye[5],Ce([1,0,69,51]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisposableMap=e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.disposeIfDisposable=e.dispose=e.isDisposable=e.markAsSingleton=e.setDisposableTracker=void 0;const d=!1;let A=null;function R(_){A=_}if(e.setDisposableTracker=R,d){const _="__is_disposable_tracked__";R(new class{trackDisposable(S){const k=new Error("Potentially leaked disposable").stack;setTimeout(()=>{S[_]||console.log(k)},3e3)}setParent(S,k){if(S&&S!==o.None)try{S[_]=!0}catch{}}markAsDisposed(S){if(S&&S!==o.None)try{S[_]=!0}catch{}}markAsSingleton(S){}})}function u(_){return A?.trackDisposable(_),_}function p(_){A?.markAsDisposed(_)}function f(_,S){A?.setParent(_,S)}function y(_,S){if(A)for(const k of _)A.setParent(k,S)}function E(_){return A?.markAsSingleton(_),_}e.markAsSingleton=E;function t(_){return typeof _.dispose=="function"&&_.dispose.length===0}e.isDisposable=t;function s(_){if(M.Iterable.is(_)){const S=[];for(const k of _)if(k)try{k.dispose()}catch(m){S.push(m)}if(S.length===1)throw S[0];if(S.length>1)throw new AggregateError(S,"Encountered errors while disposing of store");return Array.isArray(_)?[]:_}else if(_)return _.dispose(),_}e.dispose=s;function g(_){for(const S of _)t(S)&&S.dispose();return[]}e.disposeIfDisposable=g;function C(..._){const S=r(()=>s(_));return y(_,S),S}e.combinedDisposable=C;function r(_){const S=u({dispose:(0,w.once)(()=>{p(S),_()})});return S}e.toDisposable=r;class h{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,u(this)}dispose(){this._isDisposed||(p(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{s(this._toDispose)}finally{this._toDispose.clear()}}add(S){if(!S)return S;if(S===this)throw new Error("Cannot register a disposable on itself!");return f(S,this),this._isDisposed?h.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(S),S}}e.DisposableStore=h;class o{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new h,u(this),f(this._store,this)}dispose(){p(this),this._store.dispose()}_register(S){if(S===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(S)}}e.Disposable=o;class b{constructor(){this._isDisposed=!1,u(this)}get value(){return this._isDisposed?void 0:this._value}set value(S){this._isDisposed||S===this._value||(this._value?.dispose(),S&&f(S,this),this._value=S)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,p(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const S=this._value;return this._value=void 0,S&&f(S,null),S}}e.MutableDisposable=b;class P{constructor(S){this._disposable=S,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}e.RefCountedDisposable=P;class T{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,u(this)}set(S){let k=S;return this.unset=()=>k=void 0,this.isset=()=>k!==void 0,this.dispose=()=>{k&&(k(),k=void 0,p(this))},this}}e.SafeDisposable=T;class n{constructor(){this.references=new Map}acquire(S,...k){let m=this.references.get(S);m||(m={counter:0,object:this.createReferencedObject(S,...k)},this.references.set(S,m));const{object:v}=m,D=(0,w.once)(()=>{--m.counter===0&&(this.destroyReferencedObject(S,m.object),this.references.delete(S))});return m.counter++,{object:v,dispose:D}}}e.ReferenceCollection=n;class a{constructor(S){this.referenceCollection=S}async acquire(S,...k){const m=this.referenceCollection.acquire(S,...k);try{return{object:await m.object,dispose:()=>m.dispose()}}catch(v){throw m.dispose(),v}}}e.AsyncReferenceCollection=a;class l{constructor(S){this.object=S}dispose(){}}e.ImmortalReference=l;function i(_){const S=new h;try{_(S)}finally{S.dispose()}}e.disposeOnReturn=i;class c{constructor(){this._store=new Map,this._isDisposed=!1,u(this)}dispose(){p(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{s(this._store.values())}finally{this._store.clear()}}has(S){return this._store.has(S)}get(S){return this._store.get(S)}set(S,k,m=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),m||this._store.get(S)?.dispose(),this._store.set(S,k)}deleteAndDispose(S){this._store.get(S)?.dispose(),this._store.delete(S)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}e.DisposableMap=c}),define(ye[70],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class w{static{this.Undefined=new w(void 0)}constructor(A){this.element=A,this.next=w.Undefined,this.prev=w.Undefined}}class M{constructor(){this._first=w.Undefined,this._last=w.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===w.Undefined}clear(){let A=this._first;for(;A!==w.Undefined;){const R=A.next;A.prev=w.Undefined,A.next=w.Undefined,A=R}this._first=w.Undefined,this._last=w.Undefined,this._size=0}unshift(A){return this._insert(A,!1)}push(A){return this._insert(A,!0)}_insert(A,R){const u=new w(A);if(this._first===w.Undefined)this._first=u,this._last=u;else if(R){const f=this._last;this._last=u,u.prev=f,f.next=u}else{const f=this._first;this._first=u,u.next=f,f.prev=u}this._size+=1;let p=!1;return()=>{p||(p=!0,this._remove(u))}}shift(){if(this._first!==w.Undefined){const A=this._first.element;return this._remove(this._first),A}}pop(){if(this._last!==w.Undefined){const A=this._last.element;return this._remove(this._last),A}}_remove(A){if(A.prev!==w.Undefined&&A.next!==w.Undefined){const R=A.prev;R.next=A.next,A.next.prev=R}else A.prev===w.Undefined&&A.next===w.Undefined?(this._first=w.Undefined,this._last=w.Undefined):A.next===w.Undefined?(this._last=this._last.prev,this._last.next=w.Undefined):A.prev===w.Undefined&&(this._first=this._first.next,this._first.prev=w.Undefined);this._size-=1}*[Symbol.iterator](){let A=this._first;for(;A!==w.Undefined;)yield A.element,A=A.next}}e.LinkedList=M}),define(ye[28],Ce([1,0]),function(ge,e){"use strict";var w,M,d;Object.defineProperty(e,"__esModule",{value:!0}),e.CounterSet=e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.setToString=e.mapToString=e.getOrSet=void 0;function A(C,r,h){let o=C.get(r);return o===void 0&&(o=h,C.set(r,o)),o}e.getOrSet=A;function R(C){const r=[];return C.forEach((h,o)=>{r.push(`${o} => ${h}`)}),`Map(${C.size}) {${r.join(", ")}}`}e.mapToString=R;function u(C){const r=[];return C.forEach(h=>{r.push(h)}),`Set(${C.size}) {${r.join(", ")}}`}e.setToString=u;class p{constructor(r,h){this.uri=r,this.value=h}}class f{static{this.defaultToKey=r=>r.toString()}constructor(r,h){this[w]="ResourceMap",r instanceof f?(this.map=new Map(r.map),this.toKey=h??f.defaultToKey):(this.map=new Map,this.toKey=r??f.defaultToKey)}set(r,h){return this.map.set(this.toKey(r),new p(r,h)),this}get(r){return this.map.get(this.toKey(r))?.value}has(r){return this.map.has(this.toKey(r))}get size(){return this.map.size}clear(){this.map.clear()}delete(r){return this.map.delete(this.toKey(r))}forEach(r,h){typeof h<"u"&&(r=r.bind(h));for(const[o,b]of this.map)r(b.value,b.uri,this)}*values(){for(const r of this.map.values())yield r.value}*keys(){for(const r of this.map.values())yield r.uri}*entries(){for(const r of this.map.values())yield[r.uri,r.value]}*[(w=Symbol.toStringTag,Symbol.iterator)](){for(const[,r]of this.map)yield[r.uri,r.value]}}e.ResourceMap=f;class y{constructor(r,h){this[M]="ResourceSet",!r||typeof r=="function"?this._map=new f(r):(this._map=new f(h),r.forEach(this.add,this))}get size(){return this._map.size}add(r){return this._map.set(r,r),this}clear(){this._map.clear()}delete(r){return this._map.delete(r)}forEach(r,h){this._map.forEach((o,b)=>r.call(h,b,b,this))}has(r){return this._map.has(r)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(M=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=y;var E;(function(C){C[C.None=0]="None",C[C.AsOld=1]="AsOld",C[C.AsNew=2]="AsNew"})(E||(e.Touch=E={}));class t{constructor(){this[d]="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(r){return this._map.has(r)}get(r,h=0){const o=this._map.get(r);if(o)return h!==0&&this.touch(o,h),o.value}set(r,h,o=0){let b=this._map.get(r);if(b)b.value=h,o!==0&&this.touch(b,o);else{switch(b={key:r,value:h,next:void 0,previous:void 0},o){case 0:this.addItemLast(b);break;case 1:this.addItemFirst(b);break;case 2:this.addItemLast(b);break;default:this.addItemLast(b);break}this._map.set(r,b),this._size++}return this}delete(r){return!!this.remove(r)}remove(r){const h=this._map.get(r);if(h)return this._map.delete(r),this.removeItem(h),this._size--,h.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const r=this._head;return this._map.delete(r.key),this.removeItem(r),this._size--,r.value}forEach(r,h){const o=this._state;let b=this._head;for(;b;){if(h?r.bind(h)(b.value,b.key,this):r(b.value,b.key,this),this._state!==o)throw new Error("LinkedMap got modified during iteration.");b=b.next}}keys(){const r=this,h=this._state;let o=this._head;const b={[Symbol.iterator](){return b},next(){if(r._state!==h)throw new Error("LinkedMap got modified during iteration.");if(o){const P={value:o.key,done:!1};return o=o.next,P}else return{value:void 0,done:!0}}};return b}values(){const r=this,h=this._state;let o=this._head;const b={[Symbol.iterator](){return b},next(){if(r._state!==h)throw new Error("LinkedMap got modified during iteration.");if(o){const P={value:o.value,done:!1};return o=o.next,P}else return{value:void 0,done:!0}}};return b}entries(){const r=this,h=this._state;let o=this._head;const b={[Symbol.iterator](){return b},next(){if(r._state!==h)throw new Error("LinkedMap got modified during iteration.");if(o){const P={value:[o.key,o.value],done:!1};return o=o.next,P}else return{value:void 0,done:!0}}};return b}[(d=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(r){if(r>=this.size)return;if(r===0){this.clear();return}let h=this._head,o=this.size;for(;h&&o>r;)this._map.delete(h.key),h=h.next,o--;this._head=h,this._size=o,h&&(h.previous=void 0),this._state++}addItemFirst(r){if(!this._head&&!this._tail)this._tail=r;else if(this._head)r.next=this._head,this._head.previous=r;else throw new Error("Invalid list");this._head=r,this._state++}addItemLast(r){if(!this._head&&!this._tail)this._head=r;else if(this._tail)r.previous=this._tail,this._tail.next=r;else throw new Error("Invalid list");this._tail=r,this._state++}removeItem(r){if(r===this._head&&r===this._tail)this._head=void 0,this._tail=void 0;else if(r===this._head){if(!r.next)throw new Error("Invalid list");r.next.previous=void 0,this._head=r.next}else if(r===this._tail){if(!r.previous)throw new Error("Invalid list");r.previous.next=void 0,this._tail=r.previous}else{const h=r.next,o=r.previous;if(!h||!o)throw new Error("Invalid list");h.previous=o,o.next=h}r.next=void 0,r.previous=void 0,this._state++}touch(r,h){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(h!==1&&h!==2)){if(h===1){if(r===this._head)return;const o=r.next,b=r.previous;r===this._tail?(b.next=void 0,this._tail=b):(o.previous=b,b.next=o),r.previous=void 0,r.next=this._head,this._head.previous=r,this._head=r,this._state++}else if(h===2){if(r===this._tail)return;const o=r.next,b=r.previous;r===this._head?(o.previous=void 0,this._head=o):(o.previous=b,b.next=o),r.next=void 0,r.previous=this._tail,this._tail.next=r,this._tail=r,this._state++}}}toJSON(){const r=[];return this.forEach((h,o)=>{r.push([o,h])}),r}fromJSON(r){this.clear();for(const[h,o]of r)this.set(h,o)}}e.LinkedMap=t;class s extends t{constructor(r,h=1){super(),this._limit=r,this._ratio=Math.min(Math.max(0,h),1)}get limit(){return this._limit}set limit(r){this._limit=r,this.checkTrim()}get ratio(){return this._ratio}set ratio(r){this._ratio=Math.min(Math.max(0,r),1),this.checkTrim()}get(r,h=2){return super.get(r,h)}peek(r){return super.get(r,0)}set(r,h){return super.set(r,h,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=s;class g{constructor(){this.map=new Map}add(r){return this.map.set(r,(this.map.get(r)||0)+1),this}delete(r){let h=this.map.get(r)||0;return h===0?!1:(h--,h===0?this.map.delete(r):this.map.set(r,h),!0)}has(r){return this.map.has(r)}}e.CounterSet=g}),function(ge,e){typeof define=="function"&&define.amd?define(ye[159],Ce([0]),e):typeof exports=="object"&&typeof module<"u"?e(exports):(ge=typeof globalThis<"u"?globalThis:ge||self,e(ge.marked={}))}(this,function(ge){"use strict";function e(Ee,F){for(var J=0;J<F.length;J++){var I=F[J];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(Ee,I.key,I)}}function w(Ee,F,J){return F&&e(Ee.prototype,F),J&&e(Ee,J),Object.defineProperty(Ee,"prototype",{writable:!1}),Ee}function M(Ee,F){if(Ee){if(typeof Ee=="string")return d(Ee,F);var J=Object.prototype.toString.call(Ee).slice(8,-1);if(J==="Object"&&Ee.constructor&&(J=Ee.constructor.name),J==="Map"||J==="Set")return Array.from(Ee);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return d(Ee,F)}}function d(Ee,F){(F==null||F>Ee.length)&&(F=Ee.length);for(var J=0,I=new Array(F);J<F;J++)I[J]=Ee[J];return I}function A(Ee,F){var J=typeof Symbol<"u"&&Ee[Symbol.iterator]||Ee["@@iterator"];if(J)return(J=J.call(Ee)).next.bind(J);if(Array.isArray(Ee)||(J=M(Ee))||F&&Ee&&typeof Ee.length=="number"){J&&(Ee=J);var I=0;return function(){return I>=Ee.length?{done:!0}:{done:!1,value:Ee[I++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}ge.defaults=R();function u(Ee){ge.defaults=Ee}var p=/[&<>"']/,f=/[&<>"']/g,y=/[<>"']|&(?!#?\w+;)/,E=/[<>"']|&(?!#?\w+;)/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=function(F){return t[F]};function g(Ee,F){if(F){if(p.test(Ee))return Ee.replace(f,s)}else if(y.test(Ee))return Ee.replace(E,s);return Ee}var C=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function r(Ee){return Ee.replace(C,function(F,J){return J=J.toLowerCase(),J==="colon"?":":J.charAt(0)==="#"?J.charAt(1)==="x"?String.fromCharCode(parseInt(J.substring(2),16)):String.fromCharCode(+J.substring(1)):""})}var h=/(^|[^\[])\^/g;function o(Ee,F){Ee=typeof Ee=="string"?Ee:Ee.source,F=F||"";var J={replace:function(V,j){return j=j.source||j,j=j.replace(h,"$1"),Ee=Ee.replace(V,j),J},getRegex:function(){return new RegExp(Ee,F)}};return J}var b=/[^\w:]/g,P=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function T(Ee,F,J){if(Ee){var I;try{I=decodeURIComponent(r(J)).replace(b,"").toLowerCase()}catch{return null}if(I.indexOf("javascript:")===0||I.indexOf("vbscript:")===0||I.indexOf("data:")===0)return null}F&&!P.test(J)&&(J=c(F,J));try{J=encodeURI(J).replace(/%25/g,"%")}catch{return null}return J}var n={},a=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ee,F){n[" "+Ee]||(a.test(Ee)?n[" "+Ee]=Ee+"/":n[" "+Ee]=m(Ee,"/",!0)),Ee=n[" "+Ee];var J=Ee.indexOf(":")===-1;return F.substring(0,2)==="//"?J?F:Ee.replace(l,"$1")+F:F.charAt(0)==="/"?J?F:Ee.replace(i,"$1")+F:Ee+F}var _={exec:function(){}};function S(Ee){for(var F=1,J,I;F<arguments.length;F++){J=arguments[F];for(I in J)Object.prototype.hasOwnProperty.call(J,I)&&(Ee[I]=J[I])}return Ee}function k(Ee,F){var J=Ee.replace(/\|/g,function(j,Z,he){for(var Pe=!1,z=Z;--z>=0&&he[z]==="\\";)Pe=!Pe;return Pe?"|":" |"}),I=J.split(/ \|/),V=0;if(I[0].trim()||I.shift(),I.length>0&&!I[I.length-1].trim()&&I.pop(),I.length>F)I.splice(F);else for(;I.length<F;)I.push("");for(;V<I.length;V++)I[V]=I[V].trim().replace(/\\\|/g,"|");return I}function m(Ee,F,J){var I=Ee.length;if(I===0)return"";for(var V=0;V<I;){var j=Ee.charAt(I-V-1);if(j===F&&!J)V++;else if(j!==F&&J)V++;else break}return Ee.slice(0,I-V)}function v(Ee,F){if(Ee.indexOf(F[1])===-1)return-1;for(var J=Ee.length,I=0,V=0;V<J;V++)if(Ee[V]==="\\")V++;else if(Ee[V]===F[0])I++;else if(Ee[V]===F[1]&&(I--,I<0))return V;return-1}function D(Ee){Ee&&Ee.sanitize&&!Ee.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function L(Ee,F){if(F<1)return"";for(var J="";F>1;)F&1&&(J+=Ee),F>>=1,Ee+=Ee;return J+Ee}function O(Ee,F,J,I){var V=F.href,j=F.title?g(F.title):null,Z=Ee[1].replace(/\\([\[\]])/g,"$1");if(Ee[0].charAt(0)!=="!"){I.state.inLink=!0;var he={type:"link",raw:J,href:V,title:j,text:Z,tokens:I.inlineTokens(Z)};return I.state.inLink=!1,he}return{type:"image",raw:J,href:V,title:j,text:g(Z)}}function H(Ee,F){var J=Ee.match(/^(\s+)(?:```)/);if(J===null)return F;var I=J[1];return F.split(`
`).map(function(V){var j=V.match(/^\s+/);if(j===null)return V;var Z=j[0];return Z.length>=I.length?V.slice(I.length):V}).join(`
`)}var N=function(){function Ee(J){this.options=J||ge.defaults}var F=Ee.prototype;return F.space=function(I){var V=this.rules.block.newline.exec(I);if(V&&V[0].length>0)return{type:"space",raw:V[0]}},F.code=function(I){var V=this.rules.block.code.exec(I);if(V){var j=V[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:V[0],codeBlockStyle:"indented",text:this.options.pedantic?j:m(j,`
`)}}},F.fences=function(I){var V=this.rules.block.fences.exec(I);if(V){var j=V[0],Z=H(j,V[3]||"");return{type:"code",raw:j,lang:V[2]?V[2].trim():V[2],text:Z}}},F.heading=function(I){var V=this.rules.block.heading.exec(I);if(V){var j=V[2].trim();if(/#$/.test(j)){var Z=m(j,"#");(this.options.pedantic||!Z||/ $/.test(Z))&&(j=Z.trim())}return{type:"heading",raw:V[0],depth:V[1].length,text:j,tokens:this.lexer.inline(j)}}},F.hr=function(I){var V=this.rules.block.hr.exec(I);if(V)return{type:"hr",raw:V[0]}},F.blockquote=function(I){var V=this.rules.block.blockquote.exec(I);if(V){var j=V[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:V[0],tokens:this.lexer.blockTokens(j,[]),text:j}}},F.list=function(I){var V=this.rules.block.list.exec(I);if(V){var j,Z,he,Pe,z,ee,ie,ue,Y,me,Se,Ue,ze=V[1].trim(),et=ze.length>1,Ye={type:"list",raw:"",ordered:et,start:et?+ze.slice(0,-1):"",loose:!1,items:[]};ze=et?"\\d{1,9}\\"+ze.slice(-1):"\\"+ze,this.options.pedantic&&(ze=et?ze:"[*+-]");for(var at=new RegExp("^( {0,3}"+ze+")((?:[	 ][^\\n]*)?(?:\\n|$))");I&&(Ue=!1,!(!(V=at.exec(I))||this.rules.block.hr.test(I)));){if(j=V[0],I=I.substring(j.length),ue=V[2].split(`
`,1)[0],Y=I.split(`
`,1)[0],this.options.pedantic?(Pe=2,Se=ue.trimLeft()):(Pe=V[2].search(/[^ ]/),Pe=Pe>4?1:Pe,Se=ue.slice(Pe),Pe+=V[1].length),ee=!1,!ue&&/^ *$/.test(Y)&&(j+=Y+`
`,I=I.substring(Y.length+1),Ue=!0),!Ue)for(var it=new RegExp("^ {0,"+Math.min(3,Pe-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),rt=new RegExp("^ {0,"+Math.min(3,Pe-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),Ae=new RegExp("^ {0,"+Math.min(3,Pe-1)+"}(?:```|~~~)"),xe=new RegExp("^ {0,"+Math.min(3,Pe-1)+"}#");I&&(me=I.split(`
`,1)[0],ue=me,this.options.pedantic&&(ue=ue.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(Ae.test(ue)||xe.test(ue)||it.test(ue)||rt.test(I)));){if(ue.search(/[^ ]/)>=Pe||!ue.trim())Se+=`
`+ue.slice(Pe);else if(!ee)Se+=`
`+ue;else break;!ee&&!ue.trim()&&(ee=!0),j+=me+`
`,I=I.substring(me.length+1)}Ye.loose||(ie?Ye.loose=!0:/\n *\n *$/.test(j)&&(ie=!0)),this.options.gfm&&(Z=/^\[[ xX]\] /.exec(Se),Z&&(he=Z[0]!=="[ ] ",Se=Se.replace(/^\[[ xX]\] +/,""))),Ye.items.push({type:"list_item",raw:j,task:!!Z,checked:he,loose:!1,text:Se}),Ye.raw+=j}Ye.items[Ye.items.length-1].raw=j.trimRight(),Ye.items[Ye.items.length-1].text=Se.trimRight(),Ye.raw=Ye.raw.trimRight();var Te=Ye.items.length;for(z=0;z<Te;z++){this.lexer.state.top=!1,Ye.items[z].tokens=this.lexer.blockTokens(Ye.items[z].text,[]);var Ve=Ye.items[z].tokens.filter(function(ae){return ae.type==="space"}),de=Ve.every(function(ae){for(var De=ae.raw.split(""),Me=0,qe=A(De),Je;!(Je=qe()).done;){var st=Je.value;if(st===`
`&&(Me+=1),Me>1)return!0}return!1});!Ye.loose&&Ve.length&&de&&(Ye.loose=!0,Ye.items[z].loose=!0)}return Ye}},F.html=function(I){var V=this.rules.block.html.exec(I);if(V){var j={type:"html",raw:V[0],pre:!this.options.sanitizer&&(V[1]==="pre"||V[1]==="script"||V[1]==="style"),text:V[0]};if(this.options.sanitize){var Z=this.options.sanitizer?this.options.sanitizer(V[0]):g(V[0]);j.type="paragraph",j.text=Z,j.tokens=this.lexer.inline(Z)}return j}},F.def=function(I){var V=this.rules.block.def.exec(I);if(V){V[3]&&(V[3]=V[3].substring(1,V[3].length-1));var j=V[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:j,raw:V[0],href:V[2],title:V[3]}}},F.table=function(I){var V=this.rules.block.table.exec(I);if(V){var j={type:"table",header:k(V[1]).map(function(ie){return{text:ie}}),align:V[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:V[3]&&V[3].trim()?V[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(j.header.length===j.align.length){j.raw=V[0];var Z=j.align.length,he,Pe,z,ee;for(he=0;he<Z;he++)/^ *-+: *$/.test(j.align[he])?j.align[he]="right":/^ *:-+: *$/.test(j.align[he])?j.align[he]="center":/^ *:-+ *$/.test(j.align[he])?j.align[he]="left":j.align[he]=null;for(Z=j.rows.length,he=0;he<Z;he++)j.rows[he]=k(j.rows[he],j.header.length).map(function(ie){return{text:ie}});for(Z=j.header.length,Pe=0;Pe<Z;Pe++)j.header[Pe].tokens=this.lexer.inline(j.header[Pe].text);for(Z=j.rows.length,Pe=0;Pe<Z;Pe++)for(ee=j.rows[Pe],z=0;z<ee.length;z++)ee[z].tokens=this.lexer.inline(ee[z].text);return j}}},F.lheading=function(I){var V=this.rules.block.lheading.exec(I);if(V)return{type:"heading",raw:V[0],depth:V[2].charAt(0)==="="?1:2,text:V[1],tokens:this.lexer.inline(V[1])}},F.paragraph=function(I){var V=this.rules.block.paragraph.exec(I);if(V){var j=V[1].charAt(V[1].length-1)===`
`?V[1].slice(0,-1):V[1];return{type:"paragraph",raw:V[0],text:j,tokens:this.lexer.inline(j)}}},F.text=function(I){var V=this.rules.block.text.exec(I);if(V)return{type:"text",raw:V[0],text:V[0],tokens:this.lexer.inline(V[0])}},F.escape=function(I){var V=this.rules.inline.escape.exec(I);if(V)return{type:"escape",raw:V[0],text:g(V[1])}},F.tag=function(I){var V=this.rules.inline.tag.exec(I);if(V)return!this.lexer.state.inLink&&/^<a /i.test(V[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(V[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(V[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(V[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:V[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(V[0]):g(V[0]):V[0]}},F.link=function(I){var V=this.rules.inline.link.exec(I);if(V){var j=V[2].trim();if(!this.options.pedantic&&/^</.test(j)){if(!/>$/.test(j))return;var Z=m(j.slice(0,-1),"\\");if((j.length-Z.length)%2===0)return}else{var he=v(V[2],"()");if(he>-1){var Pe=V[0].indexOf("!")===0?5:4,z=Pe+V[1].length+he;V[2]=V[2].substring(0,he),V[0]=V[0].substring(0,z).trim(),V[3]=""}}var ee=V[2],ie="";if(this.options.pedantic){var ue=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ee);ue&&(ee=ue[1],ie=ue[3])}else ie=V[3]?V[3].slice(1,-1):"";return ee=ee.trim(),/^</.test(ee)&&(this.options.pedantic&&!/>$/.test(j)?ee=ee.slice(1):ee=ee.slice(1,-1)),O(V,{href:ee&&ee.replace(this.rules.inline._escapes,"$1"),title:ie&&ie.replace(this.rules.inline._escapes,"$1")},V[0],this.lexer)}},F.reflink=function(I,V){var j;if((j=this.rules.inline.reflink.exec(I))||(j=this.rules.inline.nolink.exec(I))){var Z=(j[2]||j[1]).replace(/\s+/g," ");if(Z=V[Z.toLowerCase()],!Z||!Z.href){var he=j[0].charAt(0);return{type:"text",raw:he,text:he}}return O(j,Z,j[0],this.lexer)}},F.emStrong=function(I,V,j){j===void 0&&(j="");var Z=this.rules.inline.emStrong.lDelim.exec(I);if(Z&&!(Z[3]&&j.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var he=Z[1]||Z[2]||"";if(!he||he&&(j===""||this.rules.inline.punctuation.exec(j))){var Pe=Z[0].length-1,z,ee,ie=Pe,ue=0,Y=Z[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Y.lastIndex=0,V=V.slice(-1*I.length+Pe);(Z=Y.exec(V))!=null;)if(z=Z[1]||Z[2]||Z[3]||Z[4]||Z[5]||Z[6],!!z){if(ee=z.length,Z[3]||Z[4]){ie+=ee;continue}else if((Z[5]||Z[6])&&Pe%3&&!((Pe+ee)%3)){ue+=ee;continue}if(ie-=ee,!(ie>0)){if(ee=Math.min(ee,ee+ie+ue),Math.min(Pe,ee)%2){var me=I.slice(1,Pe+Z.index+ee);return{type:"em",raw:I.slice(0,Pe+Z.index+ee+1),text:me,tokens:this.lexer.inlineTokens(me)}}var Se=I.slice(2,Pe+Z.index+ee-1);return{type:"strong",raw:I.slice(0,Pe+Z.index+ee+1),text:Se,tokens:this.lexer.inlineTokens(Se)}}}}}},F.codespan=function(I){var V=this.rules.inline.code.exec(I);if(V){var j=V[2].replace(/\n/g," "),Z=/[^ ]/.test(j),he=/^ /.test(j)&&/ $/.test(j);return Z&&he&&(j=j.substring(1,j.length-1)),j=g(j,!0),{type:"codespan",raw:V[0],text:j}}},F.br=function(I){var V=this.rules.inline.br.exec(I);if(V)return{type:"br",raw:V[0]}},F.del=function(I){var V=this.rules.inline.del.exec(I);if(V)return{type:"del",raw:V[0],text:V[2],tokens:this.lexer.inlineTokens(V[2])}},F.autolink=function(I,V){var j=this.rules.inline.autolink.exec(I);if(j){var Z,he;return j[2]==="@"?(Z=g(this.options.mangle?V(j[1]):j[1]),he="mailto:"+Z):(Z=g(j[1]),he=Z),{type:"link",raw:j[0],text:Z,href:he,tokens:[{type:"text",raw:Z,text:Z}]}}},F.url=function(I,V){var j;if(j=this.rules.inline.url.exec(I)){var Z,he;if(j[2]==="@")Z=g(this.options.mangle?V(j[0]):j[0]),he="mailto:"+Z;else{var Pe;do Pe=j[0],j[0]=this.rules.inline._backpedal.exec(j[0])[0];while(Pe!==j[0]);Z=g(j[0]),j[1]==="www."?he="http://"+Z:he=Z}return{type:"link",raw:j[0],text:Z,href:he,tokens:[{type:"text",raw:Z,text:Z}]}}},F.inlineText=function(I,V){var j=this.rules.inline.text.exec(I);if(j){var Z;return this.lexer.state.inRawBlock?Z=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(j[0]):g(j[0]):j[0]:Z=g(this.options.smartypants?V(j[0]):j[0]),{type:"text",raw:j[0],text:Z}}},Ee}(),$={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:_,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};$._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,$.def=o($.def).replace("label",$._label).replace("title",$._title).getRegex(),$.bullet=/(?:[*+-]|\d{1,9}[.)])/,$.listItemStart=o(/^( *)(bull) */).replace("bull",$.bullet).getRegex(),$.list=o($.list).replace(/bull/g,$.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$.def.source+")").getRegex(),$._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,$.html=o($.html,"i").replace("comment",$._comment).replace("tag",$._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$.paragraph=o($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.blockquote=o($.blockquote).replace("paragraph",$.paragraph).getRegex(),$.normal=S({},$),$.gfm=S({},$.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),$.gfm.table=o($.gfm.table).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.gfm.paragraph=o($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",$.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex(),$.pedantic=S({},$.normal,{html:o(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_,paragraph:o($.normal._paragraph).replace("hr",$.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",$.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:_,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};U._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",U.punctuation=o(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=o($._comment).replace("(?:-->|$)","-->").getRegex(),U.emStrong.lDelim=o(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=o(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=o(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,U.autolink=o(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=o(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=o(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=o(U.reflink).replace("label",U._label).replace("ref",$._label).getRegex(),U.nolink=o(U.nolink).replace("ref",$._label).getRegex(),U.reflinkSearch=o(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=S({},U),U.pedantic=S({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:o(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:o(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=S({},U.normal,{escape:o(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),U.gfm.url=o(U.gfm.url,"i").replace("email",U.gfm._extended_email).getRegex(),U.breaks=S({},U.gfm,{br:o(U.br).replace("{2,}","*").getRegex(),text:o(U.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function x(Ee){return Ee.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function X(Ee){var F="",J,I,V=Ee.length;for(J=0;J<V;J++)I=Ee.charCodeAt(J),Math.random()>.5&&(I="x"+I.toString(16)),F+="&#"+I+";";return F}var K=function(){function Ee(J){this.tokens=[],this.tokens.links=Object.create(null),this.options=J||ge.defaults,this.options.tokenizer=this.options.tokenizer||new N,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var I={block:$.normal,inline:U.normal};this.options.pedantic?(I.block=$.pedantic,I.inline=U.pedantic):this.options.gfm&&(I.block=$.gfm,this.options.breaks?I.inline=U.breaks:I.inline=U.gfm),this.tokenizer.rules=I}Ee.lex=function(I,V){var j=new Ee(V);return j.lex(I)},Ee.lexInline=function(I,V){var j=new Ee(V);return j.inlineTokens(I)};var F=Ee.prototype;return F.lex=function(I){I=I.replace(/\r\n|\r/g,`
`),this.blockTokens(I,this.tokens);for(var V;V=this.inlineQueue.shift();)this.inlineTokens(V.src,V.tokens);return this.tokens},F.blockTokens=function(I,V){var j=this;V===void 0&&(V=[]),this.options.pedantic?I=I.replace(/\t/g,"    ").replace(/^ +$/gm,""):I=I.replace(/^( *)(\t+)/gm,function(ie,ue,Y){return ue+"    ".repeat(Y.length)});for(var Z,he,Pe,z;I;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(ie){return(Z=ie.call({lexer:j},I,V))?(I=I.substring(Z.raw.length),V.push(Z),!0):!1}))){if(Z=this.tokenizer.space(I)){I=I.substring(Z.raw.length),Z.raw.length===1&&V.length>0?V[V.length-1].raw+=`
`:V.push(Z);continue}if(Z=this.tokenizer.code(I)){I=I.substring(Z.raw.length),he=V[V.length-1],he&&(he.type==="paragraph"||he.type==="text")?(he.raw+=`
`+Z.raw,he.text+=`
`+Z.text,this.inlineQueue[this.inlineQueue.length-1].src=he.text):V.push(Z);continue}if(Z=this.tokenizer.fences(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.heading(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.hr(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.blockquote(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.list(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.html(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.def(I)){I=I.substring(Z.raw.length),he=V[V.length-1],he&&(he.type==="paragraph"||he.type==="text")?(he.raw+=`
`+Z.raw,he.text+=`
`+Z.raw,this.inlineQueue[this.inlineQueue.length-1].src=he.text):this.tokens.links[Z.tag]||(this.tokens.links[Z.tag]={href:Z.href,title:Z.title});continue}if(Z=this.tokenizer.table(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.lheading(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Pe=I,this.options.extensions&&this.options.extensions.startBlock&&function(){var ie=1/0,ue=I.slice(1),Y=void 0;j.options.extensions.startBlock.forEach(function(me){Y=me.call({lexer:this},ue),typeof Y=="number"&&Y>=0&&(ie=Math.min(ie,Y))}),ie<1/0&&ie>=0&&(Pe=I.substring(0,ie+1))}(),this.state.top&&(Z=this.tokenizer.paragraph(Pe))){he=V[V.length-1],z&&he.type==="paragraph"?(he.raw+=`
`+Z.raw,he.text+=`
`+Z.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=he.text):V.push(Z),z=Pe.length!==I.length,I=I.substring(Z.raw.length);continue}if(Z=this.tokenizer.text(I)){I=I.substring(Z.raw.length),he=V[V.length-1],he&&he.type==="text"?(he.raw+=`
`+Z.raw,he.text+=`
`+Z.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=he.text):V.push(Z);continue}if(I){var ee="Infinite loop on byte: "+I.charCodeAt(0);if(this.options.silent){console.error(ee);break}else throw new Error(ee)}}return this.state.top=!0,V},F.inline=function(I,V){return V===void 0&&(V=[]),this.inlineQueue.push({src:I,tokens:V}),V},F.inlineTokens=function(I,V){var j=this;V===void 0&&(V=[]);var Z,he,Pe,z=I,ee,ie,ue;if(this.tokens.links){var Y=Object.keys(this.tokens.links);if(Y.length>0)for(;(ee=this.tokenizer.rules.inline.reflinkSearch.exec(z))!=null;)Y.includes(ee[0].slice(ee[0].lastIndexOf("[")+1,-1))&&(z=z.slice(0,ee.index)+"["+L("a",ee[0].length-2)+"]"+z.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ee=this.tokenizer.rules.inline.blockSkip.exec(z))!=null;)z=z.slice(0,ee.index)+"["+L("a",ee[0].length-2)+"]"+z.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ee=this.tokenizer.rules.inline.escapedEmSt.exec(z))!=null;)z=z.slice(0,ee.index)+"++"+z.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;I;)if(ie||(ue=""),ie=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Se){return(Z=Se.call({lexer:j},I,V))?(I=I.substring(Z.raw.length),V.push(Z),!0):!1}))){if(Z=this.tokenizer.escape(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.tag(I)){I=I.substring(Z.raw.length),he=V[V.length-1],he&&Z.type==="text"&&he.type==="text"?(he.raw+=Z.raw,he.text+=Z.text):V.push(Z);continue}if(Z=this.tokenizer.link(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.reflink(I,this.tokens.links)){I=I.substring(Z.raw.length),he=V[V.length-1],he&&Z.type==="text"&&he.type==="text"?(he.raw+=Z.raw,he.text+=Z.text):V.push(Z);continue}if(Z=this.tokenizer.emStrong(I,z,ue)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.codespan(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.br(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.del(I)){I=I.substring(Z.raw.length),V.push(Z);continue}if(Z=this.tokenizer.autolink(I,X)){I=I.substring(Z.raw.length),V.push(Z);continue}if(!this.state.inLink&&(Z=this.tokenizer.url(I,X))){I=I.substring(Z.raw.length),V.push(Z);continue}if(Pe=I,this.options.extensions&&this.options.extensions.startInline&&function(){var Se=1/0,Ue=I.slice(1),ze=void 0;j.options.extensions.startInline.forEach(function(et){ze=et.call({lexer:this},Ue),typeof ze=="number"&&ze>=0&&(Se=Math.min(Se,ze))}),Se<1/0&&Se>=0&&(Pe=I.substring(0,Se+1))}(),Z=this.tokenizer.inlineText(Pe,x)){I=I.substring(Z.raw.length),Z.raw.slice(-1)!=="_"&&(ue=Z.raw.slice(-1)),ie=!0,he=V[V.length-1],he&&he.type==="text"?(he.raw+=Z.raw,he.text+=Z.text):V.push(Z);continue}if(I){var me="Infinite loop on byte: "+I.charCodeAt(0);if(this.options.silent){console.error(me);break}else throw new Error(me)}}return V},w(Ee,null,[{key:"rules",get:function(){return{block:$,inline:U}}}]),Ee}(),pe=function(){function Ee(J){this.options=J||ge.defaults}var F=Ee.prototype;return F.code=function(I,V,j){var Z=(V||"").match(/\S*/)[0];if(this.options.highlight){var he=this.options.highlight(I,Z);he!=null&&he!==I&&(j=!0,I=he)}return I=I.replace(/\n$/,"")+`
`,Z?'<pre><code class="'+this.options.langPrefix+g(Z,!0)+'">'+(j?I:g(I,!0))+`</code></pre>
`:"<pre><code>"+(j?I:g(I,!0))+`</code></pre>
`},F.blockquote=function(I){return`<blockquote>
`+I+`</blockquote>
`},F.html=function(I){return I},F.heading=function(I,V,j,Z){if(this.options.headerIds){var he=this.options.headerPrefix+Z.slug(j);return"<h"+V+' id="'+he+'">'+I+"</h"+V+`>
`}return"<h"+V+">"+I+"</h"+V+`>
`},F.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},F.list=function(I,V,j){var Z=V?"ol":"ul",he=V&&j!==1?' start="'+j+'"':"";return"<"+Z+he+`>
`+I+"</"+Z+`>
`},F.listitem=function(I){return"<li>"+I+`</li>
`},F.checkbox=function(I){return"<input "+(I?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},F.paragraph=function(I){return"<p>"+I+`</p>
`},F.table=function(I,V){return V&&(V="<tbody>"+V+"</tbody>"),`<table>
<thead>
`+I+`</thead>
`+V+`</table>
`},F.tablerow=function(I){return`<tr>
`+I+`</tr>
`},F.tablecell=function(I,V){var j=V.header?"th":"td",Z=V.align?"<"+j+' align="'+V.align+'">':"<"+j+">";return Z+I+("</"+j+`>
`)},F.strong=function(I){return"<strong>"+I+"</strong>"},F.em=function(I){return"<em>"+I+"</em>"},F.codespan=function(I){return"<code>"+I+"</code>"},F.br=function(){return this.options.xhtml?"<br/>":"<br>"},F.del=function(I){return"<del>"+I+"</del>"},F.link=function(I,V,j){if(I=T(this.options.sanitize,this.options.baseUrl,I),I===null)return j;var Z='<a href="'+g(I)+'"';return V&&(Z+=' title="'+V+'"'),Z+=">"+j+"</a>",Z},F.image=function(I,V,j){if(I=T(this.options.sanitize,this.options.baseUrl,I),I===null)return j;var Z='<img src="'+I+'" alt="'+j+'"';return V&&(Z+=' title="'+V+'"'),Z+=this.options.xhtml?"/>":">",Z},F.text=function(I){return I},Ee}(),le=function(){function Ee(){}var F=Ee.prototype;return F.strong=function(I){return I},F.em=function(I){return I},F.codespan=function(I){return I},F.del=function(I){return I},F.html=function(I){return I},F.text=function(I){return I},F.link=function(I,V,j){return""+j},F.image=function(I,V,j){return""+j},F.br=function(){return""},Ee}(),re=function(){function Ee(){this.seen={}}var F=Ee.prototype;return F.serialize=function(I){return I.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},F.getNextSafeSlug=function(I,V){var j=I,Z=0;if(this.seen.hasOwnProperty(j)){Z=this.seen[I];do Z++,j=I+"-"+Z;while(this.seen.hasOwnProperty(j))}return V||(this.seen[I]=Z,this.seen[j]=0),j},F.slug=function(I,V){V===void 0&&(V={});var j=this.serialize(I);return this.getNextSafeSlug(j,V.dryrun)},Ee}(),q=function(){function Ee(J){this.options=J||ge.defaults,this.options.renderer=this.options.renderer||new pe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new le,this.slugger=new re}Ee.parse=function(I,V){var j=new Ee(V);return j.parse(I)},Ee.parseInline=function(I,V){var j=new Ee(V);return j.parseInline(I)};var F=Ee.prototype;return F.parse=function(I,V){V===void 0&&(V=!0);var j="",Z,he,Pe,z,ee,ie,ue,Y,me,Se,Ue,ze,et,Ye,at,it,rt,Ae,xe,Te=I.length;for(Z=0;Z<Te;Z++){if(Se=I[Z],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Se.type]&&(xe=this.options.extensions.renderers[Se.type].call({parser:this},Se),xe!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Se.type))){j+=xe||"";continue}switch(Se.type){case"space":continue;case"hr":{j+=this.renderer.hr();continue}case"heading":{j+=this.renderer.heading(this.parseInline(Se.tokens),Se.depth,r(this.parseInline(Se.tokens,this.textRenderer)),this.slugger);continue}case"code":{j+=this.renderer.code(Se.text,Se.lang,Se.escaped);continue}case"table":{for(Y="",ue="",z=Se.header.length,he=0;he<z;he++)ue+=this.renderer.tablecell(this.parseInline(Se.header[he].tokens),{header:!0,align:Se.align[he]});for(Y+=this.renderer.tablerow(ue),me="",z=Se.rows.length,he=0;he<z;he++){for(ie=Se.rows[he],ue="",ee=ie.length,Pe=0;Pe<ee;Pe++)ue+=this.renderer.tablecell(this.parseInline(ie[Pe].tokens),{header:!1,align:Se.align[Pe]});me+=this.renderer.tablerow(ue)}j+=this.renderer.table(Y,me);continue}case"blockquote":{me=this.parse(Se.tokens),j+=this.renderer.blockquote(me);continue}case"list":{for(Ue=Se.ordered,ze=Se.start,et=Se.loose,z=Se.items.length,me="",he=0;he<z;he++)at=Se.items[he],it=at.checked,rt=at.task,Ye="",at.task&&(Ae=this.renderer.checkbox(it),et?at.tokens.length>0&&at.tokens[0].type==="paragraph"?(at.tokens[0].text=Ae+" "+at.tokens[0].text,at.tokens[0].tokens&&at.tokens[0].tokens.length>0&&at.tokens[0].tokens[0].type==="text"&&(at.tokens[0].tokens[0].text=Ae+" "+at.tokens[0].tokens[0].text)):at.tokens.unshift({type:"text",text:Ae}):Ye+=Ae),Ye+=this.parse(at.tokens,et),me+=this.renderer.listitem(Ye,rt,it);j+=this.renderer.list(me,Ue,ze);continue}case"html":{j+=this.renderer.html(Se.text);continue}case"paragraph":{j+=this.renderer.paragraph(this.parseInline(Se.tokens));continue}case"text":{for(me=Se.tokens?this.parseInline(Se.tokens):Se.text;Z+1<Te&&I[Z+1].type==="text";)Se=I[++Z],me+=`
`+(Se.tokens?this.parseInline(Se.tokens):Se.text);j+=V?this.renderer.paragraph(me):me;continue}default:{var Ve='Token with "'+Se.type+'" type was not found.';if(this.options.silent){console.error(Ve);return}else throw new Error(Ve)}}}return j},F.parseInline=function(I,V){V=V||this.renderer;var j="",Z,he,Pe,z=I.length;for(Z=0;Z<z;Z++){if(he=I[Z],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[he.type]&&(Pe=this.options.extensions.renderers[he.type].call({parser:this},he),Pe!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(he.type))){j+=Pe||"";continue}switch(he.type){case"escape":{j+=V.text(he.text);break}case"html":{j+=V.html(he.text);break}case"link":{j+=V.link(he.href,he.title,this.parseInline(he.tokens,V));break}case"image":{j+=V.image(he.href,he.title,he.text);break}case"strong":{j+=V.strong(this.parseInline(he.tokens,V));break}case"em":{j+=V.em(this.parseInline(he.tokens,V));break}case"codespan":{j+=V.codespan(he.text);break}case"br":{j+=V.br();break}case"del":{j+=V.del(this.parseInline(he.tokens,V));break}case"text":{j+=V.text(he.text);break}default:{var ee='Token with "'+he.type+'" type was not found.';if(this.options.silent){console.error(ee);return}else throw new Error(ee)}}}return j},Ee}();function oe(Ee,F,J){if(typeof Ee>"u"||Ee===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ee!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ee)+", string expected");if(typeof F=="function"&&(J=F,F=null),F=S({},oe.defaults,F||{}),D(F),J){var I=F.highlight,V;try{V=K.lex(Ee,F)}catch(z){return J(z)}var j=function(ee){var ie;if(!ee)try{F.walkTokens&&oe.walkTokens(V,F.walkTokens),ie=q.parse(V,F)}catch(ue){ee=ue}return F.highlight=I,ee?J(ee):J(null,ie)};if(!I||I.length<3||(delete F.highlight,!V.length))return j();var Z=0;oe.walkTokens(V,function(z){z.type==="code"&&(Z++,setTimeout(function(){I(z.text,z.lang,function(ee,ie){if(ee)return j(ee);ie!=null&&ie!==z.text&&(z.text=ie,z.escaped=!0),Z--,Z===0&&j()})},0))}),Z===0&&j();return}function he(z){if(z.message+=`
Please report this to https://github.com/markedjs/marked.`,F.silent)return"<p>An error occurred:</p><pre>"+g(z.message+"",!0)+"</pre>";throw z}try{var Pe=K.lex(Ee,F);if(F.walkTokens){if(F.async)return Promise.all(oe.walkTokens(Pe,F.walkTokens)).then(function(){return q.parse(Pe,F)}).catch(he);oe.walkTokens(Pe,F.walkTokens)}return q.parse(Pe,F)}catch(z){he(z)}}oe.options=oe.setOptions=function(Ee){return S(oe.defaults,Ee),u(oe.defaults),oe},oe.getDefaults=R,oe.defaults=ge.defaults,oe.use=function(){for(var Ee=arguments.length,F=new Array(Ee),J=0;J<Ee;J++)F[J]=arguments[J];var I=S.apply(void 0,[{}].concat(F)),V=oe.defaults.extensions||{renderers:{},childTokens:{}},j;F.forEach(function(Z){if(Z.extensions&&(j=!0,Z.extensions.forEach(function(Pe){if(!Pe.name)throw new Error("extension name required");if(Pe.renderer){var z=V.renderers?V.renderers[Pe.name]:null;z?V.renderers[Pe.name]=function(){for(var ee=arguments.length,ie=new Array(ee),ue=0;ue<ee;ue++)ie[ue]=arguments[ue];var Y=Pe.renderer.apply(this,ie);return Y===!1&&(Y=z.apply(this,ie)),Y}:V.renderers[Pe.name]=Pe.renderer}if(Pe.tokenizer){if(!Pe.level||Pe.level!=="block"&&Pe.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");V[Pe.level]?V[Pe.level].unshift(Pe.tokenizer):V[Pe.level]=[Pe.tokenizer],Pe.start&&(Pe.level==="block"?V.startBlock?V.startBlock.push(Pe.start):V.startBlock=[Pe.start]:Pe.level==="inline"&&(V.startInline?V.startInline.push(Pe.start):V.startInline=[Pe.start]))}Pe.childTokens&&(V.childTokens[Pe.name]=Pe.childTokens)})),Z.renderer&&function(){var Pe=oe.defaults.renderer||new pe,z=function(ue){var Y=Pe[ue];Pe[ue]=function(){for(var me=arguments.length,Se=new Array(me),Ue=0;Ue<me;Ue++)Se[Ue]=arguments[Ue];var ze=Z.renderer[ue].apply(Pe,Se);return ze===!1&&(ze=Y.apply(Pe,Se)),ze}};for(var ee in Z.renderer)z(ee);I.renderer=Pe}(),Z.tokenizer&&function(){var Pe=oe.defaults.tokenizer||new N,z=function(ue){var Y=Pe[ue];Pe[ue]=function(){for(var me=arguments.length,Se=new Array(me),Ue=0;Ue<me;Ue++)Se[Ue]=arguments[Ue];var ze=Z.tokenizer[ue].apply(Pe,Se);return ze===!1&&(ze=Y.apply(Pe,Se)),ze}};for(var ee in Z.tokenizer)z(ee);I.tokenizer=Pe}(),Z.walkTokens){var he=oe.defaults.walkTokens;I.walkTokens=function(Pe){var z=[];return z.push(Z.walkTokens.call(this,Pe)),he&&(z=z.concat(he.call(this,Pe))),z}}j&&(I.extensions=V),oe.setOptions(I)})},oe.walkTokens=function(Ee,F){for(var J=[],I=function(){var he=j.value;switch(J=J.concat(F.call(oe,he)),he.type){case"table":{for(var Pe=A(he.header),z;!(z=Pe()).done;){var ee=z.value;J=J.concat(oe.walkTokens(ee.tokens,F))}for(var ie=A(he.rows),ue;!(ue=ie()).done;)for(var Y=ue.value,me=A(Y),Se;!(Se=me()).done;){var Ue=Se.value;J=J.concat(oe.walkTokens(Ue.tokens,F))}break}case"list":{J=J.concat(oe.walkTokens(he.items,F));break}default:oe.defaults.extensions&&oe.defaults.extensions.childTokens&&oe.defaults.extensions.childTokens[he.type]?oe.defaults.extensions.childTokens[he.type].forEach(function(ze){J=J.concat(oe.walkTokens(he[ze],F))}):he.tokens&&(J=J.concat(oe.walkTokens(he.tokens,F)))}},V=A(Ee),j;!(j=V()).done;)I();return J},oe.parseInline=function(Ee,F){if(typeof Ee>"u"||Ee===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Ee!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Ee)+", string expected");F=S({},oe.defaults,F||{}),D(F);try{var J=K.lexInline(Ee,F);return F.walkTokens&&oe.walkTokens(J,F.walkTokens),q.parseInline(J,F)}catch(I){if(I.message+=`
Please report this to https://github.com/markedjs/marked.`,F.silent)return"<p>An error occurred:</p><pre>"+g(I.message+"",!0)+"</pre>";throw I}},oe.Parser=q,oe.parser=q.parse,oe.Renderer=pe,oe.TextRenderer=le,oe.Lexer=K,oe.lexer=K.lex,oe.Tokenizer=N,oe.Slugger=re,oe.parse=oe;var ve=oe.options,ce=oe.setOptions,se=oe.use,te=oe.walkTokens,B=oe.parseInline,G=oe,fe=q.parse,_e=K.lex;ge.Lexer=K,ge.Parser=q,ge.Renderer=pe,ge.Slugger=re,ge.TextRenderer=le,ge.Tokenizer=N,ge.getDefaults=R,ge.lexer=_e,ge.marked=oe,ge.options=ve,ge.parse=G,ge.parseInline=B,ge.parser=fe,ge.setOptions=ce,ge.use=se,ge.walkTokens=te,Object.defineProperty(ge,"__esModule",{value:!0})}),define(ye[71],Ce([1,0,28]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const M=new w.LRUCache(1e4);function d(f){return p(f,"NFC",M)}e.normalizeNFC=d;const A=new w.LRUCache(1e4);function R(f){return p(f,"NFD",A)}e.normalizeNFD=R;const u=/[^\u0000-\u0080]/;function p(f,y,E){if(!f)return f;const t=E.get(f);if(t)return t;let s;return u.test(f)?s=f.normalize(y):s=f,E.set(f,s),s}e.removeAccents=function(){const f=/[\u0300-\u036f]/g;return function(y){return R(y).replace(f,"")}}()}),define(ye[118],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SlidingWindowAverage=e.MovingAverage=e.Counter=e.rot=e.clamp=void 0;function w(u,p,f){return Math.min(Math.max(u,p),f)}e.clamp=w;function M(u,p){return(p+u%p)%p}e.rot=M;class d{constructor(){this._next=0}getNext(){return this._next++}}e.Counter=d;class A{constructor(){this._n=1,this._val=0}update(p){return this._val=this._val+(p-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}e.MovingAverage=A;class R{constructor(p){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(p),this._values.fill(0,0,p)}update(p){const f=this._values[this._index];return this._values[this._index]=p,this._index=(this._index+1)%this._values.length,this._sum-=f,this._sum+=p,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}e.SlidingWindowAverage=R}),function(){function ge(d){const A=[];typeof d=="number"&&A.push("code/timeOrigin",d);function R(p){A.push(p,Date.now())}function u(){const p=[];for(let f=0;f<A.length;f+=2)p.push({name:A[f],startTime:A[f+1]});return p}return{mark:R,getMarks:u}}function e(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?ge():{mark(d){performance.mark(d)},getMarks(){let d=performance.timeOrigin;typeof d!="number"&&(d=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const A=[{name:"code/timeOrigin",startTime:Math.round(d)}];for(const R of performance.getEntriesByType("mark"))A.push({name:R.name,startTime:Math.round(d+R.startTime)});return A}};if(typeof process=="object"){const d=performance?.timeOrigin??Math.round((require.__$__nodeRequire||require)("perf_hooks").performance.timeOrigin);return ge(d)}else return console.trace("perf-util loaded in UNKNOWN environment"),ge()}function w(d){return d.MonacoPerformanceMarks||(d.MonacoPerformanceMarks=e()),d.MonacoPerformanceMarks}var M;typeof global=="object"?M=global:typeof self=="object"?M=self:M={},typeof define=="function"?define("vs/base/common/performance",[],function(){return w(M)}):typeof module=="object"&&typeof module.exports=="object"?module.exports=w(M):(console.trace("perf-util defined in UNKNOWN context (neither requirejs or commonjs)"),M.perf=w(M))}(),function(ge,e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define("vs/base/common/semver/semver",[],e);else{var w=e();for(var M in w)(typeof exports=="object"?exports:ge)[M]=w[M]}}(typeof self<"u"?self:this,function(){return function(ge){var e={};function w(M){if(e[M])return e[M].exports;var d=e[M]={i:M,l:!1,exports:{}};return ge[M].call(d.exports,d,d.exports,w),d.l=!0,d.exports}return w.m=ge,w.c=e,w.d=function(M,d,A){w.o(M,d)||Object.defineProperty(M,d,{enumerable:!0,get:A})},w.r=function(M){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},w.t=function(M,d){if(1&d&&(M=w(M)),8&d||4&d&&typeof M=="object"&&M&&M.__esModule)return M;var A=Object.create(null);if(w.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:M}),2&d&&typeof M!="string")for(var R in M)w.d(A,R,function(u){return M[u]}.bind(null,R));return A},w.n=function(M){var d=M&&M.__esModule?function(){return M.default}:function(){return M};return w.d(d,"a",d),d},w.o=function(M,d){return Object.prototype.hasOwnProperty.call(M,d)},w.p="",w(w.s=0)}([function(ge,e,w){(function(M){var d;e=ge.exports=se,d=typeof M=="object"&&M.env&&M.env.NODE_DEBUG&&/\bsemver\b/i.test(M.env.NODE_DEBUG)?function(){var Y=Array.prototype.slice.call(arguments,0);Y.unshift("SEMVER"),console.log.apply(console,Y)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var A=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,u=e.re=[],p=e.src=[],f=0,y=f++;p[y]="0|[1-9]\\d*";var E=f++;p[E]="[0-9]+";var t=f++;p[t]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var s=f++;p[s]="("+p[y]+")\\.("+p[y]+")\\.("+p[y]+")";var g=f++;p[g]="("+p[E]+")\\.("+p[E]+")\\.("+p[E]+")";var C=f++;p[C]="(?:"+p[y]+"|"+p[t]+")";var r=f++;p[r]="(?:"+p[E]+"|"+p[t]+")";var h=f++;p[h]="(?:-("+p[C]+"(?:\\."+p[C]+")*))";var o=f++;p[o]="(?:-?("+p[r]+"(?:\\."+p[r]+")*))";var b=f++;p[b]="[0-9A-Za-z-]+";var P=f++;p[P]="(?:\\+("+p[b]+"(?:\\."+p[b]+")*))";var T=f++,n="v?"+p[s]+p[h]+"?"+p[P]+"?";p[T]="^"+n+"$";var a="[v=\\s]*"+p[g]+p[o]+"?"+p[P]+"?",l=f++;p[l]="^"+a+"$";var i=f++;p[i]="((?:<|>)?=?)";var c=f++;p[c]=p[E]+"|x|X|\\*";var _=f++;p[_]=p[y]+"|x|X|\\*";var S=f++;p[S]="[v=\\s]*("+p[_]+")(?:\\.("+p[_]+")(?:\\.("+p[_]+")(?:"+p[h]+")?"+p[P]+"?)?)?";var k=f++;p[k]="[v=\\s]*("+p[c]+")(?:\\.("+p[c]+")(?:\\.("+p[c]+")(?:"+p[o]+")?"+p[P]+"?)?)?";var m=f++;p[m]="^"+p[i]+"\\s*"+p[S]+"$";var v=f++;p[v]="^"+p[i]+"\\s*"+p[k]+"$";var D=f++;p[D]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var L=f++;p[L]="(?:~>?)";var O=f++;p[O]="(\\s*)"+p[L]+"\\s+",u[O]=new RegExp(p[O],"g");var H=f++;p[H]="^"+p[L]+p[S]+"$";var N=f++;p[N]="^"+p[L]+p[k]+"$";var $=f++;p[$]="(?:\\^)";var U=f++;p[U]="(\\s*)"+p[$]+"\\s+",u[U]=new RegExp(p[U],"g");var x=f++;p[x]="^"+p[$]+p[S]+"$";var X=f++;p[X]="^"+p[$]+p[k]+"$";var K=f++;p[K]="^"+p[i]+"\\s*("+a+")$|^$";var pe=f++;p[pe]="^"+p[i]+"\\s*("+n+")$|^$";var le=f++;p[le]="(\\s*)"+p[i]+"\\s*("+a+"|"+p[S]+")",u[le]=new RegExp(p[le],"g");var re=f++;p[re]="^\\s*("+p[S]+")\\s+-\\s+("+p[S]+")\\s*$";var q=f++;p[q]="^\\s*("+p[k]+")\\s+-\\s+("+p[k]+")\\s*$";var oe=f++;p[oe]="(<|>)?=?\\s*\\*";for(var ve=0;ve<35;ve++)d(ve,p[ve]),u[ve]||(u[ve]=new RegExp(p[ve]));function ce(Y,me){if(Y instanceof se)return Y;if(typeof Y!="string"||Y.length>A||!(me?u[l]:u[T]).test(Y))return null;try{return new se(Y,me)}catch{return null}}function se(Y,me){if(Y instanceof se){if(Y.loose===me)return Y;Y=Y.version}else if(typeof Y!="string")throw new TypeError("Invalid Version: "+Y);if(Y.length>A)throw new TypeError("version is longer than "+A+" characters");if(!(this instanceof se))return new se(Y,me);d("SemVer",Y,me),this.loose=me;var Se=Y.trim().match(me?u[l]:u[T]);if(!Se)throw new TypeError("Invalid Version: "+Y);if(this.raw=Y,this.major=+Se[1],this.minor=+Se[2],this.patch=+Se[3],this.major>R||this.major<0)throw new TypeError("Invalid major version");if(this.minor>R||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>R||this.patch<0)throw new TypeError("Invalid patch version");Se[4]?this.prerelease=Se[4].split(".").map(function(Ue){if(/^[0-9]+$/.test(Ue)){var ze=+Ue;if(ze>=0&&ze<R)return ze}return Ue}):this.prerelease=[],this.build=Se[5]?Se[5].split("."):[],this.format()}e.parse=ce,e.valid=function(Y,me){var Se=ce(Y,me);return Se?Se.version:null},e.clean=function(Y,me){var Se=ce(Y.trim().replace(/^[=v]+/,""),me);return Se?Se.version:null},e.SemVer=se,se.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},se.prototype.toString=function(){return this.version},se.prototype.compare=function(Y){return d("SemVer.compare",this.version,this.loose,Y),Y instanceof se||(Y=new se(Y,this.loose)),this.compareMain(Y)||this.comparePre(Y)},se.prototype.compareMain=function(Y){return Y instanceof se||(Y=new se(Y,this.loose)),B(this.major,Y.major)||B(this.minor,Y.minor)||B(this.patch,Y.patch)},se.prototype.comparePre=function(Y){if(Y instanceof se||(Y=new se(Y,this.loose)),this.prerelease.length&&!Y.prerelease.length)return-1;if(!this.prerelease.length&&Y.prerelease.length)return 1;if(!this.prerelease.length&&!Y.prerelease.length)return 0;var me=0;do{var Se=this.prerelease[me],Ue=Y.prerelease[me];if(d("prerelease compare",me,Se,Ue),Se===void 0&&Ue===void 0)return 0;if(Ue===void 0)return 1;if(Se===void 0)return-1;if(Se!==Ue)return B(Se,Ue)}while(++me)},se.prototype.inc=function(Y,me){switch(Y){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",me);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",me);break;case"prepatch":this.prerelease.length=0,this.inc("patch",me),this.inc("pre",me);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",me),this.inc("pre",me);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":if(this.prerelease.length===0)this.prerelease=[0];else{for(var Se=this.prerelease.length;--Se>=0;)typeof this.prerelease[Se]=="number"&&(this.prerelease[Se]++,Se=-2);Se===-1&&this.prerelease.push(0)}me&&(this.prerelease[0]===me?isNaN(this.prerelease[1])&&(this.prerelease=[me,0]):this.prerelease=[me,0]);break;default:throw new Error("invalid increment argument: "+Y)}return this.format(),this.raw=this.version,this},e.inc=function(Y,me,Se,Ue){typeof Se=="string"&&(Ue=Se,Se=void 0);try{return new se(Y,Se).inc(me,Ue).version}catch{return null}},e.diff=function(Y,me){if(Ee(Y,me))return null;var Se=ce(Y),Ue=ce(me);if(Se.prerelease.length||Ue.prerelease.length){for(var ze in Se)if((ze==="major"||ze==="minor"||ze==="patch")&&Se[ze]!==Ue[ze])return"pre"+ze;return"prerelease"}for(var ze in Se)if((ze==="major"||ze==="minor"||ze==="patch")&&Se[ze]!==Ue[ze])return ze},e.compareIdentifiers=B;var te=/^[0-9]+$/;function B(Y,me){var Se=te.test(Y),Ue=te.test(me);return Se&&Ue&&(Y=+Y,me=+me),Se&&!Ue?-1:Ue&&!Se?1:Y<me?-1:Y>me?1:0}function G(Y,me,Se){return new se(Y,Se).compare(new se(me,Se))}function fe(Y,me,Se){return G(Y,me,Se)>0}function _e(Y,me,Se){return G(Y,me,Se)<0}function Ee(Y,me,Se){return G(Y,me,Se)===0}function F(Y,me,Se){return G(Y,me,Se)!==0}function J(Y,me,Se){return G(Y,me,Se)>=0}function I(Y,me,Se){return G(Y,me,Se)<=0}function V(Y,me,Se,Ue){var ze;switch(me){case"===":typeof Y=="object"&&(Y=Y.version),typeof Se=="object"&&(Se=Se.version),ze=Y===Se;break;case"!==":typeof Y=="object"&&(Y=Y.version),typeof Se=="object"&&(Se=Se.version),ze=Y!==Se;break;case"":case"=":case"==":ze=Ee(Y,Se,Ue);break;case"!=":ze=F(Y,Se,Ue);break;case">":ze=fe(Y,Se,Ue);break;case">=":ze=J(Y,Se,Ue);break;case"<":ze=_e(Y,Se,Ue);break;case"<=":ze=I(Y,Se,Ue);break;default:throw new TypeError("Invalid operator: "+me)}return ze}function j(Y,me){if(Y instanceof j){if(Y.loose===me)return Y;Y=Y.value}if(!(this instanceof j))return new j(Y,me);d("comparator",Y,me),this.loose=me,this.parse(Y),this.semver===Z?this.value="":this.value=this.operator+this.semver.version,d("comp",this)}e.rcompareIdentifiers=function(Y,me){return B(me,Y)},e.major=function(Y,me){return new se(Y,me).major},e.minor=function(Y,me){return new se(Y,me).minor},e.patch=function(Y,me){return new se(Y,me).patch},e.compare=G,e.compareLoose=function(Y,me){return G(Y,me,!0)},e.rcompare=function(Y,me,Se){return G(me,Y,Se)},e.sort=function(Y,me){return Y.sort(function(Se,Ue){return e.compare(Se,Ue,me)})},e.rsort=function(Y,me){return Y.sort(function(Se,Ue){return e.rcompare(Se,Ue,me)})},e.gt=fe,e.lt=_e,e.eq=Ee,e.neq=F,e.gte=J,e.lte=I,e.cmp=V,e.Comparator=j;var Z={};function he(Y,me){if(Y instanceof he)return Y.loose===me?Y:new he(Y.raw,me);if(Y instanceof j)return new he(Y.value,me);if(!(this instanceof he))return new he(Y,me);if(this.loose=me,this.raw=Y,this.set=Y.split(/\s*\|\|\s*/).map(function(Se){return this.parseRange(Se.trim())},this).filter(function(Se){return Se.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+Y);this.format()}function Pe(Y){return!Y||Y.toLowerCase()==="x"||Y==="*"}function z(Y,me,Se,Ue,ze,et,Ye,at,it,rt,Ae,xe,Te){return((me=Pe(Se)?"":Pe(Ue)?">="+Se+".0.0":Pe(ze)?">="+Se+"."+Ue+".0":">="+me)+" "+(at=Pe(it)?"":Pe(rt)?"<"+(+it+1)+".0.0":Pe(Ae)?"<"+it+"."+(+rt+1)+".0":xe?"<="+it+"."+rt+"."+Ae+"-"+xe:"<="+at)).trim()}function ee(Y,me){for(var Se=0;Se<Y.length;Se++)if(!Y[Se].test(me))return!1;if(me.prerelease.length){for(Se=0;Se<Y.length;Se++)if(d(Y[Se].semver),Y[Se].semver!==Z&&Y[Se].semver.prerelease.length>0){var Ue=Y[Se].semver;if(Ue.major===me.major&&Ue.minor===me.minor&&Ue.patch===me.patch)return!0}return!1}return!0}function ie(Y,me,Se){try{me=new he(me,Se)}catch{return!1}return me.test(Y)}function ue(Y,me,Se,Ue){var ze,et,Ye,at,it;switch(Y=new se(Y,Ue),me=new he(me,Ue),Se){case">":ze=fe,et=I,Ye=_e,at=">",it=">=";break;case"<":ze=_e,et=J,Ye=fe,at="<",it="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ie(Y,me,Ue))return!1;for(var rt=0;rt<me.set.length;++rt){var Ae=me.set[rt],xe=null,Te=null;if(Ae.forEach(function(Ve){Ve.semver===Z&&(Ve=new j(">=0.0.0")),xe=xe||Ve,Te=Te||Ve,ze(Ve.semver,xe.semver,Ue)?xe=Ve:Ye(Ve.semver,Te.semver,Ue)&&(Te=Ve)}),xe.operator===at||xe.operator===it||(!Te.operator||Te.operator===at)&&et(Y,Te.semver)||Te.operator===it&&Ye(Y,Te.semver))return!1}return!0}j.prototype.parse=function(Y){var me=this.loose?u[K]:u[pe],Se=Y.match(me);if(!Se)throw new TypeError("Invalid comparator: "+Y);this.operator=Se[1],this.operator==="="&&(this.operator=""),Se[2]?this.semver=new se(Se[2],this.loose):this.semver=Z},j.prototype.toString=function(){return this.value},j.prototype.test=function(Y){return d("Comparator.test",Y,this.loose),this.semver===Z||(typeof Y=="string"&&(Y=new se(Y,this.loose)),V(Y,this.operator,this.semver,this.loose))},j.prototype.intersects=function(Y,me){if(!(Y instanceof j))throw new TypeError("a Comparator is required");var Se;if(this.operator==="")return Se=new he(Y.value,me),ie(this.value,Se,me);if(Y.operator==="")return Se=new he(this.value,me),ie(Y.semver,Se,me);var Ue=!(this.operator!==">="&&this.operator!==">"||Y.operator!==">="&&Y.operator!==">"),ze=!(this.operator!=="<="&&this.operator!=="<"||Y.operator!=="<="&&Y.operator!=="<"),et=this.semver.version===Y.semver.version,Ye=!(this.operator!==">="&&this.operator!=="<="||Y.operator!==">="&&Y.operator!=="<="),at=V(this.semver,"<",Y.semver,me)&&(this.operator===">="||this.operator===">")&&(Y.operator==="<="||Y.operator==="<"),it=V(this.semver,">",Y.semver,me)&&(this.operator==="<="||this.operator==="<")&&(Y.operator===">="||Y.operator===">");return Ue||ze||et&&Ye||at||it},e.Range=he,he.prototype.format=function(){return this.range=this.set.map(function(Y){return Y.join(" ").trim()}).join("||").trim(),this.range},he.prototype.toString=function(){return this.range},he.prototype.parseRange=function(Y){var me=this.loose;Y=Y.trim(),d("range",Y,me);var Se=me?u[q]:u[re];Y=Y.replace(Se,z),d("hyphen replace",Y),Y=Y.replace(u[le],"$1$2$3"),d("comparator trim",Y,u[le]),Y=(Y=(Y=Y.replace(u[O],"$1~")).replace(u[U],"$1^")).split(/\s+/).join(" ");var Ue=me?u[K]:u[pe],ze=Y.split(" ").map(function(et){return function(Ye,at){return d("comp",Ye),Ye=function(it,rt){return it.trim().split(/\s+/).map(function(Ae){return function(xe,Te){d("caret",xe,Te);var Ve=Te?u[X]:u[x];return xe.replace(Ve,function(de,ae,De,Me,qe){var Je;return d("caret",xe,de,ae,De,Me,qe),Pe(ae)?Je="":Pe(De)?Je=">="+ae+".0.0 <"+(+ae+1)+".0.0":Pe(Me)?Je=ae==="0"?">="+ae+"."+De+".0 <"+ae+"."+(+De+1)+".0":">="+ae+"."+De+".0 <"+(+ae+1)+".0.0":qe?(d("replaceCaret pr",qe),qe.charAt(0)!=="-"&&(qe="-"+qe),Je=ae==="0"?De==="0"?">="+ae+"."+De+"."+Me+qe+" <"+ae+"."+De+"."+(+Me+1):">="+ae+"."+De+"."+Me+qe+" <"+ae+"."+(+De+1)+".0":">="+ae+"."+De+"."+Me+qe+" <"+(+ae+1)+".0.0"):(d("no pr"),Je=ae==="0"?De==="0"?">="+ae+"."+De+"."+Me+" <"+ae+"."+De+"."+(+Me+1):">="+ae+"."+De+"."+Me+" <"+ae+"."+(+De+1)+".0":">="+ae+"."+De+"."+Me+" <"+(+ae+1)+".0.0"),d("caret return",Je),Je})}(Ae,rt)}).join(" ")}(Ye,at),d("caret",Ye),Ye=function(it,rt){return it.trim().split(/\s+/).map(function(Ae){return function(xe,Te){var Ve=Te?u[N]:u[H];return xe.replace(Ve,function(de,ae,De,Me,qe){var Je;return d("tilde",xe,de,ae,De,Me,qe),Pe(ae)?Je="":Pe(De)?Je=">="+ae+".0.0 <"+(+ae+1)+".0.0":Pe(Me)?Je=">="+ae+"."+De+".0 <"+ae+"."+(+De+1)+".0":qe?(d("replaceTilde pr",qe),qe.charAt(0)!=="-"&&(qe="-"+qe),Je=">="+ae+"."+De+"."+Me+qe+" <"+ae+"."+(+De+1)+".0"):Je=">="+ae+"."+De+"."+Me+" <"+ae+"."+(+De+1)+".0",d("tilde return",Je),Je})}(Ae,rt)}).join(" ")}(Ye,at),d("tildes",Ye),Ye=function(it,rt){return d("replaceXRanges",it,rt),it.split(/\s+/).map(function(Ae){return function(xe,Te){xe=xe.trim();var Ve=Te?u[v]:u[m];return xe.replace(Ve,function(de,ae,De,Me,qe,Je){d("xRange",xe,de,ae,De,Me,qe,Je);var st=Pe(De),ct=st||Pe(Me),pt=ct||Pe(qe);return ae==="="&&pt&&(ae=""),st?de=ae===">"||ae==="<"?"<0.0.0":"*":ae&&pt?(ct&&(Me=0),pt&&(qe=0),ae===">"?(ae=">=",ct?(De=+De+1,Me=0,qe=0):pt&&(Me=+Me+1,qe=0)):ae==="<="&&(ae="<",ct?De=+De+1:Me=+Me+1),de=ae+De+"."+Me+"."+qe):ct?de=">="+De+".0.0 <"+(+De+1)+".0.0":pt&&(de=">="+De+"."+Me+".0 <"+De+"."+(+Me+1)+".0"),d("xRange return",de),de})}(Ae,rt)}).join(" ")}(Ye,at),d("xrange",Ye),Ye=function(it,rt){return d("replaceStars",it,rt),it.trim().replace(u[oe],"")}(Ye,at),d("stars",Ye),Ye}(et,me)}).join(" ").split(/\s+/);return this.loose&&(ze=ze.filter(function(et){return!!et.match(Ue)})),ze=ze.map(function(et){return new j(et,me)})},he.prototype.intersects=function(Y,me){if(!(Y instanceof he))throw new TypeError("a Range is required");return this.set.some(function(Se){return Se.every(function(Ue){return Y.set.some(function(ze){return ze.every(function(et){return Ue.intersects(et,me)})})})})},e.toComparators=function(Y,me){return new he(Y,me).set.map(function(Se){return Se.map(function(Ue){return Ue.value}).join(" ").trim().split(" ")})},he.prototype.test=function(Y){if(!Y)return!1;typeof Y=="string"&&(Y=new se(Y,this.loose));for(var me=0;me<this.set.length;me++)if(ee(this.set[me],Y))return!0;return!1},e.satisfies=ie,e.maxSatisfying=function(Y,me,Se){var Ue=null,ze=null;try{var et=new he(me,Se)}catch{return null}return Y.forEach(function(Ye){et.test(Ye)&&(Ue&&ze.compare(Ye)!==-1||(ze=new se(Ue=Ye,Se)))}),Ue},e.minSatisfying=function(Y,me,Se){var Ue=null,ze=null;try{var et=new he(me,Se)}catch{return null}return Y.forEach(function(Ye){et.test(Ye)&&(Ue&&ze.compare(Ye)!==1||(ze=new se(Ue=Ye,Se)))}),Ue},e.validRange=function(Y,me){try{return new he(Y,me).range||"*"}catch{return null}},e.ltr=function(Y,me,Se){return ue(Y,me,"<",Se)},e.gtr=function(Y,me,Se){return ue(Y,me,">",Se)},e.outside=ue,e.prerelease=function(Y,me){var Se=ce(Y,me);return Se&&Se.prerelease.length?Se.prerelease:null},e.intersects=function(Y,me,Se){return Y=new he(Y,Se),me=new he(me,Se),Y.intersects(me)},e.coerce=function(Y){if(Y instanceof se)return Y;if(typeof Y!="string")return null;var me=Y.match(u[D]);return me==null?null:ce((me[1]||"0")+"."+(me[2]||"0")+"."+(me[3]||"0"))}}).call(this,w(1))},function(ge,e){var w,M,d=ge.exports={};function A(){throw new Error("setTimeout has not been defined")}function R(){throw new Error("clearTimeout has not been defined")}function u(r){if(w===setTimeout)return setTimeout(r,0);if((w===A||!w)&&setTimeout)return w=setTimeout,setTimeout(r,0);try{return w(r,0)}catch{try{return w.call(null,r,0)}catch{return w.call(this,r,0)}}}(function(){try{w=typeof setTimeout=="function"?setTimeout:A}catch{w=A}try{M=typeof clearTimeout=="function"?clearTimeout:R}catch{M=R}})();var p,f=[],y=!1,E=-1;function t(){y&&p&&(y=!1,p.length?f=p.concat(f):E=-1,f.length&&s())}function s(){if(!y){var r=u(t);y=!0;for(var h=f.length;h;){for(p=f,f=[];++E<h;)p&&p[E].run();E=-1,h=f.length}p=null,y=!1,function(o){if(M===clearTimeout)return clearTimeout(o);if((M===R||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(o);try{M(o)}catch{try{return M.call(null,o)}catch{return M.call(this,o)}}}(r)}}function g(r,h){this.fun=r,this.array=h}function C(){}d.nextTick=function(r){var h=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)h[o-1]=arguments[o];f.push(new g(r,h)),f.length!==1||y||u(s)},g.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=C,d.addListener=C,d.once=C,d.off=C,d.removeListener=C,d.removeAllListeners=C,d.emit=C,d.prependListener=C,d.prependOnceListener=C,d.listeners=function(r){return[]},d.binding=function(r){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(r){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}}])}),define(ye[36],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const w=globalThis.performance&&typeof globalThis.performance.now=="function";class M{static create(A){return new M(A)}constructor(A){this._now=w&&A===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}e.StopWatch=M}),define(ye[4],Ce([1,0,8,69,5,70,36]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.DynamicListEventMultiplexer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.createEventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.EventProfiling=e.Event=void 0;const u=!1,p=!1;var f;(function(m){m.None=()=>d.Disposable.None;function v(J){if(p){const{onDidAddListener:I}=J,V=g.create();let j=0;J.onDidAddListener=()=>{++j===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),V.print()),I?.()}}}function D(J,I){return K(J,()=>{},0,void 0,!0,void 0,I)}m.defer=D;function L(J){return(I,V=null,j)=>{let Z=!1,he;return he=J(Pe=>{if(!Z)return he?he.dispose():Z=!0,I.call(V,Pe)},null,j),Z&&he.dispose(),he}}m.once=L;function O(J,I,V){return X((j,Z=null,he)=>J(Pe=>j.call(Z,I(Pe)),null,he),V)}m.map=O;function H(J,I,V){return X((j,Z=null,he)=>J(Pe=>{I(Pe),j.call(Z,Pe)},null,he),V)}m.forEach=H;function N(J,I,V){return X((j,Z=null,he)=>J(Pe=>I(Pe)&&j.call(Z,Pe),null,he),V)}m.filter=N;function $(J){return J}m.signal=$;function U(...J){return(I,V=null,j)=>(0,d.combinedDisposable)(...J.map(Z=>Z(he=>I.call(V,he),null,j)))}m.any=U;function x(J,I,V,j){let Z=V;return O(J,he=>(Z=I(Z,he),Z),j)}m.reduce=x;function X(J,I){let V;const j={onWillAddFirstListener(){V=J(Z.fire,Z)},onDidRemoveLastListener(){V?.dispose()}};I||v(j);const Z=new b(j);return I?.add(Z),Z.event}function K(J,I,V=100,j=!1,Z=!1,he,Pe){let z,ee,ie,ue=0,Y;const me={leakWarningThreshold:he,onWillAddFirstListener(){z=J(Ue=>{ue++,ee=I(ee,Ue),j&&!ie&&(Se.fire(ee),ee=void 0),Y=()=>{const ze=ee;ee=void 0,ie=void 0,(!j||ue>1)&&Se.fire(ze),ue=0},typeof V=="number"?(clearTimeout(ie),ie=setTimeout(Y,V)):ie===void 0&&(ie=0,queueMicrotask(Y))})},onWillRemoveListener(){Z&&ue>0&&Y?.()},onDidRemoveLastListener(){Y=void 0,z.dispose()}};Pe||v(me);const Se=new b(me);return Pe?.add(Se),Se.event}m.debounce=K;function pe(J,I=0,V){return m.debounce(J,(j,Z)=>j?(j.push(Z),j):[Z],I,void 0,!0,void 0,V)}m.accumulate=pe;function le(J,I=(j,Z)=>j===Z,V){let j=!0,Z;return N(J,he=>{const Pe=j||!I(he,Z);return j=!1,Z=he,Pe},V)}m.latch=le;function re(J,I,V){return[m.filter(J,I,V),m.filter(J,j=>!I(j),V)]}m.split=re;function q(J,I=!1,V=[]){let j=V.slice(),Z=J(z=>{j?j.push(z):Pe.fire(z)});const he=()=>{j?.forEach(z=>Pe.fire(z)),j=null},Pe=new b({onWillAddFirstListener(){Z||(Z=J(z=>Pe.fire(z)))},onDidAddFirstListener(){j&&(I?setTimeout(he):he())},onDidRemoveLastListener(){Z&&Z.dispose(),Z=null}});return Pe.event}m.buffer=q;class oe{constructor(I){this.event=I,this.disposables=new d.DisposableStore}map(I){return new oe(O(this.event,I,this.disposables))}forEach(I){return new oe(H(this.event,I,this.disposables))}filter(I){return new oe(N(this.event,I,this.disposables))}reduce(I,V){return new oe(x(this.event,I,V,this.disposables))}latch(){return new oe(le(this.event,void 0,this.disposables))}debounce(I,V=100,j=!1,Z=!1,he){return new oe(K(this.event,I,V,j,Z,he,this.disposables))}on(I,V,j){return this.event(I,V,j)}once(I,V,j){return L(this.event)(I,V,j)}dispose(){this.disposables.dispose()}}function ve(J){return new oe(J)}m.chain=ve;function ce(J,I,V=j=>j){const j=(...z)=>Pe.fire(V(...z)),Z=()=>J.on(I,j),he=()=>J.removeListener(I,j),Pe=new b({onWillAddFirstListener:Z,onDidRemoveLastListener:he});return Pe.event}m.fromNodeEventEmitter=ce;function se(J,I,V=j=>j){const j=(...z)=>Pe.fire(V(...z)),Z=()=>J.addEventListener(I,j),he=()=>J.removeEventListener(I,j),Pe=new b({onWillAddFirstListener:Z,onDidRemoveLastListener:he});return Pe.event}m.fromDOMEventEmitter=se;function te(J){return new Promise(I=>L(J)(I))}m.toPromise=te;function B(J){const I=new b;return J.then(V=>{I.fire(V)},()=>{I.fire(void 0)}).finally(()=>{I.dispose()}),I.event}m.fromPromise=B;function G(J,I){return I(void 0),J(V=>I(V))}m.runAndSubscribe=G;function fe(J,I){let V=null;function j(he){V?.dispose(),V=new d.DisposableStore,I(he,V)}j(void 0);const Z=J(he=>j(he));return(0,d.toDisposable)(()=>{Z.dispose(),V?.dispose()})}m.runAndSubscribeWithStore=fe;class _e{constructor(I,V){this._observable=I,this._counter=0,this._hasChanged=!1;const j={onWillAddFirstListener:()=>{I.addObserver(this)},onDidRemoveLastListener:()=>{I.removeObserver(this)}};V||v(j),this.emitter=new b(j),V&&V.add(this.emitter)}beginUpdate(I){this._counter++}handlePossibleChange(I){}handleChange(I,V){this._hasChanged=!0}endUpdate(I){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Ee(J,I){return new _e(J,I).emitter.event}m.fromObservable=Ee;function F(J){return I=>{let V=0,j=!1;const Z={beginUpdate(){V++},endUpdate(){V--,V===0&&(J.reportChanges(),j&&(j=!1,I()))},handlePossibleChange(){},handleChange(){j=!0}};return J.addObserver(Z),J.reportChanges(),{dispose(){J.removeObserver(Z)}}}}m.fromObservableLight=F})(f||(e.Event=f={}));class y{static{this.all=new Set}static{this._idPool=0}constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${y._idPool++}`,y.all.add(this)}start(v){this._stopWatch=new R.StopWatch,this.listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}}e.EventProfiling=y;let E=-1;function t(m){const v=E;return E=m,{dispose(){E=v}}}e.setGlobalLeakWarningThreshold=t;class s{constructor(v,D=Math.random().toString(18).slice(2,5)){this.threshold=v,this.name=D,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(v,D){const L=this.threshold;if(L<=0||D<L)return;this._stacks||(this._stacks=new Map);const O=this._stacks.get(v.value)||0;if(this._stacks.set(v.value,O+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=L*.5;let H,N=0;for(const[$,U]of this._stacks)(!H||N<U)&&(H=$,N=U);console.warn(`[${this.name}] potential listener LEAK detected, having ${D} listeners already. MOST frequent listener (${N}):`),console.warn(H)}return()=>{const H=this._stacks.get(v.value)||0;this._stacks.set(v.value,H-1)}}}class g{static create(){return new g(new Error().stack??"")}constructor(v){this.value=v}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}let C=0;class r{constructor(v){this.value=v,this.id=C++}}const h=2,o=(m,v)=>{if(m instanceof r)v(m);else for(let D=0;D<m.length;D++){const L=m[D];L&&v(L)}};class b{constructor(v){this._size=0,this._options=v,this._leakageMon=E>0||this._options?.leakWarningThreshold?new s(this._options?.leakWarningThreshold??E):void 0,this._perfMon=this._options?._profName?new y(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(u){const v=this._listeners;queueMicrotask(()=>{o(v,D=>D.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(v,D,L)=>{if(this._disposed)return d.Disposable.None;D&&(v=v.bind(D));const O=new r(v);let H,N;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(O.stack=g.create(),H=this._leakageMon.check(O.stack,this._size+1)),u&&(O.stack=N??g.create()),this._listeners?this._listeners instanceof r?(this._deliveryQueue??=new T,this._listeners=[this._listeners,O]):this._listeners.push(O):(this._options?.onWillAddFirstListener?.(this),this._listeners=O,this._options?.onDidAddFirstListener?.(this)),this._size++;const $=(0,d.toDisposable)(()=>{H?.(),this._removeListener(O)});return L instanceof d.DisposableStore?L.add($):Array.isArray(L)&&L.push($),$},this._event}_removeListener(v){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const D=this._listeners,L=D.indexOf(v);if(L===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,D[L]=void 0;const O=this._deliveryQueue.current===this;if(this._size*h<=D.length){let H=0;for(let N=0;N<D.length;N++)D[N]?D[H++]=D[N]:O&&(this._deliveryQueue.end--,H<this._deliveryQueue.i&&this._deliveryQueue.i--);D.length=H}}_deliver(v,D){if(!v)return;const L=this._options?.onListenerError||w.onUnexpectedError;if(!L){v.value(D);return}try{v.value(D)}catch(O){L(O)}}_deliverQueue(v){const D=v.current._listeners;for(;v.i<v.end;)this._deliver(D[v.i++],v.value);v.reset()}fire(v){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof r)this._deliver(this._listeners,v);else{const D=this._deliveryQueue;D.enqueue(this,v,this._listeners.length),this._deliverQueue(D)}this._perfMon?.stop()}hasListeners(){return this._size>0}}e.Emitter=b;const P=()=>new T;e.createEventDeliveryQueue=P;class T{constructor(){this.i=-1,this.end=0}enqueue(v,D,L){this.i=0,this.end=L,this.current=v,this.value=D}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class n extends b{async fireAsync(v,D,L){if(this._listeners)for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new A.LinkedList),o(this._listeners,O=>this._asyncDeliveryQueue.push([O.value,v]));this._asyncDeliveryQueue.size>0&&!D.isCancellationRequested;){const[O,H]=this._asyncDeliveryQueue.shift(),N=[],$={...H,token:D,waitUntil:U=>{if(Object.isFrozen(N))throw new Error("waitUntil can NOT be called asynchronous");L&&(U=L(U,O)),N.push(U)}};try{O($)}catch(U){(0,w.onUnexpectedError)(U);continue}Object.freeze(N),await Promise.allSettled(N).then(U=>{for(const x of U)x.status==="rejected"&&(0,w.onUnexpectedError)(x.reason)})}}}e.AsyncEmitter=n;class a extends b{get isPaused(){return this._isPaused!==0}constructor(v){super(v),this._isPaused=0,this._eventQueue=new A.LinkedList,this._mergeFn=v?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const v=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(v))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(v){this._size&&(this._isPaused!==0?this._eventQueue.push(v):super.fire(v))}}e.PauseableEmitter=a;class l extends a{constructor(v){super(v),this._delay=v.delay??100}fire(v){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(v)}}e.DebounceEmitter=l;class i extends b{constructor(v){super(v),this._queuedEvents=[],this._mergeFn=v?.merge}fire(v){this.hasListeners()&&(this._queuedEvents.push(v),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(D=>super.fire(D)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=i;class c{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new b({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(v){const D={event:v,listener:null};this.events.push(D),this.hasListeners&&this.hook(D);const L=()=>{this.hasListeners&&this.unhook(D);const O=this.events.indexOf(D);this.events.splice(O,1)};return(0,d.toDisposable)((0,M.once)(L))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(v=>this.hook(v))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(v=>this.unhook(v))}hook(v){v.listener=v.event(D=>this.emitter.fire(D))}unhook(v){v.listener&&v.listener.dispose(),v.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=c;class _{constructor(v,D,L,O){this._store=new d.DisposableStore;const H=this._store.add(new c),N=this._store.add(new d.DisposableMap);function $(U){N.set(U,H.add(O(U)))}for(const U of v)$(U);this._store.add(D(U=>{$(U)})),this._store.add(L(U=>{N.deleteAndDispose(U)})),this.event=H.event}dispose(){this._store.dispose()}}e.DynamicListEventMultiplexer=_;class S{constructor(){this.buffers=[]}wrapEvent(v){return(D,L,O)=>v(H=>{const N=this.buffers[this.buffers.length-1];N?N.push(()=>D.call(L,H)):D.call(L,H)},void 0,O)}bufferEvents(v){const D=[];this.buffers.push(D);const L=v();return this.buffers.pop(),D.forEach(O=>O()),L}}e.EventBufferer=S;class k{constructor(){this.listening=!1,this.inputEvent=f.None,this.inputEventListener=d.Disposable.None,this.emitter=new b({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(v){this.inputEvent=v,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=v(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=k}),define(ye[160],Ce([1,0,4]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDashboard=void 0;class M{constructor(A){this._onDidOpenDashboard=new w.Emitter,this.onDidOpenDashboard=this._onDidOpenDashboard.event,this._onDidChangeToDashboard=new w.Emitter,this.onDidChangeToDashboard=this._onDidChangeToDashboard.event}$onDidOpenDashboard(A){this._onDidOpenDashboard.fire(A)}$onDidChangeToDashboard(A){this._onDidChangeToDashboard.fire(A)}}e.ExtHostDashboard=M}),define(ye[22],Ce([1,0,4]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const M=Object.freeze(function(u,p){const f=setTimeout(u.bind(p),0);return{dispose(){clearTimeout(f)}}});var d;(function(u){function p(f){return f===u.None||f===u.Cancelled||f instanceof A?!0:!f||typeof f!="object"?!1:typeof f.isCancellationRequested=="boolean"&&typeof f.onCancellationRequested=="function"}u.isCancellationToken=p,u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:w.Event.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:M})})(d||(e.CancellationToken=d={}));class A{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?M:(this._emitter||(this._emitter=new w.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class R{constructor(p){this._token=void 0,this._parentListener=void 0,this._parentListener=p&&p.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new A),this._token}cancel(){this._token?this._token instanceof A&&this._token.cancel():this._token=d.Cancelled}dispose(p=!1){p&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof A&&this._token.dispose():this._token=d.None}}e.CancellationTokenSource=R}),define(ye[161],Ce([1,0,22]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class M{constructor(u){this.task=u,this.result=null}get(){if(this.result)return this.result;const u=new w.CancellationTokenSource,p=this.task(u.token);return this.result={promise:p,dispose:()=>{this.result=null,u.cancel(),u.dispose()}},this.result}}e.Cache=M;class d{constructor(u){this.fn=u,this.lastCache=void 0,this.lastArgKey=void 0}get(u){const p=JSON.stringify(u);return this.lastArgKey!==p&&(this.lastArgKey=p,this.lastCache=this.fn(u)),this.lastCache}}e.LRUCachedFunction=d;class A{get cachedValues(){return this._map}constructor(u){this.fn=u,this._map=new Map}get(u){if(this._map.has(u))return this._map.get(u);const p=this.fn(u);return this._map.set(u,p),p}}e.CachedFunction=A}),define(ye[96],Ce([1,0,8,5]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=e.isReadable=void 0;function d(P){const T=P;return T?typeof T.read=="function":!1}e.isReadable=d;function A(P){const T=P;return T?[T.on,T.pause,T.resume,T.destroy].every(n=>typeof n=="function"):!1}e.isReadableStream=A;function R(P){const T=P;return T?A(T.stream)&&Array.isArray(T.buffer)&&typeof T.ended=="boolean":!1}e.isReadableBufferedStream=R;function u(P,T){return new p(P,T)}e.newWriteableStream=u;class p{constructor(T,n){this.reducer=T,this.options=n,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(T){if(!this.state.destroyed){if(this.state.flowing)this.emitData(T);else if(this.buffer.data.push(T),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(n=>this.pendingWritePromises.push(n))}}error(T){this.state.destroyed||(this.state.flowing?this.emitError(T):this.buffer.error.push(T))}end(T){this.state.destroyed||(typeof T<"u"&&this.write(T),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(T){this.listeners.data.slice(0).forEach(n=>n(T))}emitError(T){this.listeners.error.length===0?(0,w.onUnexpectedError)(T):this.listeners.error.slice(0).forEach(n=>n(T))}emitEnd(){this.listeners.end.slice(0).forEach(T=>T())}on(T,n){if(!this.state.destroyed)switch(T){case"data":this.listeners.data.push(n),this.resume();break;case"end":this.listeners.end.push(n),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(n),this.state.flowing&&this.flowErrors();break}}removeListener(T,n){if(this.state.destroyed)return;let a;switch(T){case"data":a=this.listeners.data;break;case"end":a=this.listeners.end;break;case"error":a=this.listeners.error;break}if(a){const l=a.indexOf(n);l>=0&&a.splice(l,1)}}flowData(){if(this.buffer.data.length>0){const T=this.reducer(this.buffer.data);this.emitData(T),this.buffer.data.length=0;const n=[...this.pendingWritePromises];this.pendingWritePromises.length=0,n.forEach(a=>a())}}flowErrors(){if(this.listeners.error.length>0){for(const T of this.buffer.error)this.emitError(T);this.buffer.error.length=0}}flowEnd(){return this.state.ended?(this.emitEnd(),this.listeners.end.length>0):!1}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0,this.pendingWritePromises.length=0)}}function f(P,T){const n=[];let a;for(;(a=P.read())!==null;)n.push(a);return T(n)}e.consumeReadable=f;function y(P,T,n){const a=[];let l;for(;(l=P.read())!==null&&a.length<n;)a.push(l);return l===null&&a.length>0?T(a):{read:()=>{if(a.length>0)return a.shift();if(typeof l<"u"){const i=l;return l=void 0,i}return P.read()}}}e.peekReadable=y;function E(P,T){return new Promise((n,a)=>{const l=[];t(P,{onData:i=>{T&&l.push(i)},onError:i=>{T?a(i):n(void 0)},onEnd:()=>{n(T?T(l):void 0)}})})}e.consumeStream=E;function t(P,T,n){P.on("error",a=>{n?.isCancellationRequested||T.onError(a)}),P.on("end",()=>{n?.isCancellationRequested||T.onEnd()}),P.on("data",a=>{n?.isCancellationRequested||T.onData(a)})}e.listenStream=t;function s(P,T){return new Promise((n,a)=>{const l=new M.DisposableStore,i=[],c=k=>{if(i.push(k),i.length>T)return l.dispose(),P.pause(),n({stream:P,buffer:i,ended:!1})},_=k=>a(k),S=()=>n({stream:P,buffer:i,ended:!0});l.add((0,M.toDisposable)(()=>P.removeListener("error",_))),P.on("error",_),l.add((0,M.toDisposable)(()=>P.removeListener("end",S))),P.on("end",S),l.add((0,M.toDisposable)(()=>P.removeListener("data",c))),P.on("data",c)})}e.peekStream=s;function g(P,T){const n=u(T);return n.end(P),n}e.toStream=g;function C(){const P=u(()=>{throw new Error("not supported")});return P.end(),P}e.emptyStream=C;function r(P){let T=!1;return{read:()=>T?null:(T=!0,P)}}e.toReadable=r;function h(P,T,n){const a=u(n);return t(P,{onData:l=>a.write(T.data(l)),onError:l=>a.error(T.error?T.error(l):l),onEnd:()=>a.end()}),a}e.transform=h;function o(P,T,n){let a=!1;return{read:()=>{const l=T.read();return a?l:(a=!0,l!==null?n([P,l]):P)}}}e.prefixedReadable=o;function b(P,T,n){let a=!1;const l=u(n);return t(T,{onData:i=>a?l.write(i):(a=!0,l.write(n([P,i]))),onError:i=>l.error(i),onEnd:()=>{a||(a=!0,l.write(P)),l.end()}}),l}e.prefixedStream=b}),define(ye[21],Ce([1,0,57,96]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=e.prefixedBufferStream=e.prefixedBufferReadable=e.newWriteableBufferStream=e.streamToBufferReadableStream=e.bufferToStream=e.bufferedStreamToBuffer=e.streamToBuffer=e.bufferToReadable=e.readableToBuffer=e.writeUInt8=e.readUInt8=e.writeUInt32LE=e.readUInt32LE=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.binaryIndexOf=e.VSBuffer=void 0;const d=typeof Buffer<"u",A=new w.Lazy(()=>new Uint8Array(256));let R,u;class p{static alloc(D){return d?new p(Buffer.allocUnsafe(D)):new p(new Uint8Array(D))}static wrap(D){return d&&!Buffer.isBuffer(D)&&(D=Buffer.from(D.buffer,D.byteOffset,D.byteLength)),new p(D)}static fromString(D,L){return!(L?.dontUseNodeBuffer||!1)&&d?new p(Buffer.from(D)):(R||(R=new TextEncoder),new p(R.encode(D)))}static fromByteArray(D){const L=p.alloc(D.length);for(let O=0,H=D.length;O<H;O++)L.buffer[O]=D[O];return L}static concat(D,L){if(typeof L>"u"){L=0;for(let N=0,$=D.length;N<$;N++)L+=D[N].byteLength}const O=p.alloc(L);let H=0;for(let N=0,$=D.length;N<$;N++){const U=D[N];O.set(U,H),H+=U.byteLength}return O}constructor(D){this.buffer=D,this.byteLength=this.buffer.byteLength}clone(){const D=p.alloc(this.byteLength);return D.set(this),D}toString(){return d?this.buffer.toString():(u||(u=new TextDecoder),u.decode(this.buffer))}slice(D,L){return new p(this.buffer.subarray(D,L))}set(D,L){if(D instanceof p)this.buffer.set(D.buffer,L);else if(D instanceof Uint8Array)this.buffer.set(D,L);else if(D instanceof ArrayBuffer)this.buffer.set(new Uint8Array(D),L);else if(ArrayBuffer.isView(D))this.buffer.set(new Uint8Array(D.buffer,D.byteOffset,D.byteLength),L);else throw new Error("Unknown argument 'array'")}readUInt32BE(D){return t(this.buffer,D)}writeUInt32BE(D,L){s(this.buffer,D,L)}readUInt32LE(D){return g(this.buffer,D)}writeUInt32LE(D,L){C(this.buffer,D,L)}readUInt8(D){return r(this.buffer,D)}writeUInt8(D,L){h(this.buffer,D,L)}indexOf(D,L=0){return f(this.buffer,D instanceof p?D.buffer:D,L)}}e.VSBuffer=p;function f(v,D,L=0){const O=D.byteLength,H=v.byteLength;if(O===0)return 0;if(O===1)return v.indexOf(D[0]);if(O>H-L)return-1;const N=A.value;N.fill(D.length);for(let X=0;X<D.length;X++)N[D[X]]=D.length-X-1;let $=L+D.length-1,U=$,x=-1;for(;$<H;)if(v[$]===D[U]){if(U===0){x=$;break}$--,U--}else $+=Math.max(D.length-U,N[v[$]]),U=D.length-1;return x}e.binaryIndexOf=f;function y(v,D){return v[D+0]<<0>>>0|v[D+1]<<8>>>0}e.readUInt16LE=y;function E(v,D,L){v[L+0]=D&255,D=D>>>8,v[L+1]=D&255}e.writeUInt16LE=E;function t(v,D){return v[D]*2**24+v[D+1]*2**16+v[D+2]*2**8+v[D+3]}e.readUInt32BE=t;function s(v,D,L){v[L+3]=D,D=D>>>8,v[L+2]=D,D=D>>>8,v[L+1]=D,D=D>>>8,v[L]=D}e.writeUInt32BE=s;function g(v,D){return v[D+0]<<0>>>0|v[D+1]<<8>>>0|v[D+2]<<16>>>0|v[D+3]<<24>>>0}e.readUInt32LE=g;function C(v,D,L){v[L+0]=D&255,D=D>>>8,v[L+1]=D&255,D=D>>>8,v[L+2]=D&255,D=D>>>8,v[L+3]=D&255}e.writeUInt32LE=C;function r(v,D){return v[D]}e.readUInt8=r;function h(v,D,L){v[L]=D}e.writeUInt8=h;function o(v){return M.consumeReadable(v,D=>p.concat(D))}e.readableToBuffer=o;function b(v){return M.toReadable(v)}e.bufferToReadable=b;function P(v){return M.consumeStream(v,D=>p.concat(D))}e.streamToBuffer=P;async function T(v){return v.ended?p.concat(v.buffer):p.concat([...v.buffer,await P(v.stream)])}e.bufferedStreamToBuffer=T;function n(v){return M.toStream(v,D=>p.concat(D))}e.bufferToStream=n;function a(v){return M.transform(v,{data:D=>typeof D=="string"?p.fromString(D):p.wrap(D)},D=>p.concat(D))}e.streamToBufferReadableStream=a;function l(v){return M.newWriteableStream(D=>p.concat(D),v)}e.newWriteableBufferStream=l;function i(v,D){return M.prefixedReadable(v,D,L=>p.concat(L))}e.prefixedBufferReadable=i;function c(v,D){return M.prefixedStream(v,D,L=>p.concat(L))}e.prefixedBufferStream=c;function _(v){let D=0,L=0,O=0;const H=new Uint8Array(Math.floor(v.length/4*3)),N=U=>{switch(L){case 3:H[O++]=D|U,L=0;break;case 2:H[O++]=D|U>>>2,D=U<<6,L=3;break;case 1:H[O++]=D|U>>>4,D=U<<4,L=2;break;default:D=U<<2,L=1}};for(let U=0;U<v.length;U++){const x=v.charCodeAt(U);if(x>=65&&x<=90)N(x-65);else if(x>=97&&x<=122)N(x-97+26);else if(x>=48&&x<=57)N(x-48+52);else if(x===43||x===45)N(62);else if(x===47||x===95)N(63);else{if(x===61)break;throw new SyntaxError(`Unexpected base64 character ${v[U]}`)}}const $=O;for(;L>0;)N(0);return p.wrap(H).slice(0,$)}e.decodeBase64=_;const S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function m({buffer:v},D=!0,L=!1){const O=L?k:S;let H="";const N=v.byteLength%3;let $=0;for(;$<v.byteLength-N;$+=3){const U=v[$+0],x=v[$+1],X=v[$+2];H+=O[U>>>2],H+=O[(U<<4|x>>>4)&63],H+=O[(x<<2|X>>>6)&63],H+=O[X&63]}if(N===1){const U=v[$+0];H+=O[U>>>2],H+=O[U<<4&63],D&&(H+="==")}else if(N===2){const U=v[$+0],x=v[$+1];H+=O[U>>>2],H+=O[(U<<4|x>>>4)&63],H+=O[x<<2&63],D&&(H+="=")}return H}e.encodeBase64=m}),define(ye[16],Ce([1,0,161,57]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvisibleCharacters=e.AmbiguousCharacters=e.noBreakWhitespace=e.getLeftDeleteOffset=e.GraphemeBreakType=e.getGraphemeBreakType=e.singleLetterHash=e.getNLines=e.uppercaseFirstLetter=e.containsUppercaseCharacter=e.fuzzyContains=e.repeat=e.stripUTF8BOM=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.removeAnsiEscapeCodes=e.lcut=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsRTL=e.charCount=e.getCharContainingOffset=e.prevCharLength=e.nextCharLength=e.GraphemeIterator=e.CodePointIterator=e.getNextCodePoint=e.computeCodePoint=e.isLowSurrogate=e.isHighSurrogate=e.commonSuffixLength=e.commonPrefixLength=e.startsWithIgnoreCase=e.equalsIgnoreCase=e.isUpperAsciiLetter=e.isLowerAsciiLetter=e.isAsciiDigit=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.replaceAsync=e.lastNonWhitespaceIndex=e.getLeadingWhitespace=e.firstNonWhitespaceIndex=e.splitLines=e.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.truncate=e.count=e.escapeRegExpCharacters=e.escape=e.format2=e.format=e.isFalsyOrWhitespace=void 0;function d(Ae){return!Ae||typeof Ae!="string"?!0:Ae.trim().length===0}e.isFalsyOrWhitespace=d;const A=/{(\d+)}/g;function R(Ae,...xe){return xe.length===0?Ae:Ae.replace(A,function(Te,Ve){const de=parseInt(Ve,10);return isNaN(de)||de<0||de>=xe.length?Te:xe[de]})}e.format=R;const u=/{([^}]+)}/g;function p(Ae,xe){return Ae.replace(u,(Te,Ve)=>xe[Ve]??Te)}e.format2=p;function f(Ae){return Ae.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return xe}})}e.escape=f;function y(Ae){return Ae.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=y;function E(Ae,xe){let Te=0;const Ve=xe.charCodeAt(0);for(let de=Ae.length-1;de>=0;de--)Ae.charCodeAt(de)===Ve&&Te++;return Te}e.count=E;function t(Ae,xe,Te="\u2026"){return Ae.length<=xe?Ae:`${Ae.substr(0,xe)}${Te}`}e.truncate=t;function s(Ae,xe=" "){const Te=g(Ae,xe);return C(Te,xe)}e.trim=s;function g(Ae,xe){if(!Ae||!xe)return Ae;const Te=xe.length;if(Te===0||Ae.length===0)return Ae;let Ve=0;for(;Ae.indexOf(xe,Ve)===Ve;)Ve=Ve+Te;return Ae.substring(Ve)}e.ltrim=g;function C(Ae,xe){if(!Ae||!xe)return Ae;const Te=xe.length,Ve=Ae.length;if(Te===0||Ve===0)return Ae;let de=Ve,ae=-1;for(;ae=Ae.lastIndexOf(xe,de-1),!(ae===-1||ae+Te!==de);){if(ae===0)return"";de=ae}return Ae.substring(0,de)}e.rtrim=C;function r(Ae){return Ae.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=r;function h(Ae){return Ae.replace(/\*/g,"")}e.stripWildcards=h;function o(Ae,xe,Te={}){if(!Ae)throw new Error("Cannot create regex from empty string");xe||(Ae=y(Ae)),Te.wholeWord&&(/\B/.test(Ae.charAt(0))||(Ae="\\b"+Ae),/\B/.test(Ae.charAt(Ae.length-1))||(Ae=Ae+"\\b"));let Ve="";return Te.global&&(Ve+="g"),Te.matchCase||(Ve+="i"),Te.multiline&&(Ve+="m"),Te.unicode&&(Ve+="u"),new RegExp(Ae,Ve)}e.createRegExp=o;function b(Ae){return Ae.source==="^"||Ae.source==="^$"||Ae.source==="$"||Ae.source==="^\\s*$"?!1:!!(Ae.exec("")&&Ae.lastIndex===0)}e.regExpLeadsToEndlessLoop=b;function P(Ae){return Ae.split(/\r\n|\r|\n/)}e.splitLines=P;function T(Ae){for(let xe=0,Te=Ae.length;xe<Te;xe++){const Ve=Ae.charCodeAt(xe);if(Ve!==32&&Ve!==9)return xe}return-1}e.firstNonWhitespaceIndex=T;function n(Ae,xe=0,Te=Ae.length){for(let Ve=xe;Ve<Te;Ve++){const de=Ae.charCodeAt(Ve);if(de!==32&&de!==9)return Ae.substring(xe,Ve)}return Ae.substring(xe,Te)}e.getLeadingWhitespace=n;function a(Ae,xe=Ae.length-1){for(let Te=xe;Te>=0;Te--){const Ve=Ae.charCodeAt(Te);if(Ve!==32&&Ve!==9)return Te}return-1}e.lastNonWhitespaceIndex=a;function l(Ae,xe,Te){const Ve=[];let de=0;for(const ae of Ae.matchAll(xe)){if(Ve.push(Ae.slice(de,ae.index)),ae.index===void 0)throw new Error("match.index should be defined");de=ae.index+ae[0].length,Ve.push(Te(ae[0],...ae.slice(1),ae.index,Ae,ae.groups))}return Ve.push(Ae.slice(de)),Promise.all(Ve).then(ae=>ae.join(""))}e.replaceAsync=l;function i(Ae,xe){return Ae<xe?-1:Ae>xe?1:0}e.compare=i;function c(Ae,xe,Te=0,Ve=Ae.length,de=0,ae=xe.length){for(;Te<Ve&&de<ae;Te++,de++){const qe=Ae.charCodeAt(Te),Je=xe.charCodeAt(de);if(qe<Je)return-1;if(qe>Je)return 1}const De=Ve-Te,Me=ae-de;return De<Me?-1:De>Me?1:0}e.compareSubstring=c;function _(Ae,xe){return S(Ae,xe,0,Ae.length,0,xe.length)}e.compareIgnoreCase=_;function S(Ae,xe,Te=0,Ve=Ae.length,de=0,ae=xe.length){for(;Te<Ve&&de<ae;Te++,de++){let qe=Ae.charCodeAt(Te),Je=xe.charCodeAt(de);if(qe===Je)continue;if(qe>=128||Je>=128)return c(Ae.toLowerCase(),xe.toLowerCase(),Te,Ve,de,ae);m(qe)&&(qe-=32),m(Je)&&(Je-=32);const st=qe-Je;if(st!==0)return st}const De=Ve-Te,Me=ae-de;return De<Me?-1:De>Me?1:0}e.compareSubstringIgnoreCase=S;function k(Ae){return Ae>=48&&Ae<=57}e.isAsciiDigit=k;function m(Ae){return Ae>=97&&Ae<=122}e.isLowerAsciiLetter=m;function v(Ae){return Ae>=65&&Ae<=90}e.isUpperAsciiLetter=v;function D(Ae,xe){return Ae.length===xe.length&&S(Ae,xe)===0}e.equalsIgnoreCase=D;function L(Ae,xe){const Te=xe.length;return xe.length>Ae.length?!1:S(Ae,xe,0,Te)===0}e.startsWithIgnoreCase=L;function O(Ae,xe){const Te=Math.min(Ae.length,xe.length);let Ve;for(Ve=0;Ve<Te;Ve++)if(Ae.charCodeAt(Ve)!==xe.charCodeAt(Ve))return Ve;return Te}e.commonPrefixLength=O;function H(Ae,xe){const Te=Math.min(Ae.length,xe.length);let Ve;const de=Ae.length-1,ae=xe.length-1;for(Ve=0;Ve<Te;Ve++)if(Ae.charCodeAt(de-Ve)!==xe.charCodeAt(ae-Ve))return Ve;return Te}e.commonSuffixLength=H;function N(Ae){return 55296<=Ae&&Ae<=56319}e.isHighSurrogate=N;function $(Ae){return 56320<=Ae&&Ae<=57343}e.isLowSurrogate=$;function U(Ae,xe){return(Ae-55296<<10)+(xe-56320)+65536}e.computeCodePoint=U;function x(Ae,xe,Te){const Ve=Ae.charCodeAt(Te);if(N(Ve)&&Te+1<xe){const de=Ae.charCodeAt(Te+1);if($(de))return U(Ve,de)}return Ve}e.getNextCodePoint=x;function X(Ae,xe){const Te=Ae.charCodeAt(xe-1);if($(Te)&&xe>1){const Ve=Ae.charCodeAt(xe-2);if(N(Ve))return U(Ve,Te)}return Te}class K{get offset(){return this._offset}constructor(xe,Te=0){this._str=xe,this._len=xe.length,this._offset=Te}setOffset(xe){this._offset=xe}prevCodePoint(){const xe=X(this._str,this._offset);return this._offset-=xe>=65536?2:1,xe}nextCodePoint(){const xe=x(this._str,this._len,this._offset);return this._offset+=xe>=65536?2:1,xe}eol(){return this._offset>=this._len}}e.CodePointIterator=K;class pe{get offset(){return this._iterator.offset}constructor(xe,Te=0){this._iterator=new K(xe,Te)}nextGraphemeLength(){const xe=Se.getInstance(),Te=this._iterator,Ve=Te.offset;let de=xe.getGraphemeBreakType(Te.nextCodePoint());for(;!Te.eol();){const ae=Te.offset,De=xe.getGraphemeBreakType(Te.nextCodePoint());if(Y(de,De)){Te.setOffset(ae);break}de=De}return Te.offset-Ve}prevGraphemeLength(){const xe=Se.getInstance(),Te=this._iterator,Ve=Te.offset;let de=xe.getGraphemeBreakType(Te.prevCodePoint());for(;Te.offset>0;){const ae=Te.offset,De=xe.getGraphemeBreakType(Te.prevCodePoint());if(Y(De,de)){Te.setOffset(ae);break}de=De}return Ve-Te.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=pe;function le(Ae,xe){return new pe(Ae,xe).nextGraphemeLength()}e.nextCharLength=le;function re(Ae,xe){return new pe(Ae,xe).prevGraphemeLength()}e.prevCharLength=re;function q(Ae,xe){xe>0&&$(Ae.charCodeAt(xe))&&xe--;const Te=xe+le(Ae,xe);return[Te-re(Ae,Te),Te]}e.getCharContainingOffset=q;function oe(Ae){const xe=new pe(Ae);let Te=0;for(;!xe.eol();)Te++,xe.nextGraphemeLength();return Te}e.charCount=oe;let ve;function ce(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function se(Ae){return ve||(ve=ce()),ve.test(Ae)}e.containsRTL=se;const te=/^[\t\n\r\x20-\x7E]*$/;function B(Ae){return te.test(Ae)}e.isBasicASCII=B,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function G(Ae){return e.UNUSUAL_LINE_TERMINATORS.test(Ae)}e.containsUnusualLineTerminators=G;function fe(Ae){return Ae>=11904&&Ae<=55215||Ae>=63744&&Ae<=64255||Ae>=65281&&Ae<=65374}e.isFullWidthCharacter=fe;function _e(Ae){return Ae>=127462&&Ae<=127487||Ae===8986||Ae===8987||Ae===9200||Ae===9203||Ae>=9728&&Ae<=10175||Ae===11088||Ae===11093||Ae>=127744&&Ae<=128591||Ae>=128640&&Ae<=128764||Ae>=128992&&Ae<=129008||Ae>=129280&&Ae<=129535||Ae>=129648&&Ae<=129782}e.isEmojiImprecise=_e;function Ee(Ae,xe){if(Ae.length<xe)return Ae;const Te=/\b/g;let Ve=0;for(;Te.test(Ae)&&!(Ae.length-Te.lastIndex<xe);)Ve=Te.lastIndex,Te.lastIndex+=1;return Ae.substring(Ve).replace(/^\s/,"")}e.lcut=Ee;const F=/(:?\x1b\[|\x9B)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/g,J=/\x1b\].*?\x07/g;function I(Ae){return Ae&&(Ae=Ae.replace(F,"").replace(J,"")),Ae}e.removeAnsiEscapeCodes=I,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function V(Ae){return!!(Ae&&Ae.length>0&&Ae.charCodeAt(0)===65279)}e.startsWithUTF8BOM=V;function j(Ae){return V(Ae)?Ae.substr(1):Ae}e.stripUTF8BOM=j;function Z(Ae,xe){let Te="";for(let Ve=0;Ve<xe;Ve++)Te+=Ae;return Te}e.repeat=Z;function he(Ae,xe){if(!Ae||!xe||Ae.length<xe.length)return!1;const Te=xe.length,Ve=Ae.toLowerCase();let de=0,ae=-1;for(;de<Te;){const De=Ve.indexOf(xe[de],ae+1);if(De<0)return!1;ae=De,de++}return!0}e.fuzzyContains=he;function Pe(Ae,xe=!1){return Ae?(xe&&(Ae=Ae.replace(/\\./g,"")),Ae.toLowerCase()!==Ae):!1}e.containsUppercaseCharacter=Pe;function z(Ae){return Ae.charAt(0).toUpperCase()+Ae.slice(1)}e.uppercaseFirstLetter=z;function ee(Ae,xe=1){if(xe===0)return"";let Te=-1;do Te=Ae.indexOf(`
`,Te+1),xe--;while(xe>0&&Te>=0);return Te===-1?Ae:(Ae[Te-1]==="\r"&&Te--,Ae.substr(0,Te))}e.getNLines=ee;function ie(Ae){return Ae=Ae%(2*26),Ae<26?String.fromCharCode(97+Ae):String.fromCharCode(65+Ae-26)}e.singleLetterHash=ie;function ue(Ae){return Se.getInstance().getGraphemeBreakType(Ae)}e.getGraphemeBreakType=ue;function Y(Ae,xe){return Ae===0?xe!==5&&xe!==7:Ae===2&&xe===3?!1:Ae===4||Ae===2||Ae===3||xe===4||xe===2||xe===3?!0:!(Ae===8&&(xe===8||xe===9||xe===11||xe===12)||(Ae===11||Ae===9)&&(xe===9||xe===10)||(Ae===12||Ae===10)&&xe===10||xe===5||xe===13||xe===7||Ae===1||Ae===13&&xe===14||Ae===6&&xe===6)}var me;(function(Ae){Ae[Ae.Other=0]="Other",Ae[Ae.Prepend=1]="Prepend",Ae[Ae.CR=2]="CR",Ae[Ae.LF=3]="LF",Ae[Ae.Control=4]="Control",Ae[Ae.Extend=5]="Extend",Ae[Ae.Regional_Indicator=6]="Regional_Indicator",Ae[Ae.SpacingMark=7]="SpacingMark",Ae[Ae.L=8]="L",Ae[Ae.V=9]="V",Ae[Ae.T=10]="T",Ae[Ae.LV=11]="LV",Ae[Ae.LVT=12]="LVT",Ae[Ae.ZWJ=13]="ZWJ",Ae[Ae.Extended_Pictographic=14]="Extended_Pictographic"})(me||(e.GraphemeBreakType=me={}));class Se{static{this._INSTANCE=null}static getInstance(){return Se._INSTANCE||(Se._INSTANCE=new Se),Se._INSTANCE}constructor(){this._data=Ue()}getGraphemeBreakType(xe){if(xe<32)return xe===10?3:xe===13?2:4;if(xe<127)return 0;const Te=this._data,Ve=Te.length/3;let de=1;for(;de<=Ve;)if(xe<Te[3*de])de=2*de;else if(xe>Te[3*de+1])de=2*de+1;else return Te[3*de+2];return 0}}function Ue(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function ze(Ae,xe){if(Ae===0)return 0;const Te=et(Ae,xe);if(Te!==void 0)return Te;const Ve=new K(xe,Ae);return Ve.prevCodePoint(),Ve.offset}e.getLeftDeleteOffset=ze;function et(Ae,xe){const Te=new K(xe,Ae);let Ve=Te.prevCodePoint();for(;Ye(Ve)||Ve===65039||Ve===8419;){if(Te.offset===0)return;Ve=Te.prevCodePoint()}if(!_e(Ve))return;let de=Te.offset;return de>0&&Te.prevCodePoint()===8205&&(de=Te.offset),de}function Ye(Ae){return 127995<=Ae&&Ae<=127999}var at;(function(Ae){Ae[Ae.zwj=8205]="zwj",Ae[Ae.emojiVariantSelector=65039]="emojiVariantSelector",Ae[Ae.enclosingKeyCap=8419]="enclosingKeyCap"})(at||(at={})),e.noBreakWhitespace="\xA0";class it{static{this.ambiguousCharacterData=new M.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new w.LRUCachedFunction(xe=>{function Te(st){const ct=new Map;for(let pt=0;pt<st.length;pt+=2)ct.set(st[pt],st[pt+1]);return ct}function Ve(st,ct){const pt=new Map(st);for(const[It,xt]of ct)pt.set(It,xt);return pt}function de(st,ct){if(!st)return ct;const pt=new Map;for(const[It,xt]of st)ct.has(It)&&pt.set(It,xt);return pt}const ae=this.ambiguousCharacterData.value;let De=xe.filter(st=>!st.startsWith("_")&&st in ae);De.length===0&&(De=["_default"]);let Me;for(const st of De){const ct=Te(ae[st]);Me=de(Me,ct)}const qe=Te(ae._common),Je=Ve(qe,Me);return new it(Je)})}static getInstance(xe){return it.cache.get(Array.from(xe))}static{this._locales=new M.Lazy(()=>Object.keys(it.ambiguousCharacterData.value).filter(xe=>!xe.startsWith("_")))}static getLocales(){return it._locales.value}constructor(xe){this.confusableDictionary=xe}isAmbiguous(xe){return this.confusableDictionary.has(xe)}getPrimaryConfusable(xe){return this.confusableDictionary.get(xe)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=it;class rt{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(rt.getRawData())),this._data}static isInvisibleCharacter(xe){return rt.getData().has(xe)}static get codePoints(){return rt.getData()}}e.InvisibleCharacters=rt}),define(ye[119],Ce([1,0,28,16]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fuzzyScoreGraceful=e.fuzzyScoreGracefulAggressive=e.fuzzyScore=e.FuzzyScoreOptions=e.FuzzyScore=e.isPatternInWord=e.createMatches=e.anyScore=e.matchesFuzzy2=e.matchesFuzzy=e.matchesWords=e.matchesCamelCase=e.isUpper=e.matchesSubString=e.matchesContiguousSubString=e.matchesPrefix=e.matchesStrictPrefix=e.or=void 0;function d(...j){return function(Z,he){for(let Pe=0,z=j.length;Pe<z;Pe++){const ee=j[Pe](Z,he);if(ee)return ee}return null}}e.or=d,e.matchesStrictPrefix=A.bind(void 0,!1),e.matchesPrefix=A.bind(void 0,!0);function A(j,Z,he){if(!he||he.length<Z.length)return null;let Pe;return j?Pe=M.startsWithIgnoreCase(he,Z):Pe=he.indexOf(Z)===0,Pe?Z.length>0?[{start:0,end:Z.length}]:[]:null}function R(j,Z){const he=Z.toLowerCase().indexOf(j.toLowerCase());return he===-1?null:[{start:he,end:he+j.length}]}e.matchesContiguousSubString=R;function u(j,Z){return p(j.toLowerCase(),Z.toLowerCase(),0,0)}e.matchesSubString=u;function p(j,Z,he,Pe){if(he===j.length)return[];if(Pe===Z.length)return null;if(j[he]===Z[Pe]){let z=null;return(z=p(j,Z,he+1,Pe+1))?h({start:Pe,end:Pe+1},z):null}return p(j,Z,he,Pe+1)}function f(j){return 97<=j&&j<=122}function y(j){return 65<=j&&j<=90}e.isUpper=y;function E(j){return 48<=j&&j<=57}function t(j){return j===32||j===9||j===10||j===13}const s=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(j=>s.add(j.charCodeAt(0)));function g(j){return t(j)||s.has(j)}function C(j,Z){return j===Z||g(j)&&g(Z)}function r(j){return f(j)||y(j)||E(j)}function h(j,Z){return Z.length===0?Z=[j]:j.end===Z[0].start?Z[0].start=j.start:Z.unshift(j),Z}function o(j,Z){for(let he=Z;he<j.length;he++){const Pe=j.charCodeAt(he);if(y(Pe)||E(Pe)||he>0&&!r(j.charCodeAt(he-1)))return he}return j.length}function b(j,Z,he,Pe){if(he===j.length)return[];if(Pe===Z.length)return null;if(j[he]!==Z[Pe].toLowerCase())return null;{let z=null,ee=Pe+1;for(z=b(j,Z,he+1,Pe+1);!z&&(ee=o(Z,ee))<Z.length;)z=b(j,Z,he+1,ee),ee++;return z===null?null:h({start:Pe,end:Pe+1},z)}}function P(j){let Z=0,he=0,Pe=0,z=0,ee=0;for(let Se=0;Se<j.length;Se++)ee=j.charCodeAt(Se),y(ee)&&Z++,f(ee)&&he++,r(ee)&&Pe++,E(ee)&&z++;const ie=Z/j.length,ue=he/j.length,Y=Pe/j.length,me=z/j.length;return{upperPercent:ie,lowerPercent:ue,alphaPercent:Y,numericPercent:me}}function T(j){const{upperPercent:Z,lowerPercent:he}=j;return he===0&&Z>.6}function n(j){const{upperPercent:Z,lowerPercent:he,alphaPercent:Pe,numericPercent:z}=j;return he>.2&&Z<.8&&Pe>.6&&z<.2}function a(j){let Z=0,he=0,Pe=0,z=0;for(let ee=0;ee<j.length;ee++)Pe=j.charCodeAt(ee),y(Pe)&&Z++,f(Pe)&&he++,t(Pe)&&z++;return(Z===0||he===0)&&z===0?j.length<=30:Z<=5}function l(j,Z){if(!Z||(Z=Z.trim(),Z.length===0)||!a(j)||Z.length>60)return null;const he=P(Z);if(!n(he)){if(!T(he))return null;Z=Z.toLowerCase()}let Pe=null,z=0;for(j=j.toLowerCase();z<Z.length&&(Pe=b(j,Z,0,z))===null;)z=o(Z,z+1);return Pe}e.matchesCamelCase=l;function i(j,Z,he=!1){if(!Z||Z.length===0)return null;let Pe=null,z=0;for(j=j.toLowerCase(),Z=Z.toLowerCase();z<Z.length&&(Pe=c(j,Z,0,z,he))===null;)z=_(Z,z+1);return Pe}e.matchesWords=i;function c(j,Z,he,Pe,z){if(he===j.length)return[];if(Pe===Z.length)return null;if(C(j.charCodeAt(he),Z.charCodeAt(Pe))){let ee=null,ie=Pe+1;if(ee=c(j,Z,he+1,Pe+1,z),!z)for(;!ee&&(ie=_(Z,ie))<Z.length;)ee=c(j,Z,he+1,ie,z),ie++;return ee?j.charCodeAt(he)!==Z.charCodeAt(Pe)?ee:h({start:Pe,end:Pe+1},ee):null}else return null}function _(j,Z){for(let he=Z;he<j.length;he++)if(g(j.charCodeAt(he))||he>0&&g(j.charCodeAt(he-1)))return he;return j.length}const S=d(e.matchesPrefix,l,R),k=d(e.matchesPrefix,l,u),m=new w.LRUCache(1e4);function v(j,Z,he=!1){if(typeof j!="string"||typeof Z!="string")return null;let Pe=m.get(j);Pe||(Pe=new RegExp(M.convertSimple2RegExpPattern(j),"i"),m.set(j,Pe));const z=Pe.exec(Z);return z?[{start:z.index,end:z.index+z[0].length}]:he?k(j,Z):S(j,Z)}e.matchesFuzzy=v;function D(j,Z){const he=fe(j,j.toLowerCase(),0,Z,Z.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return he?O(he):null}e.matchesFuzzy2=D;function L(j,Z,he,Pe,z,ee){const ie=Math.min(13,j.length);for(;he<ie;he++){const ue=fe(j,Z,he,Pe,z,ee,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(ue)return ue}return[0,ee]}e.anyScore=L;function O(j){if(typeof j>"u")return[];const Z=[],he=j[1];for(let Pe=j.length-1;Pe>1;Pe--){const z=j[Pe]+he,ee=Z[Z.length-1];ee&&ee.end===z?ee.end=z+1:Z.push({start:z,end:z+1})}return Z}e.createMatches=O;const H=128;function N(){const j=[],Z=[];for(let he=0;he<=H;he++)Z[he]=0;for(let he=0;he<=H;he++)j.push(Z.slice(0));return j}function $(j){const Z=[];for(let he=0;he<=j;he++)Z[he]=0;return Z}const U=$(2*H),x=$(2*H),X=N(),K=N(),pe=N(),le=!1;function re(j,Z,he,Pe,z){function ee(ue,Y,me=" "){for(;ue.length<Y;)ue=me+ue;return ue}let ie=` |   |${Pe.split("").map(ue=>ee(ue,3)).join("|")}
`;for(let ue=0;ue<=he;ue++)ue===0?ie+=" |":ie+=`${Z[ue-1]}|`,ie+=j[ue].slice(0,z+1).map(Y=>ee(Y.toString(),3)).join("|")+`
`;return ie}function q(j,Z,he,Pe){j=j.substr(Z),he=he.substr(Pe),console.log(re(K,j,j.length,he,he.length)),console.log(re(pe,j,j.length,he,he.length)),console.log(re(X,j,j.length,he,he.length))}function oe(j,Z){if(Z<0||Z>=j.length)return!1;const he=j.codePointAt(Z);switch(he){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!M.isEmojiImprecise(he)}}function ve(j,Z){if(Z<0||Z>=j.length)return!1;switch(j.charCodeAt(Z)){case 32:case 9:return!0;default:return!1}}function ce(j,Z,he){return Z[j]!==he[j]}function se(j,Z,he,Pe,z,ee,ie=!1){for(;Z<he&&z<ee;)j[Z]===Pe[z]&&(ie&&(U[Z]=z),Z+=1),z+=1;return Z===he}e.isPatternInWord=se;var te;(function(j){j[j.Diag=1]="Diag",j[j.Left=2]="Left",j[j.LeftLeft=3]="LeftLeft"})(te||(te={}));var B;(function(j){j.Default=[-100,0];function Z(he){return!he||he.length===2&&he[0]===-100&&he[1]===0}j.isDefault=Z})(B||(e.FuzzyScore=B={}));class G{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(Z,he){this.firstMatchCanBeWeak=Z,this.boostFullMatch=he}}e.FuzzyScoreOptions=G;function fe(j,Z,he,Pe,z,ee,ie=G.default){const ue=j.length>H?H:j.length,Y=Pe.length>H?H:Pe.length;if(he>=ue||ee>=Y||ue-he>Y-ee||!se(Z,he,ue,z,ee,Y,!0))return;_e(ue,Y,he,ee,Z,z);let me=1,Se=1,Ue=he,ze=ee;const et=[!1];for(me=1,Ue=he;Ue<ue;me++,Ue++){const Ae=U[Ue],xe=x[Ue],Te=Ue+1<ue?x[Ue+1]:Y;for(Se=Ae-ee+1,ze=Ae;ze<Te;Se++,ze++){let Ve=Number.MIN_SAFE_INTEGER,de=!1;ze<=xe&&(Ve=Ee(j,Z,Ue,he,Pe,z,ze,Y,ee,X[me-1][Se-1]===0,et));let ae=0;Ve!==Number.MAX_SAFE_INTEGER&&(de=!0,ae=Ve+K[me-1][Se-1]);const De=ze>Ae,Me=De?K[me][Se-1]+(X[me][Se-1]>0?-5:0):0,qe=ze>Ae+1&&X[me][Se-1]>0,Je=qe?K[me][Se-2]+(X[me][Se-2]>0?-5:0):0;if(qe&&(!De||Je>=Me)&&(!de||Je>=ae))K[me][Se]=Je,pe[me][Se]=3,X[me][Se]=0;else if(De&&(!de||Me>=ae))K[me][Se]=Me,pe[me][Se]=2,X[me][Se]=0;else if(de)K[me][Se]=ae,pe[me][Se]=1,X[me][Se]=X[me-1][Se-1]+1;else throw new Error("not possible")}}if(le&&q(j,he,Pe,ee),!et[0]&&!ie.firstMatchCanBeWeak)return;me--,Se--;const Ye=[K[me][Se],ee];let at=0,it=0;for(;me>=1;){let Ae=Se;do{const xe=pe[me][Ae];if(xe===3)Ae=Ae-2;else if(xe===2)Ae=Ae-1;else break}while(Ae>=1);at>1&&Z[he+me-1]===z[ee+Se-1]&&!ce(Ae+ee-1,Pe,z)&&at+1>X[me][Ae]&&(Ae=Se),Ae===Se?at++:at=1,it||(it=Ae),me--,Se=Ae-1,Ye.push(Se)}Y===ue&&ie.boostFullMatch&&(Ye[0]+=2);const rt=it-ue;return Ye[0]-=rt,Ye}e.fuzzyScore=fe;function _e(j,Z,he,Pe,z,ee){let ie=j-1,ue=Z-1;for(;ie>=he&&ue>=Pe;)z[ie]===ee[ue]&&(x[ie]=ue,ie--),ue--}function Ee(j,Z,he,Pe,z,ee,ie,ue,Y,me,Se){if(Z[he]!==ee[ie])return Number.MIN_SAFE_INTEGER;let Ue=1,ze=!1;return ie===he-Pe?Ue=j[he]===z[ie]?7:5:ce(ie,z,ee)&&(ie===0||!ce(ie-1,z,ee))?(Ue=j[he]===z[ie]?7:5,ze=!0):oe(ee,ie)&&(ie===0||!oe(ee,ie-1))?Ue=5:(oe(ee,ie-1)||ve(ee,ie-1))&&(Ue=5,ze=!0),Ue>1&&he===Pe&&(Se[0]=!0),ze||(ze=ce(ie,z,ee)||oe(ee,ie-1)||ve(ee,ie-1)),he===Pe?ie>Y&&(Ue-=ze?3:5):me?Ue+=ze?2:0:Ue+=ze?0:1,ie+1===ue&&(Ue-=ze?3:5),Ue}function F(j,Z,he,Pe,z,ee,ie){return I(j,Z,he,Pe,z,ee,!0,ie)}e.fuzzyScoreGracefulAggressive=F;function J(j,Z,he,Pe,z,ee,ie){return I(j,Z,he,Pe,z,ee,!1,ie)}e.fuzzyScoreGraceful=J;function I(j,Z,he,Pe,z,ee,ie,ue){let Y=fe(j,Z,he,Pe,z,ee,ue);if(Y&&!ie)return Y;if(j.length>=3){const me=Math.min(7,j.length-1);for(let Se=he+1;Se<me;Se++){const Ue=V(j,Se);if(Ue){const ze=fe(Ue,Ue.toLowerCase(),he,Pe,z,ee,ue);ze&&(ze[0]-=3,(!Y||ze[0]>Y[0])&&(Y=ze))}}}return Y}function V(j,Z){if(Z+1>=j.length)return;const he=j[Z],Pe=j[Z+1];if(he!==Pe)return j.slice(0,Z)+Pe+he+j.slice(Z+2)}}),define(ye[72],Ce([1,0,16]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.Hasher=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function M(h){return d(h,0)}e.hash=M;function d(h,o){switch(typeof h){case"object":return h===null?A(349,o):Array.isArray(h)?p(h,o):f(h,o);case"string":return u(h,o);case"boolean":return R(h,o);case"number":return A(h,o);case"undefined":return A(937,o);default:return A(617,o)}}e.doHash=d;function A(h,o){return(o<<5)-o+h|0}e.numberHash=A;function R(h,o){return A(h?433:863,o)}function u(h,o){o=A(149417,o);for(let b=0,P=h.length;b<P;b++)o=A(h.charCodeAt(b),o);return o}e.stringHash=u;function p(h,o){return o=A(104579,o),h.reduce((b,P)=>d(P,b),o)}function f(h,o){return o=A(181387,o),Object.keys(h).sort().reduce((b,P)=>(b=u(P,b),d(h[P],b)),o)}class y{constructor(){this._value=0}get value(){return this._value}hash(o){return this._value=d(o,this._value),this._value}}e.Hasher=y;var E;(function(h){h[h.BLOCK_SIZE=64]="BLOCK_SIZE",h[h.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"})(E||(E={}));function t(h,o,b=32){const P=b-o,T=~((1<<P)-1);return(h<<o|(T&h)>>>P)>>>0}function s(h,o=0,b=h.byteLength,P=0){for(let T=0;T<b;T++)h[o+T]=P}function g(h,o,b="0"){for(;h.length<o;)h=b+h;return h}function C(h,o=32){return h instanceof ArrayBuffer?Array.from(new Uint8Array(h)).map(b=>b.toString(16).padStart(2,"0")).join(""):g((h>>>0).toString(16),o/4)}e.toHexString=C;class r{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(o){const b=o.length;if(b===0)return;const P=this._buff;let T=this._buffLen,n=this._leftoverHighSurrogate,a,l;for(n!==0?(a=n,l=-1,n=0):(a=o.charCodeAt(0),l=0);;){let i=a;if(w.isHighSurrogate(a))if(l+1<b){const c=o.charCodeAt(l+1);w.isLowSurrogate(c)?(l++,i=w.computeCodePoint(a,c)):i=65533}else{n=a;break}else w.isLowSurrogate(a)&&(i=65533);if(T=this._push(P,T,i),l++,l<b)a=o.charCodeAt(l);else break}this._buffLen=T,this._leftoverHighSurrogate=n}_push(o,b,P){return P<128?o[b++]=P:P<2048?(o[b++]=192|(P&1984)>>>6,o[b++]=128|(P&63)>>>0):P<65536?(o[b++]=224|(P&61440)>>>12,o[b++]=128|(P&4032)>>>6,o[b++]=128|(P&63)>>>0):(o[b++]=240|(P&1835008)>>>18,o[b++]=128|(P&258048)>>>12,o[b++]=128|(P&4032)>>>6,o[b++]=128|(P&63)>>>0),b>=64&&(this._step(),b-=64,this._totalLen+=64,o[0]=o[64+0],o[1]=o[64+1],o[2]=o[64+2]),b}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),C(this._h0)+C(this._h1)+C(this._h2)+C(this._h3)+C(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,s(this._buff,this._buffLen),this._buffLen>56&&(this._step(),s(this._buff));const o=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(o/4294967296),!1),this._buffDV.setUint32(60,o%4294967296,!1),this._step()}_step(){const o=r._bigBlock32,b=this._buffDV;for(let S=0;S<64;S+=4)o.setUint32(S,b.getUint32(S,!1),!1);for(let S=64;S<320;S+=4)o.setUint32(S,t(o.getUint32(S-12,!1)^o.getUint32(S-32,!1)^o.getUint32(S-56,!1)^o.getUint32(S-64,!1),1),!1);let P=this._h0,T=this._h1,n=this._h2,a=this._h3,l=this._h4,i,c,_;for(let S=0;S<80;S++)S<20?(i=T&n|~T&a,c=1518500249):S<40?(i=T^n^a,c=1859775393):S<60?(i=T&n|T&a|n&a,c=2400959708):(i=T^n^a,c=3395469782),_=t(P,5)+i+l+c+o.getUint32(S*4,!1)&4294967295,l=a,a=n,n=t(T,30),T=P,P=_;this._h0=this._h0+P&4294967295,this._h1=this._h1+T&4294967295,this._h2=this._h2+n&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}}e.StringSHA1=r}),define(ye[43],Ce([1,0,16]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var M;(function(d){d[d.Ignore=0]="Ignore",d[d.Info=1]="Info",d[d.Warning=2]="Warning",d[d.Error=3]="Error"})(M||(M={})),function(d){const A="error",R="warning",u="warn",p="info",f="ignore";function y(t){return t?w.equalsIgnoreCase(A,t)?d.Error:w.equalsIgnoreCase(R,t)||w.equalsIgnoreCase(u,t)?d.Warning:w.equalsIgnoreCase(p,t)?d.Info:d.Ignore:d.Ignore}d.fromValue=y;function E(t){switch(t){case d.Error:return A;case d.Warning:return R;case d.Info:return p;default:return f}}d.toString=E}(M||(M={})),e.default=M}),define(ye[162],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MicrotaskDelay=void 0,e.MicrotaskDelay=Symbol("MicrotaskDelay")}),define(ye[73],Ce([1,0,19,16]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class d{constructor(){this._value="",this._pos=0}reset(s){return this._value=s,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(s){const g=s.charCodeAt(0),C=this._value.charCodeAt(this._pos);return g-C}value(){return this._value[this._pos]}}e.StringIterator=d;class A{constructor(s=!0){this._caseSensitive=s}reset(s){return this._value=s,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let s=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(s)this._from++;else break;else s=!1;return this}cmp(s){return this._caseSensitive?(0,M.compareSubstring)(s,this._value,0,s.length,this._from,this._to):(0,M.compareSubstringIgnoreCase)(s,this._value,0,s.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=A;class R{constructor(s=!0,g=!0){this._splitOnBackslash=s,this._caseSensitive=g}reset(s){this._from=0,this._to=0,this._value=s,this._valueLen=s.length;for(let g=s.length-1;g>=0;g--,this._valueLen--){const C=this._value.charCodeAt(g);if(!(C===47||this._splitOnBackslash&&C===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let s=!0;for(;this._to<this._valueLen;this._to++){const g=this._value.charCodeAt(this._to);if(g===47||this._splitOnBackslash&&g===92)if(s)this._from++;else break;else s=!1}return this}cmp(s){return this._caseSensitive?(0,M.compareSubstring)(s,this._value,0,s.length,this._from,this._to):(0,M.compareSubstringIgnoreCase)(s,this._value,0,s.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=R;var u;(function(t){t[t.Scheme=1]="Scheme",t[t.Authority=2]="Authority",t[t.Path=3]="Path",t[t.Query=4]="Query",t[t.Fragment=5]="Fragment"})(u||(u={}));class p{constructor(s,g){this._ignorePathCasing=s,this._ignoreQueryAndFragment=g,this._states=[],this._stateIdx=0}reset(s){return this._value=s,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new R(!1,!this._ignorePathCasing(s)),this._pathIterator.reset(s.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(s)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(s){if(this._states[this._stateIdx]===1)return(0,M.compareIgnoreCase)(s,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,M.compareIgnoreCase)(s,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(s);if(this._states[this._stateIdx]===4)return(0,M.compare)(s,this._value.query);if(this._states[this._stateIdx]===5)return(0,M.compare)(s,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=p;class f{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const s=this.right;return this.right=s.left,s.left=this,this.updateHeight(),s.updateHeight(),s}rotateRight(){const s=this.left;return this.left=s.right,s.right=this,this.updateHeight(),s.updateHeight(),s}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}var y;(function(t){t[t.Left=-1]="Left",t[t.Mid=0]="Mid",t[t.Right=1]="Right"})(y||(y={}));class E{static forUris(s=()=>!1,g=()=>!1){return new E(new p(s,g))}static forPaths(s=!1){return new E(new R(void 0,!s))}static forStrings(){return new E(new d)}static forConfigKeys(){return new E(new A)}constructor(s){this._iter=s}clear(){this._root=void 0}fill(s,g){if(g){const C=g.slice(0);(0,w.shuffle)(C);for(const r of C)this.set(r,s)}else{const C=s.slice(0);(0,w.shuffle)(C);for(const r of C)this.set(r[0],r[1])}}set(s,g){const C=this._iter.reset(s);let r;this._root||(this._root=new f,this._root.segment=C.value());const h=[];for(r=this._root;;){const b=C.cmp(r.segment);if(b>0)r.left||(r.left=new f,r.left.segment=C.value()),h.push([-1,r]),r=r.left;else if(b<0)r.right||(r.right=new f,r.right.segment=C.value()),h.push([1,r]),r=r.right;else if(C.hasNext())C.next(),r.mid||(r.mid=new f,r.mid.segment=C.value()),h.push([0,r]),r=r.mid;else break}const o=r.value;r.value=g,r.key=s;for(let b=h.length-1;b>=0;b--){const P=h[b][1];P.updateHeight();const T=P.balanceFactor();if(T<-1||T>1){const n=h[b][0],a=h[b+1][0];if(n===1&&a===1)h[b][1]=P.rotateLeft();else if(n===-1&&a===-1)h[b][1]=P.rotateRight();else if(n===1&&a===-1)P.right=h[b+1][1]=h[b+1][1].rotateRight(),h[b][1]=P.rotateLeft();else if(n===-1&&a===1)P.left=h[b+1][1]=h[b+1][1].rotateLeft(),h[b][1]=P.rotateRight();else throw new Error;if(b>0)switch(h[b-1][0]){case-1:h[b-1][1].left=h[b][1];break;case 1:h[b-1][1].right=h[b][1];break;case 0:h[b-1][1].mid=h[b][1];break}else this._root=h[0][1]}}return o}get(s){return this._getNode(s)?.value}_getNode(s){const g=this._iter.reset(s);let C=this._root;for(;C;){const r=g.cmp(C.segment);if(r>0)C=C.left;else if(r<0)C=C.right;else if(g.hasNext())g.next(),C=C.mid;else break}return C}has(s){const g=this._getNode(s);return!(g?.value===void 0&&g?.mid===void 0)}delete(s){return this._delete(s,!1)}deleteSuperstr(s){return this._delete(s,!0)}_delete(s,g){const C=this._iter.reset(s),r=[];let h=this._root;for(;h;){const o=C.cmp(h.segment);if(o>0)r.push([-1,h]),h=h.left;else if(o<0)r.push([1,h]),h=h.right;else if(C.hasNext())C.next(),r.push([0,h]),h=h.mid;else break}if(h){if(g?(h.left=void 0,h.mid=void 0,h.right=void 0,h.height=1):(h.key=void 0,h.value=void 0),!h.mid&&!h.value)if(h.left&&h.right){const o=this._min(h.right);if(o.key){const{key:b,value:P,segment:T}=o;this._delete(o.key,!1),h.key=b,h.value=P,h.segment=T}}else{const o=h.left??h.right;if(r.length>0){const[b,P]=r[r.length-1];switch(b){case-1:P.left=o;break;case 0:P.mid=o;break;case 1:P.right=o;break}}else this._root=o}for(let o=r.length-1;o>=0;o--){const b=r[o][1];b.updateHeight();const P=b.balanceFactor();if(P>1?(b.right.balanceFactor()>=0||(b.right=b.right.rotateRight()),r[o][1]=b.rotateLeft()):P<-1&&(b.left.balanceFactor()<=0||(b.left=b.left.rotateLeft()),r[o][1]=b.rotateRight()),o>0)switch(r[o-1][0]){case-1:r[o-1][1].left=r[o][1];break;case 1:r[o-1][1].right=r[o][1];break;case 0:r[o-1][1].mid=r[o][1];break}else this._root=r[0][1]}}}_min(s){for(;s.left;)s=s.left;return s}findSubstr(s){const g=this._iter.reset(s);let C=this._root,r;for(;C;){const h=g.cmp(C.segment);if(h>0)C=C.left;else if(h<0)C=C.right;else if(g.hasNext())g.next(),r=C.value||r,C=C.mid;else break}return C&&C.value||r}findSuperstr(s){return this._findSuperstrOrElement(s,!1)}_findSuperstrOrElement(s,g){const C=this._iter.reset(s);let r=this._root;for(;r;){const h=C.cmp(r.segment);if(h>0)r=r.left;else if(h<0)r=r.right;else if(C.hasNext())C.next(),r=r.mid;else return r.mid?this._entries(r.mid):g?r.value:void 0}}hasElementOrSubtree(s){return this._findSuperstrOrElement(s,!0)!==void 0}forEach(s){for(const[g,C]of this)s(C,g)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(s){const g=[];return this._dfsEntries(s,g),g[Symbol.iterator]()}_dfsEntries(s,g){s&&(s.left&&this._dfsEntries(s.left,g),s.value&&g.push([s.key,s.value]),s.mid&&this._dfsEntries(s.mid,g),s.right&&this._dfsEntries(s.right,g))}_isBalanced(){const s=g=>{if(!g)return!0;const C=g.balanceFactor();return C<-1||C>1?!1:s(g.left)&&s(g.right)};return s(this._root)}}e.TernarySearchTree=E}),define(ye[18],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withNullAsUndefined=e.validateConstraint=e.validateConstraints=e.areFunctions=e.isFunction=e.isEmptyObject=e.assertAllDefined=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isStringArray=e.isString=void 0;function w(n){return typeof n=="string"}e.isString=w;function M(n){return Array.isArray(n)&&n.every(a=>w(a))}e.isStringArray=M;function d(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}e.isObject=d;function A(n){const a=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof a}e.isTypedArray=A;function R(n){return typeof n=="number"&&!isNaN(n)}e.isNumber=R;function u(n){return!!n&&typeof n[Symbol.iterator]=="function"}e.isIterable=u;function p(n){return n===!0||n===!1}e.isBoolean=p;function f(n){return typeof n>"u"}e.isUndefined=f;function y(n){return!E(n)}e.isDefined=y;function E(n){return f(n)||n===null}e.isUndefinedOrNull=E;function t(n,a){if(!n)throw new Error(a?`Unexpected type, expected '${a}'`:"Unexpected type")}e.assertType=t;function s(n){if(E(n))throw new Error("Assertion Failed: argument is undefined or null");return n}e.assertIsDefined=s;function g(...n){const a=[];for(let l=0;l<n.length;l++){const i=n[l];if(E(i))throw new Error(`Assertion Failed: argument at index ${l} is undefined or null`);a.push(i)}return a}e.assertAllDefined=g;const C=Object.prototype.hasOwnProperty;function r(n){if(!d(n))return!1;for(const a in n)if(C.call(n,a))return!1;return!0}e.isEmptyObject=r;function h(n){return typeof n=="function"}e.isFunction=h;function o(...n){return n.length>0&&n.every(h)}e.areFunctions=o;function b(n,a){const l=Math.min(n.length,a.length);for(let i=0;i<l;i++)P(n[i],a[i])}e.validateConstraints=b;function P(n,a){if(w(a)){if(typeof n!==a)throw new Error(`argument does not match constraint: typeof ${a}`)}else if(h(a)){try{if(n instanceof a)return}catch{}if(!E(n)&&n.constructor===a||a.length===1&&a.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=P;function T(n){return n===null?void 0:n}e.withNullAsUndefined=T}),define(ye[74],Ce([1,0,18]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Codicon=e.getAllCodicons=e.getCodiconFontCharacters=void 0;const M=Object.create(null);function d(u,p){if((0,w.isString)(p)){const f=M[p];if(f===void 0)throw new Error(`${u} references an unknown codicon: ${p}`);p=f}return M[u]=p,{id:u}}function A(){return M}e.getCodiconFontCharacters=A;function R(){return Object.values(e.Codicon)}e.getAllCodicons=R,e.Codicon={add:d("add",6e4),plus:d("plus",6e4),gistNew:d("gist-new",6e4),repoCreate:d("repo-create",6e4),lightbulb:d("lightbulb",60001),lightBulb:d("light-bulb",60001),repo:d("repo",60002),repoDelete:d("repo-delete",60002),gistFork:d("gist-fork",60003),repoForked:d("repo-forked",60003),gitPullRequest:d("git-pull-request",60004),gitPullRequestAbandoned:d("git-pull-request-abandoned",60004),recordKeys:d("record-keys",60005),keyboard:d("keyboard",60005),tag:d("tag",60006),tagAdd:d("tag-add",60006),tagRemove:d("tag-remove",60006),gitPullRequestLabel:d("git-pull-request-label",60006),person:d("person",60007),personFollow:d("person-follow",60007),personOutline:d("person-outline",60007),personFilled:d("person-filled",60007),gitBranch:d("git-branch",60008),gitBranchCreate:d("git-branch-create",60008),gitBranchDelete:d("git-branch-delete",60008),sourceControl:d("source-control",60008),mirror:d("mirror",60009),mirrorPublic:d("mirror-public",60009),star:d("star",60010),starAdd:d("star-add",60010),starDelete:d("star-delete",60010),starEmpty:d("star-empty",60010),comment:d("comment",60011),commentAdd:d("comment-add",60011),alert:d("alert",60012),warning:d("warning",60012),search:d("search",60013),searchSave:d("search-save",60013),logOut:d("log-out",60014),signOut:d("sign-out",60014),logIn:d("log-in",60015),signIn:d("sign-in",60015),eye:d("eye",60016),eyeUnwatch:d("eye-unwatch",60016),eyeWatch:d("eye-watch",60016),circleFilled:d("circle-filled",60017),primitiveDot:d("primitive-dot",60017),closeDirty:d("close-dirty",60017),debugBreakpoint:d("debug-breakpoint",60017),debugBreakpointDisabled:d("debug-breakpoint-disabled",60017),debugHint:d("debug-hint",60017),primitiveSquare:d("primitive-square",60018),edit:d("edit",60019),pencil:d("pencil",60019),info:d("info",60020),issueOpened:d("issue-opened",60020),gistPrivate:d("gist-private",60021),gitForkPrivate:d("git-fork-private",60021),lock:d("lock",60021),mirrorPrivate:d("mirror-private",60021),close:d("close",60022),removeClose:d("remove-close",60022),x:d("x",60022),repoSync:d("repo-sync",60023),sync:d("sync",60023),clone:d("clone",60024),desktopDownload:d("desktop-download",60024),beaker:d("beaker",60025),microscope:d("microscope",60025),vm:d("vm",60026),deviceDesktop:d("device-desktop",60026),file:d("file",60027),fileText:d("file-text",60027),more:d("more",60028),ellipsis:d("ellipsis",60028),kebabHorizontal:d("kebab-horizontal",60028),mailReply:d("mail-reply",60029),reply:d("reply",60029),organization:d("organization",60030),organizationFilled:d("organization-filled",60030),organizationOutline:d("organization-outline",60030),newFile:d("new-file",60031),fileAdd:d("file-add",60031),newFolder:d("new-folder",60032),fileDirectoryCreate:d("file-directory-create",60032),trash:d("trash",60033),trashcan:d("trashcan",60033),history:d("history",60034),clock:d("clock",60034),folder:d("folder",60035),fileDirectory:d("file-directory",60035),symbolFolder:d("symbol-folder",60035),logoGithub:d("logo-github",60036),markGithub:d("mark-github",60036),github:d("github",60036),terminal:d("terminal",60037),console:d("console",60037),repl:d("repl",60037),zap:d("zap",60038),symbolEvent:d("symbol-event",60038),error:d("error",60039),stop:d("stop",60039),variable:d("variable",60040),symbolVariable:d("symbol-variable",60040),array:d("array",60042),symbolArray:d("symbol-array",60042),symbolModule:d("symbol-module",60043),symbolPackage:d("symbol-package",60043),symbolNamespace:d("symbol-namespace",60043),symbolObject:d("symbol-object",60043),symbolMethod:d("symbol-method",60044),symbolFunction:d("symbol-function",60044),symbolConstructor:d("symbol-constructor",60044),symbolBoolean:d("symbol-boolean",60047),symbolNull:d("symbol-null",60047),symbolNumeric:d("symbol-numeric",60048),symbolNumber:d("symbol-number",60048),symbolStructure:d("symbol-structure",60049),symbolStruct:d("symbol-struct",60049),symbolParameter:d("symbol-parameter",60050),symbolTypeParameter:d("symbol-type-parameter",60050),symbolKey:d("symbol-key",60051),symbolText:d("symbol-text",60051),symbolReference:d("symbol-reference",60052),goToFile:d("go-to-file",60052),symbolEnum:d("symbol-enum",60053),symbolValue:d("symbol-value",60053),symbolRuler:d("symbol-ruler",60054),symbolUnit:d("symbol-unit",60054),activateBreakpoints:d("activate-breakpoints",60055),archive:d("archive",60056),arrowBoth:d("arrow-both",60057),arrowDown:d("arrow-down",60058),arrowLeft:d("arrow-left",60059),arrowRight:d("arrow-right",60060),arrowSmallDown:d("arrow-small-down",60061),arrowSmallLeft:d("arrow-small-left",60062),arrowSmallRight:d("arrow-small-right",60063),arrowSmallUp:d("arrow-small-up",60064),arrowUp:d("arrow-up",60065),bell:d("bell",60066),bold:d("bold",60067),book:d("book",60068),bookmark:d("bookmark",60069),debugBreakpointConditionalUnverified:d("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:d("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:d("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:d("debug-breakpoint-data-unverified",60072),debugBreakpointData:d("debug-breakpoint-data",60073),debugBreakpointDataDisabled:d("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:d("debug-breakpoint-log-unverified",60074),debugBreakpointLog:d("debug-breakpoint-log",60075),debugBreakpointLogDisabled:d("debug-breakpoint-log-disabled",60075),briefcase:d("briefcase",60076),broadcast:d("broadcast",60077),browser:d("browser",60078),bug:d("bug",60079),calendar:d("calendar",60080),caseSensitive:d("case-sensitive",60081),check:d("check",60082),checklist:d("checklist",60083),chevronDown:d("chevron-down",60084),dropDownButton:d("drop-down-button",60084),chevronLeft:d("chevron-left",60085),chevronRight:d("chevron-right",60086),chevronUp:d("chevron-up",60087),chromeClose:d("chrome-close",60088),chromeMaximize:d("chrome-maximize",60089),chromeMinimize:d("chrome-minimize",60090),chromeRestore:d("chrome-restore",60091),circle:d("circle",60092),circleOutline:d("circle-outline",60092),debugBreakpointUnverified:d("debug-breakpoint-unverified",60092),circleSlash:d("circle-slash",60093),circuitBoard:d("circuit-board",60094),clearAll:d("clear-all",60095),clippy:d("clippy",60096),closeAll:d("close-all",60097),cloudDownload:d("cloud-download",60098),cloudUpload:d("cloud-upload",60099),code:d("code",60100),collapseAll:d("collapse-all",60101),colorMode:d("color-mode",60102),commentDiscussion:d("comment-discussion",60103),compareChanges:d("compare-changes",60157),creditCard:d("credit-card",60105),dash:d("dash",60108),dashboard:d("dashboard",60109),database:d("database",60110),debugContinue:d("debug-continue",60111),debugDisconnect:d("debug-disconnect",60112),debugPause:d("debug-pause",60113),debugRestart:d("debug-restart",60114),debugStart:d("debug-start",60115),debugStepInto:d("debug-step-into",60116),debugStepOut:d("debug-step-out",60117),debugStepOver:d("debug-step-over",60118),debugStop:d("debug-stop",60119),debug:d("debug",60120),deviceCameraVideo:d("device-camera-video",60121),deviceCamera:d("device-camera",60122),deviceMobile:d("device-mobile",60123),diffAdded:d("diff-added",60124),diffIgnored:d("diff-ignored",60125),diffModified:d("diff-modified",60126),diffRemoved:d("diff-removed",60127),diffRenamed:d("diff-renamed",60128),diff:d("diff",60129),discard:d("discard",60130),editorLayout:d("editor-layout",60131),emptyWindow:d("empty-window",60132),exclude:d("exclude",60133),extensions:d("extensions",60134),eyeClosed:d("eye-closed",60135),fileBinary:d("file-binary",60136),fileCode:d("file-code",60137),fileMedia:d("file-media",60138),filePdf:d("file-pdf",60139),fileSubmodule:d("file-submodule",60140),fileSymlinkDirectory:d("file-symlink-directory",60141),fileSymlinkFile:d("file-symlink-file",60142),fileZip:d("file-zip",60143),files:d("files",60144),filter:d("filter",60145),flame:d("flame",60146),foldDown:d("fold-down",60147),foldUp:d("fold-up",60148),fold:d("fold",60149),folderActive:d("folder-active",60150),folderOpened:d("folder-opened",60151),gear:d("gear",60152),gift:d("gift",60153),gistSecret:d("gist-secret",60154),gist:d("gist",60155),gitCommit:d("git-commit",60156),gitCompare:d("git-compare",60157),gitMerge:d("git-merge",60158),githubAction:d("github-action",60159),githubAlt:d("github-alt",60160),globe:d("globe",60161),grabber:d("grabber",60162),graph:d("graph",60163),gripper:d("gripper",60164),heart:d("heart",60165),home:d("home",60166),horizontalRule:d("horizontal-rule",60167),hubot:d("hubot",60168),inbox:d("inbox",60169),issueClosed:d("issue-closed",60324),issueReopened:d("issue-reopened",60171),issues:d("issues",60172),italic:d("italic",60173),jersey:d("jersey",60174),json:d("json",60175),bracket:d("bracket",60175),kebabVertical:d("kebab-vertical",60176),key:d("key",60177),law:d("law",60178),lightbulbAutofix:d("lightbulb-autofix",60179),linkExternal:d("link-external",60180),link:d("link",60181),listOrdered:d("list-ordered",60182),listUnordered:d("list-unordered",60183),liveShare:d("live-share",60184),loading:d("loading",60185),location:d("location",60186),mailRead:d("mail-read",60187),mail:d("mail",60188),markdown:d("markdown",60189),megaphone:d("megaphone",60190),mention:d("mention",60191),milestone:d("milestone",60192),gitPullRequestMilestone:d("git-pull-request-milestone",60192),mortarBoard:d("mortar-board",60193),move:d("move",60194),multipleWindows:d("multiple-windows",60195),mute:d("mute",60196),noNewline:d("no-newline",60197),note:d("note",60198),octoface:d("octoface",60199),openPreview:d("open-preview",60200),package_:d("package",60201),paintcan:d("paintcan",60202),pin:d("pin",60203),play:d("play",60204),run:d("run",60204),plug:d("plug",60205),preserveCase:d("preserve-case",60206),preview:d("preview",60207),project:d("project",60208),pulse:d("pulse",60209),question:d("question",60210),quote:d("quote",60211),radioTower:d("radio-tower",60212),reactions:d("reactions",60213),references:d("references",60214),refresh:d("refresh",60215),regex:d("regex",60216),remoteExplorer:d("remote-explorer",60217),remote:d("remote",60218),remove:d("remove",60219),replaceAll:d("replace-all",60220),replace:d("replace",60221),repoClone:d("repo-clone",60222),repoForcePush:d("repo-force-push",60223),repoPull:d("repo-pull",60224),repoPush:d("repo-push",60225),report:d("report",60226),requestChanges:d("request-changes",60227),rocket:d("rocket",60228),rootFolderOpened:d("root-folder-opened",60229),rootFolder:d("root-folder",60230),rss:d("rss",60231),ruby:d("ruby",60232),saveAll:d("save-all",60233),saveAs:d("save-as",60234),save:d("save",60235),screenFull:d("screen-full",60236),screenNormal:d("screen-normal",60237),searchStop:d("search-stop",60238),server:d("server",60240),settingsGear:d("settings-gear",60241),settings:d("settings",60242),shield:d("shield",60243),smiley:d("smiley",60244),sortPrecedence:d("sort-precedence",60245),splitHorizontal:d("split-horizontal",60246),splitVertical:d("split-vertical",60247),squirrel:d("squirrel",60248),starFull:d("star-full",60249),starHalf:d("star-half",60250),symbolClass:d("symbol-class",60251),symbolColor:d("symbol-color",60252),symbolCustomColor:d("symbol-customcolor",60252),symbolConstant:d("symbol-constant",60253),symbolEnumMember:d("symbol-enum-member",60254),symbolField:d("symbol-field",60255),symbolFile:d("symbol-file",60256),symbolInterface:d("symbol-interface",60257),symbolKeyword:d("symbol-keyword",60258),symbolMisc:d("symbol-misc",60259),symbolOperator:d("symbol-operator",60260),symbolProperty:d("symbol-property",60261),wrench:d("wrench",60261),wrenchSubaction:d("wrench-subaction",60261),symbolSnippet:d("symbol-snippet",60262),tasklist:d("tasklist",60263),telescope:d("telescope",60264),textSize:d("text-size",60265),threeBars:d("three-bars",60266),thumbsdown:d("thumbsdown",60267),thumbsup:d("thumbsup",60268),tools:d("tools",60269),triangleDown:d("triangle-down",60270),triangleLeft:d("triangle-left",60271),triangleRight:d("triangle-right",60272),triangleUp:d("triangle-up",60273),twitter:d("twitter",60274),unfold:d("unfold",60275),unlock:d("unlock",60276),unmute:d("unmute",60277),unverified:d("unverified",60278),verified:d("verified",60279),versions:d("versions",60280),vmActive:d("vm-active",60281),vmOutline:d("vm-outline",60282),vmRunning:d("vm-running",60283),watch:d("watch",60284),whitespace:d("whitespace",60285),wholeWord:d("whole-word",60286),window:d("window",60287),wordWrap:d("word-wrap",60288),zoomIn:d("zoom-in",60289),zoomOut:d("zoom-out",60290),listFilter:d("list-filter",60291),listFlat:d("list-flat",60292),listSelection:d("list-selection",60293),selection:d("selection",60293),listTree:d("list-tree",60294),debugBreakpointFunctionUnverified:d("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:d("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:d("debug-breakpoint-function-disabled",60296),debugStackframeActive:d("debug-stackframe-active",60297),circleSmallFilled:d("circle-small-filled",60298),debugStackframeDot:d("debug-stackframe-dot",60298),debugStackframe:d("debug-stackframe",60299),debugStackframeFocused:d("debug-stackframe-focused",60299),debugBreakpointUnsupported:d("debug-breakpoint-unsupported",60300),symbolString:d("symbol-string",60301),debugReverseContinue:d("debug-reverse-continue",60302),debugStepBack:d("debug-step-back",60303),debugRestartFrame:d("debug-restart-frame",60304),callIncoming:d("call-incoming",60306),callOutgoing:d("call-outgoing",60307),menu:d("menu",60308),expandAll:d("expand-all",60309),feedback:d("feedback",60310),gitPullRequestReviewer:d("git-pull-request-reviewer",60310),groupByRefType:d("group-by-ref-type",60311),ungroupByRefType:d("ungroup-by-ref-type",60312),account:d("account",60313),gitPullRequestAssignee:d("git-pull-request-assignee",60313),bellDot:d("bell-dot",60314),debugConsole:d("debug-console",60315),library:d("library",60316),output:d("output",60317),runAll:d("run-all",60318),syncIgnored:d("sync-ignored",60319),pinned:d("pinned",60320),githubInverted:d("github-inverted",60321),debugAlt:d("debug-alt",60305),serverProcess:d("server-process",60322),serverEnvironment:d("server-environment",60323),pass:d("pass",60324),stopCircle:d("stop-circle",60325),playCircle:d("play-circle",60326),record:d("record",60327),debugAltSmall:d("debug-alt-small",60328),vmConnect:d("vm-connect",60329),cloud:d("cloud",60330),merge:d("merge",60331),exportIcon:d("export",60332),graphLeft:d("graph-left",60333),magnet:d("magnet",60334),notebook:d("notebook",60335),redo:d("redo",60336),checkAll:d("check-all",60337),pinnedDirty:d("pinned-dirty",60338),passFilled:d("pass-filled",60339),circleLargeFilled:d("circle-large-filled",60340),circleLarge:d("circle-large",60341),circleLargeOutline:d("circle-large-outline",60341),combine:d("combine",60342),gather:d("gather",60342),table:d("table",60343),variableGroup:d("variable-group",60344),typeHierarchy:d("type-hierarchy",60345),typeHierarchySub:d("type-hierarchy-sub",60346),typeHierarchySuper:d("type-hierarchy-super",60347),gitPullRequestCreate:d("git-pull-request-create",60348),runAbove:d("run-above",60349),runBelow:d("run-below",60350),notebookTemplate:d("notebook-template",60351),debugRerun:d("debug-rerun",60352),workspaceTrusted:d("workspace-trusted",60353),workspaceUntrusted:d("workspace-untrusted",60354),workspaceUnspecified:d("workspace-unspecified",60355),terminalCmd:d("terminal-cmd",60356),terminalDebian:d("terminal-debian",60357),terminalLinux:d("terminal-linux",60358),terminalPowershell:d("terminal-powershell",60359),terminalTmux:d("terminal-tmux",60360),terminalUbuntu:d("terminal-ubuntu",60361),terminalBash:d("terminal-bash",60362),arrowSwap:d("arrow-swap",60363),copy:d("copy",60364),personAdd:d("person-add",60365),filterFilled:d("filter-filled",60366),wand:d("wand",60367),debugLineByLine:d("debug-line-by-line",60368),inspect:d("inspect",60369),layers:d("layers",60370),layersDot:d("layers-dot",60371),layersActive:d("layers-active",60372),compass:d("compass",60373),compassDot:d("compass-dot",60374),compassActive:d("compass-active",60375),azure:d("azure",60376),issueDraft:d("issue-draft",60377),gitPullRequestClosed:d("git-pull-request-closed",60378),gitPullRequestDraft:d("git-pull-request-draft",60379),debugAll:d("debug-all",60380),debugCoverage:d("debug-coverage",60381),runErrors:d("run-errors",60382),folderLibrary:d("folder-library",60383),debugContinueSmall:d("debug-continue-small",60384),beakerStop:d("beaker-stop",60385),graphLine:d("graph-line",60386),graphScatter:d("graph-scatter",60387),pieChart:d("pie-chart",60388),bracketDot:d("bracket-dot",60389),bracketError:d("bracket-error",60390),lockSmall:d("lock-small",60391),azureDevops:d("azure-devops",60392),verifiedFilled:d("verified-filled",60393),newLine:d("newline",60394),layout:d("layout",60395),layoutActivitybarLeft:d("layout-activitybar-left",60396),layoutActivitybarRight:d("layout-activitybar-right",60397),layoutPanelLeft:d("layout-panel-left",60398),layoutPanelCenter:d("layout-panel-center",60399),layoutPanelJustify:d("layout-panel-justify",60400),layoutPanelRight:d("layout-panel-right",60401),layoutPanel:d("layout-panel",60402),layoutSidebarLeft:d("layout-sidebar-left",60403),layoutSidebarRight:d("layout-sidebar-right",60404),layoutStatusbar:d("layout-statusbar",60405),layoutMenubar:d("layout-menubar",60406),layoutCentered:d("layout-centered",60407),layoutSidebarRightOff:d("layout-sidebar-right-off",60416),layoutPanelOff:d("layout-panel-off",60417),layoutSidebarLeftOff:d("layout-sidebar-left-off",60418),target:d("target",60408),indent:d("indent",60409),recordSmall:d("record-small",60410),errorSmall:d("error-small",60411),arrowCircleDown:d("arrow-circle-down",60412),arrowCircleLeft:d("arrow-circle-left",60413),arrowCircleRight:d("arrow-circle-right",60414),arrowCircleUp:d("arrow-circle-up",60415),heartFilled:d("heart-filled",60420),map:d("map",60421),mapFilled:d("map-filled",60422),circleSmall:d("circle-small",60423),bellSlash:d("bell-slash",60424),bellSlashDot:d("bell-slash-dot",60425),commentUnresolved:d("comment-unresolved",60426),gitPullRequestGoToChanges:d("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:d("git-pull-request-new-changes",60428),searchFuzzy:d("search-fuzzy",60429),commentDraft:d("comment-draft",60430),send:d("send",60431),sparkle:d("sparkle",60432),insert:d("insert",60433),mic:d("mic",60434),dialogError:d("dialog-error","error"),dialogWarning:d("dialog-warning","warning"),dialogInfo:d("dialog-info","info"),dialogClose:d("dialog-close","close"),treeItemExpanded:d("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:d("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:d("tree-filter-on-type-off","list-selection"),treeFilterClear:d("tree-filter-clear","close"),treeItemLoading:d("tree-item-loading","loading"),menuSelection:d("menu-selection","check"),menuSubmenu:d("menu-submenu","chevron-right"),menuBarMore:d("menubar-more","more"),scrollbarButtonLeft:d("scrollbar-button-left","triangle-left"),scrollbarButtonRight:d("scrollbar-button-right","triangle-right"),scrollbarButtonUp:d("scrollbar-button-up","triangle-up"),scrollbarButtonDown:d("scrollbar-button-down","triangle-down"),toolBarMore:d("toolbar-more","more"),quickInputBack:d("quick-input-back","arrow-left")}}),define(ye[24],Ce([1,0,18]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.filter=e.getCaseInsensitive=e.distinct=e.getOrDefault=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function M(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const b=Array.isArray(o)?[]:{};return Object.entries(o).forEach(([P,T])=>{b[P]=T&&typeof T=="object"?M(T):T}),b}e.deepClone=M;function d(o){if(!o||typeof o!="object")return o;const b=[o];for(;b.length>0;){const P=b.shift();Object.freeze(P);for(const T in P)if(A.call(P,T)){const n=P[T];typeof n=="object"&&!Object.isFrozen(n)&&!(0,w.isTypedArray)(n)&&b.push(n)}}return o}e.deepFreeze=d;const A=Object.prototype.hasOwnProperty;function R(o,b){return u(o,b,new Set)}e.cloneAndChange=R;function u(o,b,P){if((0,w.isUndefinedOrNull)(o))return o;const T=b(o);if(typeof T<"u")return T;if(Array.isArray(o)){const n=[];for(const a of o)n.push(u(a,b,P));return n}if((0,w.isObject)(o)){if(P.has(o))throw new Error("Cannot clone recursive data-structure");P.add(o);const n={};for(const a in o)A.call(o,a)&&(n[a]=u(o[a],b,P));return P.delete(o),n}return o}function p(o,b,P=!0){return(0,w.isObject)(o)?((0,w.isObject)(b)&&Object.keys(b).forEach(T=>{T in o?P&&((0,w.isObject)(o[T])&&(0,w.isObject)(b[T])?p(o[T],b[T],P):o[T]=b[T]):o[T]=b[T]}),o):b}e.mixin=p;function f(o,b){if(o===b)return!0;if(o==null||b===null||b===void 0||typeof o!=typeof b||typeof o!="object"||Array.isArray(o)!==Array.isArray(b))return!1;let P,T;if(Array.isArray(o)){if(o.length!==b.length)return!1;for(P=0;P<o.length;P++)if(!f(o[P],b[P]))return!1}else{const n=[];for(T in o)n.push(T);n.sort();const a=[];for(T in b)a.push(T);if(a.sort(),!f(n,a))return!1;for(P=0;P<n.length;P++)if(!f(o[n[P]],b[n[P]]))return!1}return!0}e.equals=f;function y(o){const b=new Set;return JSON.stringify(o,(P,T)=>{if((0,w.isObject)(T)||Array.isArray(T)){if(b.has(T))return"[Circular]";b.add(T)}return T})}e.safeStringify=y;function E(o,b,P){const T=b(o);return typeof T>"u"?P:T}e.getOrDefault=E;function t(o,b){const P=Object.create(null);return!o||!b||Object.keys(b).forEach(n=>{const a=o[n],l=b[n];f(a,l)||(P[n]=l)}),P}e.distinct=t;function s(o,b){const P=b.toLowerCase(),T=Object.keys(o).find(n=>n.toLowerCase()===P);return T?o[T]:o[b]}e.getCaseInsensitive=s;function g(o,b){const P=Object.create(null);for(const[T,n]of Object.entries(o))b(T,n)&&(P[T]=n);return P}e.filter=g;function C(o){let b=[];for(;Object.prototype!==o;)b=b.concat(Object.getOwnPropertyNames(o)),o=Object.getPrototypeOf(o);return b}e.getAllPropertyNames=C;function r(o){const b=[];for(const P of C(o))typeof o[P]=="function"&&b.push(P);return b}e.getAllMethodNames=r;function h(o,b){const P=n=>function(){const a=Array.prototype.slice.call(arguments,0);return b(n,a)},T={};for(const n of o)T[n]=P(n);return T}e.createProxyObject=h}),define(ye[58],Ce([1,0,74]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeIcon=e.themeColorFromId=e.ThemeColor=void 0;var M;(function(R){function u(p){return p&&typeof p=="object"&&typeof p.id=="string"}R.isThemeColor=u})(M||(e.ThemeColor=M={}));function d(R){return{id:R}}e.themeColorFromId=d;var A;(function(R){R.iconNameSegment="[A-Za-z0-9]+",R.iconNameExpression="[A-Za-z0-9-]+",R.iconModifierExpression="~[A-Za-z]+",R.iconNameCharacter="[A-Za-z0-9~-]";const u=new RegExp(`^(${R.iconNameExpression})(${R.iconModifierExpression})?$`);function p(o){const b=u.exec(o.id);if(!b)return p(w.Codicon.error);const[,P,T]=b;if(["active-connections-action","add-server-action","add-server-group-action","server-page"].includes(P))return["codicon",P];{const a=["codicon","codicon-"+P];return T&&a.push("codicon-modifier-"+T.substring(1)),a}}R.asClassNameArray=p;function f(o){return p(o).join(" ")}R.asClassName=f;function y(o){return"."+p(o).join(".")}R.asCSSSelector=y;function E(o){return o&&typeof o=="object"&&typeof o.id=="string"&&(typeof o.color>"u"||M.isThemeColor(o.color))}R.isThemeIcon=E;const t=new RegExp(`^\\$\\((${R.iconNameExpression}(?:${R.iconModifierExpression})?)\\)$`);function s(o){const b=t.exec(o);if(!b)return;const[,P]=b;return{id:P}}R.fromString=s;function g(o){return{id:o}}R.fromId=g;function C(o,b){let P=o.id;const T=P.lastIndexOf("~");return T!==-1&&(P=P.substring(0,T)),b&&(P=`${P}~${b}`),{id:P}}R.modify=C;function r(o){const b=o.id.lastIndexOf("~");if(b!==-1)return o.id.substring(b+1)}R.getModifier=r;function h(o,b){return o.id===b.id&&o.color?.id===b.color?.id}R.isEqual=h})(A||(e.ThemeIcon=A={}))}),define(ye[163],Ce([1,0,119,16,58]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.getCodiconAriaLabel=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=void 0;const A="$(",R=new RegExp(`\\$\\(${d.ThemeIcon.iconNameExpression}(?:${d.ThemeIcon.iconModifierExpression})?\\)`,"g"),u=new RegExp(`(\\\\)?${R.source}`,"g");function p(h){return h.replace(u,(o,b)=>b?o:`\\${o}`)}e.escapeIcons=p;const f=new RegExp(`\\\\${R.source}`,"g");function y(h){return h.replace(f,o=>`\\${o}`)}e.markdownEscapeEscapedIcons=y;const E=new RegExp(`(\\s)?(\\\\)?${R.source}(\\s)?`,"g");function t(h){return h.indexOf(A)===-1?h:h.replace(E,(o,b,P,T)=>P?o:b||T||"")}e.stripIcons=t;function s(h){return h?h.replace(/\$\((.*?)\)/g,(o,b)=>` ${b} `).trim():""}e.getCodiconAriaLabel=s;const g=new RegExp(`\\$\\(${d.ThemeIcon.iconNameCharacter}+\\)`,"g");function C(h){g.lastIndex=0;let o="";const b=[];let P=0;for(;;){const T=g.lastIndex,n=g.exec(h),a=h.substring(T,n?.index);if(a.length>0){o+=a;for(let l=0;l<a.length;l++)b.push(P)}if(!n)break;P+=n[0].length}return{text:o,iconOffsets:b}}e.parseLabelWithIcons=C;function r(h,o,b=!1){const{text:P,iconOffsets:T}=o;if(!T||T.length===0)return(0,w.matchesFuzzy)(h,P,b);const n=(0,M.ltrim)(P," "),a=P.length-n.length,l=(0,w.matchesFuzzy)(h,n,b);if(l)for(const i of l){const c=T[i.start+a]+a;i.start+=c,i.end+=c}return l}e.matchesFuzzyIconAware=r}),define(ye[120],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUint32=e.toUint8=e.Constants=void 0;var w;(function(A){A[A.MAX_SAFE_SMALL_INTEGER=1073741824]="MAX_SAFE_SMALL_INTEGER",A[A.MIN_SAFE_SMALL_INTEGER=-1073741824]="MIN_SAFE_SMALL_INTEGER",A[A.MAX_UINT_8=255]="MAX_UINT_8",A[A.MAX_UINT_16=65535]="MAX_UINT_16",A[A.MAX_UINT_32=4294967295]="MAX_UINT_32",A[A.UNICODE_SUPPLEMENTARY_PLANE_BEGIN=65536]="UNICODE_SUPPLEMENTARY_PLANE_BEGIN"})(w||(e.Constants=w={}));function M(A){return A<0?0:A>255?255:A|0}e.toUint8=M;function d(A){return A<0?0:A>4294967295?4294967295:A|0}e.toUint32=d}),define(ye[29],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=e.isUUID=void 0;const w=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function M(d){return w.test(d)}e.isUUID=M,e.generateUuid=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let d;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?d=crypto.getRandomValues.bind(crypto):d=function(u){for(let p=0;p<u.length;p++)u[p]=Math.floor(Math.random()*256);return u};const A=new Uint8Array(16),R=[];for(let u=0;u<256;u++)R.push(u.toString(16).padStart(2,"0"));return function(){d(A),A[6]=A[6]&15|64,A[8]=A[8]&63|128;let p=0,f="";return f+=R[A[p++]],f+=R[A[p++]],f+=R[A[p++]],f+=R[A[p++]],f+="-",f+=R[A[p++]],f+=R[A[p++]],f+="-",f+=R[A[p++]],f+=R[A[p++]],f+="-",f+=R[A[p++]],f+=R[A[p++]],f+="-",f+=R[A[p++]],f+=R[A[p++]],f+=R[A[p++]],f+=R[A[p++]],f+=R[A[p++]],f+=R[A[p++]],f}}()}),define(ye[164],Ce([1,0,19,51,29]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UriList=e.matchesMimeType=e.VSDataTransfer=e.createFileDataTransferItem=e.createStringDataTransferItem=void 0;function A(E){return{asString:async()=>E,asFile:()=>{},value:typeof E=="string"?E:void 0}}e.createStringDataTransferItem=A;function R(E,t,s){const g={id:(0,d.generateUuid)(),name:E,uri:t,data:s};return{asString:async()=>"",asFile:()=>g,value:void 0}}e.createFileDataTransferItem=R;class u{constructor(){this._entries=new Map}get size(){let t=0;for(const s of this._entries)t++;return t}has(t){return this._entries.has(this.toKey(t))}matches(t){const s=[...this._entries.keys()];return M.Iterable.some(this,([g,C])=>C.asFile())&&s.push("files"),y(p(t),s)}get(t){return this._entries.get(this.toKey(t))?.[0]}append(t,s){const g=this._entries.get(t);g?g.push(s):this._entries.set(this.toKey(t),[s])}replace(t,s){this._entries.set(this.toKey(t),[s])}delete(t){this._entries.delete(this.toKey(t))}*[Symbol.iterator](){for(const[t,s]of this._entries)for(const g of s)yield[t,g]}toKey(t){return p(t)}}e.VSDataTransfer=u;function p(E){return E.toLowerCase()}function f(E,t){return y(p(E),t.map(p))}e.matchesMimeType=f;function y(E,t){if(E==="*/*")return t.length>0;if(t.includes(E))return!0;const s=E.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!s)return!1;const[g,C,r]=s;return r==="*"?t.some(h=>h.startsWith(C+"/")):!1}e.UriList=Object.freeze({create:E=>(0,w.distinct)(E.map(t=>t.toString())).join(`\r
`),split:E=>E.split(`\r
`),parse:E=>e.UriList.split(E).filter(t=>!t.startsWith("#"))})}),define(ye[165],Ce([1,0,75]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findFreePortFaster=e.BROWSER_RESTRICTED_PORTS=e.findFreePort=void 0;function M(u,p,f,y=1){let E=!1;return new Promise(t=>{const s=setTimeout(()=>{if(!E)return E=!0,t(0)},f);d(u,p,y,g=>{if(!E)return E=!0,clearTimeout(s),t(g)})})}e.findFreePort=M;function d(u,p,f,y){if(p===0)return y(0);const E=new w.Socket;E.once("connect",()=>(R(E),d(u+f,p-1,f,y))),E.once("data",()=>{}),E.once("error",t=>(R(E),t.code!=="ECONNREFUSED"?d(u+f,p-1,f,y):y(u))),E.connect(u,"127.0.0.1")}e.BROWSER_RESTRICTED_PORTS={1:!0,7:!0,9:!0,11:!0,13:!0,15:!0,17:!0,19:!0,20:!0,21:!0,22:!0,23:!0,25:!0,37:!0,42:!0,43:!0,53:!0,69:!0,77:!0,79:!0,87:!0,95:!0,101:!0,102:!0,103:!0,104:!0,109:!0,110:!0,111:!0,113:!0,115:!0,117:!0,119:!0,123:!0,135:!0,137:!0,139:!0,143:!0,161:!0,179:!0,389:!0,427:!0,465:!0,512:!0,513:!0,514:!0,515:!0,526:!0,530:!0,531:!0,532:!0,540:!0,548:!0,554:!0,556:!0,563:!0,587:!0,601:!0,636:!0,989:!0,990:!0,993:!0,995:!0,1719:!0,1720:!0,1723:!0,2049:!0,3659:!0,4045:!0,5060:!0,5061:!0,6e3:!0,6566:!0,6665:!0,6666:!0,6667:!0,6668:!0,6669:!0,6697:!0,10080:!0};function A(u,p,f,y="127.0.0.1"){let E=!1,t,s=1;const g=w.createServer({pauseOnConnect:!0});function C(r,h){E||(E=!0,g.removeAllListeners(),g.close(),t&&clearTimeout(t),h(r))}return new Promise(r=>{t=setTimeout(()=>{C(0,r)},f),g.on("listening",()=>{C(u,r)}),g.on("error",h=>{h&&(h.code==="EADDRINUSE"||h.code==="EACCES")&&s<p?(u++,s++,g.listen(u,y)):C(0,r)}),g.on("close",()=>{C(0,r)}),g.listen(u,y)})}e.findFreePortFaster=A;function R(u){try{u.removeAllListeners("connect"),u.removeAllListeners("error"),u.end(),u.destroy(),u.unref()}catch(p){console.error(p)}}}),define(ye[121],Ce([1,0,120]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharacterSet=e.CharacterClassifier=void 0;class M{constructor(u){const p=(0,w.toUint8)(u);this._defaultValue=p,this._asciiMap=M._createAsciiMap(p),this._map=new Map}static _createAsciiMap(u){const p=new Uint8Array(256);return p.fill(u),p}set(u,p){const f=(0,w.toUint8)(p);u>=0&&u<256?this._asciiMap[u]=f:this._map.set(u,f)}get(u){return u>=0&&u<256?this._asciiMap[u]:this._map.get(u)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}e.CharacterClassifier=M;var d;(function(R){R[R.False=0]="False",R[R.True=1]="True"})(d||(d={}));class A{constructor(){this._actual=new M(0)}add(u){this._actual.set(u,1)}has(u){return this._actual.get(u)===1}clear(){return this._actual.clear()}}e.CharacterSet=A}),define(ye[59],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class w{constructor(d,A){this.lineNumber=d,this.column=A}with(d=this.lineNumber,A=this.column){return d===this.lineNumber&&A===this.column?this:new w(d,A)}delta(d=0,A=0){return this.with(this.lineNumber+d,this.column+A)}equals(d){return w.equals(this,d)}static equals(d,A){return!d&&!A?!0:!!d&&!!A&&d.lineNumber===A.lineNumber&&d.column===A.column}isBefore(d){return w.isBefore(this,d)}static isBefore(d,A){return d.lineNumber<A.lineNumber?!0:A.lineNumber<d.lineNumber?!1:d.column<A.column}isBeforeOrEqual(d){return w.isBeforeOrEqual(this,d)}static isBeforeOrEqual(d,A){return d.lineNumber<A.lineNumber?!0:A.lineNumber<d.lineNumber?!1:d.column<=A.column}static compare(d,A){const R=d.lineNumber|0,u=A.lineNumber|0;if(R===u){const p=d.column|0,f=A.column|0;return p-f}return R-u}clone(){return new w(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(d){return new w(d.lineNumber,d.column)}static isIPosition(d){return d&&typeof d.lineNumber=="number"&&typeof d.column=="number"}}e.Position=w}),define(ye[37],Ce([1,0,59]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;class M{constructor(A,R,u,p){A>u||A===u&&R>p?(this.startLineNumber=u,this.startColumn=p,this.endLineNumber=A,this.endColumn=R):(this.startLineNumber=A,this.startColumn=R,this.endLineNumber=u,this.endColumn=p)}isEmpty(){return M.isEmpty(this)}static isEmpty(A){return A.startLineNumber===A.endLineNumber&&A.startColumn===A.endColumn}containsPosition(A){return M.containsPosition(this,A)}static containsPosition(A,R){return!(R.lineNumber<A.startLineNumber||R.lineNumber>A.endLineNumber||R.lineNumber===A.startLineNumber&&R.column<A.startColumn||R.lineNumber===A.endLineNumber&&R.column>A.endColumn)}static strictContainsPosition(A,R){return!(R.lineNumber<A.startLineNumber||R.lineNumber>A.endLineNumber||R.lineNumber===A.startLineNumber&&R.column<=A.startColumn||R.lineNumber===A.endLineNumber&&R.column>=A.endColumn)}containsRange(A){return M.containsRange(this,A)}static containsRange(A,R){return!(R.startLineNumber<A.startLineNumber||R.endLineNumber<A.startLineNumber||R.startLineNumber>A.endLineNumber||R.endLineNumber>A.endLineNumber||R.startLineNumber===A.startLineNumber&&R.startColumn<A.startColumn||R.endLineNumber===A.endLineNumber&&R.endColumn>A.endColumn)}strictContainsRange(A){return M.strictContainsRange(this,A)}static strictContainsRange(A,R){return!(R.startLineNumber<A.startLineNumber||R.endLineNumber<A.startLineNumber||R.startLineNumber>A.endLineNumber||R.endLineNumber>A.endLineNumber||R.startLineNumber===A.startLineNumber&&R.startColumn<=A.startColumn||R.endLineNumber===A.endLineNumber&&R.endColumn>=A.endColumn)}plusRange(A){return M.plusRange(this,A)}static plusRange(A,R){let u,p,f,y;return R.startLineNumber<A.startLineNumber?(u=R.startLineNumber,p=R.startColumn):R.startLineNumber===A.startLineNumber?(u=R.startLineNumber,p=Math.min(R.startColumn,A.startColumn)):(u=A.startLineNumber,p=A.startColumn),R.endLineNumber>A.endLineNumber?(f=R.endLineNumber,y=R.endColumn):R.endLineNumber===A.endLineNumber?(f=R.endLineNumber,y=Math.max(R.endColumn,A.endColumn)):(f=A.endLineNumber,y=A.endColumn),new M(u,p,f,y)}intersectRanges(A){return M.intersectRanges(this,A)}static intersectRanges(A,R){let u=A.startLineNumber,p=A.startColumn,f=A.endLineNumber,y=A.endColumn;const E=R.startLineNumber,t=R.startColumn,s=R.endLineNumber,g=R.endColumn;return u<E?(u=E,p=t):u===E&&(p=Math.max(p,t)),f>s?(f=s,y=g):f===s&&(y=Math.min(y,g)),u>f||u===f&&p>y?null:new M(u,p,f,y)}equalsRange(A){return M.equalsRange(this,A)}static equalsRange(A,R){return!A&&!R?!0:!!A&&!!R&&A.startLineNumber===R.startLineNumber&&A.startColumn===R.startColumn&&A.endLineNumber===R.endLineNumber&&A.endColumn===R.endColumn}getEndPosition(){return M.getEndPosition(this)}static getEndPosition(A){return new w.Position(A.endLineNumber,A.endColumn)}getStartPosition(){return M.getStartPosition(this)}static getStartPosition(A){return new w.Position(A.startLineNumber,A.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(A,R){return new M(this.startLineNumber,this.startColumn,A,R)}setStartPosition(A,R){return new M(A,R,this.endLineNumber,this.endColumn)}collapseToStart(){return M.collapseToStart(this)}static collapseToStart(A){return new M(A.startLineNumber,A.startColumn,A.startLineNumber,A.startColumn)}collapseToEnd(){return M.collapseToEnd(this)}static collapseToEnd(A){return new M(A.endLineNumber,A.endColumn,A.endLineNumber,A.endColumn)}delta(A){return new M(this.startLineNumber+A,this.startColumn,this.endLineNumber+A,this.endColumn)}static fromPositions(A,R=A){return new M(A.lineNumber,A.column,R.lineNumber,R.column)}static lift(A){return A?new M(A.startLineNumber,A.startColumn,A.endLineNumber,A.endColumn):null}static isIRange(A){return A&&typeof A.startLineNumber=="number"&&typeof A.startColumn=="number"&&typeof A.endLineNumber=="number"&&typeof A.endColumn=="number"}static areIntersectingOrTouching(A,R){return!(A.endLineNumber<R.startLineNumber||A.endLineNumber===R.startLineNumber&&A.endColumn<R.startColumn||R.endLineNumber<A.startLineNumber||R.endLineNumber===A.startLineNumber&&R.endColumn<A.startColumn)}static areIntersecting(A,R){return!(A.endLineNumber<R.startLineNumber||A.endLineNumber===R.startLineNumber&&A.endColumn<=R.startColumn||R.endLineNumber<A.startLineNumber||R.endLineNumber===A.startLineNumber&&R.endColumn<=A.startColumn)}static compareRangesUsingStarts(A,R){if(A&&R){const f=A.startLineNumber|0,y=R.startLineNumber|0;if(f===y){const E=A.startColumn|0,t=R.startColumn|0;if(E===t){const s=A.endLineNumber|0,g=R.endLineNumber|0;if(s===g){const C=A.endColumn|0,r=R.endColumn|0;return C-r}return s-g}return E-t}return f-y}return(A?1:0)-(R?1:0)}static compareRangesUsingEnds(A,R){return A.endLineNumber===R.endLineNumber?A.endColumn===R.endColumn?A.startLineNumber===R.startLineNumber?A.startColumn-R.startColumn:A.startLineNumber-R.startLineNumber:A.endColumn-R.endColumn:A.endLineNumber-R.endLineNumber}static spansMultipleLines(A){return A.endLineNumber>A.startLineNumber}toJSON(){return this}}e.Range=M}),define(ye[166],Ce([1,0,37]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class M{static insert(A,R){return{range:new w.Range(A.lineNumber,A.column,A.lineNumber,A.column),text:R,forceMoveMarkers:!0}}static delete(A){return{range:A,text:null}}static replace(A,R){return{range:A,text:R}}static replaceMove(A,R){return{range:A,text:R,forceMoveMarkers:!0}}}e.EditOperation=M}),define(ye[167],Ce([1,0,59,37]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=e.SelectionDirection=void 0;var d;(function(R){R[R.LTR=0]="LTR",R[R.RTL=1]="RTL"})(d||(e.SelectionDirection=d={}));class A extends M.Range{constructor(u,p,f,y){super(u,p,f,y),this.selectionStartLineNumber=u,this.selectionStartColumn=p,this.positionLineNumber=f,this.positionColumn=y}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(u){return A.selectionsEqual(this,u)}static selectionsEqual(u,p){return u.selectionStartLineNumber===p.selectionStartLineNumber&&u.selectionStartColumn===p.selectionStartColumn&&u.positionLineNumber===p.positionLineNumber&&u.positionColumn===p.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(u,p){return this.getDirection()===0?new A(this.startLineNumber,this.startColumn,u,p):new A(u,p,this.startLineNumber,this.startColumn)}getPosition(){return new w.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new w.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(u,p){return this.getDirection()===0?new A(u,p,this.endLineNumber,this.endColumn):new A(this.endLineNumber,this.endColumn,u,p)}static fromPositions(u,p=u){return new A(u.lineNumber,u.column,p.lineNumber,p.column)}static fromRange(u,p){return p===0?new A(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn):new A(u.endLineNumber,u.endColumn,u.startLineNumber,u.startColumn)}static liftSelection(u){return new A(u.selectionStartLineNumber,u.selectionStartColumn,u.positionLineNumber,u.positionColumn)}static selectionsArrEqual(u,p){if(u&&!p||!u&&p)return!1;if(!u&&!p)return!0;if(u.length!==p.length)return!1;for(let f=0,y=u.length;f<y;f++)if(!this.selectionsEqual(u[f],p[f]))return!1;return!0}static isISelection(u){return u&&typeof u.selectionStartLineNumber=="number"&&typeof u.selectionStartColumn=="number"&&typeof u.positionLineNumber=="number"&&typeof u.positionColumn=="number"}static createWithDirection(u,p,f,y,E){return E===0?new A(u,p,f,y):new A(f,y,u,p)}}e.Selection=A}),define(ye[168],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EDITOR_MODEL_DEFAULTS=void 0,e.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}}),define(ye[169],Ce([1,0,121]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMapForWordSeparators=e.WordCharacterClassifier=e.WordCharacterClass=void 0;var M;(function(R){R[R.Regular=0]="Regular",R[R.Whitespace=1]="Whitespace",R[R.WordSeparator=2]="WordSeparator"})(M||(e.WordCharacterClass=M={}));class d extends w.CharacterClassifier{constructor(u){super(0);for(let p=0,f=u.length;p<f;p++)this.set(u.charCodeAt(p),2);this.set(32,1),this.set(9,1)}}e.WordCharacterClassifier=d;function A(R){const u={};return p=>(u.hasOwnProperty(p)||(u[p]=R(p)),u[p])}e.getMapForWordSeparators=A(R=>new d(R))}),define(ye[122],Ce([1,0,51,5,70]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWordAtText=e.setDefaultGetWordAtTextConfig=e.ensureValidWordDefinition=e.DEFAULT_WORD_REGEXP=e.USUAL_WORD_SEPARATORS=void 0,e.USUAL_WORD_SEPARATORS="`~!#$%^&*()-=+[{]}\\|;:'\",.<>/?";function A(E=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const s of e.USUAL_WORD_SEPARATORS)E.indexOf(s)>=0||(t+="\\"+s);return t+="\\s]+)",new RegExp(t,"g")}e.DEFAULT_WORD_REGEXP=A();function R(E){let t=e.DEFAULT_WORD_REGEXP;if(E&&E instanceof RegExp)if(E.global)t=E;else{let s="g";E.ignoreCase&&(s+="i"),E.multiline&&(s+="m"),E.unicode&&(s+="u"),t=new RegExp(E.source,s)}return t.lastIndex=0,t}e.ensureValidWordDefinition=R;const u=new d.LinkedList;u.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function p(E){const t=u.unshift(E);return(0,M.toDisposable)(t)}e.setDefaultGetWordAtTextConfig=p;function f(E,t,s,g,C){if(C||(C=w.Iterable.first(u)),s.length>C.maxLen){let P=E-C.maxLen/2;return P<0?P=0:g+=P,s=s.substring(P,E+C.maxLen/2),f(E,t,s,g,C)}const r=Date.now(),h=E-1-g;let o=-1,b=null;for(let P=1;!(Date.now()-r>=C.timeBudget);P++){const T=h-C.windowSize*P;t.lastIndex=Math.max(0,T);const n=y(t,s,h,o);if(!n&&b||(b=n,T<=0))break;o=T}if(b){const P={word:b[0],startColumn:g+1+b.index,endColumn:g+1+b.index+b[0].length};return t.lastIndex=0,P}return null}e.getWordAtText=f;function y(E,t,s,g){let C;for(;C=E.exec(t);){const r=C.index||0;if(r<=s&&E.lastIndex>=s)return C;if(g>0&&r>g)return null}return null}}),define(ye[170],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoClosingPairs=e.StandardAutoClosingPairConditional=e.IndentAction=void 0;var w;(function(R){R[R.None=0]="None",R[R.Indent=1]="Indent",R[R.IndentOutdent=2]="IndentOutdent",R[R.Outdent=3]="Outdent"})(w||(e.IndentAction=w={}));class M{constructor(u){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=u.open,this.close=u.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(u.notIn))for(let p=0,f=u.notIn.length;p<f;p++)switch(u.notIn[p]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;break}}isOK(u){switch(u){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(u,p){if(u.getTokenCount()===0)return!0;const f=u.findTokenIndexAtOffset(p-2),y=u.getStandardTokenType(f);return this.isOK(y)}_findNeutralCharacterInRange(u,p){for(let f=u;f<=p;f++){const y=String.fromCharCode(f);if(!this.open.includes(y)&&!this.close.includes(y))return y}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}e.StandardAutoClosingPairConditional=M;class d{constructor(u){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const p of u)A(this.autoClosingPairsOpenByStart,p.open.charAt(0),p),A(this.autoClosingPairsOpenByEnd,p.open.charAt(p.open.length-1),p),A(this.autoClosingPairsCloseByStart,p.close.charAt(0),p),A(this.autoClosingPairsCloseByEnd,p.close.charAt(p.close.length-1),p),p.close.length===1&&p.open.length===1&&A(this.autoClosingPairsCloseSingleChar,p.close,p)}}e.AutoClosingPairs=d;function A(R,u,p){R.has(u)?R.get(u).push(p):R.set(u,[p])}}),define(ye[171],Ce([1,0,121]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeLinks=e.LinkComputer=e.StateMachine=e.State=void 0;var M;(function(s){s[s.Invalid=0]="Invalid",s[s.Start=1]="Start",s[s.H=2]="H",s[s.HT=3]="HT",s[s.HTT=4]="HTT",s[s.HTTP=5]="HTTP",s[s.F=6]="F",s[s.FI=7]="FI",s[s.FIL=8]="FIL",s[s.BeforeColon=9]="BeforeColon",s[s.AfterColon=10]="AfterColon",s[s.AlmostThere=11]="AlmostThere",s[s.End=12]="End",s[s.Accept=13]="Accept",s[s.LastKnownState=14]="LastKnownState"})(M||(e.State=M={}));class d{constructor(g,C,r){const h=new Uint8Array(g*C);for(let o=0,b=g*C;o<b;o++)h[o]=r;this._data=h,this.rows=g,this.cols=C}get(g,C){return this._data[g*this.cols+C]}set(g,C,r){this._data[g*this.cols+C]=r}}class A{constructor(g){let C=0,r=0;for(let o=0,b=g.length;o<b;o++){const[P,T,n]=g[o];T>C&&(C=T),P>r&&(r=P),n>r&&(r=n)}C++,r++;const h=new d(r,C,0);for(let o=0,b=g.length;o<b;o++){const[P,T,n]=g[o];h.set(P,T,n)}this._states=h,this._maxCharCode=C}nextState(g,C){return C<0||C>=this._maxCharCode?0:this._states.get(g,C)}}e.StateMachine=A;let R=null;function u(){return R===null&&(R=new A([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),R}var p;(function(s){s[s.None=0]="None",s[s.ForceTermination=1]="ForceTermination",s[s.CannotEndIn=2]="CannotEndIn"})(p||(p={}));let f=null;function y(){if(f===null){f=new w.CharacterClassifier(0);const s=` 	<>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let C=0;C<s.length;C++)f.set(s.charCodeAt(C),1);const g=".,;:";for(let C=0;C<g.length;C++)f.set(g.charCodeAt(C),2)}return f}class E{static _createLink(g,C,r,h,o){let b=o-1;do{const P=C.charCodeAt(b);if(g.get(P)!==2)break;b--}while(b>h);if(h>0){const P=C.charCodeAt(h-1),T=C.charCodeAt(b);(P===40&&T===41||P===91&&T===93||P===123&&T===125)&&b--}return{range:{startLineNumber:r,startColumn:h+1,endLineNumber:r,endColumn:b+2},url:C.substring(h,b+1)}}static computeLinks(g,C=u()){const r=y(),h=[];for(let o=1,b=g.getLineCount();o<=b;o++){const P=g.getLineContent(o),T=P.length;let n=0,a=0,l=0,i=1,c=!1,_=!1,S=!1,k=!1;for(;n<T;){let m=!1;const v=P.charCodeAt(n);if(i===13){let D;switch(v){case 40:c=!0,D=0;break;case 41:D=c?0:1;break;case 91:S=!0,_=!0,D=0;break;case 93:S=!1,D=_?0:1;break;case 123:k=!0,D=0;break;case 125:D=k?0:1;break;case 39:case 34:case 96:l===v?D=1:l===39||l===34||l===96?D=0:D=1;break;case 42:D=l===42?1:0;break;case 124:D=l===124?1:0;break;case 32:D=S?0:1;break;default:D=r.get(v)}D===1&&(h.push(E._createLink(r,P,o,a,n)),m=!0)}else if(i===12){let D;v===91?(_=!0,D=0):D=r.get(v),D===1?m=!0:i=13}else i=C.nextState(i,v),i===0&&(m=!0);m&&(i=1,c=!1,_=!1,k=!1,a=n+1,l=v),n++}i===13&&h.push(E._createLink(r,P,o,a,T))}return h}}e.LinkComputer=E;function t(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:E.computeLinks(s)}e.computeLinks=t}),define(ye[123],Ce([1,0,24]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldSynchronizeModel=e.ApplyEditsResult=e.SearchData=e.ValidAnnotatedEditOperation=e.ModelConstants=e.PositionAffinity=e.isITextSnapshot=e.TrackedRangeStickiness=e.FindMatch=e.TextModelResolvedOptions=e.EndOfLineSequence=e.DefaultEndOfLine=e.EndOfLinePreference=e.InjectedTextCursorStops=e.MinimapPosition=e.GlyphMarginLane=e.OverviewRulerLane=void 0;var M;(function(P){P[P.Left=1]="Left",P[P.Center=2]="Center",P[P.Right=4]="Right",P[P.Full=7]="Full"})(M||(e.OverviewRulerLane=M={}));var d;(function(P){P[P.Left=1]="Left",P[P.Right=2]="Right"})(d||(e.GlyphMarginLane=d={}));var A;(function(P){P[P.Inline=1]="Inline",P[P.Gutter=2]="Gutter"})(A||(e.MinimapPosition=A={}));var R;(function(P){P[P.Both=0]="Both",P[P.Right=1]="Right",P[P.Left=2]="Left",P[P.None=3]="None"})(R||(e.InjectedTextCursorStops=R={}));var u;(function(P){P[P.TextDefined=0]="TextDefined",P[P.LF=1]="LF",P[P.CRLF=2]="CRLF"})(u||(e.EndOfLinePreference=u={}));var p;(function(P){P[P.LF=1]="LF",P[P.CRLF=2]="CRLF"})(p||(e.DefaultEndOfLine=p={}));var f;(function(P){P[P.LF=0]="LF",P[P.CRLF=1]="CRLF"})(f||(e.EndOfLineSequence=f={}));class y{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(T){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,T.tabSize|0),T.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,T.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!T.insertSpaces,this.defaultEOL=T.defaultEOL|0,this.trimAutoWhitespace=!!T.trimAutoWhitespace,this.bracketPairColorizationOptions=T.bracketPairColorizationOptions}equals(T){return this.tabSize===T.tabSize&&this._indentSizeIsTabSize===T._indentSizeIsTabSize&&this.indentSize===T.indentSize&&this.insertSpaces===T.insertSpaces&&this.defaultEOL===T.defaultEOL&&this.trimAutoWhitespace===T.trimAutoWhitespace&&(0,w.equals)(this.bracketPairColorizationOptions,T.bracketPairColorizationOptions)}createChangeEvent(T){return{tabSize:this.tabSize!==T.tabSize,indentSize:this.indentSize!==T.indentSize,insertSpaces:this.insertSpaces!==T.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==T.trimAutoWhitespace}}}e.TextModelResolvedOptions=y;class E{constructor(T,n){this._findMatchBrand=void 0,this.range=T,this.matches=n}}e.FindMatch=E;var t;(function(P){P[P.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",P[P.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",P[P.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",P[P.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(t||(e.TrackedRangeStickiness=t={}));function s(P){return P&&typeof P.read=="function"}e.isITextSnapshot=s;var g;(function(P){P[P.Left=0]="Left",P[P.Right=1]="Right",P[P.None=2]="None",P[P.LeftOfInjectedText=3]="LeftOfInjectedText",P[P.RightOfInjectedText=4]="RightOfInjectedText"})(g||(e.PositionAffinity=g={}));var C;(function(P){P[P.FIRST_LINE_DETECTION_LENGTH_LIMIT=1e3]="FIRST_LINE_DETECTION_LENGTH_LIMIT"})(C||(e.ModelConstants=C={}));class r{constructor(T,n,a,l,i,c){this.identifier=T,this.range=n,this.text=a,this.forceMoveMarkers=l,this.isAutoWhitespaceEdit=i,this._isTracked=c}}e.ValidAnnotatedEditOperation=r;class h{constructor(T,n,a){this.regex=T,this.wordSeparators=n,this.simpleSearch=a}}e.SearchData=h;class o{constructor(T,n,a){this.reverseEdits=T,this.changes=n,this.trimAutoWhitespaceLineNumbers=a}}e.ApplyEditsResult=o;function b(P){return!P.isTooLargeForSyncing()&&!P.isForSimpleWidget}e.shouldSynchronizeModel=b}),define(ye[172],Ce([1,0,19,120]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixSumIndexOfResult=e.ConstantTimePrefixSumComputer=e.PrefixSumComputer=void 0;class d{constructor(p){this.values=p,this.prefixSum=new Uint32Array(p.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}getCount(){return this.values.length}insertValues(p,f){p=(0,M.toUint32)(p);const y=this.values,E=this.prefixSum,t=f.length;return t===0?!1:(this.values=new Uint32Array(y.length+t),this.values.set(y.subarray(0,p),0),this.values.set(y.subarray(p),p+t),this.values.set(f,p),p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(E.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(p,f){return p=(0,M.toUint32)(p),f=(0,M.toUint32)(f),this.values[p]===f?!1:(this.values[p]=f,p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),!0)}removeValues(p,f){p=(0,M.toUint32)(p),f=(0,M.toUint32)(f);const y=this.values,E=this.prefixSum;if(p>=y.length)return!1;const t=y.length-p;return f>=t&&(f=t),f===0?!1:(this.values=new Uint32Array(y.length-f),this.values.set(y.subarray(0,p),0),this.values.set(y.subarray(p+f),p),this.prefixSum=new Uint32Array(this.values.length),p-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=p-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(E.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(p){return p<0?0:(p=(0,M.toUint32)(p),this._getPrefixSum(p))}_getPrefixSum(p){if(p<=this.prefixSumValidIndex[0])return this.prefixSum[p];let f=this.prefixSumValidIndex[0]+1;f===0&&(this.prefixSum[0]=this.values[0],f++),p>=this.values.length&&(p=this.values.length-1);for(let y=f;y<=p;y++)this.prefixSum[y]=this.prefixSum[y-1]+this.values[y];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],p),this.prefixSum[p]}getIndexOf(p){p=Math.floor(p),this.getTotalSum();let f=0,y=this.values.length-1,E=0,t=0,s=0;for(;f<=y;)if(E=f+(y-f)/2|0,t=this.prefixSum[E],s=t-this.values[E],p<s)y=E-1;else if(p>=t)f=E+1;else break;return new R(E,p-s)}}e.PrefixSumComputer=d;class A{constructor(p){this._values=p,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(p){return this._ensureValid(),p===0?0:this._prefixSum[p-1]}getIndexOf(p){this._ensureValid();const f=this._indexBySum[p],y=f>0?this._prefixSum[f-1]:0;return new R(f,p-y)}removeValues(p,f){this._values.splice(p,f),this._invalidate(p)}insertValues(p,f){this._values=(0,w.arrayInsert)(this._values,p,f),this._invalidate(p)}_invalidate(p){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,p-1)}_ensureValid(){if(!this._isValid){for(let p=this._validEndIndex+1,f=this._values.length;p<f;p++){const y=this._values[p],E=p>0?this._prefixSum[p-1]:0;this._prefixSum[p]=E+y;for(let t=0;t<y;t++)this._indexBySum[E+t]=p}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(p,f){this._values[p]!==f&&(this._values[p]=f,this._invalidate(p))}}e.ConstantTimePrefixSumComputer=A;class R{constructor(p,f){this.index=p,this.remainder=f,this._prefixSumIndexOfResultBrand=void 0,this.index=p,this.remainder=f}}e.PrefixSumIndexOfResult=R}),define(ye[173],Ce([1,0,16,59,172]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MirrorTextModel=void 0;class A{constructor(u,p,f,y){this._uri=u,this._lines=p,this._eol=f,this._versionId=y,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(u){u.eol&&u.eol!==this._eol&&(this._eol=u.eol,this._lineStarts=null);const p=u.changes;for(const f of p)this._acceptDeleteRange(f.range),this._acceptInsertText(new M.Position(f.range.startLineNumber,f.range.startColumn),f.text);this._versionId=u.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const u=this._eol.length,p=this._lines.length,f=new Uint32Array(p);for(let y=0;y<p;y++)f[y]=this._lines[y].length+u;this._lineStarts=new d.PrefixSumComputer(f)}}_setLineText(u,p){this._lines[u]=p,this._lineStarts&&this._lineStarts.setValue(u,this._lines[u].length+this._eol.length)}_acceptDeleteRange(u){if(u.startLineNumber===u.endLineNumber){if(u.startColumn===u.endColumn)return;this._setLineText(u.startLineNumber-1,this._lines[u.startLineNumber-1].substring(0,u.startColumn-1)+this._lines[u.startLineNumber-1].substring(u.endColumn-1));return}this._setLineText(u.startLineNumber-1,this._lines[u.startLineNumber-1].substring(0,u.startColumn-1)+this._lines[u.endLineNumber-1].substring(u.endColumn-1)),this._lines.splice(u.startLineNumber,u.endLineNumber-u.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(u.startLineNumber,u.endLineNumber-u.startLineNumber)}_acceptInsertText(u,p){if(p.length===0)return;const f=(0,w.splitLines)(p);if(f.length===1){this._setLineText(u.lineNumber-1,this._lines[u.lineNumber-1].substring(0,u.column-1)+f[0]+this._lines[u.lineNumber-1].substring(u.column-1));return}f[f.length-1]+=this._lines[u.lineNumber-1].substring(u.column-1),this._setLineText(u.lineNumber-1,this._lines[u.lineNumber-1].substring(0,u.column-1)+f[0]);const y=new Uint32Array(f.length-1);for(let E=1;E<f.length;E++)this._lines.splice(u.lineNumber+E-1,0,f[E]),y[E-1]=f[E].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(u.lineNumber,y)}}e.MirrorTextModel=A}),define(ye[174],Ce([1,0,16,169,59,37,123]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Searcher=e.isValidMatch=e.TextModelSearch=e.createFindMatch=e.isMultilineRegexSource=e.SearchParams=void 0;const u=999;class p{constructor(o,b,P,T){this.searchString=o,this.isRegex=b,this.matchCase=P,this.wordSeparators=T}parseSearchRequest(){if(this.searchString==="")return null;let o;this.isRegex?o=f(this.searchString):o=this.searchString.indexOf(`
`)>=0;let b=null;try{b=w.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:o,global:!0,unicode:!0})}catch{return null}if(!b)return null;let P=!this.isRegex&&!o;return P&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(P=this.matchCase),new R.SearchData(b,this.wordSeparators?(0,M.getMapForWordSeparators)(this.wordSeparators):null,P?this.searchString:null)}}e.SearchParams=p;function f(h){if(!h||h.length===0)return!1;for(let o=0,b=h.length;o<b;o++){const P=h.charCodeAt(o);if(P===10)return!0;if(P===92){if(o++,o>=b)break;const T=h.charCodeAt(o);if(T===110||T===114||T===87)return!0}}return!1}e.isMultilineRegexSource=f;function y(h,o,b){if(!b)return new R.FindMatch(h,null);const P=[];for(let T=0,n=o.length;T<n;T++)P[T]=o[T];return new R.FindMatch(h,P)}e.createFindMatch=y;class E{constructor(o){const b=[];let P=0;for(let T=0,n=o.length;T<n;T++)o.charCodeAt(T)===10&&(b[P++]=T);this._lineFeedsOffsets=b}findLineFeedCountBeforeOffset(o){const b=this._lineFeedsOffsets;let P=0,T=b.length-1;if(T===-1||o<=b[0])return 0;for(;P<T;){const n=P+((T-P)/2>>0);b[n]>=o?T=n-1:b[n+1]>=o?(P=n,T=n):P=n+1}return P+1}}class t{static findMatches(o,b,P,T,n){const a=b.parseSearchRequest();return a?a.regex.multiline?this._doFindMatchesMultiline(o,P,new r(a.wordSeparators,a.regex),T,n):this._doFindMatchesLineByLine(o,P,a,T,n):[]}static _getMultilineMatchRange(o,b,P,T,n,a){let l,i=0;T?(i=T.findLineFeedCountBeforeOffset(n),l=b+n+i):l=b+n;let c;if(T){const m=T.findLineFeedCountBeforeOffset(n+a.length)-i;c=l+a.length+m}else c=l+a.length;const _=o.getPositionAt(l),S=o.getPositionAt(c);return new A.Range(_.lineNumber,_.column,S.lineNumber,S.column)}static _doFindMatchesMultiline(o,b,P,T,n){const a=o.getOffsetAt(b.getStartPosition()),l=o.getValueInRange(b,1),i=o.getEOL()===`\r
`?new E(l):null,c=[];let _=0,S;for(P.reset(0);S=P.next(l);)if(c[_++]=y(this._getMultilineMatchRange(o,a,l,i,S.index,S[0]),S,T),_>=n)return c;return c}static _doFindMatchesLineByLine(o,b,P,T,n){const a=[];let l=0;if(b.startLineNumber===b.endLineNumber){const c=o.getLineContent(b.startLineNumber).substring(b.startColumn-1,b.endColumn-1);return l=this._findMatchesInLine(P,c,b.startLineNumber,b.startColumn-1,l,a,T,n),a}const i=o.getLineContent(b.startLineNumber).substring(b.startColumn-1);l=this._findMatchesInLine(P,i,b.startLineNumber,b.startColumn-1,l,a,T,n);for(let c=b.startLineNumber+1;c<b.endLineNumber&&l<n;c++)l=this._findMatchesInLine(P,o.getLineContent(c),c,0,l,a,T,n);if(l<n){const c=o.getLineContent(b.endLineNumber).substring(0,b.endColumn-1);l=this._findMatchesInLine(P,c,b.endLineNumber,0,l,a,T,n)}return a}static _findMatchesInLine(o,b,P,T,n,a,l,i){const c=o.wordSeparators;if(!l&&o.simpleSearch){const k=o.simpleSearch,m=k.length,v=b.length;let D=-m;for(;(D=b.indexOf(k,D+m))!==-1;)if((!c||C(c,b,v,D,m))&&(a[n++]=new R.FindMatch(new A.Range(P,D+1+T,P,D+1+m+T),null),n>=i))return n;return n}const _=new r(o.wordSeparators,o.regex);let S;_.reset(0);do if(S=_.next(b),S&&(a[n++]=y(new A.Range(P,S.index+1+T,P,S.index+1+S[0].length+T),S,l),n>=i))return n;while(S);return n}static findNextMatch(o,b,P,T){const n=b.parseSearchRequest();if(!n)return null;const a=new r(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindNextMatchMultiline(o,P,a,T):this._doFindNextMatchLineByLine(o,P,a,T)}static _doFindNextMatchMultiline(o,b,P,T){const n=new d.Position(b.lineNumber,1),a=o.getOffsetAt(n),l=o.getLineCount(),i=o.getValueInRange(new A.Range(n.lineNumber,n.column,l,o.getLineMaxColumn(l)),1),c=o.getEOL()===`\r
`?new E(i):null;P.reset(b.column-1);const _=P.next(i);return _?y(this._getMultilineMatchRange(o,a,i,c,_.index,_[0]),_,T):b.lineNumber!==1||b.column!==1?this._doFindNextMatchMultiline(o,new d.Position(1,1),P,T):null}static _doFindNextMatchLineByLine(o,b,P,T){const n=o.getLineCount(),a=b.lineNumber,l=o.getLineContent(a),i=this._findFirstMatchInLine(P,l,a,b.column,T);if(i)return i;for(let c=1;c<=n;c++){const _=(a+c-1)%n,S=o.getLineContent(_+1),k=this._findFirstMatchInLine(P,S,_+1,1,T);if(k)return k}return null}static _findFirstMatchInLine(o,b,P,T,n){o.reset(T-1);const a=o.next(b);return a?y(new A.Range(P,a.index+1,P,a.index+1+a[0].length),a,n):null}static findPreviousMatch(o,b,P,T){const n=b.parseSearchRequest();if(!n)return null;const a=new r(n.wordSeparators,n.regex);return n.regex.multiline?this._doFindPreviousMatchMultiline(o,P,a,T):this._doFindPreviousMatchLineByLine(o,P,a,T)}static _doFindPreviousMatchMultiline(o,b,P,T){const n=this._doFindMatchesMultiline(o,new A.Range(1,1,b.lineNumber,b.column),P,T,10*u);if(n.length>0)return n[n.length-1];const a=o.getLineCount();return b.lineNumber!==a||b.column!==o.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(o,new d.Position(a,o.getLineMaxColumn(a)),P,T):null}static _doFindPreviousMatchLineByLine(o,b,P,T){const n=o.getLineCount(),a=b.lineNumber,l=o.getLineContent(a).substring(0,b.column-1),i=this._findLastMatchInLine(P,l,a,T);if(i)return i;for(let c=1;c<=n;c++){const _=(n+a-c-1)%n,S=o.getLineContent(_+1),k=this._findLastMatchInLine(P,S,_+1,T);if(k)return k}return null}static _findLastMatchInLine(o,b,P,T){let n=null,a;for(o.reset(0);a=o.next(b);)n=y(new A.Range(P,a.index+1,P,a.index+1+a[0].length),a,T);return n}}e.TextModelSearch=t;function s(h,o,b,P,T){if(P===0)return!0;const n=o.charCodeAt(P-1);if(h.get(n)!==0||n===13||n===10)return!0;if(T>0){const a=o.charCodeAt(P);if(h.get(a)!==0)return!0}return!1}function g(h,o,b,P,T){if(P+T===b)return!0;const n=o.charCodeAt(P+T);if(h.get(n)!==0||n===13||n===10)return!0;if(T>0){const a=o.charCodeAt(P+T-1);if(h.get(a)!==0)return!0}return!1}function C(h,o,b,P,T){return s(h,o,b,P,T)&&g(h,o,b,P,T)}e.isValidMatch=C;class r{constructor(o,b){this._wordSeparators=o,this._searchRegex=b,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(o){this._searchRegex.lastIndex=o,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(o){const b=o.length;let P;do{if(this._prevMatchStartIndex+this._prevMatchLength===b||(P=this._searchRegex.exec(o),!P))return null;const T=P.index,n=P[0].length;if(T===this._prevMatchStartIndex&&n===this._prevMatchLength){if(n===0){w.getNextCodePoint(o,b,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=T,this._prevMatchLength=n,!this._wordSeparators||C(this._wordSeparators,o,b,T,n))return P}while(P);return null}}e.Searcher=r}),define(ye[175],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DraggedTreeItemsIdentifier=e.TreeViewsDnDService=void 0;class w{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(A){if(A&&this._dragOperations.has(A)){const R=this._dragOperations.get(A);return this._dragOperations.delete(A),R}}addDragOperationTransfer(A,R){this._dragOperations.set(A,R)}}e.TreeViewsDnDService=w;class M{constructor(A){this.identifier=A}}e.DraggedTreeItemsIdentifier=M}),define(ye[176],Ce([1,0,4,5]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationRegistry=void 0;class d{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new w.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(u){this._onDidChange.fire({changedLanguages:u,changedColorMap:!1})}register(u,p){return this._tokenizationSupports.set(u,p),this.handleChange([u]),(0,M.toDisposable)(()=>{this._tokenizationSupports.get(u)===p&&(this._tokenizationSupports.delete(u),this.handleChange([u]))})}get(u){return this._tokenizationSupports.get(u)||null}registerFactory(u,p){this._factories.get(u)?.dispose();const f=new A(this,u,p);return this._factories.set(u,f),(0,M.toDisposable)(()=>{const y=this._factories.get(u);!y||y!==f||(this._factories.delete(u),y.dispose())})}async getOrCreate(u){const p=this.get(u);if(p)return p;const f=this._factories.get(u);return!f||f.isResolved?null:(await f.resolve(),this.get(u))}isResolved(u){if(this.get(u))return!0;const f=this._factories.get(u);return!!(!f||f.isResolved)}setColorMap(u){this._colorMap=u,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}e.TokenizationRegistry=d;class A extends M.Disposable{get isResolved(){return this._isResolved}constructor(u,p,f){super(),this._registry=u,this._languageId=p,this._factory=f,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const u=await this._factory.tokenizationSupport;this._isResolved=!0,u&&!this._isDisposed&&this._register(this._registry.register(this._languageId,u))}}}),define(ye[177],Ce([9,10]),function(ge,e){return ge.create("sql/base/common/locConstants",e)}),define(ye[178],Ce([1,0,177]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aboutDetail=e.getNewThemeNotification=e.getThemeUpdatedNotification=e.installTooltip=e.downloadTooltip=e.download=e.experimentalCustomizationDescription=e.outputFontFamilyDescription=e.outputFontSizeDescription=e.outputLineHeightDescription=e.interactiveWindowCollapseCodeCellsDescription=e.markupFontSizeDescription=e.textOutputLineLimitDescription=e.globalToolbarShowLabelDescription=e.consolidatedRunButtonDescription=e.dragAndDropDescription=e.showFoldingControlsDescription=e.consolidatedOutputButtonDescription=e.globalToolbarDescription=e.insertToolbarPositionDescription=e.focusIndicatorDescription=e.compactViewDescription=e.undoRedoPerCellDescription=e.cellToolbarVisibilityDescription=e.diffEnablePreviewDescription=e.showCellStatusbarDescription=e.cellToolbarLocationDescription=e.displayOrderDescription=e.issueReporterPageReviewGuidanceLabel=e.issueReporterServiceAzuredatastudio=e.terminalIntegratedInheritEnvDescription=e.terminalIntegratedEnvWindowsDescription=e.terminalIntegratedEnvLinuxDescription=e.terminalIntegratedEnvOsxDescription=e.terminalIntegratedDetectLocaleDescrption=e.terminalIntegratedCommandsToSkipShellDescrption=e.terminalIntegratedAutoRepliesDescription=e.terminalIntegratedAllowChordsDescription=e.windowTitleAppNameDescription=e.versionMismatchVsCode=e.versionMismatch=e.versionSyntax=e.notebooksNotSupportedError=e.workspaceTrustEmptyWindowDescription=e.workspaceTrustDescription=e.desktopContributionMiinstallVsix=e.watermarkNewNotebook=e.watermarkNewSqlFile=e.localizationsContributionActivateLanguagePack=e.localizationsContributionUpdateLocale=e.watcherExclude=e.filesContributionMaxMemoryForLargeFilesMB=e.fileActionsContributionMiNewDeployment=e.fileActionsContributionMiNewNotebook=e.fileActionsContributionMiNewQuery=e.fileActionsContributionNewQuery=e.extensionsWorkbenchServiceIncompatible=e.extensionsViewsScenarioTypeUndefined=e.extensionsViewletRecommendedExtensions=e.extensionsActionsReinstallActionSuccessReload=e.extensionsActionsInstallExtensionCompletedAndReloadRequired=e.extensionsActionsEnableRemote=e.extensionsActionsUninstallExtensionComplete=e.extensionsActionsPostDisableTooltip=e.extensionsActionsPostEnableTooltip=e.extensionsActionsEnableLocally=e.extensionsActionsPostUpdateTooltip=e.extensionsActionsPostUninstallTooltip=e.extensionsContributionInstallVSIXActionSuccessReload=e.extensionsContributionInstallVSIXActionAllowNone=e.extensionsContributionExtensionsPolicy=e.menusExtensionPointDataGridContext=e.menusExtensionPointConnectionDialogBrowseTreeContext=e.menusExtensionPointObjectExplorerContext=e.menusExtensionPointDataExplorerContext=e.menusExtensionPointDataExplorerAction=e.menusExtensionPointNotebookToolbar=e.menusExtensionPointNotebookTitle=e.menusExtensionPointNotebookCellTitle=e.menusExtensionPointDashboardToolbar=e.updateConfigContributionShowReleaseNotes=e.updateConfigContributionEnableWindowsBackgroundUpdates=e.updateConfigContributionDefault=void 0,e.updateConfigContributionDefault=(0,w.localize)(0,null),e.updateConfigContributionEnableWindowsBackgroundUpdates=(0,w.localize)(1,null),e.updateConfigContributionShowReleaseNotes=(0,w.localize)(2,null),e.menusExtensionPointDashboardToolbar=(0,w.localize)(3,null),e.menusExtensionPointNotebookCellTitle=(0,w.localize)(4,null),e.menusExtensionPointNotebookTitle=(0,w.localize)(5,null),e.menusExtensionPointNotebookToolbar=(0,w.localize)(6,null),e.menusExtensionPointDataExplorerAction=(0,w.localize)(7,null),e.menusExtensionPointDataExplorerContext=(0,w.localize)(8,null),e.menusExtensionPointObjectExplorerContext=(0,w.localize)(9,null),e.menusExtensionPointConnectionDialogBrowseTreeContext=(0,w.localize)(10,null),e.menusExtensionPointDataGridContext=(0,w.localize)(11,null),e.extensionsContributionExtensionsPolicy=(0,w.localize)(12,null),e.extensionsContributionInstallVSIXActionAllowNone=(0,w.localize)(13,null);function M(b){return(0,w.localize)(14,null,b)}e.extensionsContributionInstallVSIXActionSuccessReload=M,e.extensionsActionsPostUninstallTooltip=(0,w.localize)(15,null),e.extensionsActionsPostUpdateTooltip=(0,w.localize)(16,null),e.extensionsActionsEnableLocally=(0,w.localize)(17,null),e.extensionsActionsPostEnableTooltip=(0,w.localize)(18,null),e.extensionsActionsPostDisableTooltip=(0,w.localize)(19,null);function d(b){return(0,w.localize)(20,null,b)}e.extensionsActionsUninstallExtensionComplete=d;function A(b){return(0,w.localize)(21,null,b)}e.extensionsActionsEnableRemote=A;function R(b){return(0,w.localize)(22,null,b)}e.extensionsActionsInstallExtensionCompletedAndReloadRequired=R;function u(b){return(0,w.localize)(23,null,b)}e.extensionsActionsReinstallActionSuccessReload=u,e.extensionsViewletRecommendedExtensions=(0,w.localize)(24,null),e.extensionsViewsScenarioTypeUndefined=(0,w.localize)(25,null);function p(b,P,T,n){return(0,w.localize)(26,null,P,b,T,n)}e.extensionsWorkbenchServiceIncompatible=p,e.fileActionsContributionNewQuery=(0,w.localize)(27,null),e.fileActionsContributionMiNewQuery=(0,w.localize)(28,null),e.fileActionsContributionMiNewNotebook=(0,w.localize)(29,null),e.fileActionsContributionMiNewDeployment=(0,w.localize)(30,null),e.filesContributionMaxMemoryForLargeFilesMB=(0,w.localize)(31,null),e.watcherExclude=(0,w.localize)(32,null);function f(b){return(0,w.localize)(33,null,b)}e.localizationsContributionUpdateLocale=f;function y(b){return(0,w.localize)(34,null,b)}e.localizationsContributionActivateLanguagePack=y,e.watermarkNewSqlFile=(0,w.localize)(35,null),e.watermarkNewNotebook=(0,w.localize)(36,null),e.desktopContributionMiinstallVsix=(0,w.localize)(37,null),e.workspaceTrustDescription=(0,w.localize)(38,null);function E(b){return(0,w.localize)(39,null,b)}e.workspaceTrustEmptyWindowDescription=E,e.notebooksNotSupportedError=(0,w.localize)(40,null);function t(b,P){return(0,w.localize)(41,null,b,P)}e.versionSyntax=t;function s(b,P){return(0,w.localize)(42,null,b,P)}e.versionMismatch=s;function g(b,P,T){return(0,w.localize)(43,null,b,P,T)}e.versionMismatchVsCode=g,e.windowTitleAppNameDescription=(0,w.localize)(44,null),e.terminalIntegratedAllowChordsDescription=(0,w.localize)(45,null),e.terminalIntegratedAutoRepliesDescription=(0,w.localize)(46,null,'`"Terminate batch job (Y/N)": "\\r"`','`"\\r"`');function C(b){return(0,w.localize)(47,null,b.sort().map(P=>`- ${P}`).join(`
`),`[${(0,w.localize)(48,null)}](command:workbench.action.openRawDefaultSettings '${(0,w.localize)(49,null)}')`)}e.terminalIntegratedCommandsToSkipShellDescrption=C,e.terminalIntegratedDetectLocaleDescrption=(0,w.localize)(50,null),e.terminalIntegratedEnvOsxDescription=(0,w.localize)(51,null),e.terminalIntegratedEnvLinuxDescription=(0,w.localize)(52,null),e.terminalIntegratedEnvWindowsDescription=(0,w.localize)(53,null),e.terminalIntegratedInheritEnvDescription=(0,w.localize)(54,null),e.issueReporterServiceAzuredatastudio=(0,w.localize)(55,null),e.issueReporterPageReviewGuidanceLabel=(0,w.localize)(56,null),e.displayOrderDescription=(0,w.localize)(57,null),e.cellToolbarLocationDescription=(0,w.localize)(58,null),e.showCellStatusbarDescription=(0,w.localize)(59,null),e.diffEnablePreviewDescription=(0,w.localize)(60,null),e.cellToolbarVisibilityDescription=(0,w.localize)(61,null),e.undoRedoPerCellDescription=(0,w.localize)(62,null),e.compactViewDescription=(0,w.localize)(63,null),e.focusIndicatorDescription=(0,w.localize)(64,null),e.insertToolbarPositionDescription=(0,w.localize)(65,null),e.globalToolbarDescription=(0,w.localize)(66,null),e.consolidatedOutputButtonDescription=(0,w.localize)(67,null),e.showFoldingControlsDescription=(0,w.localize)(68,null),e.dragAndDropDescription=(0,w.localize)(69,null),e.consolidatedRunButtonDescription=(0,w.localize)(70,null),e.globalToolbarShowLabelDescription=(0,w.localize)(71,null),e.textOutputLineLimitDescription=(0,w.localize)(72,null),e.markupFontSizeDescription=(0,w.localize)(73,null),e.interactiveWindowCollapseCodeCellsDescription=(0,w.localize)(74,null),e.outputLineHeightDescription=(0,w.localize)(75,null),e.outputFontSizeDescription=(0,w.localize)(76,null),e.outputFontFamilyDescription=(0,w.localize)(77,null),e.experimentalCustomizationDescription=(0,w.localize)(78,null),e.download=(0,w.localize)(79,null),e.downloadTooltip=(0,w.localize)(80,null),e.installTooltip=(0,w.localize)(81,null);function r(b){return(0,w.localize)(82,null,b)}e.getThemeUpdatedNotification=r;function h(b){return(0,w.localize)(83,null,b)}e.getNewThemeNotification=h;function o(b,P,T,n,a,l,i,c,_){return(0,w.localize)(84,null,b,P,T,_,n,a,l,i,c)}e.aboutDetail=o}),define(ye[179],Ce([9,10]),function(ge,e){return ge.create("sql/workbench/api/common/extHostModelView",e)}),define(ye[180],Ce([9,10]),function(ge,e){return ge.create("sql/workbench/api/common/extHostModelViewDialog",e)}),define(ye[181],Ce([9,10]),function(ge,e){return ge.create("sql/workbench/api/common/extHostModelViewTree",e)}),define(ye[182],Ce([9,10]),function(ge,e){return ge.create("sql/workbench/api/common/extHostNotebook",e)}),define(ye[183],Ce([9,10]),function(ge,e){return ge.create("sql/workbench/api/common/extHostNotebookDocumentsAndEditors",e)}),define(ye[184],Ce([9,10]),function(ge,e){return ge.create("sql/workbench/common/constants",e)}),define(ye[185],Ce([9,10]),function(ge,e){return ge.create("vs/base/common/actions",e)}),define(ye[186],Ce([1,0,4,5,185]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toAction=e.EmptySubmenuAction=e.SubmenuAction=e.Separator=e.ActionRunner=e.Action=void 0;class A extends M.Disposable{constructor(t,s="",g="",C=!0,r){super(),this._onDidChange=this._register(new w.Emitter),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._expanded=!1,this._id=t,this._label=s,this._cssClass=g,this._enabled=C,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(t){this._setLabel(t)}_setLabel(t){this._label!==t&&(this._label=t,this._onDidChange.fire({label:t}))}get tooltip(){return this._tooltip||""}set tooltip(t){this._setTooltip(t)}_setTooltip(t){this._tooltip!==t&&(this._tooltip=t,this._onDidChange.fire({tooltip:t}))}get class(){return this._cssClass}set class(t){this._setClass(t)}_setClass(t){this._cssClass!==t&&(this._cssClass=t,this._onDidChange.fire({class:t}))}get enabled(){return this._enabled}set enabled(t){this._setEnabled(t)}_setEnabled(t){this._enabled!==t&&(this._enabled=t,this._onDidChange.fire({enabled:t}))}get checked(){return this._checked}set checked(t){this._setChecked(t)}_setChecked(t){this._checked!==t&&(this._checked=t,this._onDidChange.fire({checked:t}))}get expanded(){return this._expanded}set expanded(t){this._setExpanded(t)}_setExpanded(t){this._expanded!==t&&(this._expanded=t,this._onDidChange.fire({expanded:t}))}async run(t,s){this._actionCallback&&await this._actionCallback(t)}}e.Action=A;class R extends M.Disposable{constructor(){super(...arguments),this._onWillRun=this._register(new w.Emitter),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new w.Emitter),this.onDidRun=this._onDidRun.event}async run(t,s){if(!t.enabled)return;this._onWillRun.fire({action:t});let g;try{await this.runAction(t,s)}catch(C){g=C}this._onDidRun.fire({action:t,error:g})}async runAction(t,s){await t.run(s)}}e.ActionRunner=R;class u{constructor(){this.id=u.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...t){let s=[];for(const g of t)g.length&&(s.length?s=[...s,new u,...g]:s=g);return s}static{this.ID="vs.actions.separator"}async run(){}}e.Separator=u;class p{get actions(){return this._actions}constructor(t,s,g,C){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=t,this.label=s,this.class=C,this._actions=g}async run(){}get expanded(){return!1}set expanded(t){}_setExpanded(t){}}e.SubmenuAction=p;class f extends A{static{this.ID="vs.actions.empty"}constructor(){super(f.ID,d.localize(0,null),void 0,!1)}}e.EmptySubmenuAction=f;function y(E){return{id:E.id,label:E.label,class:void 0,expanded:!1,enabled:E.enabled??!0,checked:E.checked??!1,run:async()=>E.run(),tooltip:E.label}}e.toAction=y}),define(ye[187],Ce([9,10]),function(ge,e){return ge.create("vs/base/common/date",e)}),define(ye[188],Ce([1,0,187]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalISOString=e.fromNow=void 0;const M=60,d=M*60,A=d*24,R=A*7,u=A*30,p=A*365;function f(E,t,s,g){typeof E!="number"&&(E=E.getTime());const C=Math.round((new Date().getTime()-E)/1e3);if(C<-30)return(0,w.localize)(0,null,f(new Date().getTime()+C*1e3,!1));if(!g&&C<30)return(0,w.localize)(1,null);let r;return C<M?(r=C,t?r===1?s?(0,w.localize)(2,null,r):(0,w.localize)(3,null,r):s?(0,w.localize)(4,null,r):(0,w.localize)(5,null,r):r===1?s?(0,w.localize)(6,null,r):(0,w.localize)(7,null,r):s?(0,w.localize)(8,null,r):(0,w.localize)(9,null,r)):C<d?(r=Math.floor(C/M),t?r===1?s?(0,w.localize)(10,null,r):(0,w.localize)(11,null,r):s?(0,w.localize)(12,null,r):(0,w.localize)(13,null,r):r===1?s?(0,w.localize)(14,null,r):(0,w.localize)(15,null,r):s?(0,w.localize)(16,null,r):(0,w.localize)(17,null,r)):C<A?(r=Math.floor(C/d),t?r===1?s?(0,w.localize)(18,null,r):(0,w.localize)(19,null,r):s?(0,w.localize)(20,null,r):(0,w.localize)(21,null,r):r===1?s?(0,w.localize)(22,null,r):(0,w.localize)(23,null,r):s?(0,w.localize)(24,null,r):(0,w.localize)(25,null,r)):C<R?(r=Math.floor(C/A),t?r===1?(0,w.localize)(26,null,r):(0,w.localize)(27,null,r):r===1?(0,w.localize)(28,null,r):(0,w.localize)(29,null,r)):C<u?(r=Math.floor(C/R),t?r===1?s?(0,w.localize)(30,null,r):(0,w.localize)(31,null,r):s?(0,w.localize)(32,null,r):(0,w.localize)(33,null,r):r===1?s?(0,w.localize)(34,null,r):(0,w.localize)(35,null,r):s?(0,w.localize)(36,null,r):(0,w.localize)(37,null,r)):C<p?(r=Math.floor(C/u),t?r===1?s?(0,w.localize)(38,null,r):(0,w.localize)(39,null,r):s?(0,w.localize)(40,null,r):(0,w.localize)(41,null,r):r===1?s?(0,w.localize)(42,null,r):(0,w.localize)(43,null,r):s?(0,w.localize)(44,null,r):(0,w.localize)(45,null,r)):(r=Math.floor(C/p),t?r===1?s?(0,w.localize)(46,null,r):(0,w.localize)(47,null,r):s?(0,w.localize)(48,null,r):(0,w.localize)(49,null,r):r===1?s?(0,w.localize)(50,null,r):(0,w.localize)(51,null,r):s?(0,w.localize)(52,null,r):(0,w.localize)(53,null,r))}e.fromNow=f;function y(E){return E.getFullYear()+"-"+String(E.getMonth()+1).padStart(2,"0")+"-"+String(E.getDate()).padStart(2,"0")+"T"+String(E.getHours()).padStart(2,"0")+":"+String(E.getMinutes()).padStart(2,"0")+":"+String(E.getSeconds()).padStart(2,"0")+"."+(E.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}e.toLocalISOString=y}),define(ye[189],Ce([9,10]),function(ge,e){return ge.create("vs/base/common/errorMessage",e)}),define(ye[47],Ce([1,0,19,18,189]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function A(E,t){return t&&(E.stack||E.stacktrace)?d.localize(0,null,u(E),R(E.stack)||R(E.stacktrace)):u(E)}function R(E){return Array.isArray(E)?E.join(`
`):E}function u(E){return E.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${E.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof E.code=="string"&&typeof E.errno=="number"&&typeof E.syscall=="string"?d.localize(1,null,E.message):E.message||d.localize(2,null)}function p(E=null,t=!1){if(!E)return d.localize(3,null);if(Array.isArray(E)){const s=w.coalesce(E),g=p(s[0],t);return s.length>1?d.localize(4,null,g,s.length):g}if(M.isString(E))return E;if(E.detail){const s=E.detail;if(s.error)return A(s.error,t);if(s.exception)return A(s.exception,t)}return E.stack?A(E,t):E.message?E.message:d.localize(5,null)}e.toErrorMessage=p;function f(E){const t=E;return t instanceof Error&&Array.isArray(t.actions)}e.isErrorWithActions=f;function y(E,t){let s;return typeof E=="string"?s=new Error(E):s=E,s.actions=t,s}e.createErrorWithActions=y}),define(ye[190],Ce([9,10]),function(ge,e){return ge.create("vs/base/common/platform",e)}),define(ye[14],Ce([1,0,190]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.setTimeout0IsFaster=e.translationsConfigFile=e.platformLocale=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isMobile=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=e.LANGUAGE_DEFAULT=void 0,e.LANGUAGE_DEFAULT="en";let M=!1,d=!1,A=!1,R=!1,u=!1,p=!1,f=!1,y=!1,E=!1,t=!1,s,g=e.LANGUAGE_DEFAULT,C=e.LANGUAGE_DEFAULT,r,h;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let o;typeof e.globals.vscode<"u"&&typeof e.globals.vscode.process<"u"?o=e.globals.vscode.process:typeof process<"u"&&(o=process);const b=typeof o?.versions?.electron=="string",P=b&&o?.type==="renderer";if(typeof navigator=="object"&&!P)h=navigator.userAgent,M=h.indexOf("Windows")>=0,d=h.indexOf("Macintosh")>=0,y=(h.indexOf("Macintosh")>=0||h.indexOf("iPad")>=0||h.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,A=h.indexOf("Linux")>=0,t=h?.indexOf("Mobi")>=0,p=!0,s=w.getConfiguredDefaultLocale(w.localize(0,null))||e.LANGUAGE_DEFAULT,g=s,C=navigator.language;else if(typeof o=="object"){M=o.platform==="win32",d=o.platform==="darwin",A=o.platform==="linux",R=A&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,f=b,E=!!o.env.CI||!!o.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=e.LANGUAGE_DEFAULT,g=e.LANGUAGE_DEFAULT;const k=o.env.VSCODE_NLS_CONFIG;if(k)try{const m=JSON.parse(k),v=m.availableLanguages["*"];s=m.locale,C=m.osLocale,g=v||e.LANGUAGE_DEFAULT,r=m._translationsConfigFile}catch{}u=!0}else console.error("Unable to resolve platform.");var T;(function(k){k[k.Web=0]="Web",k[k.Mac=1]="Mac",k[k.Linux=2]="Linux",k[k.Windows=3]="Windows"})(T||(e.Platform=T={}));function n(k){switch(k){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=n;let a=0;d?a=1:M?a=3:A&&(a=2),e.isWindows=M,e.isMacintosh=d,e.isLinux=A,e.isLinuxSnap=R,e.isNative=u,e.isElectron=f,e.isWeb=p,e.isWebWorker=p&&typeof e.globals.importScripts=="function",e.isIOS=y,e.isMobile=t,e.isCI=E,e.platform=a,e.userAgent=h,e.language=g;var l;(function(k){function m(){return e.language}k.value=m;function v(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}k.isDefaultVariant=v;function D(){return e.language==="en"}k.isDefault=D})(l||(e.Language=l={})),e.locale=s,e.platformLocale=C,e.translationsConfigFile=r,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const k=[];e.globals.addEventListener("message",v=>{if(v.data&&v.data.vscodeScheduleAsyncWork)for(let D=0,L=k.length;D<L;D++){const O=k[D];if(O.id===v.data.vscodeScheduleAsyncWork){k.splice(D,1),O.callback();return}}});let m=0;return v=>{const D=++m;k.push({id:D,callback:v}),e.globals.postMessage({vscodeScheduleAsyncWork:D},"*")}}return k=>setTimeout(k)})();var i;(function(k){k[k.Windows=1]="Windows",k[k.Macintosh=2]="Macintosh",k[k.Linux=3]="Linux"})(i||(e.OperatingSystem=i={})),e.OS=d||y?2:M?1:3;let c=!0,_=!1;function S(){if(!_){_=!0;const k=new Uint8Array(2);k[0]=1,k[1]=2,c=new Uint16Array(k.buffer)[0]===(2<<8)+1}return c}e.isLittleEndian=S,e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(ye[44],Ce([1,0,14]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let M;if(typeof w.globals.vscode<"u"&&typeof w.globals.vscode.process<"u"){const d=w.globals.vscode.process;M={get platform(){return d.platform},get arch(){return d.arch},get env(){return d.env},cwd(){return d.cwd()}}}else typeof process<"u"?M={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:M={get platform(){return w.isWindows?"win32":w.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=M.cwd,e.env=M.env,e.platform=M.platform,e.arch=M.arch}),define(ye[17],Ce([1,0,44]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiter=e.sep=e.toNamespacedPath=e.parse=e.format=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.join=e.isAbsolute=e.normalize=e.posix=e.win32=void 0;const M=65,d=97,A=90,R=122,u=46,p=47,f=92,y=58,E=63;class t extends Error{constructor(a,l,i){let c;typeof l=="string"&&l.indexOf("not ")===0?(c="must not be",l=l.replace(/^not /,"")):c="must be";const _=a.indexOf(".")!==-1?"property":"argument";let S=`The "${a}" ${_} ${c} of type ${l}`;S+=`. Received type ${typeof i}`,super(S),this.code="ERR_INVALID_ARG_TYPE"}}function s(n,a){if(n===null||typeof n!="object")throw new t(a,"Object",n)}function g(n,a){if(typeof n!="string")throw new t(a,"string",n)}const C=w.platform==="win32";function r(n){return n===p||n===f}function h(n){return n===p}function o(n){return n>=M&&n<=A||n>=d&&n<=R}function b(n,a,l,i){let c="",_=0,S=-1,k=0,m=0;for(let v=0;v<=n.length;++v){if(v<n.length)m=n.charCodeAt(v);else{if(i(m))break;m=p}if(i(m)){if(!(S===v-1||k===1))if(k===2){if(c.length<2||_!==2||c.charCodeAt(c.length-1)!==u||c.charCodeAt(c.length-2)!==u){if(c.length>2){const D=c.lastIndexOf(l);D===-1?(c="",_=0):(c=c.slice(0,D),_=c.length-1-c.lastIndexOf(l)),S=v,k=0;continue}else if(c.length!==0){c="",_=0,S=v,k=0;continue}}a&&(c+=c.length>0?`${l}..`:"..",_=2)}else c.length>0?c+=`${l}${n.slice(S+1,v)}`:c=n.slice(S+1,v),_=v-S-1;S=v,k=0}else m===u&&k!==-1?++k:k=-1}return c}function P(n,a){s(a,"pathObject");const l=a.dir||a.root,i=a.base||`${a.name||""}${a.ext||""}`;return l?l===a.root?`${l}${i}`:`${l}${n}${i}`:i}e.win32={resolve(...n){let a="",l="",i=!1;for(let c=n.length-1;c>=-1;c--){let _;if(c>=0){if(_=n[c],g(_,"path"),_.length===0)continue}else a.length===0?_=w.cwd():(_=w.env[`=${a}`]||w.cwd(),(_===void 0||_.slice(0,2).toLowerCase()!==a.toLowerCase()&&_.charCodeAt(2)===f)&&(_=`${a}\\`));const S=_.length;let k=0,m="",v=!1;const D=_.charCodeAt(0);if(S===1)r(D)&&(k=1,v=!0);else if(r(D))if(v=!0,r(_.charCodeAt(1))){let L=2,O=L;for(;L<S&&!r(_.charCodeAt(L));)L++;if(L<S&&L!==O){const H=_.slice(O,L);for(O=L;L<S&&r(_.charCodeAt(L));)L++;if(L<S&&L!==O){for(O=L;L<S&&!r(_.charCodeAt(L));)L++;(L===S||L!==O)&&(m=`\\\\${H}\\${_.slice(O,L)}`,k=L)}}}else k=1;else o(D)&&_.charCodeAt(1)===y&&(m=_.slice(0,2),k=2,S>2&&r(_.charCodeAt(2))&&(v=!0,k=3));if(m.length>0)if(a.length>0){if(m.toLowerCase()!==a.toLowerCase())continue}else a=m;if(i){if(a.length>0)break}else if(l=`${_.slice(k)}\\${l}`,i=v,v&&a.length>0)break}return l=b(l,!i,"\\",r),i?`${a}\\${l}`:`${a}${l}`||"."},normalize(n){g(n,"path");const a=n.length;if(a===0)return".";let l=0,i,c=!1;const _=n.charCodeAt(0);if(a===1)return h(_)?"\\":n;if(r(_))if(c=!0,r(n.charCodeAt(1))){let k=2,m=k;for(;k<a&&!r(n.charCodeAt(k));)k++;if(k<a&&k!==m){const v=n.slice(m,k);for(m=k;k<a&&r(n.charCodeAt(k));)k++;if(k<a&&k!==m){for(m=k;k<a&&!r(n.charCodeAt(k));)k++;if(k===a)return`\\\\${v}\\${n.slice(m)}\\`;k!==m&&(i=`\\\\${v}\\${n.slice(m,k)}`,l=k)}}}else l=1;else o(_)&&n.charCodeAt(1)===y&&(i=n.slice(0,2),l=2,a>2&&r(n.charCodeAt(2))&&(c=!0,l=3));let S=l<a?b(n.slice(l),!c,"\\",r):"";return S.length===0&&!c&&(S="."),S.length>0&&r(n.charCodeAt(a-1))&&(S+="\\"),i===void 0?c?`\\${S}`:S:c?`${i}\\${S}`:`${i}${S}`},isAbsolute(n){g(n,"path");const a=n.length;if(a===0)return!1;const l=n.charCodeAt(0);return r(l)||a>2&&o(l)&&n.charCodeAt(1)===y&&r(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let a,l;for(let _=0;_<n.length;++_){const S=n[_];g(S,"path"),S.length>0&&(a===void 0?a=l=S:a+=`\\${S}`)}if(a===void 0)return".";let i=!0,c=0;if(typeof l=="string"&&r(l.charCodeAt(0))){++c;const _=l.length;_>1&&r(l.charCodeAt(1))&&(++c,_>2&&(r(l.charCodeAt(2))?++c:i=!1))}if(i){for(;c<a.length&&r(a.charCodeAt(c));)c++;c>=2&&(a=`\\${a.slice(c)}`)}return e.win32.normalize(a)},relative(n,a){if(g(n,"from"),g(a,"to"),n===a)return"";const l=e.win32.resolve(n),i=e.win32.resolve(a);if(l===i||(n=l.toLowerCase(),a=i.toLowerCase(),n===a))return"";let c=0;for(;c<n.length&&n.charCodeAt(c)===f;)c++;let _=n.length;for(;_-1>c&&n.charCodeAt(_-1)===f;)_--;const S=_-c;let k=0;for(;k<a.length&&a.charCodeAt(k)===f;)k++;let m=a.length;for(;m-1>k&&a.charCodeAt(m-1)===f;)m--;const v=m-k,D=S<v?S:v;let L=-1,O=0;for(;O<D;O++){const N=n.charCodeAt(c+O);if(N!==a.charCodeAt(k+O))break;N===f&&(L=O)}if(O!==D){if(L===-1)return i}else{if(v>D){if(a.charCodeAt(k+O)===f)return i.slice(k+O+1);if(O===2)return i.slice(k+O)}S>D&&(n.charCodeAt(c+O)===f?L=O:O===2&&(L=3)),L===-1&&(L=0)}let H="";for(O=c+L+1;O<=_;++O)(O===_||n.charCodeAt(O)===f)&&(H+=H.length===0?"..":"\\..");return k+=L,H.length>0?`${H}${i.slice(k,m)}`:(i.charCodeAt(k)===f&&++k,i.slice(k,m))},toNamespacedPath(n){if(typeof n!="string"||n.length===0)return n;const a=e.win32.resolve(n);if(a.length<=2)return n;if(a.charCodeAt(0)===f){if(a.charCodeAt(1)===f){const l=a.charCodeAt(2);if(l!==E&&l!==u)return`\\\\?\\UNC\\${a.slice(2)}`}}else if(o(a.charCodeAt(0))&&a.charCodeAt(1)===y&&a.charCodeAt(2)===f)return`\\\\?\\${a}`;return n},dirname(n){g(n,"path");const a=n.length;if(a===0)return".";let l=-1,i=0;const c=n.charCodeAt(0);if(a===1)return r(c)?n:".";if(r(c)){if(l=i=1,r(n.charCodeAt(1))){let k=2,m=k;for(;k<a&&!r(n.charCodeAt(k));)k++;if(k<a&&k!==m){for(m=k;k<a&&r(n.charCodeAt(k));)k++;if(k<a&&k!==m){for(m=k;k<a&&!r(n.charCodeAt(k));)k++;if(k===a)return n;k!==m&&(l=i=k+1)}}}}else o(c)&&n.charCodeAt(1)===y&&(l=a>2&&r(n.charCodeAt(2))?3:2,i=l);let _=-1,S=!0;for(let k=a-1;k>=i;--k)if(r(n.charCodeAt(k))){if(!S){_=k;break}}else S=!1;if(_===-1){if(l===-1)return".";_=l}return n.slice(0,_)},basename(n,a){a!==void 0&&g(a,"ext"),g(n,"path");let l=0,i=-1,c=!0,_;if(n.length>=2&&o(n.charCodeAt(0))&&n.charCodeAt(1)===y&&(l=2),a!==void 0&&a.length>0&&a.length<=n.length){if(a===n)return"";let S=a.length-1,k=-1;for(_=n.length-1;_>=l;--_){const m=n.charCodeAt(_);if(r(m)){if(!c){l=_+1;break}}else k===-1&&(c=!1,k=_+1),S>=0&&(m===a.charCodeAt(S)?--S===-1&&(i=_):(S=-1,i=k))}return l===i?i=k:i===-1&&(i=n.length),n.slice(l,i)}for(_=n.length-1;_>=l;--_)if(r(n.charCodeAt(_))){if(!c){l=_+1;break}}else i===-1&&(c=!1,i=_+1);return i===-1?"":n.slice(l,i)},extname(n){g(n,"path");let a=0,l=-1,i=0,c=-1,_=!0,S=0;n.length>=2&&n.charCodeAt(1)===y&&o(n.charCodeAt(0))&&(a=i=2);for(let k=n.length-1;k>=a;--k){const m=n.charCodeAt(k);if(r(m)){if(!_){i=k+1;break}continue}c===-1&&(_=!1,c=k+1),m===u?l===-1?l=k:S!==1&&(S=1):l!==-1&&(S=-1)}return l===-1||c===-1||S===0||S===1&&l===c-1&&l===i+1?"":n.slice(l,c)},format:P.bind(null,"\\"),parse(n){g(n,"path");const a={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return a;const l=n.length;let i=0,c=n.charCodeAt(0);if(l===1)return r(c)?(a.root=a.dir=n,a):(a.base=a.name=n,a);if(r(c)){if(i=1,r(n.charCodeAt(1))){let L=2,O=L;for(;L<l&&!r(n.charCodeAt(L));)L++;if(L<l&&L!==O){for(O=L;L<l&&r(n.charCodeAt(L));)L++;if(L<l&&L!==O){for(O=L;L<l&&!r(n.charCodeAt(L));)L++;L===l?i=L:L!==O&&(i=L+1)}}}}else if(o(c)&&n.charCodeAt(1)===y){if(l<=2)return a.root=a.dir=n,a;if(i=2,r(n.charCodeAt(2))){if(l===3)return a.root=a.dir=n,a;i=3}}i>0&&(a.root=n.slice(0,i));let _=-1,S=i,k=-1,m=!0,v=n.length-1,D=0;for(;v>=i;--v){if(c=n.charCodeAt(v),r(c)){if(!m){S=v+1;break}continue}k===-1&&(m=!1,k=v+1),c===u?_===-1?_=v:D!==1&&(D=1):_!==-1&&(D=-1)}return k!==-1&&(_===-1||D===0||D===1&&_===k-1&&_===S+1?a.base=a.name=n.slice(S,k):(a.name=n.slice(S,_),a.base=n.slice(S,k),a.ext=n.slice(_,k))),S>0&&S!==i?a.dir=n.slice(0,S-1):a.dir=a.root,a},sep:"\\",delimiter:";",win32:null,posix:null};const T=(()=>{if(C){const n=/\\/g;return()=>{const a=w.cwd().replace(n,"/");return a.slice(a.indexOf("/"))}}return()=>w.cwd()})();e.posix={resolve(...n){let a="",l=!1;for(let i=n.length-1;i>=-1&&!l;i--){const c=i>=0?n[i]:T();g(c,"path"),c.length!==0&&(a=`${c}/${a}`,l=c.charCodeAt(0)===p)}return a=b(a,!l,"/",h),l?`/${a}`:a.length>0?a:"."},normalize(n){if(g(n,"path"),n.length===0)return".";const a=n.charCodeAt(0)===p,l=n.charCodeAt(n.length-1)===p;return n=b(n,!a,"/",h),n.length===0?a?"/":l?"./":".":(l&&(n+="/"),a?`/${n}`:n)},isAbsolute(n){return g(n,"path"),n.length>0&&n.charCodeAt(0)===p},join(...n){if(n.length===0)return".";let a;for(let l=0;l<n.length;++l){const i=n[l];g(i,"path"),i.length>0&&(a===void 0?a=i:a+=`/${i}`)}return a===void 0?".":e.posix.normalize(a)},relative(n,a){if(g(n,"from"),g(a,"to"),n===a||(n=e.posix.resolve(n),a=e.posix.resolve(a),n===a))return"";const l=1,i=n.length,c=i-l,_=1,S=a.length-_,k=c<S?c:S;let m=-1,v=0;for(;v<k;v++){const L=n.charCodeAt(l+v);if(L!==a.charCodeAt(_+v))break;L===p&&(m=v)}if(v===k)if(S>k){if(a.charCodeAt(_+v)===p)return a.slice(_+v+1);if(v===0)return a.slice(_+v)}else c>k&&(n.charCodeAt(l+v)===p?m=v:v===0&&(m=0));let D="";for(v=l+m+1;v<=i;++v)(v===i||n.charCodeAt(v)===p)&&(D+=D.length===0?"..":"/..");return`${D}${a.slice(_+m)}`},toNamespacedPath(n){return n},dirname(n){if(g(n,"path"),n.length===0)return".";const a=n.charCodeAt(0)===p;let l=-1,i=!0;for(let c=n.length-1;c>=1;--c)if(n.charCodeAt(c)===p){if(!i){l=c;break}}else i=!1;return l===-1?a?"/":".":a&&l===1?"//":n.slice(0,l)},basename(n,a){a!==void 0&&g(a,"ext"),g(n,"path");let l=0,i=-1,c=!0,_;if(a!==void 0&&a.length>0&&a.length<=n.length){if(a===n)return"";let S=a.length-1,k=-1;for(_=n.length-1;_>=0;--_){const m=n.charCodeAt(_);if(m===p){if(!c){l=_+1;break}}else k===-1&&(c=!1,k=_+1),S>=0&&(m===a.charCodeAt(S)?--S===-1&&(i=_):(S=-1,i=k))}return l===i?i=k:i===-1&&(i=n.length),n.slice(l,i)}for(_=n.length-1;_>=0;--_)if(n.charCodeAt(_)===p){if(!c){l=_+1;break}}else i===-1&&(c=!1,i=_+1);return i===-1?"":n.slice(l,i)},extname(n){g(n,"path");let a=-1,l=0,i=-1,c=!0,_=0;for(let S=n.length-1;S>=0;--S){const k=n.charCodeAt(S);if(k===p){if(!c){l=S+1;break}continue}i===-1&&(c=!1,i=S+1),k===u?a===-1?a=S:_!==1&&(_=1):a!==-1&&(_=-1)}return a===-1||i===-1||_===0||_===1&&a===i-1&&a===l+1?"":n.slice(a,i)},format:P.bind(null,"/"),parse(n){g(n,"path");const a={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return a;const l=n.charCodeAt(0)===p;let i;l?(a.root="/",i=1):i=0;let c=-1,_=0,S=-1,k=!0,m=n.length-1,v=0;for(;m>=i;--m){const D=n.charCodeAt(m);if(D===p){if(!k){_=m+1;break}continue}S===-1&&(k=!1,S=m+1),D===u?c===-1?c=m:v!==1&&(v=1):c!==-1&&(v=-1)}if(S!==-1){const D=_===0&&l?1:_;c===-1||v===0||v===1&&c===S-1&&c===_+1?a.base=a.name=n.slice(D,S):(a.name=n.slice(D,c),a.base=n.slice(D,S),a.ext=n.slice(c,S))}return _>0?a.dir=n.slice(0,_-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=C?e.win32.normalize:e.posix.normalize,e.isAbsolute=C?e.win32.isAbsolute:e.posix.isAbsolute,e.join=C?e.win32.join:e.posix.join,e.resolve=C?e.win32.resolve:e.posix.resolve,e.relative=C?e.win32.relative:e.posix.relative,e.dirname=C?e.win32.dirname:e.posix.dirname,e.basename=C?e.win32.basename:e.posix.basename,e.extname=C?e.win32.extname:e.posix.extname,e.format=C?e.win32.format:e.posix.format,e.parse=C?e.win32.parse:e.posix.parse,e.toNamespacedPath=C?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=C?e.win32.sep:e.posix.sep,e.delimiter=C?e.win32.delimiter:e.posix.delimiter}),define(ye[124],Ce([1,0,57,17]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareByPrefix=e.compareAnything=e.comparePaths=e.compareFileExtensionsUnicode=e.compareFileExtensionsLower=e.compareFileExtensionsUpper=e.compareFileExtensionsDefault=e.compareFileExtensions=e.compareFileNamesUnicode=e.compareFileNamesLower=e.compareFileNamesUpper=e.compareFileNamesDefault=e.compareFileNames=void 0;const d=new w.Lazy(()=>{const k=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:k,collatorIsNumeric:k.resolvedOptions().numeric}}),A=new w.Lazy(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),R=new w.Lazy(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function u(k,m,v=!1){const D=k||"",L=m||"",O=d.value.collator.compare(D,L);return d.value.collatorIsNumeric&&O===0&&D!==L?D<L?-1:1:O}e.compareFileNames=u;function p(k,m){const v=A.value.collator;return k=k||"",m=m||"",P(v,k,m)}e.compareFileNamesDefault=p;function f(k,m){const v=A.value.collator;return k=k||"",m=m||"",l(k,m)||P(v,k,m)}e.compareFileNamesUpper=f;function y(k,m){const v=A.value.collator;return k=k||"",m=m||"",a(k,m)||P(v,k,m)}e.compareFileNamesLower=y;function E(k,m){return k=k||"",m=m||"",k===m?0:k<m?-1:1}e.compareFileNamesUnicode=E;function t(k,m){const[v,D]=o(k),[L,O]=o(m);let H=d.value.collator.compare(D,O);if(H===0){if(d.value.collatorIsNumeric&&D!==O)return D<O?-1:1;if(H=d.value.collator.compare(v,L),d.value.collatorIsNumeric&&H===0&&v!==L)return v<L?-1:1}return H}e.compareFileExtensions=t;function s(k,m){k=k||"",m=m||"";const v=b(k),D=b(m),L=A.value.collator,O=R.value.collator;return P(O,v,D)||P(L,k,m)}e.compareFileExtensionsDefault=s;function g(k,m){k=k||"",m=m||"";const v=b(k),D=b(m),L=A.value.collator,O=R.value.collator;return P(O,v,D)||l(k,m)||P(L,k,m)}e.compareFileExtensionsUpper=g;function C(k,m){k=k||"",m=m||"";const v=b(k),D=b(m),L=A.value.collator,O=R.value.collator;return P(O,v,D)||a(k,m)||P(L,k,m)}e.compareFileExtensionsLower=C;function r(k,m){k=k||"",m=m||"";const v=b(k).toLowerCase(),D=b(m).toLowerCase();return v!==D?v<D?-1:1:k!==m?k<m?-1:1:0}e.compareFileExtensionsUnicode=r;const h=/^(.*?)(\.([^.]*))?$/;function o(k,m=!1){const v=k?h.exec(k):[];let D=[v&&v[1]||"",v&&v[3]||""];return m&&(!D[0]&&D[1]||D[0]&&D[0].charAt(0)===".")&&(D=[D[0]+"."+D[1],""]),D}function b(k){const m=k?h.exec(k):[];return m&&m[1]&&m[1].charAt(0)!=="."&&m[3]||""}function P(k,m,v){const D=k.compare(m,v);return D!==0?D:m.length!==v.length?m.length<v.length?-1:1:0}function T(k){const m=k.charAt(0);return m.toLocaleUpperCase()!==m}function n(k){const m=k.charAt(0);return m.toLocaleLowerCase()!==m}function a(k,m){return T(k)&&n(m)?-1:n(k)&&T(m)?1:0}function l(k,m){return n(k)&&T(m)?-1:T(k)&&n(m)?1:0}function i(k,m,v=!1){return v||(k=k&&k.toLowerCase(),m=m&&m.toLowerCase()),k===m?0:k<m?-1:1}function c(k,m,v=!1){const D=k.split(M.sep),L=m.split(M.sep),O=D.length-1,H=L.length-1;let N,$;for(let U=0;;U++){if(N=O===U,$=H===U,N&&$)return u(D[U],L[U],v);if(N)return-1;if($)return 1;const x=i(D[U],L[U],v);if(x!==0)return x}}e.comparePaths=c;function _(k,m,v){const D=k.toLowerCase(),L=m.toLowerCase(),O=S(k,m,v);if(O)return O;const H=D.endsWith(v),N=L.endsWith(v);if(H!==N)return H?-1:1;const $=u(D,L);return $!==0?$:D.localeCompare(L)}e.compareAnything=_;function S(k,m,v){const D=k.toLowerCase(),L=m.toLowerCase(),O=D.startsWith(v),H=L.startsWith(v);if(O!==H)return O?-1:1;if(O&&H){if(D.length<L.length)return-1;if(D.length>L.length)return 1}return 0}e.compareByPrefix=S}),define(ye[33],Ce([1,0,17,14,16,18]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPath=e.parseLineAndColumnAware=e.indexOfPath=e.getDriveLetter=e.hasDriveLetter=e.isRootOrDriveLetter=e.sanitizeFilePath=e.isWindowsDriveLetter=e.isEqualOrParent=e.isEqual=e.isValidBasename=e.isUNC=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function R(_){return _===47||_===92}e.isPathSeparator=R;function u(_){return _.replace(/[\\/]/g,w.posix.sep)}e.toSlashes=u;function p(_){return _.indexOf("/")===-1&&(_=u(_)),/^[a-zA-Z]:(\/|$)/.test(_)&&(_="/"+_),_}e.toPosixPath=p;function f(_,S=w.posix.sep){if(!_)return"";const k=_.length,m=_.charCodeAt(0);if(R(m)){if(R(_.charCodeAt(1))&&!R(_.charCodeAt(2))){let D=3;const L=D;for(;D<k&&!R(_.charCodeAt(D));D++);if(L!==D&&!R(_.charCodeAt(D+1))){for(D+=1;D<k;D++)if(R(_.charCodeAt(D)))return _.slice(0,D+1).replace(/[\\/]/g,S)}}return S}else if(h(m)&&_.charCodeAt(1)===58)return R(_.charCodeAt(2))?_.slice(0,2)+S:_.slice(0,2);let v=_.indexOf("://");if(v!==-1){for(v+=3;v<k;v++)if(R(_.charCodeAt(v)))return _.slice(0,v+1)}return""}e.getRoot=f;function y(_){if(!M.isWindows||!_||_.length<5)return!1;let S=_.charCodeAt(0);if(S!==92||(S=_.charCodeAt(1),S!==92))return!1;let k=2;const m=k;for(;k<_.length&&(S=_.charCodeAt(k),S!==92);k++);return!(m===k||(S=_.charCodeAt(k+1),isNaN(S)||S===92))}e.isUNC=y;const E=/[\\/:\*\?"<>\|]/g,t=/[\\/]/g,s=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function g(_,S=M.isWindows){const k=S?E:t;return!(!_||_.length===0||/^\s+$/.test(_)||(k.lastIndex=0,k.test(_))||S&&s.test(_)||_==="."||_===".."||S&&_[_.length-1]==="."||S&&_.length!==_.trim().length||_.length>255)}e.isValidBasename=g;function C(_,S,k){const m=_===S;return!k||m?m:!_||!S?!1:(0,d.equalsIgnoreCase)(_,S)}e.isEqual=C;function r(_,S,k,m=w.sep){if(_===S)return!0;if(!_||!S||S.length>_.length)return!1;if(k){if(!(0,d.startsWithIgnoreCase)(_,S))return!1;if(S.length===_.length)return!0;let D=S.length;return S.charAt(S.length-1)===m&&D--,_.charAt(D)===m}return S.charAt(S.length-1)!==m&&(S+=m),_.indexOf(S)===0}e.isEqualOrParent=r;function h(_){return _>=65&&_<=90||_>=97&&_<=122}e.isWindowsDriveLetter=h;function o(_,S){return M.isWindows&&_.endsWith(":")&&(_+=w.sep),(0,w.isAbsolute)(_)||(_=(0,w.join)(S,_)),_=(0,w.normalize)(_),M.isWindows?(_=(0,d.rtrim)(_,w.sep),_.endsWith(":")&&(_+=w.sep)):(_=(0,d.rtrim)(_,w.sep),_||(_=w.sep)),_}e.sanitizeFilePath=o;function b(_){const S=(0,w.normalize)(_);return M.isWindows?_.length>3?!1:P(S)&&(_.length===2||S.charCodeAt(2)===92):S===w.posix.sep}e.isRootOrDriveLetter=b;function P(_,S=M.isWindows){return S?h(_.charCodeAt(0))&&_.charCodeAt(1)===58:!1}e.hasDriveLetter=P;function T(_,S=M.isWindows){return P(_,S)?_[0]:void 0}e.getDriveLetter=T;function n(_,S,k){return S.length>_.length?-1:_===S?0:(k&&(_=_.toLowerCase(),S=S.toLowerCase()),_.indexOf(S))}e.indexOfPath=n;function a(_){const S=_.split(":");let k,m,v;for(const D of S){const L=Number(D);(0,A.isNumber)(L)?m===void 0?m=L:v===void 0&&(v=L):k=k?[k,D].join(":"):D}if(!k)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:k,line:m!==void 0?m:void 0,column:v!==void 0?v:m!==void 0?1:void 0}}e.parseLineAndColumnAware=a;const l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789";function c(_,S,k=8){let m="";for(let D=0;D<k;D++){let L;D===0&&M.isWindows&&!S&&(k===3||k===4)?L=i:L=l,m+=L.charAt(Math.floor(Math.random()*L.length))}let v;return S?v=`${S}-${m}`:v=m,_?(0,w.join)(_,v):v}e.randomPath=c}),define(ye[125],Ce([1,0,124,119,72,17,14,16]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieceToQuery=e.prepareQuery=e.compareItemsByFuzzyScore=e.scoreItemFuzzy=e.scoreFuzzy2=e.scoreFuzzy=void 0;const p=0,f=[p,[]];function y(X,K,pe,le){if(!X||!K)return f;const re=X.length,q=K.length;if(re<q)return f;const oe=X.toLowerCase();return E(K,pe,q,X,oe,re,le)}e.scoreFuzzy=y;function E(X,K,pe,le,re,q,oe){const ve=[],ce=[];for(let G=0;G<pe;G++){const fe=G*q,_e=fe-q,Ee=G>0,F=X[G],J=K[G];for(let I=0;I<q;I++){const V=I>0,j=fe+I,Z=j-1,he=_e+I-1,Pe=V?ve[Z]:0,z=Ee&&V?ve[he]:0,ee=Ee&&V?ce[he]:0;let ie;!z&&Ee?ie=0:ie=t(F,J,le,re,I,ee),ie&&z+ie>=Pe&&(oe||Ee||re.startsWith(K,I))?(ce[j]=ee+1,ve[j]=z+ie):(ce[j]=p,ve[j]=Pe)}}const se=[];let te=pe-1,B=q-1;for(;te>=0&&B>=0;){const G=te*q+B;ce[G]===p||(se.push(B),te--),B--}return[ve[pe*q-1],se.reverse()]}function t(X,K,pe,le,re,q){let oe=0;if(!s(K,le[re]))return oe;if(oe+=1,q>0&&(oe+=q*5),X===pe[re]&&(oe+=1),re===0)oe+=8;else{const ve=g(pe.charCodeAt(re-1));ve?oe+=ve:(0,M.isUpper)(pe.charCodeAt(re))&&q===0&&(oe+=2)}return oe}function s(X,K){return X===K?!0:X==="/"||X==="\\"?K==="/"||K==="\\":!1}function g(X){switch(X){case 47:case 92:return 5;case 95:case 45:case 46:case 32:case 39:case 34:case 58:return 4;default:return 0}}const C=[void 0,[]];function r(X,K,pe=0,le=0){const re=K;return re.values&&re.values.length>1?h(X,re.values,pe,le):o(X,K,pe,le)}e.scoreFuzzy2=r;function h(X,K,pe,le){let re=0;const q=[];for(const oe of K){const[ve,ce]=o(X,oe,pe,le);if(typeof ve!="number")return C;re+=ve,q.push(...ce)}return[re,k(q)]}function o(X,K,pe,le){const re=(0,M.fuzzyScore)(K.original,K.originalLowercase,pe,X,X.toLowerCase(),le,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return re?[re[0],(0,M.createMatches)(re)]:C}const b=Object.freeze({score:0}),P=1<<18,T=1<<17,n=1<<16;function a(X,K,pe,le){const re=le.values?le.values:[le];return(0,d.hash)({[le.normalized]:{values:re.map(oe=>({value:oe.normalized,expectContiguousMatch:oe.expectContiguousMatch})),label:X,description:K,allowNonContiguousMatches:pe}})}function l(X,K,pe,le,re){if(!X||!K.normalized)return b;const q=le.getItemLabel(X);if(!q)return b;const oe=le.getItemDescription(X),ve=a(q,oe,pe,K),ce=re[ve];if(ce)return ce;const se=i(q,oe,le.getItemPath(X),K,pe);return re[ve]=se,se}e.scoreItemFuzzy=l;function i(X,K,pe,le,re){const q=!pe||!le.containsPathSeparator;return pe&&(R.isLinux?le.pathNormalized===pe:(0,u.equalsIgnoreCase)(le.pathNormalized,pe))?{score:P,labelMatch:[{start:0,end:X.length}],descriptionMatch:K?[{start:0,end:K.length}]:void 0}:le.values&&le.values.length>1?c(X,K,pe,le.values,q,re):_(X,K,pe,le,q,re)}function c(X,K,pe,le,re,q){let oe=0;const ve=[],ce=[];for(const se of le){const{score:te,labelMatch:B,descriptionMatch:G}=_(X,K,pe,se,re,q);if(te===p)return b;oe+=te,B&&ve.push(...B),G&&ce.push(...G)}return{score:oe,labelMatch:k(ve),descriptionMatch:k(ce)}}function _(X,K,pe,le,re,q){if(re||!K){const[oe,ve]=y(X,le.normalized,le.normalizedLowercase,q&&!le.expectContiguousMatch);if(oe){const ce=(0,M.matchesPrefix)(le.normalized,X);let se;if(ce){se=T;const te=Math.round(le.normalized.length/X.length*100);se+=te}else se=n;return{score:se+oe,labelMatch:ce||S(ve)}}}if(K){let oe=K;pe&&(oe=`${K}${A.sep}`);const ve=oe.length,ce=`${oe}${X}`,[se,te]=y(ce,le.normalized,le.normalizedLowercase,q&&!le.expectContiguousMatch);if(se){const B=S(te),G=[],fe=[];return B.forEach(_e=>{_e.start<ve&&_e.end>ve?(G.push({start:0,end:_e.end-ve}),fe.push({start:_e.start,end:ve})):_e.start>=ve?G.push({start:_e.start-ve,end:_e.end-ve}):fe.push(_e)}),{score:se,labelMatch:G,descriptionMatch:fe}}}return b}function S(X){const K=[];if(!X)return K;let pe;for(const le of X)pe&&pe.end===le?pe.end+=1:(pe={start:le,end:le+1},K.push(pe));return K}function k(X){const K=X.sort((re,q)=>re.start-q.start),pe=[];let le;for(const re of K)!le||!m(le,re)?(le=re,pe.push(re)):(le.start=Math.min(le.start,re.start),le.end=Math.max(le.end,re.end));return pe}function m(X,K){return!(X.end<K.start||K.end<X.start)}function v(X,K,pe,le,re,q){const oe=l(X,pe,le,re,q),ve=l(K,pe,le,re,q),ce=oe.score,se=ve.score;if((ce===P||se===P)&&ce!==se)return ce===P?-1:1;if(ce>n||se>n){if(ce!==se)return ce>se?-1:1;if(ce<T&&se<T){const F=L(oe.labelMatch,ve.labelMatch);if(F!==0)return F}const _e=re.getItemLabel(X)||"",Ee=re.getItemLabel(K)||"";if(_e.length!==Ee.length)return _e.length-Ee.length}if(ce!==se)return ce>se?-1:1;const te=Array.isArray(oe.labelMatch)&&oe.labelMatch.length>0,B=Array.isArray(ve.labelMatch)&&ve.labelMatch.length>0;if(te&&!B)return-1;if(B&&!te)return 1;const G=D(X,oe,re),fe=D(K,ve,re);return G&&fe&&G!==fe?fe>G?-1:1:O(X,K,pe,re)}e.compareItemsByFuzzyScore=v;function D(X,K,pe){let le=-1,re=-1;if(K.descriptionMatch&&K.descriptionMatch.length?le=K.descriptionMatch[0].start:K.labelMatch&&K.labelMatch.length&&(le=K.labelMatch[0].start),K.labelMatch&&K.labelMatch.length){if(re=K.labelMatch[K.labelMatch.length-1].end,K.descriptionMatch&&K.descriptionMatch.length){const q=pe.getItemDescription(X);q&&(re+=q.length)}}else K.descriptionMatch&&K.descriptionMatch.length&&(re=K.descriptionMatch[K.descriptionMatch.length-1].end);return re-le}function L(X,K){if(!X&&!K||(!X||!X.length)&&(!K||!K.length))return 0;if(!K||!K.length)return-1;if(!X||!X.length)return 1;const pe=X[0].start,re=X[X.length-1].end-pe,q=K[0].start,ve=K[K.length-1].end-q;return re===ve?0:ve<re?1:-1}function O(X,K,pe,le){const re=le.getItemLabel(X)||"",q=le.getItemLabel(K)||"",oe=le.getItemDescription(X),ve=le.getItemDescription(K),ce=re.length+(oe?oe.length:0),se=q.length+(ve?ve.length:0);if(ce!==se)return ce-se;const te=le.getItemPath(X),B=le.getItemPath(K);return te&&B&&te.length!==B.length?te.length-B.length:re!==q?(0,w.compareAnything)(re,q,pe.normalized):oe&&ve&&oe!==ve?(0,w.compareAnything)(oe,ve,pe.normalized):te&&B&&te!==B?(0,w.compareAnything)(te,B,pe.normalized):0}function H(X){return X.startsWith('"')&&X.endsWith('"')}const N=" ";function $(X){typeof X!="string"&&(X="");const K=X.toLowerCase(),{pathNormalized:pe,normalized:le,normalizedLowercase:re}=U(X),q=pe.indexOf(A.sep)>=0,oe=H(X);let ve;const ce=X.split(N);if(ce.length>1)for(const se of ce){const te=H(se),{pathNormalized:B,normalized:G,normalizedLowercase:fe}=U(se);G&&(ve||(ve=[]),ve.push({original:se,originalLowercase:se.toLowerCase(),pathNormalized:B,normalized:G,normalizedLowercase:fe,expectContiguousMatch:te}))}return{original:X,originalLowercase:K,pathNormalized:pe,normalized:le,normalizedLowercase:re,values:ve,containsPathSeparator:q,expectContiguousMatch:oe}}e.prepareQuery=$;function U(X){let K;R.isWindows?K=X.replace(/\//g,A.sep):K=X.replace(/\\/g,A.sep);const pe=(0,u.stripWildcards)(K).replace(/\s|"/g,"");return{pathNormalized:K,normalized:pe,normalizedLowercase:pe.toLowerCase()}}function x(X){return Array.isArray(X)?$(X.map(K=>K.original).join(N)):$(X.original)}e.pieceToQuery=x}),define(ye[97],Ce([1,0,17]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeMimeType=e.getExtensionForMimeType=e.getMediaMime=e.getMediaOrTextMime=e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"});const M={".css":"text/css",".csv":"text/csv",".htm":"text/html",".html":"text/html",".ics":"text/calendar",".js":"text/javascript",".mjs":"text/javascript",".txt":"text/plain",".xml":"text/xml"},d={".aac":"audio/x-aac",".avi":"video/x-msvideo",".bmp":"image/bmp",".flv":"video/x-flv",".gif":"image/gif",".ico":"image/x-icon",".jpe":"image/jpg",".jpeg":"image/jpg",".jpg":"image/jpg",".m1v":"video/mpeg",".m2a":"audio/mpeg",".m2v":"video/mpeg",".m3a":"audio/mpeg",".mid":"audio/midi",".midi":"audio/midi",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".mkv":"video/x-matroska",".mov":"video/quicktime",".movie":"video/x-sgi-movie",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".mp4":"video/mp4",".mp4a":"audio/mp4",".mp4v":"video/mp4",".mpe":"video/mpeg",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpg4":"video/mp4",".mpga":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".opus":"audio/opus",".ogv":"video/ogg",".png":"image/png",".psd":"image/vnd.adobe.photoshop",".qt":"video/quicktime",".spx":"audio/ogg",".svg":"image/svg+xml",".tga":"image/x-tga",".tif":"image/tiff",".tiff":"image/tiff",".wav":"audio/x-wav",".webm":"video/webm",".webp":"image/webp",".wma":"audio/x-ms-wma",".wmv":"video/x-ms-wmv",".woff":"application/font-woff"};function A(y){const E=(0,w.extname)(y),t=M[E.toLowerCase()];return t!==void 0?t:R(y)}e.getMediaOrTextMime=A;function R(y){const E=(0,w.extname)(y);return d[E.toLowerCase()]}e.getMediaMime=R;function u(y){for(const E in d)if(d[E]===y)return E}e.getExtensionForMimeType=u;const p=/^(.+)\/(.+?)(;.+)?$/;function f(y,E){const t=p.exec(y);return t?`${t[1].toLowerCase()}/${t[2].toLowerCase()}${t[3]??""}`:E?void 0:y}e.normalizeMimeType=f}),define(ye[126],Ce([1,0,14]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDangerousEnvVariables=e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var M;(function(u){u[u.stdout=0]="stdout",u[u.stderr=1]="stderr"})(M||(e.Source=M={}));var d;(function(u){u[u.Success=0]="Success",u[u.Unknown=1]="Unknown",u[u.AccessDenied=2]="AccessDenied",u[u.ProcessNotFound=3]="ProcessNotFound"})(d||(e.TerminateResponseCode=d={}));function A(u,...p){const f=p.reduce((t,s)=>(t[s]=!0,t),{}),y=[/^ELECTRON_.+$/,/^VSCODE_(?!(PORTABLE|SHELL_LOGIN|ENV_REPLACE|ENV_APPEND|ENV_PREPEND)).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(u).filter(t=>!f[t]).forEach(t=>{for(let s=0;s<y.length;s++)if(t.search(y[s])!==-1){delete u[t];break}})}e.sanitizeProcessEnvironment=A;function R(u){u&&(delete u.DEBUG,w.isMacintosh&&delete u.DYLD_LIBRARY_PATH,w.isLinux&&delete u.LD_PRELOAD)}e.removeDangerousEnvVariables=R}),define(ye[2],Ce([1,0,17,14]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.isUriComponents=e.URI=void 0;const d=/^\w[\w\d+.-]*$/,A=/^\//,R=/^\/\//;function u(i,c){if(!i.scheme&&c)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${i.authority}", path: "${i.path}", query: "${i.query}", fragment: "${i.fragment}"}`);if(i.scheme&&!d.test(i.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(i.path){if(i.authority){if(!A.test(i.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(R.test(i.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function p(i,c){return!i&&!c?"file":i}function f(i,c){switch(i){case"https":case"http":case"file":c?c[0]!==E&&(c=E+c):c=E;break}return c}const y="",E="/",t=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class s{static isUri(c){return c instanceof s?!0:c?typeof c.authority=="string"&&typeof c.fragment=="string"&&typeof c.path=="string"&&typeof c.query=="string"&&typeof c.scheme=="string"&&typeof c.fsPath=="string"&&typeof c.with=="function"&&typeof c.toString=="function":!1}constructor(c,_,S,k,m,v=!1){typeof c=="object"?(this.scheme=c.scheme||y,this.authority=c.authority||y,this.path=c.path||y,this.query=c.query||y,this.fragment=c.fragment||y):(this.scheme=p(c,v),this.authority=_||y,this.path=f(this.scheme,S||y),this.query=k||y,this.fragment=m||y,u(this,v))}get fsPath(){return P(this,!1)}with(c){if(!c)return this;let{scheme:_,authority:S,path:k,query:m,fragment:v}=c;return _===void 0?_=this.scheme:_===null&&(_=y),S===void 0?S=this.authority:S===null&&(S=y),k===void 0?k=this.path:k===null&&(k=y),m===void 0?m=this.query:m===null&&(m=y),v===void 0?v=this.fragment:v===null&&(v=y),_===this.scheme&&S===this.authority&&k===this.path&&m===this.query&&v===this.fragment?this:new r(_,S,k,m,v)}static parse(c,_=!1){const S=t.exec(c);return S?new r(S[2]||y,l(S[4]||y),l(S[5]||y),l(S[7]||y),l(S[9]||y),_):new r(y,y,y,y,y)}static file(c){let _=y;if(M.isWindows&&(c=c.replace(/\\/g,E)),c[0]===E&&c[1]===E){const S=c.indexOf(E,2);S===-1?(_=c.substring(2),c=E):(_=c.substring(2,S),c=c.substring(S)||E)}return new r("file",_,c,y,y)}static from(c,_){return new r(c.scheme,c.authority,c.path,c.query,c.fragment,_)}static joinPath(c,..._){if(!c.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let S;return M.isWindows&&c.scheme==="file"?S=s.file(w.win32.join(P(c,!0),..._)).path:S=w.posix.join(c.path,..._),c.with({path:S})}toString(c=!1){return T(this,c)}toJSON(){return this}static revive(c){if(c){if(c instanceof s)return c;{const _=new r(c);return _._formatted=c.external??null,_._fsPath=c._sep===C?c.fsPath??null:null,_}}else return}}e.URI=s;function g(i){return!i||typeof i!="object"?!1:typeof i.scheme=="string"&&(typeof i.authority=="string"||typeof i.authority>"u")&&(typeof i.path=="string"||typeof i.path>"u")&&(typeof i.query=="string"||typeof i.query>"u")&&(typeof i.fragment=="string"||typeof i.fragment>"u")}e.isUriComponents=g;const C=M.isWindows?1:void 0;class r extends s{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=P(this,!1)),this._fsPath}toString(c=!1){return c?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}toJSON(){const c={$mid:1};return this._fsPath&&(c.fsPath=this._fsPath,c._sep=C),this._formatted&&(c.external=this._formatted),this.path&&(c.path=this.path),this.scheme&&(c.scheme=this.scheme),this.authority&&(c.authority=this.authority),this.query&&(c.query=this.query),this.fragment&&(c.fragment=this.fragment),c}}const h={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function o(i,c,_){let S,k=-1;for(let m=0;m<i.length;m++){const v=i.charCodeAt(m);if(v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===45||v===46||v===95||v===126||c&&v===47||_&&v===91||_&&v===93||_&&v===58)k!==-1&&(S+=encodeURIComponent(i.substring(k,m)),k=-1),S!==void 0&&(S+=i.charAt(m));else{S===void 0&&(S=i.substr(0,m));const D=h[v];D!==void 0?(k!==-1&&(S+=encodeURIComponent(i.substring(k,m)),k=-1),S+=D):k===-1&&(k=m)}}return k!==-1&&(S+=encodeURIComponent(i.substring(k))),S!==void 0?S:i}function b(i){let c;for(let _=0;_<i.length;_++){const S=i.charCodeAt(_);S===35||S===63?(c===void 0&&(c=i.substr(0,_)),c+=h[S]):c!==void 0&&(c+=i[_])}return c!==void 0?c:i}function P(i,c){let _;return i.authority&&i.path.length>1&&i.scheme==="file"?_=`//${i.authority}${i.path}`:i.path.charCodeAt(0)===47&&(i.path.charCodeAt(1)>=65&&i.path.charCodeAt(1)<=90||i.path.charCodeAt(1)>=97&&i.path.charCodeAt(1)<=122)&&i.path.charCodeAt(2)===58?c?_=i.path.substr(1):_=i.path[1].toLowerCase()+i.path.substr(2):_=i.path,M.isWindows&&(_=_.replace(/\//g,"\\")),_}e.uriToFsPath=P;function T(i,c){const _=c?b:o;let S="",{scheme:k,authority:m,path:v,query:D,fragment:L}=i;if(k&&(S+=k,S+=":"),(m||k==="file")&&(S+=E,S+=E),m){let O=m.indexOf("@");if(O!==-1){const H=m.substr(0,O);m=m.substr(O+1),O=H.lastIndexOf(":"),O===-1?S+=_(H,!1,!1):(S+=_(H.substr(0,O),!1,!1),S+=":",S+=_(H.substr(O+1),!1,!0)),S+="@"}m=m.toLowerCase(),O=m.lastIndexOf(":"),O===-1?S+=_(m,!1,!0):(S+=_(m.substr(0,O),!1,!0),S+=m.substr(O))}if(v){if(v.length>=3&&v.charCodeAt(0)===47&&v.charCodeAt(2)===58){const O=v.charCodeAt(1);O>=65&&O<=90&&(v=`/${String.fromCharCode(O+32)}:${v.substr(3)}`)}else if(v.length>=2&&v.charCodeAt(1)===58){const O=v.charCodeAt(0);O>=65&&O<=90&&(v=`${String.fromCharCode(O+32)}:${v.substr(2)}`)}S+=_(v,!0,!1)}return D&&(S+="?",S+=_(D,!1,!1)),L&&(S+="#",S+=c?L:o(L,!1,!1)),S}function n(i){try{return decodeURIComponent(i)}catch{return i.length>3?i.substr(0,3)+n(i.substr(3)):i}}const a=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function l(i){return i.match(a)?i.replace(a,c=>n(c)):i}}),define(ye[191],Ce([1,0,2]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function M(f){const y=f;return y&&typeof y.type=="string"&&typeof y.severity=="string"}e.isRemoteConsoleLog=M;function d(f){const y=[];let E;try{const t=JSON.parse(f.arguments),s=t[t.length-1];s&&s.__$stack&&(t.pop(),E=s.__$stack),y.push(...t)}catch{y.push("Unable to log remote console arguments",f.arguments)}return{args:y,stack:E}}e.parse=d;function A(f){if(typeof f!="string")return A(d(f).stack);const y=f;if(y){const E=R(y),t=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(E||"");if(t&&t.length===4)return{uri:w.URI.file(t[1]),line:Number(t[2]),column:Number(t[3])}}}e.getFirstFrame=A;function R(f){if(!f)return f;const y=f.indexOf(`
`);return y===-1?f:f.substring(0,y)}function u(f,y){const{args:E,stack:t}=d(f),s=typeof E[0]=="string"&&E.length===1;let g=R(t);g&&(g=`(${g.trim()})`);let C=[];if(typeof E[0]=="string"?g&&s?C=[`%c[${y}] %c${E[0]} %c${g}`,p("blue"),p(""),p("grey")]:C=[`%c[${y}] %c${E[0]}`,p("blue"),p(""),...E.slice(1)]:C=[`%c[${y}]%`,p("blue"),...E],g&&!s&&C.push(g),typeof console[f.severity]!="function")throw new Error("Unknown console method");console[f.severity].apply(console,C)}e.log=u;function p(f){return`color: ${f}`}}),define(ye[76],Ce([1,0,21,2]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function d(p){return JSON.stringify(p,R)}e.stringify=d;function A(p){let f=JSON.parse(p);return f=u(f),f}e.parse=A;function R(p,f){return f instanceof RegExp?{$mid:2,source:f.source,flags:f.flags}:f}function u(p,f=0){if(!p||f>200)return p;if(typeof p=="object"){switch(p.$mid){case 1:return M.URI.revive(p);case 2:return new RegExp(p.source,p.flags);case 16:return new Date(p.source)}if(p instanceof w.VSBuffer||p instanceof Uint8Array)return p;if(Array.isArray(p))for(let y=0;y<p.length;++y)p[y]=u(p[y],f+1);else for(const y in p)Object.hasOwnProperty.call(p,y)&&(p[y]=u(p[y],f+1))}return p}e.revive=u}),define(ye[15],Ce([1,0,8,14,2]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COI=e.FileAccess=e.nodeModulesAsarUnpackedPath=e.nodeModulesAsarPath=e.nodeModulesPath=e.builtinExtensionsPath=e.RemoteAuthorities=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var A;(function(f){f.inMemory="inmemory",f.vscode="vscode",f.internal="private",f.walkThrough="walkThrough",f.walkThroughSnippet="walkThroughSnippet",f.http="http",f.https="https",f.file="file",f.mailto="mailto",f.untitled="untitled",f.data="data",f.attachment="attachment",f.command="command",f.vscodeRemote="vscode-remote",f.vscodeRemoteResource="vscode-remote-resource",f.vscodeManagedRemoteResource="vscode-managed-remote-resource",f.vscodeUserData="vscode-userdata",f.vscodeCustomEditor="vscode-custom-editor",f.vscodeNotebookCell="vscode-notebook-cell",f.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",f.vscodeNotebookCellOutput="vscode-notebook-cell-output",f.vscodeInteractiveInput="vscode-interactive-input",f.vscodeSettings="vscode-settings",f.vscodeWorkspaceTrust="vscode-workspace-trust",f.vscodeTerminal="vscode-terminal",f.vscodeChatSesssion="vscode-chat-editor",f.webviewPanel="webview-panel",f.vscodeWebview="vscode-webview",f.extension="extension",f.vscodeFileResource="vscode-file",f.tmp="tmp",f.vsls="vsls",f.vscodeSourceControl="vscode-scm"})(A||(e.Schemas=A={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn";class R{constructor(){this._defaultWebPort=80,this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${A.vscodeRemoteResource}`}setPreferredWebSchema(y){this._preferredWebSchema=y}setDelegate(y){this._delegate=y}setServerRootPath(y){this._remoteResourcesPath=`${y}/${A.vscodeRemoteResource}`}set(y,E,t){this._hosts[y]=E,this._ports[y]=t}setConnectionToken(y,E){this._connectionTokens[y]=E}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(y){if(this._delegate)try{return this._delegate(y)}catch(r){return w.onUnexpectedError(r),y}const E=y.authority;let t=this._hosts[E];t&&t.indexOf(":")!==-1&&t.indexOf("[")===-1&&(t=`[${t}]`);const s=this._ports[E],g=this._connectionTokens[E];let C=`path=${encodeURIComponent(y.path)}`;return typeof g=="string"&&(C+=`&${e.connectionTokenQueryName}=${encodeURIComponent(g)}`),d.URI.from({scheme:M.isWeb?this._preferredWebSchema:A.vscodeRemoteResource,authority:M.isWeb&&s===this._defaultWebPort?`${t}`:`${t}:${s}`,path:this._remoteResourcesPath,query:C})}}e.RemoteAuthorities=new R,e.builtinExtensionsPath="vs/../../extensions",e.nodeModulesPath="vs/../../node_modules",e.nodeModulesAsarPath="vs/../../node_modules.asar",e.nodeModulesAsarUnpackedPath="vs/../../node_modules.asar.unpacked";class u{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(y){const E=this.toUri(y,ge);return this.uriToBrowserUri(E)}uriToBrowserUri(y){return y.scheme===A.vscodeRemote?e.RemoteAuthorities.rewrite(y):y.scheme===A.file&&(M.isNative||M.isWebWorker&&M.globals.origin===`${A.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`)?y.with({scheme:A.vscodeFileResource,authority:y.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null}):y}asFileUri(y){const E=this.toUri(y,ge);return this.uriToFileUri(E)}uriToFileUri(y){return y.scheme===A.vscodeFileResource?y.with({scheme:A.file,authority:y.authority!==u.FALLBACK_AUTHORITY?y.authority:null,query:null,fragment:null}):y}toUri(y,E){return d.URI.isUri(y)?y:d.URI.parse(E.toUrl(y))}}e.FileAccess=new u;var p;(function(f){const y=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);f.CoopAndCoep=Object.freeze(y.get("3"));const E="vscode-coi";function t(g){let C;typeof g=="string"?C=new URL(g).searchParams:g instanceof URL?C=g.searchParams:d.URI.isUri(g)&&(C=new URL(g.toString(!0)).searchParams);const r=C?.get(E);if(r)return y.get(r)}f.getHeadersFromQuery=t;function s(g,C,r){if(!globalThis.crossOriginIsolated)return;const h=C&&r?"3":r?"2":"1";g instanceof URLSearchParams?g.set(E,h):g[E]=h}f.addSearchParam=s})(p||(e.COI=p={}))}),define(ye[192],Ce([1,0,157,15,14,2]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.importAMDNodeModule=void 0;class R{constructor(t,s,g){this.id=t,this.dependencies=s,this.callback=g}}class u{static{this.INSTANCE=new u}constructor(){this._isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",this._isRenderer=typeof document=="object",this._defineCalls=[],this._initialized=!1}_initialize(){this._initialized||(this._initialized=!0,globalThis.define=(t,s,g)=>{typeof t!="string"&&(g=s,s=t,t=null),(typeof s!="object"||!Array.isArray(s))&&(g=s,s=null),this._defineCalls.push(new R(t,s,g))},globalThis.define.amd=!0,this._isRenderer?this._amdPolicy=window.trustedTypes?.createPolicy("amdLoader",{createScriptURL(t){if(t.startsWith(window.location.origin)||t.startsWith("vscode-file://vscode-app"))return t;throw new Error(`[trusted_script_src] Invalid script url: ${t}`)}}):this._isWebWorker&&(this._amdPolicy=globalThis.trustedTypes?.createPolicy("amdLoader",{createScriptURL(t){return t}})))}async load(t){this._initialize();const s=await(this._isWebWorker?this._workerLoadScript(t):this._isRenderer?this._rendererLoadScript(t):this._nodeJSLoadScript(t));if(!s)throw new Error(`Did not receive a define call from script ${t}`);if(Array.isArray(s.dependencies)&&s.dependencies.length>0)throw new Error(`Cannot resolve dependencies for script ${t}. The dependencies are: ${s.dependencies.join(", ")}`);return typeof s.callback=="function"?s.callback([]):s.callback}_rendererLoadScript(t){return new Promise((s,g)=>{const C=document.createElement("script");C.setAttribute("async","async"),C.setAttribute("type","text/javascript");const r=()=>{C.removeEventListener("load",h),C.removeEventListener("error",o)},h=b=>{r(),s(this._defineCalls.pop())},o=b=>{r(),g(b)};C.addEventListener("load",h),C.addEventListener("error",o),this._amdPolicy&&(t=this._amdPolicy.createScriptURL(t)),C.setAttribute("src",t),document.getElementsByTagName("head")[0].appendChild(C)})}_workerLoadScript(t){return new Promise((s,g)=>{try{this._amdPolicy&&(t=this._amdPolicy.createScriptURL(t)),importScripts(t),s(this._defineCalls.pop())}catch(C){g(C)}})}async _nodeJSLoadScript(t){try{const s=globalThis._VSCODE_NODE_MODULES.fs,g=globalThis._VSCODE_NODE_MODULES.vm,C=globalThis._VSCODE_NODE_MODULES.module,r=A.URI.parse(t).fsPath,h=s.readFileSync(r).toString(),o=C.wrap(h.replace(/^#!.*/,""));return new g.Script(o).runInThisContext().apply(),this._defineCalls.pop()}catch(s){throw s}}}const p=new Map;let f={};typeof globalThis.require=="object"&&(f=globalThis.require.paths??{});async function y(E,t,s){if(w.isESM){s===void 0&&(s=!!(globalThis._VSCODE_PRODUCT_JSON??globalThis.vscode?.context?.configuration()?.product)?.commit),f[E]&&(E=f[E]);const g=`${E}/${t}`;if(p.has(g))return p.get(g);let C;if(/^\w[\w\d+.-]*:\/\//.test(g))C=g;else{const b=`${s&&!d.isWeb?M.nodeModulesAsarPath:M.nodeModulesPath}/${g}`;C=M.FileAccess.asBrowserUri(b).toString(!0)}const r=u.INSTANCE.load(C);return p.set(g,r),r}else return await new Promise((g,C)=>{ge([E],g,C)})}e.importAMDNodeModule=y}),define(ye[25],Ce([1,0,33,15,17,14,16,2]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalResource=e.DataUri=e.distinctParents=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function p(s){return(0,u.uriToFsPath)(s,!0)}e.originalFSPath=p;class f{constructor(g){this._ignorePathCasing=g}compare(g,C,r=!1){return g===C?0:(0,R.compare)(this.getComparisonKey(g,r),this.getComparisonKey(C,r))}isEqual(g,C,r=!1){return g===C?!0:!g||!C?!1:this.getComparisonKey(g,r)===this.getComparisonKey(C,r)}getComparisonKey(g,C=!1){return g.with({path:this._ignorePathCasing(g)?g.path.toLowerCase():void 0,fragment:C?null:void 0}).toString()}ignorePathCasing(g){return this._ignorePathCasing(g)}isEqualOrParent(g,C,r=!1){if(g.scheme===C.scheme){if(g.scheme===M.Schemas.file)return w.isEqualOrParent(p(g),p(C),this._ignorePathCasing(g))&&g.query===C.query&&(r||g.fragment===C.fragment);if((0,e.isEqualAuthority)(g.authority,C.authority))return w.isEqualOrParent(g.path,C.path,this._ignorePathCasing(g),"/")&&g.query===C.query&&(r||g.fragment===C.fragment)}return!1}joinPath(g,...C){return u.URI.joinPath(g,...C)}basenameOrAuthority(g){return(0,e.basename)(g)||g.authority}basename(g){return d.posix.basename(g.path)}extname(g){return d.posix.extname(g.path)}dirname(g){if(g.path.length===0)return g;let C;return g.scheme===M.Schemas.file?C=u.URI.file(d.dirname(p(g))).path:(C=d.posix.dirname(g.path),g.authority&&C.length&&C.charCodeAt(0)!==47&&(console.error(`dirname("${g.toString})) resulted in a relative path`),C="/")),g.with({path:C})}normalizePath(g){if(!g.path.length)return g;let C;return g.scheme===M.Schemas.file?C=u.URI.file(d.normalize(p(g))).path:C=d.posix.normalize(g.path),g.with({path:C})}relativePath(g,C){if(g.scheme!==C.scheme||!(0,e.isEqualAuthority)(g.authority,C.authority))return;if(g.scheme===M.Schemas.file){const o=d.relative(p(g),p(C));return A.isWindows?w.toSlashes(o):o}let r=g.path||"/";const h=C.path||"/";if(this._ignorePathCasing(g)){let o=0;for(const b=Math.min(r.length,h.length);o<b&&!(r.charCodeAt(o)!==h.charCodeAt(o)&&r.charAt(o).toLowerCase()!==h.charAt(o).toLowerCase());o++);r=h.substr(0,o)+r.substr(o)}return d.posix.relative(r,h)}resolvePath(g,C){if(g.scheme===M.Schemas.file){const r=u.URI.file(d.resolve(p(g),C));return g.with({authority:r.authority,path:r.path})}return C=w.toPosixPath(C),g.with({path:d.posix.resolve(g.path,C)})}isAbsolutePath(g){return!!g.path&&g.path[0]==="/"}isEqualAuthority(g,C){return g===C||g!==void 0&&C!==void 0&&(0,R.equalsIgnoreCase)(g,C)}hasTrailingPathSeparator(g,C=d.sep){if(g.scheme===M.Schemas.file){const r=p(g);return r.length>w.getRoot(r).length&&r[r.length-1]===C}else{const r=g.path;return r.length>1&&r.charCodeAt(r.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(g.fsPath)}}removeTrailingPathSeparator(g,C=d.sep){return(0,e.hasTrailingPathSeparator)(g,C)?g.with({path:g.path.substr(0,g.path.length-1)}):g}addTrailingPathSeparator(g,C=d.sep){let r=!1;if(g.scheme===M.Schemas.file){const h=p(g);r=h!==void 0&&h.length===w.getRoot(h).length&&h[h.length-1]===C}else{C="/";const h=g.path;r=h.length===1&&h.charCodeAt(h.length-1)===47}return!r&&!(0,e.hasTrailingPathSeparator)(g,C)?g.with({path:g.path+"/"}):g}}e.ExtUri=f,e.extUri=new f(()=>!1),e.extUriBiasedIgnorePathCase=new f(s=>s.scheme===M.Schemas.file?!A.isLinux:!0),e.extUriIgnorePathCase=new f(s=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);function y(s,g){const C=[];for(let r=0;r<s.length;r++){const h=g(s[r]);s.some((o,b)=>b===r?!1:(0,e.isEqualOrParent)(h,g(o)))||C.push(s[r])}return C}e.distinctParents=y;var E;(function(s){s.META_DATA_LABEL="label",s.META_DATA_DESCRIPTION="description",s.META_DATA_SIZE="size",s.META_DATA_MIME="mime";function g(C){const r=new Map;C.path.substring(C.path.indexOf(";")+1,C.path.lastIndexOf(";")).split(";").forEach(b=>{const[P,T]=b.split(":");P&&T&&r.set(P,T)});const o=C.path.substring(0,C.path.indexOf(";"));return o&&r.set(s.META_DATA_MIME,o),r}s.parseMetaData=g})(E||(e.DataUri=E={}));function t(s,g,C){if(g){let r=s.path;return r&&r[0]!==d.posix.sep&&(r=d.posix.sep+r),s.with({scheme:C,authority:g,path:r})}return s.with({scheme:C})}e.toLocalResource=t}),define(ye[13],Ce([1,0,22,8,4,5,25,14,162]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IntervalCounter=e.TaskSequentializer=e.retry=e.IdleValue=e.runWhenIdle=e.ThrottledWorker=e.RunOnceWorker=e.ProcessTimeRunOnceScheduler=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ResourceQueue=e.LimitedQueue=e.Queue=e.Limiter=e.firstParallel=e.first=e.sequence=e.disposableTimeout=e.timeout=e.AutoOpenBarrier=e.Barrier=e.ThrottledDelayer=e.Delayer=e.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellationError=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function f(B){return!!B&&typeof B.then=="function"}e.isThenable=f;function y(B){const G=new w.CancellationTokenSource,fe=B(G.token),_e=new Promise((Ee,F)=>{const J=G.token.onCancellationRequested(()=>{J.dispose(),G.dispose(),F(new M.CancellationError)});Promise.resolve(fe).then(I=>{J.dispose(),G.dispose(),Ee(I)},I=>{J.dispose(),G.dispose(),F(I)})});return new class{cancel(){G.cancel()}then(Ee,F){return _e.then(Ee,F)}catch(Ee){return this.then(void 0,Ee)}finally(Ee){return _e.finally(Ee)}}}e.createCancelablePromise=y;function E(B,G,fe){return new Promise((_e,Ee)=>{const F=G.onCancellationRequested(()=>{F.dispose(),_e(fe)});B.then(_e,Ee).finally(()=>F.dispose())})}e.raceCancellation=E;function t(B,G){return new Promise((fe,_e)=>{const Ee=G.onCancellationRequested(()=>{Ee.dispose(),_e(new M.CancellationError)});B.then(fe,_e).finally(()=>Ee.dispose())})}e.raceCancellationError=t;async function s(B){let G=-1;const fe=B.map((_e,Ee)=>_e.then(F=>(G=Ee,F)));try{return await Promise.race(fe)}finally{B.forEach((_e,Ee)=>{Ee!==G&&_e.cancel()})}}e.raceCancellablePromises=s;function g(B,G,fe){let _e;const Ee=setTimeout(()=>{_e?.(void 0),fe?.()},G);return Promise.race([B.finally(()=>clearTimeout(Ee)),new Promise(F=>_e=F)])}e.raceTimeout=g;function C(B){return new Promise((G,fe)=>{const _e=B();f(_e)?_e.then(G,fe):G(_e)})}e.asPromise=C;class r{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(G){if(this.isDisposed)throw new Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=G,!this.queuedPromise){const fe=()=>{if(this.queuedPromise=null,this.isDisposed)return;const _e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,_e};this.queuedPromise=new Promise(_e=>{this.activePromise.then(fe,fe).then(_e)})}return new Promise((fe,_e)=>{this.queuedPromise.then(fe,_e)})}return this.activePromise=G(),new Promise((fe,_e)=>{this.activePromise.then(Ee=>{this.activePromise=null,fe(Ee)},Ee=>{this.activePromise=null,_e(Ee)})})}dispose(){this.isDisposed=!0}}e.Throttler=r;class h{constructor(){this.current=Promise.resolve(null)}queue(G){return this.current=this.current.then(()=>G(),()=>G())}}e.Sequencer=h;class o{constructor(){this.promiseMap=new Map}queue(G,fe){const Ee=(this.promiseMap.get(G)??Promise.resolve()).catch(()=>{}).then(fe).finally(()=>{this.promiseMap.get(G)===Ee&&this.promiseMap.delete(G)});return this.promiseMap.set(G,Ee),Ee}}e.SequencerByKey=o;const b=(B,G)=>{let fe=!0;const _e=setTimeout(()=>{fe=!1,G()},B);return{isTriggered:()=>fe,dispose:()=>{clearTimeout(_e),fe=!1}}},P=B=>{let G=!0;return queueMicrotask(()=>{G&&(G=!1,B())}),{isTriggered:()=>G,dispose:()=>{G=!1}}};class T{constructor(G){this.defaultDelay=G,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(G,fe=this.defaultDelay){this.task=G,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((Ee,F)=>{this.doResolve=Ee,this.doReject=F}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const Ee=this.task;return this.task=null,Ee()}}));const _e=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=fe===p.MicrotaskDelay?P(_e):b(fe,_e),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new M.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=T;class n{constructor(G){this.delayer=new T(G),this.throttler=new r}trigger(G,fe){return this.delayer.trigger(()=>this.throttler.queue(G),fe)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}e.ThrottledDelayer=n;class a{constructor(){this._isOpen=!1,this._promise=new Promise((G,fe)=>{this._completePromise=G})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=a;class l extends a{constructor(G){super(),this._timeout=setTimeout(()=>this.open(),G)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=l;function i(B,G){return G?new Promise((fe,_e)=>{const Ee=setTimeout(()=>{F.dispose(),fe()},B),F=G.onCancellationRequested(()=>{clearTimeout(Ee),F.dispose(),_e(new M.CancellationError)})}):y(fe=>i(B,fe))}e.timeout=i;function c(B,G=0){const fe=setTimeout(B,G);return(0,A.toDisposable)(()=>clearTimeout(fe))}e.disposableTimeout=c;function _(B){const G=[];let fe=0;const _e=B.length;function Ee(){return fe<_e?B[fe++]():null}function F(J){J!=null&&G.push(J);const I=Ee();return I?I.then(F):Promise.resolve(G)}return Promise.resolve(null).then(F)}e.sequence=_;function S(B,G=_e=>!!_e,fe=null){let _e=0;const Ee=B.length,F=()=>{if(_e>=Ee)return Promise.resolve(fe);const J=B[_e++];return Promise.resolve(J()).then(V=>G(V)?Promise.resolve(V):F())};return F()}e.first=S;function k(B,G=_e=>!!_e,fe=null){if(B.length===0)return Promise.resolve(fe);let _e=B.length;const Ee=()=>{_e=-1;for(const F of B)F.cancel?.()};return new Promise((F,J)=>{for(const I of B)I.then(V=>{--_e>=0&&G(V)?(Ee(),F(V)):_e===0&&F(fe)}).catch(V=>{--_e>=0&&(Ee(),J(V))})})}e.firstParallel=k;class m{constructor(G){this._size=0,this.maxDegreeOfParalellism=G,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new d.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(G){return this._size++,new Promise((fe,_e)=>{this.outstandingPromises.push({factory:G,c:fe,e:_e}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const G=this.outstandingPromises.shift();this.runningPromises++;const fe=G.factory();fe.then(G.c,G.e),fe.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=m;class v extends m{constructor(){super(1)}}e.Queue=v;class D{constructor(){this.sequentializer=new pe,this.tasks=0}queue(G){return this.sequentializer.isRunning()?this.sequentializer.queue(()=>this.sequentializer.run(this.tasks++,G())):this.sequentializer.run(this.tasks++,G())}}e.LimitedQueue=D;class L{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const G=new q;return this.drainers.add(G),G.p}isDrained(){for(const[,G]of this.queues)if(G.size>0)return!1;return!0}queueFor(G,fe=R.extUri){const _e=fe.getComparisonKey(G);let Ee=this.queues.get(_e);return Ee||(Ee=new v,d.Event.once(Ee.onDrained)(()=>{Ee?.dispose(),this.queues.delete(_e),this.onDidQueueDrain()}),this.queues.set(_e,Ee)),Ee}onDidQueueDrain(){this.isDrained()&&this.releaseDrainers()}releaseDrainers(){for(const G of this.drainers)G.complete();this.drainers.clear()}dispose(){for(const[,G]of this.queues)G.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=L;class O{constructor(G,fe){this._token=-1,typeof G=="function"&&typeof fe=="number"&&this.setIfNotSet(G,fe)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(G,fe){this.cancel(),this._token=setTimeout(()=>{this._token=-1,G()},fe)}setIfNotSet(G,fe){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,G()},fe))}}e.TimeoutTimer=O;class H{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(G,fe){this.cancel(),this._token=setInterval(()=>{G()},fe)}}e.IntervalTimer=H;class N{constructor(G,fe){this.timeoutToken=-1,this.runner=G,this.timeout=fe,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(G=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,G)}get delay(){return this.timeout}set delay(G){this.timeout=G}isScheduled(){return this.timeoutToken!==-1}flush(){this.isScheduled()&&(this.cancel(),this.doRun())}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=N;class ${constructor(G,fe){fe%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${fe}ms is not a multiple of 1000ms.`),this.runner=G,this.timeout=fe,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(G=this.timeout){G%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${G}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(G/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,!(this.counter>0)&&(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner?.())}}e.ProcessTimeRunOnceScheduler=$;class U extends N{constructor(G,fe){super(G,fe),this.units=[]}work(G){this.units.push(G),this.isScheduled()||this.schedule()}doRun(){const G=this.units;this.units=[],this.runner?.(G)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=U;class x extends A.Disposable{constructor(G,fe){super(),this.options=G,this.handler=fe,this.pendingWork=[],this.throttler=this._register(new A.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(G){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+G.length>this.options.maxBufferedWork)return!1}else if(this.pending+G.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}for(const fe of G)this.pendingWork.push(fe);return this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new N(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=x,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=B=>{(0,u.setTimeout0)(()=>{if(G)return;const fe=Date.now()+15;B(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,fe-Date.now())}}))});let G=!1;return{dispose(){G||(G=!0)}}}:e.runWhenIdle=(B,G)=>{const fe=requestIdleCallback(B,typeof G=="number"?{timeout:G}:void 0);let _e=!1;return{dispose(){_e||(_e=!0,cancelIdleCallback(fe))}}}}();class X{constructor(G){this._didRun=!1,this._executor=()=>{try{this._value=G()}catch(fe){this._error=fe}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=X;async function K(B,G,fe){let _e;for(let Ee=0;Ee<fe;Ee++)try{return await B()}catch(F){_e=F,await i(G)}throw _e}e.retry=K;class pe{isRunning(G){return typeof G=="number"?this._running?.taskId===G:!!this._running}get running(){return this._running?.promise}cancelRunning(){this._running?.cancel()}run(G,fe,_e){return this._running={taskId:G,cancel:()=>_e?.(),promise:fe},fe.then(()=>this.doneRunning(G),()=>this.doneRunning(G)),fe}doneRunning(G){this._running&&G===this._running.taskId&&(this._running=void 0,this.runQueued())}runQueued(){if(this._queued){const G=this._queued;this._queued=void 0,G.run().then(G.promiseResolve,G.promiseReject)}}queue(G){if(this._queued)this._queued.run=G;else{let fe,_e;const Ee=new Promise((F,J)=>{fe=F,_e=J});this._queued={run:G,promise:Ee,promiseResolve:fe,promiseReject:_e}}return this._queued.promise}hasQueued(){return!!this._queued}async join(){return this._queued?.promise??this._running?.promise}}e.TaskSequentializer=pe;class le{constructor(G,fe=()=>Date.now()){this.interval=G,this.nowFn=fe,this.lastIncrementTime=0,this.value=0}increment(){const G=this.nowFn();return G-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=G,this.value=0),this.value++,this.value}}e.IntervalCounter=le;var re;(function(B){B[B.Resolved=0]="Resolved",B[B.Rejected=1]="Rejected"})(re||(re={}));class q{get isRejected(){return this.outcome?.outcome===1}get isResolved(){return this.outcome?.outcome===0}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===0?this.outcome?.value:void 0}constructor(){this.p=new Promise((G,fe)=>{this.completeCallback=G,this.errorCallback=fe})}complete(G){return new Promise(fe=>{this.completeCallback(G),this.outcome={outcome:0,value:G},fe()})}error(G){return new Promise(fe=>{this.errorCallback(G),this.outcome={outcome:1,value:G},fe()})}cancel(){return this.error(new M.CancellationError)}}e.DeferredPromise=q;var oe;(function(B){async function G(_e){let Ee;const F=await Promise.all(_e.map(J=>J.then(I=>I,I=>{Ee||(Ee=I)})));if(typeof Ee<"u")throw Ee;return F}B.settled=G;function fe(_e){return new Promise(async(Ee,F)=>{try{await _e(Ee,F)}catch(J){F(J)}})}B.withAsyncBody=fe})(oe||(e.Promises=oe={}));var ve;(function(B){B[B.Initial=0]="Initial",B[B.DoneOK=1]="DoneOK",B[B.DoneError=2]="DoneError"})(ve||(ve={}));class ce{static fromArray(G){return new ce(fe=>{fe.emitMany(G)})}static fromPromise(G){return new ce(async fe=>{fe.emitMany(await G)})}static fromPromises(G){return new ce(async fe=>{await Promise.all(G.map(async _e=>fe.emitOne(await _e)))})}static merge(G){return new ce(async fe=>{await Promise.all(G.map(async _e=>{for await(const Ee of _e)fe.emitOne(Ee)}))})}static{this.EMPTY=ce.fromArray([])}constructor(G){this._state=0,this._results=[],this._error=null,this._onStateChanged=new d.Emitter,queueMicrotask(async()=>{const fe={emitOne:_e=>this.emitOne(_e),emitMany:_e=>this.emitMany(_e),reject:_e=>this.reject(_e)};try{await Promise.resolve(G(fe)),this.resolve()}catch(_e){this.reject(_e)}finally{fe.emitOne=void 0,fe.emitMany=void 0,fe.reject=void 0}})}[Symbol.asyncIterator](){let G=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(G<this._results.length)return{done:!1,value:this._results[G++]};if(this._state===1)return{done:!0,value:void 0};await d.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(G,fe){return new ce(async _e=>{for await(const Ee of G)_e.emitOne(fe(Ee))})}map(G){return ce.map(this,G)}static filter(G,fe){return new ce(async _e=>{for await(const Ee of G)fe(Ee)&&_e.emitOne(Ee)})}filter(G){return ce.filter(this,G)}static coalesce(G){return ce.filter(G,fe=>!!fe)}coalesce(){return ce.coalesce(this)}static async toPromise(G){const fe=[];for await(const _e of G)fe.push(_e);return fe}toPromise(){return ce.toPromise(this)}emitOne(G){this._state===0&&(this._results.push(G),this._onStateChanged.fire())}emitMany(G){this._state===0&&(this._results=this._results.concat(G),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(G){this._state===0&&(this._state=2,this._error=G,this._onStateChanged.fire())}}e.AsyncIterableObject=ce;class se extends ce{constructor(G,fe){super(fe),this._source=G}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=se;function te(B){const G=new w.CancellationTokenSource,fe=B(G.token);return new se(G,async _e=>{const Ee=G.token.onCancellationRequested(()=>{Ee.dispose(),G.dispose(),_e.reject(new M.CancellationError)});try{for await(const F of fe){if(G.token.isCancellationRequested)return;_e.emitOne(F)}Ee.dispose(),G.dispose()}catch(F){Ee.dispose(),G.dispose(),_e.reject(F)}})}e.createCancelableAsyncIterable=te}),define(ye[34],Ce([1,0,19,13,33,28,17,14,16]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.patternsEquals=e.getPathTerms=e.getBasenameTerms=e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=e.getEmptyExpression=void 0;function f(){return Object.create(null)}e.getEmptyExpression=f,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const y="[/\\\\]",E="[^/\\\\]",t=/\//g;function s(pe,le){switch(pe){case 0:return"";case 1:return`${E}*?`;default:return`(?:${y}|${E}+${y}${le?`|${y}${E}+`:""})*?`}}function g(pe,le){if(!pe)return[];const re=[];let q=!1,oe=!1,ve="";for(const ce of pe){switch(ce){case le:if(!q&&!oe){re.push(ve),ve="";continue}break;case"{":q=!0;break;case"}":q=!1;break;case"[":oe=!0;break;case"]":oe=!1;break}ve+=ce}return ve&&re.push(ve),re}e.splitGlobAware=g;function C(pe){if(!pe)return"";let le="";const re=g(pe,e.GLOB_SPLIT);if(re.every(q=>q===e.GLOBSTAR))le=".*";else{let q=!1;re.forEach((oe,ve)=>{if(oe===e.GLOBSTAR){if(q)return;le+=s(2,ve===re.length-1)}else{let ce=!1,se="",te=!1,B="";for(const G of oe){if(G!=="}"&&ce){se+=G;continue}if(te&&(G!=="]"||!B)){let fe;G==="-"?fe=G:(G==="^"||G==="!")&&!B?fe="^":G===e.GLOB_SPLIT?fe="":fe=(0,p.escapeRegExpCharacters)(G),B+=fe;continue}switch(G){case"{":ce=!0;continue;case"[":te=!0;continue;case"}":{const _e=`(?:${g(se,",").map(Ee=>C(Ee)).join("|")})`;le+=_e,ce=!1,se="";break}case"]":{le+="["+B+"]",te=!1,B="";break}case"?":le+=E;continue;case"*":le+=s(1);continue;default:le+=(0,p.escapeRegExpCharacters)(G)}}ve<re.length-1&&(re[ve+1]!==e.GLOBSTAR||ve+2<re.length)&&(le+=y)}q=oe===e.GLOBSTAR})}return le}const r=/^\*\*\/\*\.[\w\.-]+$/,h=/^\*\*\/([\w\.-]+)\/?$/,o=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,b=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,P=/^\*\*((\/[\w\.-]+)+)\/?$/,T=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,n=new A.LRUCache(1e4),a=function(){return!1},l=function(){return null};function i(pe,le){if(!pe)return l;let re;typeof pe!="string"?re=pe.pattern:re=pe,re=re.trim();const q=`${re}_${!!le.trimForExclusions}`;let oe=n.get(q);if(oe)return c(oe,pe);let ve;return r.test(re)?oe=S(re.substr(4),re):(ve=h.exec(_(re,le)))?oe=k(ve[1],re):(le.trimForExclusions?b:o).test(re)?oe=m(re,le):(ve=P.exec(_(re,le)))?oe=v(ve[1].substr(1),re,!0):(ve=T.exec(_(re,le)))?oe=v(ve[1],re,!1):oe=D(re),n.set(q,oe),c(oe,pe)}function c(pe,le){if(typeof le=="string")return pe;const re=function(q,oe){return(0,d.isEqualOrParent)(q,le.base,!u.isLinux)?pe((0,p.ltrim)(q.substr(le.base.length),R.sep),oe):null};return re.allBasenames=pe.allBasenames,re.allPaths=pe.allPaths,re.basenames=pe.basenames,re.patterns=pe.patterns,re}function _(pe,le){return le.trimForExclusions&&pe.endsWith("/**")?pe.substr(0,pe.length-2):pe}function S(pe,le){return function(re,q){return typeof re=="string"&&re.endsWith(pe)?le:null}}function k(pe,le){const re=`/${pe}`,q=`\\${pe}`,oe=function(ce,se){return typeof ce!="string"?null:se?se===pe?le:null:ce===pe||ce.endsWith(re)||ce.endsWith(q)?le:null},ve=[pe];return oe.basenames=ve,oe.patterns=[le],oe.allBasenames=ve,oe}function m(pe,le){const re=X(pe.slice(1,-1).split(",").map(se=>i(se,le)).filter(se=>se!==l),pe),q=re.length;if(!q)return l;if(q===1)return re[0];const oe=function(se,te){for(let B=0,G=re.length;B<G;B++)if(re[B](se,te))return pe;return null},ve=re.find(se=>!!se.allBasenames);ve&&(oe.allBasenames=ve.allBasenames);const ce=re.reduce((se,te)=>te.allPaths?se.concat(te.allPaths):se,[]);return ce.length&&(oe.allPaths=ce),oe}function v(pe,le,re){const q=R.sep===R.posix.sep,oe=q?pe:pe.replace(t,R.sep),ve=R.sep+oe,ce=R.posix.sep+pe;let se;return re?se=function(te,B){return typeof te=="string"&&(te===oe||te.endsWith(ve)||!q&&(te===pe||te.endsWith(ce)))?le:null}:se=function(te,B){return typeof te=="string"&&(te===oe||!q&&te===pe)?le:null},se.allPaths=[(re?"*/":"./")+pe],se}function D(pe){try{const le=new RegExp(`^${C(pe)}$`);return function(re){return le.lastIndex=0,typeof re=="string"&&le.test(re)?pe:null}}catch{return l}}function L(pe,le,re){return!pe||typeof le!="string"?!1:O(pe)(le,void 0,re)}e.match=L;function O(pe,le={}){if(!pe)return a;if(typeof pe=="string"||H(pe)){const re=i(pe,le);if(re===l)return a;const q=function(oe,ve){return!!re(oe,ve)};return re.allBasenames&&(q.allBasenames=re.allBasenames),re.allPaths&&(q.allPaths=re.allPaths),q}return U(pe,le)}e.parse=O;function H(pe){const le=pe;return le?typeof le.base=="string"&&typeof le.pattern=="string":!1}e.isRelativePattern=H;function N(pe){return pe.allBasenames||[]}e.getBasenameTerms=N;function $(pe){return pe.allPaths||[]}e.getPathTerms=$;function U(pe,le){const re=X(Object.getOwnPropertyNames(pe).map(se=>x(se,pe[se],le)).filter(se=>se!==l)),q=re.length;if(!q)return l;if(!re.some(se=>!!se.requiresSiblings)){if(q===1)return re[0];const se=function(G,fe){let _e;for(let Ee=0,F=re.length;Ee<F;Ee++){const J=re[Ee](G,fe);if(typeof J=="string")return J;(0,M.isThenable)(J)&&(_e||(_e=[]),_e.push(J))}return _e?(async()=>{for(const Ee of _e){const F=await Ee;if(typeof F=="string")return F}return null})():null},te=re.find(G=>!!G.allBasenames);te&&(se.allBasenames=te.allBasenames);const B=re.reduce((G,fe)=>fe.allPaths?G.concat(fe.allPaths):G,[]);return B.length&&(se.allPaths=B),se}const oe=function(se,te,B){let G,fe;for(let _e=0,Ee=re.length;_e<Ee;_e++){const F=re[_e];F.requiresSiblings&&B&&(te||(te=(0,R.basename)(se)),G||(G=te.substr(0,te.length-(0,R.extname)(se).length)));const J=F(se,te,G,B);if(typeof J=="string")return J;(0,M.isThenable)(J)&&(fe||(fe=[]),fe.push(J))}return fe?(async()=>{for(const _e of fe){const Ee=await _e;if(typeof Ee=="string")return Ee}return null})():null},ve=re.find(se=>!!se.allBasenames);ve&&(oe.allBasenames=ve.allBasenames);const ce=re.reduce((se,te)=>te.allPaths?se.concat(te.allPaths):se,[]);return ce.length&&(oe.allPaths=ce),oe}function x(pe,le,re){if(le===!1)return l;const q=i(pe,re);if(q===l)return l;if(typeof le=="boolean")return q;if(le){const oe=le.when;if(typeof oe=="string"){const ve=(ce,se,te,B)=>{if(!B||!q(ce,se))return null;const G=oe.replace("$(basename)",()=>te),fe=B(G);return(0,M.isThenable)(fe)?fe.then(_e=>_e?pe:null):fe?pe:null};return ve.requiresSiblings=!0,ve}}return q}function X(pe,le){const re=pe.filter(se=>!!se.basenames);if(re.length<2)return pe;const q=re.reduce((se,te)=>{const B=te.basenames;return B?se.concat(B):se},[]);let oe;if(le){oe=[];for(let se=0,te=q.length;se<te;se++)oe.push(le)}else oe=re.reduce((se,te)=>{const B=te.patterns;return B?se.concat(B):se},[]);const ve=function(se,te){if(typeof se!="string")return null;if(!te){let G;for(G=se.length;G>0;G--){const fe=se.charCodeAt(G-1);if(fe===47||fe===92)break}te=se.substr(G)}const B=q.indexOf(te);return B!==-1?oe[B]:null};ve.basenames=q,ve.patterns=oe,ve.allBasenames=q;const ce=pe.filter(se=>!se.basenames);return ce.push(ve),ce}function K(pe,le){return(0,w.equals)(pe,le,(re,q)=>typeof re=="string"&&typeof q=="string"?re===q:typeof re!="string"&&typeof q!="string"?re.base===q.base&&re.pattern===q.pattern:!1)}e.patternsEquals=K}),define(ye[77],Ce([1,0,8,163,25,16,2]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseHrefAndDimensions=e.removeMarkdownEscapes=e.escapeDoubleQuotes=e.escapeMarkdownSyntaxTokens=e.markdownStringEqual=e.isMarkdownString=e.isEmptyMarkdownString=e.MarkdownString=e.MarkdownStringTextNewlineStyle=void 0;var u;(function(r){r[r.Paragraph=0]="Paragraph",r[r.Break=1]="Break"})(u||(e.MarkdownStringTextNewlineStyle=u={}));class p{constructor(h="",o=!1){if(this.value=h,typeof this.value!="string")throw(0,w.illegalArgument)("value");typeof o=="boolean"?(this.isTrusted=o,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=o.isTrusted??void 0,this.supportThemeIcons=o.supportThemeIcons??!1,this.supportHtml=o.supportHtml??!1)}appendText(h,o=0){return this.value+=t(this.supportThemeIcons?(0,M.escapeIcons)(h):h).replace(/([ \t]+)/g,(b,P)=>"&nbsp;".repeat(P.length)).replace(/\>/gm,"\\>").replace(/\n/g,o===1?`\\
`:`

`),this}appendMarkdown(h){return this.value+=h,this}appendCodeblock(h,o){return this.value+="\n```",this.value+=h,this.value+=`
`,this.value+=o,this.value+="\n```\n",this}appendLink(h,o,b){return this.value+="[",this.value+=this._escape(o,"]"),this.value+="](",this.value+=this._escape(String(h),")"),b&&(this.value+=` "${this._escape(this._escape(b,'"'),")")}"`),this.value+=")",this}_escape(h,o){const b=new RegExp((0,A.escapeRegExpCharacters)(o),"g");return h.replace(b,(P,T)=>h.charAt(T-1)!=="\\"?`\\${P}`:P)}}e.MarkdownString=p;function f(r){return y(r)?!r.value:Array.isArray(r)?r.every(f):!0}e.isEmptyMarkdownString=f;function y(r){return r instanceof p?!0:r&&typeof r=="object"?typeof r.value=="string"&&(typeof r.isTrusted=="boolean"||typeof r.isTrusted=="object"||r.isTrusted===void 0)&&(typeof r.supportThemeIcons=="boolean"||r.supportThemeIcons===void 0):!1}e.isMarkdownString=y;function E(r,h){return r===h?!0:!r||!h?!1:r.value===h.value&&r.isTrusted===h.isTrusted&&r.supportThemeIcons===h.supportThemeIcons&&r.supportHtml===h.supportHtml&&(r.baseUri===h.baseUri||!!r.baseUri&&!!h.baseUri&&(0,d.isEqual)(R.URI.from(r.baseUri),R.URI.from(h.baseUri)))}e.markdownStringEqual=E;function t(r){return r.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=t;function s(r){return r.replace(/"/g,"&quot;")}e.escapeDoubleQuotes=s;function g(r){return r&&r.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}e.removeMarkdownEscapes=g;function C(r){const h=[],o=r.split("|").map(P=>P.trim());r=o[0];const b=o[1];if(b){const P=/height=(\d+)/.exec(b),T=/width=(\d+)/.exec(b),n=P?P[1]:"",a=T?T[1]:"",l=isFinite(parseInt(a)),i=isFinite(parseInt(n));l&&h.push(`width="${a}"`),i&&h.push(`height="${n}"`)}return{href:r,dimensions:h}}e.parseHrefAndDimensions=C}),define(ye[127],Ce([1,0,19,33,17,14,25,16]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitRecentLabel=e.unmnemonicLabel=e.mnemonicButtonLabel=e.mnemonicMenuLabel=e.template=e.shorten=e.untildify=e.tildify=e.normalizeDriveLetter=e.getPathLabel=void 0;function p(i,c){const{os:_,tildify:S,relative:k}=c;if(k){const D=f(i,k,_);if(typeof D=="string")return D}let m=i.fsPath;if(_===1&&!A.isWindows?m=m.replace(/\//g,"\\"):_!==1&&A.isWindows&&(m=m.replace(/\\/g,"/")),_!==1&&S?.userHome){const D=S.userHome.fsPath;let L;i.scheme!==S.userHome.scheme&&i.path.startsWith(d.posix.sep)?L=S.userHome.with({path:i.path}).fsPath:L=i.fsPath,m=t(L,D,_)}return(_===1?d.win32:d.posix).normalize(y(m,_===1))}e.getPathLabel=p;function f(i,c,_){const S=_===1?d.win32:d.posix,k=_===3?R.extUri:R.extUriIgnorePathCase,m=c.getWorkspace(),v=(0,w.firstOrDefault)(m.folders);if(!v)return;i.scheme!==v.uri.scheme&&i.path.startsWith(d.posix.sep)&&(i=v.uri.with({path:i.path}));const D=c.getWorkspaceFolder(i);if(!D)return;let L;if(k.isEqual(D.uri,i)?L="":L=k.relativePath(D.uri,i)??"",L&&(L=S.normalize(L)),m.folders.length>1&&!c.noPrefix){const O=D.name?D.name:k.basenameOrAuthority(D.uri);L=L?`${O} \u2022 ${L}`:O}return L}function y(i,c=A.isWindows){return(0,M.hasDriveLetter)(i,c)?i.charAt(0).toUpperCase()+i.slice(1):i}e.normalizeDriveLetter=y;let E=Object.create(null);function t(i,c,_=A.OS){if(_===1||!i||!c)return i;let S=E.original===c?E.normalized:void 0;S||(S=c,A.isWindows&&(S=(0,M.toSlashes)(S)),S=`${(0,u.rtrim)(S,d.posix.sep)}${d.posix.sep}`,E={original:c,normalized:S});let k=i;return A.isWindows&&(k=(0,M.toSlashes)(k)),(_===3?k.startsWith(S):(0,u.startsWithIgnoreCase)(k,S))?`~/${k.substr(S.length)}`:i}e.tildify=t;function s(i,c){return i.replace(/^~($|\/|\\)/,`${c}$1`)}e.untildify=s;const g="\u2026",C="\\\\",r="~";function h(i,c=d.sep){const _=new Array(i.length);let S=!1;for(let k=0;k<i.length;k++){const m=i[k];if(m===""){_[k]=`.${c}`;continue}if(!m){_[k]=m;continue}S=!0;let v="",D=m;D.indexOf(C)===0?(v=D.substr(0,D.indexOf(C)+C.length),D=D.substr(D.indexOf(C)+C.length)):D.indexOf(c)===0?(v=D.substr(0,D.indexOf(c)+c.length),D=D.substr(D.indexOf(c)+c.length)):D.indexOf(r)===0&&(v=D.substr(0,D.indexOf(r)+r.length),D=D.substr(D.indexOf(r)+r.length));const L=D.split(c);for(let O=1;S&&O<=L.length;O++)for(let H=L.length-O;S&&H>=0;H--){S=!1;let N=L.slice(H,H+O).join(c);for(let $=0;!S&&$<i.length;$++)if($!==k&&i[$]&&i[$].indexOf(N)>-1){const U=H+O===L.length,x=H>0&&i[$].indexOf(c)>-1?c+N:N,X=i[$].endsWith(x);S=!U||X}if(!S){let $="";(L[0].endsWith(":")||v!=="")&&(H===1&&(H=0,O++,N=L[0]+c+N),H>0&&($=L[0]+c),$=v+$),H>0&&($=$+g+c),$=$+N,H+O<L.length&&($=$+c+g),_[k]=$}}S&&(_[k]=m)}return _}e.shorten=h;var o;(function(i){i[i.TEXT=0]="TEXT",i[i.VARIABLE=1]="VARIABLE",i[i.SEPARATOR=2]="SEPARATOR"})(o||(o={}));function b(i,c=Object.create(null)){const _=[];let S=!1,k="";for(const m of i)if(m==="$"||S&&m==="{")k&&_.push({value:k,type:o.TEXT}),k="",S=!0;else if(m==="}"&&S){const v=c[k];if(typeof v=="string")v.length&&_.push({value:v,type:o.VARIABLE});else if(v){const D=_[_.length-1];(!D||D.type!==o.SEPARATOR)&&_.push({value:v.label,type:o.SEPARATOR})}k="",S=!1}else k+=m;return k&&!S&&_.push({value:k,type:o.TEXT}),_.filter((m,v)=>{if(m.type===o.SEPARATOR){const D=_[v-1],L=_[v+1];return[D,L].every(O=>O&&(O.type===o.VARIABLE||O.type===o.TEXT)&&O.value.length>0)}return!0}).map(m=>m.value).join("")}e.template=b;function P(i,c){return A.isMacintosh||c?i.replace(/\(&&\w\)|&&/g,"").replace(/&/g,A.isMacintosh?"&":"&&"):i.replace(/&&|&/g,_=>_==="&"?"&&":"&")}e.mnemonicMenuLabel=P;function T(i,c){return A.isMacintosh||c?i.replace(/\(&&\w\)|&&/g,""):A.isWindows?i.replace(/&&|&/g,_=>_==="&"?"&&":"&"):i.replace(/&&/g,"_")}e.mnemonicButtonLabel=T;function n(i){return i.replace(/&/g,"&&")}e.unmnemonicLabel=n;function a(i){if(i.endsWith("]")){const c=i.lastIndexOf(" [",i.length-2);if(c!==-1){const _=l(i.substring(0,c));return{name:_.name,parentPath:_.parentPath+i.substring(c)}}}return l(i)}e.splitRecentLabel=a;function l(i){const c=i.indexOf("/")!==-1?d.posix:d.win32,_=c.basename(i),S=c.dirname(i);return _.length?{name:_,parentPath:S}:{name:S,parentPath:""}}}),define(ye[128],Ce([1,0,21,2]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformAndReviveIncomingURIs=e.transformIncomingURIs=e.transformOutgoingURIs=e.DefaultURITransformer=e.URITransformer=void 0;function d(E){return E.toJSON()}class A{constructor(t){this._uriTransformer=t}transformIncoming(t){const s=this._uriTransformer.transformIncoming(t);return s===t?t:d(M.URI.from(s))}transformOutgoing(t){const s=this._uriTransformer.transformOutgoing(t);return s===t?t:d(M.URI.from(s))}transformOutgoingURI(t){const s=this._uriTransformer.transformOutgoing(t);return s===t?t:M.URI.from(s)}transformOutgoingScheme(t){return this._uriTransformer.transformOutgoingScheme(t)}}e.URITransformer=A,e.DefaultURITransformer=new class{transformIncoming(E){return E}transformOutgoing(E){return E}transformOutgoingURI(E){return E}transformOutgoingScheme(E){return E}};function R(E,t,s){if(!E||s>200)return null;if(typeof E=="object"){if(E instanceof M.URI)return t.transformOutgoing(E);for(const g in E)if(Object.hasOwnProperty.call(E,g)){const C=R(E[g],t,s+1);C!==null&&(E[g]=C)}}return null}function u(E,t){const s=R(E,t,0);return s===null?E:s}e.transformOutgoingURIs=u;function p(E,t,s,g){if(!E||g>200)return null;if(typeof E=="object"){if(E.$mid===1)return s?M.URI.revive(t.transformIncoming(E)):t.transformIncoming(E);if(E instanceof w.VSBuffer)return null;for(const C in E)if(Object.hasOwnProperty.call(E,C)){const r=p(E[C],t,s,g+1);r!==null&&(E[C]=r)}}return null}function f(E,t){const s=p(E,t,!1,0);return s===null?E:s}e.transformIncomingURIs=f;function y(E,t){const s=p(E,t,!0,0);return s===null?E:s}e.transformAndReviveIncomingURIs=y}),define(ye[31],Ce([1,0,52,60,390,13,33,71,17,14,25,2]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Promises=e.writeFileSync=e.configureFlushOnWrite=e.SymlinkSupport=e.whenDeleted=e.readdirSync=e.rimrafSync=e.RimRafMode=void 0;var t;(function(x){x[x.UNLINK=0]="UNLINK",x[x.MOVE=1]="MOVE"})(t||(e.RimRafMode=t={}));async function s(x,X=t.UNLINK,K){if((0,R.isRootOrDriveLetter)(x))throw new Error("rimraf - will refuse to recursively delete root");return X===t.UNLINK?C(x):g(x,K)}async function g(x,X=(0,R.randomPath)((0,M.tmpdir)())){try{try{await w.promises.rename(x,X)}catch(K){return K.code==="ENOENT"?void 0:C(x)}C(X).catch(K=>{})}catch(K){if(K.code!=="ENOENT")throw K}}async function C(x){return(0,d.promisify)(w.rm)(x,{recursive:!0,force:!0,maxRetries:3})}function r(x){if((0,R.isRootOrDriveLetter)(x))throw new Error("rimraf - will refuse to recursively delete root");w.rmSync(x,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=r;async function h(x,X){return P(await(X?o(x):(0,d.promisify)(w.readdir)(x)))}async function o(x){try{return await(0,d.promisify)(w.readdir)(x,{withFileTypes:!0})}catch(pe){console.warn("[node.js fs] readdir with filetypes failed with error: ",pe)}const X=[],K=await h(x);for(const pe of K){let le=!1,re=!1,q=!1;try{const oe=await e.Promises.lstat((0,p.join)(x,pe));le=oe.isFile(),re=oe.isDirectory(),q=oe.isSymbolicLink()}catch(oe){console.warn("[node.js fs] unexpected error from lstat after readdir: ",oe)}X.push({name:pe,isFile:()=>le,isDirectory:()=>re,isSymbolicLink:()=>q})}return X}function b(x){return P(w.readdirSync(x))}e.readdirSync=b;function P(x){return x.map(X=>typeof X=="string"?f.isMacintosh?(0,u.normalizeNFC)(X):X:(X.name=f.isMacintosh?(0,u.normalizeNFC)(X.name):X.name,X))}async function T(x){const X=await h(x),K=[];for(const pe of X)await a.existsDirectory((0,p.join)(x,pe))&&K.push(pe);return K}function n(x,X=1e3){return new Promise(K=>{let pe=!1;const le=setInterval(()=>{pe||(pe=!0,w.access(x,re=>{pe=!1,re&&(clearInterval(le),K(void 0))}))},X)})}e.whenDeleted=n;var a;(function(x){async function X(le){let re;try{if(re=await e.Promises.lstat(le),!re.isSymbolicLink())return{stat:re}}catch{}try{return{stat:await e.Promises.stat(le),symbolicLink:re?.isSymbolicLink()?{dangling:!1}:void 0}}catch(q){if(q.code==="ENOENT"&&re)return{stat:re,symbolicLink:{dangling:!0}};if(f.isWindows&&q.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(le)),symbolicLink:{dangling:!1}}}catch(oe){if(oe.code==="ENOENT"&&re)return{stat:re,symbolicLink:{dangling:!0}};throw oe}throw q}}x.stat=X;async function K(le){try{const{stat:re,symbolicLink:q}=await x.stat(le);return re.isFile()&&q?.dangling!==!0}catch{}return!1}x.existsFile=K;async function pe(le){try{const{stat:re,symbolicLink:q}=await x.stat(le);return re.isDirectory()&&q?.dangling!==!0}catch{}return!1}x.existsDirectory=pe})(a||(e.SymlinkSupport=a={}));const l=new A.ResourceQueue;function i(x,X,K){return l.queueFor(E.URI.file(x),y.extUriBiasedIgnorePathCase).queue(()=>{const pe=m(K);return new Promise((le,re)=>S(x,X,pe,q=>q?re(q):le()))})}let c=!0;function _(x){c=x}e.configureFlushOnWrite=_;function S(x,X,K,pe){if(!c)return w.writeFile(x,X,{mode:K.mode,flag:K.flag},pe);w.open(x,K.flag,K.mode,(le,re)=>{if(le)return pe(le);w.writeFile(re,X,q=>{if(q)return w.close(re,()=>pe(q));w.fdatasync(re,oe=>(oe&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",oe),_(!1)),w.close(re,ve=>pe(ve))))})})}function k(x,X,K){const pe=m(K);if(!c)return w.writeFileSync(x,X,{mode:pe.mode,flag:pe.flag});const le=w.openSync(x,pe.flag,pe.mode);try{w.writeFileSync(le,X);try{w.fdatasyncSync(le)}catch(re){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",re),_(!1)}}finally{w.closeSync(le)}}e.writeFileSync=k;function m(x){return x?{mode:typeof x.mode=="number"?x.mode:438,flag:typeof x.flag=="string"?x.flag:"w"}:{mode:438,flag:"w"}}async function v(x,X,K=6e4){if(x!==X)try{f.isWindows&&typeof K=="number"?await D(x,X,Date.now(),K):await(0,d.promisify)(w.rename)(x,X)}catch(pe){if(x.toLowerCase()!==X.toLowerCase()&&pe.code==="EXDEV"||x.endsWith("."))await L(x,X,{preserveSymlinks:!1}),await s(x,t.MOVE);else throw pe}}async function D(x,X,K,pe,le=0){try{return await(0,d.promisify)(w.rename)(x,X)}catch(re){if(re.code!=="EACCES"&&re.code!=="EPERM"&&re.code!=="EBUSY")throw re;if(Date.now()-K>=pe)throw console.error(`[node.js fs] rename failed after ${le} retries with error: ${re}`),re;if(le===0){let q=!1;try{const{stat:oe}=await a.stat(X);oe.isFile()||(q=!0)}catch{}if(q)throw re}return await(0,A.timeout)(Math.min(100,le*10)),D(x,X,K,pe,le+1)}}async function L(x,X,K){return H(x,X,{root:{source:x,target:X},options:K,handledSourcePaths:new Set})}const O=511;async function H(x,X,K){if(K.handledSourcePaths.has(x))return;K.handledSourcePaths.add(x);const{stat:pe,symbolicLink:le}=await a.stat(x);if(le){if(K.options.preserveSymlinks)try{return await U(x,X,K)}catch(re){console.warn("[node.js fs] copy of symlink failed: ",re)}if(le.dangling)return}return pe.isDirectory()?N(x,X,pe.mode&O,K):$(x,X,pe.mode&O)}async function N(x,X,K,pe){await e.Promises.mkdir(X,{recursive:!0,mode:K});const le=await h(x);for(const re of le)await H((0,p.join)(x,re),(0,p.join)(X,re),pe)}async function $(x,X,K){await e.Promises.copyFile(x,X),await e.Promises.chmod(X,K)}async function U(x,X,K){let pe=await e.Promises.readlink(x);(0,R.isEqualOrParent)(pe,K.root.source,!f.isLinux)&&(pe=(0,p.join)(K.root.target,pe.substr(K.root.source.length+1))),await e.Promises.symlink(pe,X)}e.Promises=new class{get access(){return(0,d.promisify)(w.access)}get stat(){return(0,d.promisify)(w.stat)}get lstat(){return(0,d.promisify)(w.lstat)}get utimes(){return(0,d.promisify)(w.utimes)}get read(){return(x,X,K,pe,le)=>new Promise((re,q)=>{w.read(x,X,K,pe,le,(oe,ve,ce)=>oe?q(oe):re({bytesRead:ve,buffer:ce}))})}get readFile(){return(0,d.promisify)(w.readFile)}get write(){return(x,X,K,pe,le)=>new Promise((re,q)=>{w.write(x,X,K,pe,le,(oe,ve,ce)=>oe?q(oe):re({bytesWritten:ve,buffer:ce}))})}get appendFile(){return(0,d.promisify)(w.appendFile)}get fdatasync(){return(0,d.promisify)(w.fdatasync)}get truncate(){return(0,d.promisify)(w.truncate)}get copyFile(){return(0,d.promisify)(w.copyFile)}get open(){return(0,d.promisify)(w.open)}get close(){return(0,d.promisify)(w.close)}get symlink(){return(0,d.promisify)(w.symlink)}get readlink(){return(0,d.promisify)(w.readlink)}get chmod(){return(0,d.promisify)(w.chmod)}get mkdir(){return(0,d.promisify)(w.mkdir)}get unlink(){return(0,d.promisify)(w.unlink)}get rmdir(){return(0,d.promisify)(w.rmdir)}get realpath(){return(0,d.promisify)(w.realpath)}async exists(x){try{return await e.Promises.access(x),!0}catch{return!1}}get readdir(){return h}get readDirsInDir(){return T}get writeFile(){return i}get rm(){return s}get rename(){return v}get copy(){return L}}}),define(ye[98],Ce([1,0,52,17,14,16,31]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.realpathSync=e.realpath=e.realcase=e.realcaseSync=void 0;function u(t){if(d.isLinux)return t;const s=(0,M.dirname)(t);if(t===s)return t;const g=((0,M.basename)(t)||t).toLowerCase();try{const r=(0,R.readdirSync)(s).filter(h=>h.toLowerCase()===g);if(r.length===1){const h=u(s);if(h)return(0,M.join)(h,r[0])}else if(r.length>1){const h=r.indexOf(g);if(h>=0){const o=u(s);if(o)return(0,M.join)(o,r[h])}}}catch{}return null}e.realcaseSync=u;async function p(t){if(d.isLinux)return t;const s=(0,M.dirname)(t);if(t===s)return t;const g=((0,M.basename)(t)||t).toLowerCase();try{const r=(await R.Promises.readdir(s)).filter(h=>h.toLowerCase()===g);if(r.length===1){const h=await p(s);if(h)return(0,M.join)(h,r[0])}else if(r.length>1){const h=r.indexOf(g);if(h>=0){const o=await p(s);if(o)return(0,M.join)(o,r[h])}}}catch{}return null}e.realcase=p;async function f(t){try{return await R.Promises.realpath(t)}catch{const g=E(t);return await R.Promises.access(g,w.constants.R_OK),g}}e.realpath=f;function y(t){try{return w.realpathSync(t)}catch{const g=E(t);return w.accessSync(g,w.constants.R_OK),g}}e.realpathSync=y;function E(t){return(0,A.rtrim)((0,M.normalize)(t),M.sep)}}),define(ye[129],Ce([1,0,17,14,44,126,18,31]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.win32=e.createQueuedSender=e.getWindowsShell=e.TerminateResponseCode=e.Source=void 0,Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return A.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return A.TerminateResponseCode}});function p(E=d.env){return E.comspec||"cmd.exe"}e.getWindowsShell=p;function f(E){let t=[],s=!1;const g=function(C){if(s){t.push(C);return}(!E.send(C,h=>{if(h&&console.error(h),s=!1,t.length>0){const o=t.slice(0);t=[],o.forEach(b=>g(b))}})||M.isWindows)&&(s=!0)};return{send:g}}e.createQueuedSender=f;var y;(function(E){async function t(s,g,C){if(w.isAbsolute(s))return s;if(g===void 0&&(g=d.cwd()),w.dirname(s)!=="."||(C===void 0&&R.isString(d.env.PATH)&&(C=d.env.PATH.split(w.delimiter)),C===void 0||C.length===0))return w.join(g,s);async function h(o){if(await u.Promises.exists(o)){let b;try{b=await u.Promises.stat(o)}catch(P){P.message.startsWith("EACCES")&&(b=await u.Promises.lstat(o))}return b?!b.isDirectory():!1}return!1}for(const o of C){let b;if(w.isAbsolute(o)?b=w.join(o,s):b=w.join(g,o,s),await h(b))return b;let P=b+".com";if(await h(P)||(P=b+".exe",await h(P)))return P}return w.join(g,s)}E.findExecutable=t})(y||(e.win32=y={}))});var je=this&&this.__decorate||function(ge,e,w,M){var d=arguments.length,A=d<3?e:M===null?M=Object.getOwnPropertyDescriptor(e,w):M,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(ge,e,w,M);else for(var u=ge.length-1;u>=0;u--)(R=ge[u])&&(A=(d<3?R(A):d>3?R(e,w,A):R(e,w))||A);return d>3&&A&&Object.defineProperty(e,w,A),A};define(ye[78],Ce([1,0,19,13,21,22,68,8,4,5,76,16,18]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPCLogger=e.ProxyChannel=e.StaticRouter=e.getNextTickChannel=e.getDelayedChannel=e.IPCClient=e.IPCServer=e.ChannelClient=e.RequestInitiator=e.ChannelServer=e.deserialize=e.serialize=e.BufferWriter=e.BufferReader=void 0;var s;(function(le){le[le.Promise=100]="Promise",le[le.PromiseCancel=101]="PromiseCancel",le[le.EventListen=102]="EventListen",le[le.EventDispose=103]="EventDispose"})(s||(s={}));function g(le){switch(le){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var C;(function(le){le[le.Initialize=200]="Initialize",le[le.PromiseSuccess=201]="PromiseSuccess",le[le.PromiseError=202]="PromiseError",le[le.PromiseErrorObj=203]="PromiseErrorObj",le[le.EventFire=204]="EventFire"})(C||(C={}));function r(le){switch(le){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}var h;(function(le){le[le.Uninitialized=0]="Uninitialized",le[le.Idle=1]="Idle"})(h||(h={}));function o(le){let re=0;for(let q=0;;q+=7){const oe=le.read(1);if(re|=(oe.buffer[0]&127)<<q,!(oe.buffer[0]&128))return re}}const b=l(0);function P(le,re){if(re===0){le.write(b);return}let q=0;for(let ve=re;ve!==0;ve=ve>>>7)q++;const oe=d.VSBuffer.alloc(q);for(let ve=0;re!==0;ve++)oe.buffer[ve]=re&127,re=re>>>7,re>0&&(oe.buffer[ve]|=128);le.write(oe)}class T{constructor(re){this.buffer=re,this.pos=0}read(re){const q=this.buffer.slice(this.pos,this.pos+re);return this.pos+=q.byteLength,q}}e.BufferReader=T;class n{constructor(){this.buffers=[]}get buffer(){return d.VSBuffer.concat(this.buffers)}write(re){this.buffers.push(re)}}e.BufferWriter=n;var a;(function(le){le[le.Undefined=0]="Undefined",le[le.String=1]="String",le[le.Buffer=2]="Buffer",le[le.VSBuffer=3]="VSBuffer",le[le.Array=4]="Array",le[le.Object=5]="Object",le[le.Int=6]="Int"})(a||(a={}));function l(le){const re=d.VSBuffer.alloc(1);return re.writeUInt8(le,0),re}const i={Undefined:l(a.Undefined),String:l(a.String),Buffer:l(a.Buffer),VSBuffer:l(a.VSBuffer),Array:l(a.Array),Object:l(a.Object),Uint:l(a.Int)},c=typeof Buffer<"u";function _(le,re){if(typeof re>"u")le.write(i.Undefined);else if(typeof re=="string"){const q=d.VSBuffer.fromString(re);le.write(i.String),P(le,q.byteLength),le.write(q)}else if(c&&Buffer.isBuffer(re)){const q=d.VSBuffer.wrap(re);le.write(i.Buffer),P(le,q.byteLength),le.write(q)}else if(re instanceof d.VSBuffer)le.write(i.VSBuffer),P(le,re.byteLength),le.write(re);else if(Array.isArray(re)){le.write(i.Array),P(le,re.length);for(const q of re)_(le,q)}else if(typeof re=="number"&&(re|0)===re)le.write(i.Uint),P(le,re);else{const q=d.VSBuffer.fromString(JSON.stringify(re));le.write(i.Object),P(le,q.byteLength),le.write(q)}}e.serialize=_;function S(le){switch(le.read(1).readUInt8(0)){case a.Undefined:return;case a.String:return le.read(o(le)).toString();case a.Buffer:return le.read(o(le)).buffer;case a.VSBuffer:return le.read(o(le));case a.Array:{const q=o(le),oe=[];for(let ve=0;ve<q;ve++)oe.push(S(le));return oe}case a.Object:return JSON.parse(le.read(o(le)).toString());case a.Int:return o(le)}}e.deserialize=S;class k{constructor(re,q,oe=null,ve=1e3){this.protocol=re,this.ctx=q,this.logger=oe,this.timeoutDelay=ve,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(ce=>this.onRawMessage(ce)),this.sendResponse({type:200})}registerChannel(re,q){this.channels.set(re,q),setTimeout(()=>this.flushPendingRequests(re),0)}sendResponse(re){switch(re.type){case 200:{const q=this.send([re.type]);this.logger?.logOutgoing(q,0,1,r(re.type));return}case 201:case 202:case 204:case 203:{const q=this.send([re.type,re.id],re.data);this.logger?.logOutgoing(q,re.id,1,r(re.type),re.data);return}}}send(re,q=void 0){const oe=new n;return _(oe,re),_(oe,q),this.sendBuffer(oe.buffer)}sendBuffer(re){try{return this.protocol.send(re),re.byteLength}catch{return 0}}onRawMessage(re){const q=new T(re),oe=S(q),ve=S(q),ce=oe[0];switch(ce){case 100:return this.logger?.logIncoming(re.byteLength,oe[1],1,`${g(ce)}: ${oe[2]}.${oe[3]}`,ve),this.onPromise({type:ce,id:oe[1],channelName:oe[2],name:oe[3],arg:ve});case 102:return this.logger?.logIncoming(re.byteLength,oe[1],1,`${g(ce)}: ${oe[2]}.${oe[3]}`,ve),this.onEventListen({type:ce,id:oe[1],channelName:oe[2],name:oe[3],arg:ve});case 101:return this.logger?.logIncoming(re.byteLength,oe[1],1,`${g(ce)}`),this.disposeActiveRequest({type:ce,id:oe[1]});case 103:return this.logger?.logIncoming(re.byteLength,oe[1],1,`${g(ce)}`),this.disposeActiveRequest({type:ce,id:oe[1]})}}onPromise(re){const q=this.channels.get(re.channelName);if(!q){this.collectPendingRequest(re);return}const oe=new A.CancellationTokenSource;let ve;try{ve=q.call(this.ctx,re.name,re.arg,oe.token)}catch(te){ve=Promise.reject(te)}const ce=re.id;ve.then(te=>{this.sendResponse({id:ce,data:te,type:201}),this.activeRequests.delete(re.id)},te=>{te instanceof Error?this.sendResponse({id:ce,data:{message:te.message,name:te.name,stack:te.stack?te.stack.split?te.stack.split(`
`):te.stack:void 0},type:202}):this.sendResponse({id:ce,data:te,type:203}),this.activeRequests.delete(re.id)});const se=(0,f.toDisposable)(()=>oe.cancel());this.activeRequests.set(re.id,se)}onEventListen(re){const q=this.channels.get(re.channelName);if(!q){this.collectPendingRequest(re);return}const oe=re.id,ce=q.listen(this.ctx,re.name,re.arg)(se=>this.sendResponse({id:oe,data:se,type:204}));this.activeRequests.set(re.id,ce)}disposeActiveRequest(re){const q=this.activeRequests.get(re.id);q&&(q.dispose(),this.activeRequests.delete(re.id))}collectPendingRequest(re){let q=this.pendingRequests.get(re.channelName);q||(q=[],this.pendingRequests.set(re.channelName,q));const oe=setTimeout(()=>{console.error(`Unknown channel: ${re.channelName}`),re.type===100&&this.sendResponse({id:re.id,data:{name:"Unknown channel",message:`Channel name '${re.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);q.push({request:re,timeoutTimer:oe})}flushPendingRequests(re){const q=this.pendingRequests.get(re);if(q){for(const oe of q)switch(clearTimeout(oe.timeoutTimer),oe.request.type){case 100:this.onPromise(oe.request);break;case 102:this.onEventListen(oe.request);break}this.pendingRequests.delete(re)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,f.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=k;var m;(function(le){le[le.LocalSide=0]="LocalSide",le[le.OtherSide=1]="OtherSide"})(m||(e.RequestInitiator=m={}));class v{constructor(re,q=null){this.protocol=re,this.isDisposed=!1,this.state=h.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new p.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(oe=>this.onBuffer(oe)),this.logger=q}getChannel(re){const q=this;return{call(oe,ve,ce){return q.isDisposed?Promise.reject(new u.CancellationError):q.requestPromise(re,oe,ve,ce)},listen(oe,ve){return q.isDisposed?p.Event.None:q.requestEvent(re,oe,ve)}}}requestPromise(re,q,oe,ve=A.CancellationToken.None){const ce=this.lastRequestId++,te={id:ce,type:100,channelName:re,name:q,arg:oe};if(ve.isCancellationRequested)return Promise.reject(new u.CancellationError);let B;return new Promise((fe,_e)=>{if(ve.isCancellationRequested)return _e(new u.CancellationError);const Ee=()=>{const V=j=>{switch(j.type){case 201:this.handlers.delete(ce),fe(j.data);break;case 202:{this.handlers.delete(ce);const Z=new Error(j.data.message);Z.stack=Array.isArray(j.data.stack)?j.data.stack.join(`
`):j.data.stack,Z.name=j.data.name,_e(Z);break}case 203:this.handlers.delete(ce),_e(j.data);break}};this.handlers.set(ce,V),this.sendRequest(te)};let F=null;this.state===h.Idle?Ee():(F=(0,M.createCancelablePromise)(V=>this.whenInitialized()),F.then(()=>{F=null,Ee()}));const J=()=>{F?(F.cancel(),F=null):this.sendRequest({id:ce,type:101}),_e(new u.CancellationError)},I=ve.onCancellationRequested(J);B=(0,f.combinedDisposable)((0,f.toDisposable)(J),I),this.activeRequests.add(B)}).finally(()=>{this.activeRequests.delete(B)})}requestEvent(re,q,oe){const ve=this.lastRequestId++,se={id:ve,type:102,channelName:re,name:q,arg:oe};let te=null;const B=new p.Emitter({onWillAddFirstListener:()=>{te=(0,M.createCancelablePromise)(fe=>this.whenInitialized()),te.then(()=>{te=null,this.activeRequests.add(B),this.sendRequest(se)})},onDidRemoveLastListener:()=>{te?(te.cancel(),te=null):(this.activeRequests.delete(B),this.sendRequest({id:ve,type:103}))}}),G=fe=>B.fire(fe.data);return this.handlers.set(ve,G),B.event}sendRequest(re){switch(re.type){case 100:case 102:{const q=this.send([re.type,re.id,re.channelName,re.name],re.arg);this.logger?.logOutgoing(q,re.id,0,`${g(re.type)}: ${re.channelName}.${re.name}`,re.arg);return}case 101:case 103:{const q=this.send([re.type,re.id]);this.logger?.logOutgoing(q,re.id,0,g(re.type));return}}}send(re,q=void 0){const oe=new n;return _(oe,re),_(oe,q),this.sendBuffer(oe.buffer)}sendBuffer(re){try{return this.protocol.send(re),re.byteLength}catch{return 0}}onBuffer(re){const q=new T(re),oe=S(q),ve=S(q),ce=oe[0];switch(ce){case 200:return this.logger?.logIncoming(re.byteLength,0,0,r(ce)),this.onResponse({type:oe[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(re.byteLength,oe[1],0,r(ce),ve),this.onResponse({type:oe[0],id:oe[1],data:ve})}}onResponse(re){if(re.type===200){this.state=h.Idle,this._onDidInitialize.fire();return}this.handlers.get(re.id)?.(re)}get onDidInitializePromise(){return p.Event.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===h.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,f.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelClient=v,je([R.memoize],v.prototype,"onDidInitializePromise",null);class D{get connections(){const re=[];return this._connections.forEach(q=>re.push(q)),re}constructor(re){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new p.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new p.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,re(({protocol:q,onDidClientDisconnect:oe})=>{p.Event.once(q.onMessage)(ce=>{const se=new T(ce),te=S(se),B=new k(q,te),G=new v(q);this.channels.forEach((_e,Ee)=>B.registerChannel(Ee,_e));const fe={channelServer:B,channelClient:G,ctx:te};this._connections.add(fe),this._onDidAddConnection.fire(fe),oe(()=>{B.dispose(),G.dispose(),this._connections.delete(fe),this._onDidRemoveConnection.fire(fe)})})})}getChannel(re,q){const oe=this;return{call(ve,ce,se){let te;if((0,t.isFunction)(q)){const G=(0,w.getRandomElement)(oe.connections.filter(q));te=G?Promise.resolve(G):p.Event.toPromise(p.Event.filter(oe.onDidAddConnection,q))}else te=q.routeCall(oe,ve,ce);const B=te.then(G=>G.channelClient.getChannel(re));return O(B).call(ve,ce,se)},listen(ve,ce){if((0,t.isFunction)(q))return oe.getMulticastEvent(re,q,ve,ce);const se=q.routeEvent(oe,ve,ce).then(te=>te.channelClient.getChannel(re));return O(se).listen(ve,ce)}}}getMulticastEvent(re,q,oe,ve){const ce=this;let se=new f.DisposableStore;const te=new p.Emitter({onWillAddFirstListener:()=>{se=new f.DisposableStore;const B=new p.EventMultiplexer,G=new Map,fe=Ee=>{const J=Ee.channelClient.getChannel(re).listen(oe,ve),I=B.add(J);G.set(Ee,I)},_e=Ee=>{const F=G.get(Ee);F&&(F.dispose(),G.delete(Ee))};ce.connections.filter(q).forEach(fe),p.Event.filter(ce.onDidAddConnection,q)(fe,void 0,se),ce.onDidRemoveConnection(_e,void 0,se),B.event(te.fire,te,se),se.add(B)},onDidRemoveLastListener:()=>{se.dispose()}});return te.event}registerChannel(re,q){this.channels.set(re,q),this._connections.forEach(oe=>{oe.channelServer.registerChannel(re,q)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=D;class L{constructor(re,q,oe=null){const ve=new n;_(ve,q),re.send(ve.buffer),this.channelClient=new v(re,oe),this.channelServer=new k(re,q,oe)}getChannel(re){return this.channelClient.getChannel(re)}registerChannel(re,q){this.channelServer.registerChannel(re,q)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=L;function O(le){return{call(re,q,oe){return le.then(ve=>ve.call(re,q,oe))},listen(re,q){const oe=new p.Relay;return le.then(ve=>oe.input=ve.listen(re,q)),oe.event}}}e.getDelayedChannel=O;function H(le){let re=!1;return{call(q,oe,ve){return re?le.call(q,oe,ve):(0,M.timeout)(0).then(()=>re=!0).then(()=>le.call(q,oe,ve))},listen(q,oe){if(re)return le.listen(q,oe);const ve=new p.Relay;return(0,M.timeout)(0).then(()=>re=!0).then(()=>ve.input=le.listen(q,oe)),ve.event}}}e.getNextTickChannel=H;class N{constructor(re){this.fn=re}routeCall(re){return this.route(re)}routeEvent(re){return this.route(re)}async route(re){for(const q of re.connections)if(await Promise.resolve(this.fn(q.ctx)))return Promise.resolve(q);return await p.Event.toPromise(re.onDidAddConnection),await this.route(re)}}e.StaticRouter=N;var $;(function(le){function re(ce,se){const te=ce,B=se&&se.disableMarshalling,G=new Map;for(const fe in te)oe(fe)&&G.set(fe,p.Event.buffer(te[fe],!0));return new class{listen(fe,_e,Ee){const F=G.get(_e);if(F)return F;if(ve(_e)){const J=te[_e];if(typeof J=="function")return J.call(te,Ee)}throw new u.ErrorNoTelemetry(`Event not found: ${_e}`)}call(fe,_e,Ee){const F=te[_e];if(typeof F=="function"){if(!B&&Array.isArray(Ee))for(let J=0;J<Ee.length;J++)Ee[J]=(0,y.revive)(Ee[J]);return F.apply(te,Ee)}throw new u.ErrorNoTelemetry(`Method not found: ${_e}`)}}}le.fromService=re;function q(ce,se){const te=se&&se.disableMarshalling;return new Proxy({},{get(B,G){if(typeof G=="string")return se?.properties?.has(G)?se.properties.get(G):ve(G)?function(fe){return ce.listen(G,fe)}:oe(G)?ce.listen(G):async function(...fe){let _e;se&&!(0,t.isUndefinedOrNull)(se.context)?_e=[se.context,...fe]:_e=fe;const Ee=await ce.call(G,_e);return te?Ee:(0,y.revive)(Ee)};throw new u.ErrorNoTelemetry(`Property not found: ${String(G)}`)}})}le.toService=q;function oe(ce){return ce[0]==="o"&&ce[1]==="n"&&E.isUpperAsciiLetter(ce.charCodeAt(2))}function ve(ce){return/^onDynamic/.test(ce)&&E.isUpperAsciiLetter(ce.charCodeAt(9))}})($||(e.ProxyChannel=$={}));const U=[["#2977B1","#FC802D","#34A13A","#D3282F","#9366BA"],["#8B564C","#E177C0","#7F7F7F","#BBBE3D","#2EBECD"]];function x(le){if(Array.isArray(le))return le;if(le&&typeof le=="object"&&typeof le.toString=="function"){const re=le.toString();if(re!=="[object Object]")return re}return le}function X(le){return Array.isArray(le)?le.map(x):x(le)}function K(le,re,q,oe,ve,ce,se){se=X(se);const te=U[ve],B=te[oe%te.length];let G=[`%c[${le}]%c[${String(re).padStart(7," ")}]%c[len: ${String(q).padStart(5," ")}]%c${String(oe).padStart(5," ")} - ${ce}`,"color: darkgreen","color: grey","color: grey",`color: ${B}`];/\($/.test(ce)?(G=G.concat(se),G.push(")")):G.push(se),console.log.apply(console,G)}class pe{constructor(re,q){this._outgoingPrefix=re,this._incomingPrefix=q,this._totalIncoming=0,this._totalOutgoing=0}logOutgoing(re,q,oe,ve,ce){this._totalOutgoing+=re,K(this._outgoingPrefix,this._totalOutgoing,re,q,oe,ve,ce)}logIncoming(re,q,oe,ve,ce){this._totalIncoming+=re,K(this._incomingPrefix,this._totalIncoming,re,q,oe,ve,ce)}}e.IPCLogger=pe}),define(ye[79],Ce([1,0,21,4,5,78]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PersistentProtocol=e.BufferedEmitter=e.Client=e.Protocol=e.ProtocolConstants=e.ChunkStream=e.SocketCloseEventType=e.SocketDiagnostics=e.SocketDiagnosticsEventType=void 0;var R;(function(i){i.Created="created",i.Read="read",i.Write="write",i.Open="open",i.Error="error",i.Close="close",i.BrowserWebSocketBlobReceived="browserWebSocketBlobReceived",i.NodeEndReceived="nodeEndReceived",i.NodeEndSent="nodeEndSent",i.NodeDrainBegin="nodeDrainBegin",i.NodeDrainEnd="nodeDrainEnd",i.zlibInflateError="zlibInflateError",i.zlibInflateData="zlibInflateData",i.zlibInflateInitialWrite="zlibInflateInitialWrite",i.zlibInflateInitialFlushFired="zlibInflateInitialFlushFired",i.zlibInflateWrite="zlibInflateWrite",i.zlibInflateFlushFired="zlibInflateFlushFired",i.zlibDeflateError="zlibDeflateError",i.zlibDeflateData="zlibDeflateData",i.zlibDeflateWrite="zlibDeflateWrite",i.zlibDeflateFlushFired="zlibDeflateFlushFired",i.WebSocketNodeSocketWrite="webSocketNodeSocketWrite",i.WebSocketNodeSocketPeekedHeader="webSocketNodeSocketPeekedHeader",i.WebSocketNodeSocketReadHeader="webSocketNodeSocketReadHeader",i.WebSocketNodeSocketReadData="webSocketNodeSocketReadData",i.WebSocketNodeSocketUnmaskedData="webSocketNodeSocketUnmaskedData",i.WebSocketNodeSocketDrainBegin="webSocketNodeSocketDrainBegin",i.WebSocketNodeSocketDrainEnd="webSocketNodeSocketDrainEnd",i.ProtocolHeaderRead="protocolHeaderRead",i.ProtocolMessageRead="protocolMessageRead",i.ProtocolHeaderWrite="protocolHeaderWrite",i.ProtocolMessageWrite="protocolMessageWrite",i.ProtocolWrite="protocolWrite"})(R||(e.SocketDiagnosticsEventType=R={}));var u;(function(i){i.enableDiagnostics=!1,i.records=[];const c=new WeakMap;let _=0;function S(m,v){if(!c.has(m)){const D=String(++_);c.set(m,D)}return c.get(m)}function k(m,v,D,L){if(!i.enableDiagnostics)return;const O=S(m,v);if(L instanceof w.VSBuffer||L instanceof Uint8Array||L instanceof ArrayBuffer||ArrayBuffer.isView(L)){const H=w.VSBuffer.alloc(L.byteLength);H.set(L),i.records.push({timestamp:Date.now(),id:O,label:v,type:D,buff:H})}else i.records.push({timestamp:Date.now(),id:O,label:v,type:D,data:L})}i.traceSocketEvent=k})(u||(e.SocketDiagnostics=u={}));var p;(function(i){i[i.NodeSocketCloseEvent=0]="NodeSocketCloseEvent",i[i.WebSocketCloseEvent=1]="WebSocketCloseEvent"})(p||(e.SocketCloseEventType=p={}));let f=null;function y(){return f||(f=w.VSBuffer.alloc(0)),f}class E{get byteLength(){return this._totalLength}constructor(){this._chunks=[],this._totalLength=0}acceptChunk(c){this._chunks.push(c),this._totalLength+=c.byteLength}read(c){return this._read(c,!0)}peek(c){return this._read(c,!1)}_read(c,_){if(c===0)return y();if(c>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===c){const v=this._chunks[0];return _&&(this._chunks.shift(),this._totalLength-=c),v}if(this._chunks[0].byteLength>c){const v=this._chunks[0].slice(0,c);return _&&(this._chunks[0]=this._chunks[0].slice(c),this._totalLength-=c),v}const S=w.VSBuffer.alloc(c);let k=0,m=0;for(;c>0;){const v=this._chunks[m];if(v.byteLength>c){const D=v.slice(0,c);S.set(D,k),k+=c,_&&(this._chunks[m]=v.slice(c),this._totalLength-=c),c-=c}else S.set(v,k),k+=v.byteLength,_?(this._chunks.shift(),this._totalLength-=v.byteLength):m++,c-=v.byteLength}return S}}e.ChunkStream=E;var t;(function(i){i[i.None=0]="None",i[i.Regular=1]="Regular",i[i.Control=2]="Control",i[i.Ack=3]="Ack",i[i.Disconnect=5]="Disconnect",i[i.ReplayRequest=6]="ReplayRequest",i[i.Pause=7]="Pause",i[i.Resume=8]="Resume",i[i.KeepAlive=9]="KeepAlive"})(t||(t={}));function s(i){switch(i){case 0:return"None";case 1:return"Regular";case 2:return"Control";case 3:return"Ack";case 5:return"Disconnect";case 6:return"ReplayRequest";case 7:return"PauseWriting";case 8:return"ResumeWriting";case 9:return"KeepAlive"}}var g;(function(i){i[i.HeaderLength=13]="HeaderLength",i[i.AcknowledgeTime=2e3]="AcknowledgeTime",i[i.TimeoutTime=2e4]="TimeoutTime",i[i.ReconnectionGraceTime=108e5]="ReconnectionGraceTime",i[i.ReconnectionShortGraceTime=3e5]="ReconnectionShortGraceTime",i[i.KeepAliveSendTime=5e3]="KeepAliveSendTime"})(g||(e.ProtocolConstants=g={}));class C{constructor(c,_,S,k){this.type=c,this.id=_,this.ack=S,this.data=k,this.writtenTime=0}get size(){return this.data.byteLength}}class r extends d.Disposable{constructor(c){super(),this._onMessage=this._register(new M.Emitter),this.onMessage=this._onMessage.event,this._state={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this._socket=c,this._isDisposed=!1,this._incomingData=new E,this._register(this._socket.onData(_=>this.acceptChunk(_))),this.lastReadTime=Date.now()}acceptChunk(c){if(!(!c||c.byteLength===0))for(this.lastReadTime=Date.now(),this._incomingData.acceptChunk(c);this._incomingData.byteLength>=this._state.readLen;){const _=this._incomingData.read(this._state.readLen);if(this._state.readHead)this._state.readHead=!1,this._state.readLen=_.readUInt32BE(9),this._state.messageType=_.readUInt8(0),this._state.id=_.readUInt32BE(1),this._state.ack=_.readUInt32BE(5),this._socket.traceSocketEvent("protocolHeaderRead",{messageType:s(this._state.messageType),id:this._state.id,ack:this._state.ack,messageSize:this._state.readLen});else{const S=this._state.messageType,k=this._state.id,m=this._state.ack;if(this._state.readHead=!0,this._state.readLen=13,this._state.messageType=0,this._state.id=0,this._state.ack=0,this._socket.traceSocketEvent("protocolMessageRead",_),this._onMessage.fire(new C(S,k,m,_)),this._isDisposed)break}}}readEntireBuffer(){return this._incomingData.read(this._incomingData.byteLength)}dispose(){this._isDisposed=!0,super.dispose()}}class h{constructor(c){this._writeNowTimeout=null,this._isDisposed=!1,this._isPaused=!1,this._socket=c,this._data=[],this._totalLength=0,this.lastWriteTime=0}dispose(){try{this.flush()}catch{}this._isDisposed=!0}drain(){return this.flush(),this._socket.drain()}flush(){this._writeNow()}pause(){this._isPaused=!0}resume(){this._isPaused=!1,this._scheduleWriting()}write(c){if(this._isDisposed)return;c.writtenTime=Date.now(),this.lastWriteTime=Date.now();const _=w.VSBuffer.alloc(13);_.writeUInt8(c.type,0),_.writeUInt32BE(c.id,1),_.writeUInt32BE(c.ack,5),_.writeUInt32BE(c.data.byteLength,9),this._socket.traceSocketEvent("protocolHeaderWrite",{messageType:s(c.type),id:c.id,ack:c.ack,messageSize:c.data.byteLength}),this._socket.traceSocketEvent("protocolMessageWrite",c.data),this._writeSoon(_,c.data)}_bufferAdd(c,_){const S=this._totalLength===0;return this._data.push(c,_),this._totalLength+=c.byteLength+_.byteLength,S}_bufferTake(){const c=w.VSBuffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,c}_writeSoon(c,_){this._bufferAdd(c,_)&&this._scheduleWriting()}_scheduleWriting(){this._writeNowTimeout||(this._writeNowTimeout=setTimeout(()=>{this._writeNowTimeout=null,this._writeNow()}))}_writeNow(){if(this._totalLength===0||this._isPaused)return;const c=this._bufferTake();this._socket.traceSocketEvent("protocolWrite",{byteLength:c.byteLength}),this._socket.write(c)}}class o extends d.Disposable{constructor(c){super(),this._onMessage=new M.Emitter,this.onMessage=this._onMessage.event,this._onDidDispose=new M.Emitter,this.onDidDispose=this._onDidDispose.event,this._socket=c,this._socketWriter=this._register(new h(this._socket)),this._socketReader=this._register(new r(this._socket)),this._register(this._socketReader.onMessage(_=>{_.type===1&&this._onMessage.fire(_.data)})),this._register(this._socket.onClose(()=>this._onDidDispose.fire()))}drain(){return this._socketWriter.drain()}getSocket(){return this._socket}sendDisconnect(){}send(c){this._socketWriter.write(new C(1,0,0,c))}}e.Protocol=o;class b extends A.IPCClient{static fromSocket(c,_){return new b(new o(c),_)}get onDidDispose(){return this.protocol.onDidDispose}constructor(c,_,S=null){super(c,_,S),this.protocol=c}dispose(){super.dispose();const c=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),c.end()}}e.Client=b;class P{constructor(){this._hasListeners=!1,this._isDeliveringMessages=!1,this._bufferedMessages=[],this._emitter=new M.Emitter({onWillAddFirstListener:()=>{this._hasListeners=!0,queueMicrotask(()=>this._deliverMessages())},onDidRemoveLastListener:()=>{this._hasListeners=!1}}),this.event=this._emitter.event}_deliverMessages(){if(!this._isDeliveringMessages){for(this._isDeliveringMessages=!0;this._hasListeners&&this._bufferedMessages.length>0;)this._emitter.fire(this._bufferedMessages.shift());this._isDeliveringMessages=!1}}fire(c){this._hasListeners?this._bufferedMessages.length>0?this._bufferedMessages.push(c):this._emitter.fire(c):this._bufferedMessages.push(c)}flushBuffer(){this._bufferedMessages=[]}}e.BufferedEmitter=P;class T{constructor(c){this.data=c,this.next=null}}class n{constructor(){this._first=null,this._last=null}length(){let c=0,_=this._first;for(;_;)_=_.next,c++;return c}peek(){return this._first?this._first.data:null}toArray(){const c=[];let _=0,S=this._first;for(;S;)c[_++]=S.data,S=S.next;return c}pop(){if(this._first){if(this._first===this._last){this._first=null,this._last=null;return}this._first=this._first.next}}push(c){const _=new T(c);if(!this._first){this._first=_,this._last=_;return}this._last.next=_,this._last=_}}class a{static{this._HISTORY_LENGTH=10}static{this._INSTANCE=null}static getInstance(){return a._INSTANCE||(a._INSTANCE=new a),a._INSTANCE}constructor(){this.lastRuns=[];const c=Date.now();for(let _=0;_<a._HISTORY_LENGTH;_++)this.lastRuns[_]=c-1e3*_;setInterval(()=>{for(let _=a._HISTORY_LENGTH;_>=1;_--)this.lastRuns[_]=this.lastRuns[_-1];this.lastRuns[0]=Date.now()},1e3)}load(){const c=Date.now(),_=(1+a._HISTORY_LENGTH)*1e3;let S=0;for(let k=0;k<a._HISTORY_LENGTH;k++)c-this.lastRuns[k]<=_&&S++;return 1-S/a._HISTORY_LENGTH}hasHighLoad(){return this.load()>=.5}}class l{get unacknowledgedCount(){return this._outgoingMsgId-this._outgoingAckId}constructor(c){this._onControlMessage=new P,this.onControlMessage=this._onControlMessage.event,this._onMessage=new P,this.onMessage=this._onMessage.event,this._onDidDispose=new P,this.onDidDispose=this._onDidDispose.event,this._onSocketClose=new P,this.onSocketClose=this._onSocketClose.event,this._onSocketTimeout=new P,this.onSocketTimeout=this._onSocketTimeout.event,this._loadEstimator=c.loadEstimator??a.getInstance(),this._shouldSendKeepAlive=c.sendKeepAlive??!0,this._isReconnecting=!1,this._outgoingUnackMsg=new n,this._outgoingMsgId=0,this._outgoingAckId=0,this._outgoingAckTimeout=null,this._incomingMsgId=0,this._incomingAckId=0,this._incomingMsgLastTime=0,this._incomingAckTimeout=null,this._lastReplayRequestTime=0,this._lastSocketTimeoutTime=Date.now(),this._socketDisposables=new d.DisposableStore,this._socket=c.socket,this._socketWriter=this._socketDisposables.add(new h(this._socket)),this._socketReader=this._socketDisposables.add(new r(this._socket)),this._socketDisposables.add(this._socketReader.onMessage(_=>this._receiveMessage(_))),this._socketDisposables.add(this._socket.onClose(_=>this._onSocketClose.fire(_))),c.initialChunk&&this._socketReader.acceptChunk(c.initialChunk),this._shouldSendKeepAlive?this._keepAliveInterval=setInterval(()=>{this._sendKeepAlive()},5e3):this._keepAliveInterval=null}dispose(){this._outgoingAckTimeout&&(clearTimeout(this._outgoingAckTimeout),this._outgoingAckTimeout=null),this._incomingAckTimeout&&(clearTimeout(this._incomingAckTimeout),this._incomingAckTimeout=null),this._keepAliveInterval&&(clearInterval(this._keepAliveInterval),this._keepAliveInterval=null),this._socketDisposables.dispose()}drain(){return this._socketWriter.drain()}sendDisconnect(){const c=new C(5,0,0,y());this._socketWriter.write(c),this._socketWriter.flush()}sendPause(){const c=new C(7,0,0,y());this._socketWriter.write(c)}sendResume(){const c=new C(8,0,0,y());this._socketWriter.write(c)}pauseSocketWriting(){this._socketWriter.pause()}getSocket(){return this._socket}getMillisSinceLastIncomingData(){return Date.now()-this._socketReader.lastReadTime}beginAcceptReconnection(c,_){this._isReconnecting=!0,this._socketDisposables.dispose(),this._socketDisposables=new d.DisposableStore,this._onControlMessage.flushBuffer(),this._onSocketClose.flushBuffer(),this._onSocketTimeout.flushBuffer(),this._socket.dispose(),this._lastReplayRequestTime=0,this._lastSocketTimeoutTime=Date.now(),this._socket=c,this._socketWriter=this._socketDisposables.add(new h(this._socket)),this._socketReader=this._socketDisposables.add(new r(this._socket)),this._socketDisposables.add(this._socketReader.onMessage(S=>this._receiveMessage(S))),this._socketDisposables.add(this._socket.onClose(S=>this._onSocketClose.fire(S))),this._socketReader.acceptChunk(_)}endAcceptReconnection(){this._isReconnecting=!1,this._incomingAckId=this._incomingMsgId;const c=new C(3,0,this._incomingAckId,y());this._socketWriter.write(c);const _=this._outgoingUnackMsg.toArray();for(let S=0,k=_.length;S<k;S++)this._socketWriter.write(_[S]);this._recvAckCheck()}acceptDisconnect(){this._onDidDispose.fire()}_receiveMessage(c){if(c.ack>this._outgoingAckId){this._outgoingAckId=c.ack;do{const _=this._outgoingUnackMsg.peek();if(_&&_.id<=c.ack)this._outgoingUnackMsg.pop();else break}while(!0)}switch(c.type){case 0:break;case 1:{if(c.id>this._incomingMsgId)if(c.id!==this._incomingMsgId+1){const _=Date.now();_-this._lastReplayRequestTime>1e4&&(this._lastReplayRequestTime=_,this._socketWriter.write(new C(6,0,0,y())))}else this._incomingMsgId=c.id,this._incomingMsgLastTime=Date.now(),this._sendAckCheck(),this._onMessage.fire(c.data);break}case 2:{this._onControlMessage.fire(c.data);break}case 3:break;case 5:{this._onDidDispose.fire();break}case 6:{const _=this._outgoingUnackMsg.toArray();for(let S=0,k=_.length;S<k;S++)this._socketWriter.write(_[S]);this._recvAckCheck();break}case 7:{this._socketWriter.pause();break}case 8:{this._socketWriter.resume();break}case 9:break}}readEntireBuffer(){return this._socketReader.readEntireBuffer()}flush(){this._socketWriter.flush()}send(c){const _=++this._outgoingMsgId;this._incomingAckId=this._incomingMsgId;const S=new C(1,_,this._incomingAckId,c);this._outgoingUnackMsg.push(S),this._isReconnecting||(this._socketWriter.write(S),this._recvAckCheck())}sendControl(c){const _=new C(2,0,0,c);this._socketWriter.write(_)}_sendAckCheck(){if(this._incomingMsgId<=this._incomingAckId||this._incomingAckTimeout)return;const c=Date.now()-this._incomingMsgLastTime;if(c>=2e3){this._sendAck();return}this._incomingAckTimeout=setTimeout(()=>{this._incomingAckTimeout=null,this._sendAckCheck()},2e3-c+5)}_recvAckCheck(){if(this._outgoingMsgId<=this._outgoingAckId||this._outgoingAckTimeout||this._isReconnecting)return;const c=this._outgoingUnackMsg.peek(),_=Date.now()-c.writtenTime,S=Date.now()-this._socketReader.lastReadTime,k=Date.now()-this._lastSocketTimeoutTime;if(_>=2e4&&S>=2e4&&k>=2e4&&!this._loadEstimator.hasHighLoad()){this._lastSocketTimeoutTime=Date.now(),this._onSocketTimeout.fire({unacknowledgedMsgCount:this._outgoingUnackMsg.length(),timeSinceOldestUnacknowledgedMsg:_,timeSinceLastReceivedSomeData:S});return}const m=Math.max(2e4-_,2e4-S,2e4-k,500);this._outgoingAckTimeout=setTimeout(()=>{this._outgoingAckTimeout=null,this._recvAckCheck()},m)}_sendAck(){if(this._incomingMsgId<=this._incomingAckId)return;this._incomingAckId=this._incomingMsgId;const c=new C(3,0,this._incomingAckId,y());this._socketWriter.write(c)}_sendKeepAlive(){this._incomingAckId=this._incomingMsgId;const c=new C(9,0,this._incomingAckId,y());this._socketWriter.write(c)}}e.PersistentProtocol=l}),define(ye[193],Ce([1,0,80,13,21,22,191,8,4,5,24,129,126,78]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Client=e.Server=void 0;class g extends s.ChannelServer{constructor(h){super({send:o=>{try{process.send?.(o.buffer.toString("base64"))}catch{}},onMessage:p.Event.fromNodeEventEmitter(process,"message",o=>d.VSBuffer.wrap(Buffer.from(o,"base64")))},h),process.once("disconnect",()=>this.dispose())}}e.Server=g;class C{constructor(h,o){this.modulePath=h,this.options=o,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new p.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const b=o&&o.timeout?o.timeout:6e4;this.disposeDelayer=new M.Delayer(b),this.child=null,this._client=null}getChannel(h){const o=this;return{call(b,P,T){return o.requestPromise(h,b,P,T)},listen(b,P){return o.requestEvent(h,b,P)}}}requestPromise(h,o,b,P=A.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(P.isCancellationRequested)return Promise.reject(u.canceled());this.disposeDelayer.cancel();const T=this.getCachedChannel(h),n=(0,M.createCancelablePromise)(i=>T.call(o,b,i)),a=P.onCancellationRequested(()=>n.cancel()),l=(0,f.toDisposable)(()=>n.cancel());return this.activeRequests.add(l),n.finally(()=>{a.dispose(),this.activeRequests.delete(l),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),n}requestEvent(h,o,b){if(!this.disposeDelayer)return p.Event.None;this.disposeDelayer.cancel();let P;const T=new p.Emitter({onWillAddFirstListener:()=>{P=this.getCachedChannel(h).listen(o,b)(T.fire,T),this.activeRequests.add(P)},onDidRemoveLastListener:()=>{this.activeRequests.delete(P),P.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return T.event}get client(){if(!this._client){const h=this.options&&this.options.args?this.options.args:[],o=Object.create(null);o.env={...(0,y.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(o.env={...o.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(o.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(o.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(o.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),o.execArgv===void 0&&(o.execArgv=process.execArgv.filter(c=>!/^--inspect(-brk)?=/.test(c)).filter(c=>!c.startsWith("--vscode-"))),(0,t.removeDangerousEnvVariables)(o.env),this.child=(0,w.fork)(this.modulePath,h,o);const b=new p.Emitter;p.Event.fromNodeEventEmitter(this.child,"message",c=>c)(c=>{if((0,R.isRemoteConsoleLog)(c)){(0,R.log)(c,`IPC Library: ${this.options.serverName}`);return}b.fire(d.VSBuffer.wrap(Buffer.from(c,"base64")))});const T=this.options.useQueue?(0,E.createQueuedSender)(this.child):this.child,n=c=>this.child&&this.child.connected&&T.send(c.buffer.toString("base64")),a=b.event,l={send:n,onMessage:a};this._client=new s.ChannelClient(l);const i=()=>this.disposeClient();process.once("exit",i),this.child.on("error",c=>console.warn('IPC "'+this.options.serverName+'" errored with '+c)),this.child.on("exit",(c,_)=>{process.removeListener("exit",i),this.activeRequests.forEach(S=>(0,f.dispose)(S)),this.activeRequests.clear(),c!==0&&_!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+c+" and signal "+_),this.disposeDelayer?.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:c,signal:_})})}return this._client}getCachedChannel(h){let o=this.channels.get(h);return o||(o=this.client.getChannel(h),this.channels.set(h,o)),o}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer?.cancel(),this.disposeDelayer=void 0,this.disposeClient(),this.activeRequests.clear()}}e.Client=C}),define(ye[194],Ce([1,0,34,17]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.score=void 0;function d(A,R,u,p,f,y){if(Array.isArray(A)){let E=0;for(const t of A){const s=d(t,R,u,p,f,y);if(s===10)return s;s>E&&(E=s)}return E}else{if(typeof A=="string")return p?A==="*"?5:A===u?10:0:0;if(A){const{language:E,pattern:t,scheme:s,hasAccessToAllModels:g,notebookType:C}=A;if(!p&&!g)return 0;C&&f&&(R=f);let r=0;if(s)if(s===R.scheme)r=10;else if(s==="*")r=5;else return 0;if(E)if(E===u)r=10;else if(E==="*")r=Math.max(r,5);else return 0;if(C)if(C===y)r=10;else if(C==="*"&&y!==void 0)r=Math.max(r,5);else return 0;if(t){let h;if(typeof t=="string"?h=t:h={...t,base:(0,M.normalize)(t.base)},h===R.fsPath||(0,w.match)(h,R.fsPath))r=10;else return 0}return r}else return 0}}e.score=d}),define(ye[130],Ce([1,0,21,14]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSemanticTokensDto=e.encodeSemanticTokensDto=void 0;var d;(function(E){E[E.Full=1]="Full",E[E.Delta=2]="Delta"})(d||(d={}));function A(E){for(let t=0,s=E.length;t<s;t+=4){const g=E[t+0],C=E[t+1],r=E[t+2],h=E[t+3];E[t+0]=h,E[t+1]=r,E[t+2]=C,E[t+3]=g}}function R(E){const t=new Uint8Array(E.buffer,E.byteOffset,E.length*4);return M.isLittleEndian()||A(t),w.VSBuffer.wrap(t)}function u(E){const t=E.buffer;if(M.isLittleEndian()||A(t),t.byteOffset%4===0)return new Uint32Array(t.buffer,t.byteOffset,t.length/4);{const s=new Uint8Array(t.byteLength);return s.set(t),new Uint32Array(s.buffer,s.byteOffset,s.length/4)}}function p(E){const t=new Uint32Array(f(E));let s=0;if(t[s++]=E.id,E.type==="full")t[s++]=1,t[s++]=E.data.length,t.set(E.data,s),s+=E.data.length;else{t[s++]=2,t[s++]=E.deltas.length;for(const g of E.deltas)t[s++]=g.start,t[s++]=g.deleteCount,g.data?(t[s++]=g.data.length,t.set(g.data,s),s+=g.data.length):t[s++]=0}return R(t)}e.encodeSemanticTokensDto=p;function f(E){let t=0;if(t+=1+1,E.type==="full")t+=1+E.data.length;else{t+=1,t+=(1+1+1)*E.deltas.length;for(const s of E.deltas)s.data&&(t+=s.data.length)}return t}function y(E){const t=u(E);let s=0;const g=t[s++];if(t[s++]===1){const o=t[s++],b=t.subarray(s,s+o);return s+=o,{id:g,type:"full",data:b}}const r=t[s++],h=[];for(let o=0;o<r;o++){const b=t[s++],P=t[s++],T=t[s++];let n;T>0&&(n=t.subarray(s,s+T),s+=T),h[o]={start:b,deleteCount:P,data:n}}return{id:g,type:"delta",deltas:h}}e.decodeSemanticTokensDto=y}),define(ye[195],Ce([9,10]),function(ge,e){return ge.create("vs/editor/common/config/editorOptions",e)}),define(ye[131],Ce([1,0,19,24,14,168,122,195]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOptions=e.EditorOption=e.editorOptionsRegistry=e.EDITOR_FONT_DEFAULTS=e.WrappingIndent=e.unicodeHighlightConfigKeys=e.inUntrustedWorkspace=e.filterValidationDecorations=e.RenderLineNumbersType=e.EditorLayoutInfoComputer=e.RenderMinimap=e.EditorFontVariations=e.EditorFontLigatures=e.cursorStyleToString=e.TextEditorCursorStyle=e.TextEditorCursorBlinkingStyle=e.stringSet=e.clampedFloat=e.clampedInt=e.boolean=e.ApplyUpdateResult=e.ComputeOptionsMemory=e.ConfigurationChangedEvent=e.MINIMAP_GUTTER_WIDTH=e.EditorAutoIndentStrategy=void 0;var p;(function(de){de[de.None=0]="None",de[de.Keep=1]="Keep",de[de.Brackets=2]="Brackets",de[de.Advanced=3]="Advanced",de[de.Full=4]="Full"})(p||(e.EditorAutoIndentStrategy=p={})),e.MINIMAP_GUTTER_WIDTH=8;class f{constructor(ae){this._values=ae}hasChanged(ae){return this._values[ae]}}e.ConfigurationChangedEvent=f;class y{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}e.ComputeOptionsMemory=y;class E{constructor(ae,De,Me,qe){this.id=ae,this.name=De,this.defaultValue=Me,this.schema=qe}applyUpdate(ae,De){return s(ae,De)}compute(ae,De,Me){return Me}}class t{constructor(ae,De){this.newValue=ae,this.didChange=De}}e.ApplyUpdateResult=t;function s(de,ae){if(typeof de!="object"||typeof ae!="object"||!de||!ae)return new t(ae,de!==ae);if(Array.isArray(de)||Array.isArray(ae)){const Me=Array.isArray(de)&&Array.isArray(ae)&&w.equals(de,ae);return new t(ae,!Me)}let De=!1;for(const Me in ae)if(ae.hasOwnProperty(Me)){const qe=s(de[Me],ae[Me]);qe.didChange&&(de[Me]=qe.newValue,De=!0)}return new t(de,De)}class g{constructor(ae){this.schema=void 0,this.id=ae,this.name="_never_",this.defaultValue=void 0}applyUpdate(ae,De){return s(ae,De)}validate(ae){return this.defaultValue}}class C{constructor(ae,De,Me,qe){this.id=ae,this.name=De,this.defaultValue=Me,this.schema=qe}applyUpdate(ae,De){return s(ae,De)}validate(ae){return typeof ae>"u"?this.defaultValue:ae}compute(ae,De,Me){return Me}}function r(de,ae){return typeof de>"u"?ae:de==="false"?!1:!!de}e.boolean=r;class h extends C{constructor(ae,De,Me,qe=void 0){typeof qe<"u"&&(qe.type="boolean",qe.default=Me),super(ae,De,Me,qe)}validate(ae){return r(ae,this.defaultValue)}}function o(de,ae,De,Me){if(typeof de>"u")return ae;let qe=parseInt(de,10);return isNaN(qe)?ae:(qe=Math.max(De,qe),qe=Math.min(Me,qe),qe|0)}e.clampedInt=o;class b extends C{static clampedInt(ae,De,Me,qe){return o(ae,De,Me,qe)}constructor(ae,De,Me,qe,Je,st=void 0){typeof st<"u"&&(st.type="integer",st.default=Me,st.minimum=qe,st.maximum=Je),super(ae,De,Me,st),this.minimum=qe,this.maximum=Je}validate(ae){return b.clampedInt(ae,this.defaultValue,this.minimum,this.maximum)}}function P(de,ae,De,Me){if(typeof de>"u")return ae;const qe=T.float(de,ae);return T.clamp(qe,De,Me)}e.clampedFloat=P;class T extends C{static clamp(ae,De,Me){return ae<De?De:ae>Me?Me:ae}static float(ae,De){if(typeof ae=="number")return ae;if(typeof ae>"u")return De;const Me=parseFloat(ae);return isNaN(Me)?De:Me}constructor(ae,De,Me,qe,Je){typeof Je<"u"&&(Je.type="number",Je.default=Me),super(ae,De,Me,Je),this.validationFn=qe}validate(ae){return this.validationFn(T.float(ae,this.defaultValue))}}class n extends C{static string(ae,De){return typeof ae!="string"?De:ae}constructor(ae,De,Me,qe=void 0){typeof qe<"u"&&(qe.type="string",qe.default=Me),super(ae,De,Me,qe)}validate(ae){return n.string(ae,this.defaultValue)}}function a(de,ae,De,Me){return typeof de!="string"?ae:Me&&de in Me?Me[de]:De.indexOf(de)===-1?ae:de}e.stringSet=a;class l extends C{constructor(ae,De,Me,qe,Je=void 0){typeof Je<"u"&&(Je.type="string",Je.enum=qe,Je.default=Me),super(ae,De,Me,Je),this._allowedValues=qe}validate(ae){return a(ae,this.defaultValue,this._allowedValues)}}class i extends E{constructor(ae,De,Me,qe,Je,st,ct=void 0){typeof ct<"u"&&(ct.type="string",ct.enum=Je,ct.default=qe),super(ae,De,Me,ct),this._allowedValues=Je,this._convert=st}validate(ae){return typeof ae!="string"?this.defaultValue:this._allowedValues.indexOf(ae)===-1?this.defaultValue:this._convert(ae)}}function c(de){switch(de){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class _ extends E{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[u.localize(0,null),u.localize(1,null),u.localize(2,null)],default:"auto",tags:["accessibility"],description:u.localize(3,null)})}validate(ae){switch(ae){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(ae,De,Me){return Me===0?ae.accessibilitySupport:Me}}class S extends E{constructor(){const ae={insertSpace:!0,ignoreEmptyLines:!0};super(22,"comments",ae,{"editor.comments.insertSpace":{type:"boolean",default:ae.insertSpace,description:u.localize(4,null)},"editor.comments.ignoreEmptyLines":{type:"boolean",default:ae.ignoreEmptyLines,description:u.localize(5,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{insertSpace:r(De.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:r(De.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}var k;(function(de){de[de.Hidden=0]="Hidden",de[de.Blink=1]="Blink",de[de.Smooth=2]="Smooth",de[de.Phase=3]="Phase",de[de.Expand=4]="Expand",de[de.Solid=5]="Solid"})(k||(e.TextEditorCursorBlinkingStyle=k={}));function m(de){switch(de){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var v;(function(de){de[de.Line=1]="Line",de[de.Block=2]="Block",de[de.Underline=3]="Underline",de[de.LineThin=4]="LineThin",de[de.BlockOutline=5]="BlockOutline",de[de.UnderlineThin=6]="UnderlineThin"})(v||(e.TextEditorCursorStyle=v={}));function D(de){switch(de){case v.Line:return"line";case v.Block:return"block";case v.Underline:return"underline";case v.LineThin:return"line-thin";case v.BlockOutline:return"block-outline";case v.UnderlineThin:return"underline-thin"}}e.cursorStyleToString=D;function L(de){switch(de){case"line":return v.Line;case"block":return v.Block;case"underline":return v.Underline;case"line-thin":return v.LineThin;case"block-outline":return v.BlockOutline;case"underline-thin":return v.UnderlineThin}}class O extends g{constructor(){super(139)}compute(ae,De,Me){const qe=["monaco-editor"];return De.get(38)&&qe.push(De.get(38)),ae.extraEditorClassName&&qe.push(ae.extraEditorClassName),De.get(72)==="default"?qe.push("mouse-default"):De.get(72)==="copy"&&qe.push("mouse-copy"),De.get(109)&&qe.push("showUnused"),De.get(137)&&qe.push("showDeprecated"),qe.join(" ")}}class H extends h{constructor(){super(36,"emptySelectionClipboard",!0,{description:u.localize(6,null)})}compute(ae,De,Me){return Me&&ae.emptySelectionClipboard}}class N extends E{constructor(){const ae={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(40,"find",ae,{"editor.find.cursorMoveOnType":{type:"boolean",default:ae.cursorMoveOnType,description:u.localize(7,null)},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:ae.seedSearchStringFromSelection,enumDescriptions:[u.localize(8,null),u.localize(9,null),u.localize(10,null)],description:u.localize(11,null)},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:ae.autoFindInSelection,enumDescriptions:[u.localize(12,null),u.localize(13,null),u.localize(14,null)],description:u.localize(15,null)},"editor.find.globalFindClipboard":{type:"boolean",default:ae.globalFindClipboard,description:u.localize(16,null),included:d.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:ae.addExtraSpaceOnTop,description:u.localize(17,null)},"editor.find.loop":{type:"boolean",default:ae.loop,description:u.localize(18,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{cursorMoveOnType:r(De.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof ae.seedSearchStringFromSelection=="boolean"?ae.seedSearchStringFromSelection?"always":"never":a(De.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof ae.autoFindInSelection=="boolean"?ae.autoFindInSelection?"always":"never":a(De.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:r(De.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:r(De.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:r(De.loop,this.defaultValue.loop)}}}class $ extends E{static{this.OFF='"liga" off, "calt" off'}static{this.ON='"liga" on, "calt" on'}constructor(){super(50,"fontLigatures",$.OFF,{anyOf:[{type:"boolean",description:u.localize(19,null)},{type:"string",description:u.localize(20,null)}],description:u.localize(21,null),default:!1})}validate(ae){return typeof ae>"u"?this.defaultValue:typeof ae=="string"?ae==="false"?$.OFF:ae==="true"?$.ON:ae:ae?$.ON:$.OFF}}e.EditorFontLigatures=$;class U extends E{static{this.OFF="normal"}static{this.TRANSLATE="translate"}constructor(){super(53,"fontVariations",U.OFF,{anyOf:[{type:"boolean",description:u.localize(22,null)},{type:"string",description:u.localize(23,null)}],description:u.localize(24,null),default:!1})}validate(ae){return typeof ae>"u"?this.defaultValue:typeof ae=="string"?ae==="false"?U.OFF:ae==="true"?U.TRANSLATE:ae:ae?U.TRANSLATE:U.OFF}compute(ae,De,Me){return ae.fontInfo.fontVariationSettings}}e.EditorFontVariations=U;class x extends g{constructor(){super(49)}compute(ae,De,Me){return ae.fontInfo}}class X extends C{constructor(){super(51,"fontSize",e.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:e.EDITOR_FONT_DEFAULTS.fontSize,description:u.localize(25,null)})}validate(ae){const De=T.float(ae,this.defaultValue);return De===0?e.EDITOR_FONT_DEFAULTS.fontSize:T.clamp(De,6,100)}compute(ae,De,Me){return ae.fontInfo.fontSize}}class K extends E{static{this.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"]}static{this.MINIMUM_VALUE=1}static{this.MAXIMUM_VALUE=1e3}constructor(){super(52,"fontWeight",e.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:K.MINIMUM_VALUE,maximum:K.MAXIMUM_VALUE,errorMessage:u.localize(26,null)},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:K.SUGGESTION_VALUES}],default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:u.localize(27,null)})}validate(ae){return ae==="normal"||ae==="bold"?ae:String(b.clampedInt(ae,e.EDITOR_FONT_DEFAULTS.fontWeight,K.MINIMUM_VALUE,K.MAXIMUM_VALUE))}}class pe extends E{constructor(){const ae={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},De={type:"string",enum:["peek","gotoAndPeek","goto"],default:ae.multiple,enumDescriptions:[u.localize(28,null),u.localize(29,null),u.localize(30,null)]},Me=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(57,"gotoLocation",ae,{"editor.gotoLocation.multiple":{deprecationMessage:u.localize(31,null)},"editor.gotoLocation.multipleDefinitions":{description:u.localize(32,null),...De},"editor.gotoLocation.multipleTypeDefinitions":{description:u.localize(33,null),...De},"editor.gotoLocation.multipleDeclarations":{description:u.localize(34,null),...De},"editor.gotoLocation.multipleImplementations":{description:u.localize(35,null),...De},"editor.gotoLocation.multipleReferences":{description:u.localize(36,null),...De},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:ae.alternativeDefinitionCommand,enum:Me,description:u.localize(37,null)},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:ae.alternativeTypeDefinitionCommand,enum:Me,description:u.localize(38,null)},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:ae.alternativeDeclarationCommand,enum:Me,description:u.localize(39,null)},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:ae.alternativeImplementationCommand,enum:Me,description:u.localize(40,null)},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:ae.alternativeReferenceCommand,enum:Me,description:u.localize(41,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{multiple:a(De.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:De.multipleDefinitions??a(De.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:De.multipleTypeDefinitions??a(De.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:De.multipleDeclarations??a(De.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:De.multipleImplementations??a(De.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:De.multipleReferences??a(De.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:n.string(De.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:n.string(De.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:n.string(De.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:n.string(De.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:n.string(De.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class le extends E{constructor(){const ae={enabled:!0,delay:300,sticky:!0,above:!0};super(59,"hover",ae,{"editor.hover.enabled":{type:"boolean",default:ae.enabled,description:u.localize(42,null)},"editor.hover.delay":{type:"number",default:ae.delay,minimum:0,maximum:1e4,description:u.localize(43,null)},"editor.hover.sticky":{type:"boolean",default:ae.sticky,description:u.localize(44,null)},"editor.hover.above":{type:"boolean",default:ae.above,description:u.localize(45,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),delay:b.clampedInt(De.delay,this.defaultValue.delay,0,1e4),sticky:r(De.sticky,this.defaultValue.sticky),above:r(De.above,this.defaultValue.above)}}}var re;(function(de){de[de.None=0]="None",de[de.Text=1]="Text",de[de.Blocks=2]="Blocks"})(re||(e.RenderMinimap=re={}));class q extends g{constructor(){super(142)}compute(ae,De,Me){return q.computeLayout(De,{memory:ae.memory,outerWidth:ae.outerWidth,outerHeight:ae.outerHeight,isDominatedByLongLines:ae.isDominatedByLongLines,lineHeight:ae.fontInfo.lineHeight,viewLineCount:ae.viewLineCount,lineNumbersDigitCount:ae.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:ae.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:ae.fontInfo.maxDigitWidth,pixelRatio:ae.pixelRatio,glyphMarginDecorationLaneCount:ae.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(ae){const De=ae.height/ae.lineHeight,Me=Math.floor(ae.paddingTop/ae.lineHeight);let qe=Math.floor(ae.paddingBottom/ae.lineHeight);ae.scrollBeyondLastLine&&(qe=Math.max(qe,De-1));const Je=(Me+ae.viewLineCount+qe)/(ae.pixelRatio*ae.height),st=Math.floor(ae.viewLineCount/Je);return{typicalViewportLineCount:De,extraLinesBeforeFirstLine:Me,extraLinesBeyondLastLine:qe,desiredRatio:Je,minimapLineCount:st}}static _computeMinimapLayout(ae,De){const Me=ae.outerWidth,qe=ae.outerHeight,Je=ae.pixelRatio;if(!ae.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Je*qe),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:qe};const st=De.stableMinimapLayoutInput,ct=st&&ae.outerHeight===st.outerHeight&&ae.lineHeight===st.lineHeight&&ae.typicalHalfwidthCharacterWidth===st.typicalHalfwidthCharacterWidth&&ae.pixelRatio===st.pixelRatio&&ae.scrollBeyondLastLine===st.scrollBeyondLastLine&&ae.paddingTop===st.paddingTop&&ae.paddingBottom===st.paddingBottom&&ae.minimap.enabled===st.minimap.enabled&&ae.minimap.side===st.minimap.side&&ae.minimap.size===st.minimap.size&&ae.minimap.showSlider===st.minimap.showSlider&&ae.minimap.renderCharacters===st.minimap.renderCharacters&&ae.minimap.maxColumn===st.minimap.maxColumn&&ae.minimap.scale===st.minimap.scale&&ae.verticalScrollbarWidth===st.verticalScrollbarWidth&&ae.isViewportWrapping===st.isViewportWrapping,pt=ae.lineHeight,It=ae.typicalHalfwidthCharacterWidth,xt=ae.scrollBeyondLastLine,zt=ae.minimap.renderCharacters;let yt=Je>=2?Math.round(ae.minimap.scale*2):ae.minimap.scale;const Lt=ae.minimap.maxColumn,Mt=ae.minimap.size,Wt=ae.minimap.side,Tt=ae.verticalScrollbarWidth,Rt=ae.viewLineCount,Ft=ae.remainingWidth,Ut=ae.isViewportWrapping,$t=zt?2:3;let Bt=Math.floor(Je*qe);const ht=Bt/Je;let ut=!1,Vt=!1,Ne=$t*yt,Ge=yt/Je,tt=1;if(Mt==="fill"||Mt==="fit"){const{typicalViewportLineCount:ke,extraLinesBeforeFirstLine:ne,extraLinesBeyondLastLine:Oe,desiredRatio:We,minimapLineCount:Ze}=q.computeContainedMinimapLineCount({viewLineCount:Rt,scrollBeyondLastLine:xt,paddingTop:ae.paddingTop,paddingBottom:ae.paddingBottom,height:qe,lineHeight:pt,pixelRatio:Je});if(Rt/Ze>1)ut=!0,Vt=!0,yt=1,Ne=1,Ge=yt/Je;else{let ot=!1,bt=yt+1;if(Mt==="fit"){const Ct=Math.ceil((ne+Rt+Oe)*Ne);Ut&&ct&&Ft<=De.stableFitRemainingWidth?(ot=!0,bt=De.stableFitMaxMinimapScale):ot=Ct>Bt}if(Mt==="fill"||ot){ut=!0;const Ct=yt;Ne=Math.min(pt*Je,Math.max(1,Math.floor(1/We))),Ut&&ct&&Ft<=De.stableFitRemainingWidth&&(bt=De.stableFitMaxMinimapScale),yt=Math.min(bt,Math.max(1,Math.floor(Ne/$t))),yt>Ct&&(tt=Math.min(2,yt/Ct)),Ge=yt/Je/tt,Bt=Math.ceil(Math.max(ke,ne+Rt+Oe)*Ne),Ut?(De.stableMinimapLayoutInput=ae,De.stableFitRemainingWidth=Ft,De.stableFitMaxMinimapScale=yt):(De.stableMinimapLayoutInput=null,De.stableFitRemainingWidth=0)}}}const vt=Math.floor(Lt*Ge),Pt=Math.min(vt,Math.max(0,Math.floor((Ft-Tt-2)*Ge/(It+Ge)))+e.MINIMAP_GUTTER_WIDTH);let St=Math.floor(Je*Pt);const Ke=St/Je;St=Math.floor(St*tt);const Le=zt?1:2,Fe=Wt==="left"?0:Me-Pt-Tt;return{renderMinimap:Le,minimapLeft:Fe,minimapWidth:Pt,minimapHeightIsEditorHeight:ut,minimapIsSampling:Vt,minimapScale:yt,minimapLineHeight:Ne,minimapCanvasInnerWidth:St,minimapCanvasInnerHeight:Bt,minimapCanvasOuterWidth:Ke,minimapCanvasOuterHeight:ht}}static computeLayout(ae,De){const Me=De.outerWidth|0,qe=De.outerHeight|0,Je=De.lineHeight|0,st=De.lineNumbersDigitCount|0,ct=De.typicalHalfwidthCharacterWidth,pt=De.maxDigitWidth,It=De.pixelRatio,xt=De.viewLineCount,zt=ae.get(134),yt=zt==="inherit"?ae.get(133):zt,Lt=yt==="inherit"?ae.get(129):yt,Mt=ae.get(132),Wt=De.isDominatedByLongLines,Tt=ae.get(56),Rt=ae.get(66).renderType!==0,Ft=ae.get(67),Ut=ae.get(103),$t=ae.get(82),Bt=ae.get(71),ht=ae.get(101),ut=ht.verticalScrollbarSize,Vt=ht.verticalHasArrows,Ne=ht.arrowSize,Ge=ht.horizontalScrollbarSize,tt=ae.get(42),vt=ae.get(108)!=="never";let Pt=ae.get(64);tt&&vt&&(Pt+=16);let St=0;if(Rt){const ft=Math.max(st,Ft);St=Math.round(ft*pt)}let Ke=0;Tt&&(Ke=Je*De.glyphMarginDecorationLaneCount);let Le=0,Fe=Le+Ke,ke=Fe+St,ne=ke+Pt;const Oe=Me-Ke-St-Pt;let We=!1,Ze=!1,Qe=-1;yt==="inherit"&&Wt?(We=!0,Ze=!0):Lt==="on"||Lt==="bounded"?Ze=!0:Lt==="wordWrapColumn"&&(Qe=Mt);const ot=q._computeMinimapLayout({outerWidth:Me,outerHeight:qe,lineHeight:Je,typicalHalfwidthCharacterWidth:ct,pixelRatio:It,scrollBeyondLastLine:Ut,paddingTop:$t.top,paddingBottom:$t.bottom,minimap:Bt,verticalScrollbarWidth:ut,viewLineCount:xt,remainingWidth:Oe,isViewportWrapping:Ze},De.memory||new y);ot.renderMinimap!==0&&ot.minimapLeft===0&&(Le+=ot.minimapWidth,Fe+=ot.minimapWidth,ke+=ot.minimapWidth,ne+=ot.minimapWidth);const bt=Oe-ot.minimapWidth,Ct=Math.max(1,Math.floor((bt-ut-2)/ct)),_t=Vt?Ne:0;return Ze&&(Qe=Math.max(1,Ct),Lt==="bounded"&&(Qe=Math.min(Qe,Mt))),{width:Me,height:qe,glyphMarginLeft:Le,glyphMarginWidth:Ke,glyphMarginDecorationLaneCount:De.glyphMarginDecorationLaneCount,lineNumbersLeft:Fe,lineNumbersWidth:St,decorationsLeft:ke,decorationsWidth:Pt,contentLeft:ne,contentWidth:bt,minimap:ot,viewportColumn:Ct,isWordWrapMinified:We,isViewportWrapping:Ze,wrappingColumn:Qe,verticalScrollbarWidth:ut,horizontalScrollbarHeight:Ge,overviewRuler:{top:_t,width:ut,height:qe-2*_t,right:0}}}}e.EditorLayoutInfoComputer=q;class oe extends E{constructor(){super(136,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[u.localize(46,null),u.localize(47,null)],type:"string",enum:["simple","advanced"],default:"simple",description:u.localize(48,null)}})}validate(ae){return a(ae,"simple",["simple","advanced"])}compute(ae,De,Me){return De.get(2)===2?"advanced":Me}}class ve extends E{constructor(){const ae={enabled:!0};super(63,"lightbulb",ae,{"editor.lightbulb.enabled":{type:"boolean",default:ae.enabled,description:u.localize(49,null)}})}validate(ae){return!ae||typeof ae!="object"?this.defaultValue:{enabled:r(ae.enabled,this.defaultValue.enabled)}}}class ce extends E{constructor(){const ae={enabled:!1,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(113,"stickyScroll",ae,{"editor.stickyScroll.enabled":{type:"boolean",default:ae.enabled,description:u.localize(50,null)},"editor.stickyScroll.maxLineCount":{type:"number",default:ae.maxLineCount,minimum:1,maximum:10,description:u.localize(51,null)},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:ae.defaultModel,description:u.localize(52,null)},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:ae.scrollWithEditor,description:u.localize(53,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),maxLineCount:b.clampedInt(De.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:a(De.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:r(De.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class se extends E{constructor(){const ae={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(138,"inlayHints",ae,{"editor.inlayHints.enabled":{type:"string",default:ae.enabled,description:u.localize(54,null),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[u.localize(55,null),u.localize(56,null,d.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),u.localize(57,null,d.isMacintosh?"Ctrl+Option":"Ctrl+Alt"),u.localize(58,null)]},"editor.inlayHints.fontSize":{type:"number",default:ae.fontSize,markdownDescription:u.localize(59,null,"`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:ae.fontFamily,markdownDescription:u.localize(60,null,"`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:ae.padding,description:u.localize(61,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return typeof De.enabled=="boolean"&&(De.enabled=De.enabled?"on":"off"),{enabled:a(De.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:b.clampedInt(De.fontSize,this.defaultValue.fontSize,0,100),fontFamily:n.string(De.fontFamily,this.defaultValue.fontFamily),padding:r(De.padding,this.defaultValue.padding)}}}class te extends E{constructor(){super(64,"lineDecorationsWidth",10)}validate(ae){return typeof ae=="string"&&/^\d+(\.\d+)?ch$/.test(ae)?-parseFloat(ae.substring(0,ae.length-2)):b.clampedInt(ae,this.defaultValue,0,1e3)}compute(ae,De,Me){return Me<0?b.clampedInt(-Me*ae.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):Me}}class B extends T{constructor(){super(65,"lineHeight",e.EDITOR_FONT_DEFAULTS.lineHeight,ae=>T.clamp(ae,0,150),{markdownDescription:u.localize(62,null)})}compute(ae,De,Me){return ae.fontInfo.lineHeight}}class G extends E{constructor(){const ae={enabled:!1,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(71,"minimap",ae,{"editor.minimap.enabled":{type:"boolean",default:ae.enabled,description:u.localize(63,null)},"editor.minimap.autohide":{type:"boolean",default:ae.autohide,description:u.localize(64,null)},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[u.localize(65,null),u.localize(66,null),u.localize(67,null)],default:ae.size,description:u.localize(68,null)},"editor.minimap.side":{type:"string",enum:["left","right"],default:ae.side,description:u.localize(69,null)},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:ae.showSlider,description:u.localize(70,null)},"editor.minimap.scale":{type:"number",default:ae.scale,minimum:1,maximum:3,enum:[1,2,3],description:u.localize(71,null)},"editor.minimap.renderCharacters":{type:"boolean",default:ae.renderCharacters,description:u.localize(72,null)},"editor.minimap.maxColumn":{type:"number",default:ae.maxColumn,description:u.localize(73,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),autohide:r(De.autohide,this.defaultValue.autohide),size:a(De.size,this.defaultValue.size,["proportional","fill","fit"]),side:a(De.side,this.defaultValue.side,["right","left"]),showSlider:a(De.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:r(De.renderCharacters,this.defaultValue.renderCharacters),scale:b.clampedInt(De.scale,1,1,3),maxColumn:b.clampedInt(De.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function fe(de){return de==="ctrlCmd"?d.isMacintosh?"metaKey":"ctrlKey":"altKey"}class _e extends E{constructor(){super(82,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:u.localize(74,null)},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:u.localize(75,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{top:b.clampedInt(De.top,0,0,1e3),bottom:b.clampedInt(De.bottom,0,0,1e3)}}}class Ee extends E{constructor(){const ae={enabled:!0,cycle:!0};super(84,"parameterHints",ae,{"editor.parameterHints.enabled":{type:"boolean",default:ae.enabled,description:u.localize(76,null)},"editor.parameterHints.cycle":{type:"boolean",default:ae.cycle,description:u.localize(77,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),cycle:r(De.cycle,this.defaultValue.cycle)}}}class F extends g{constructor(){super(140)}compute(ae,De,Me){return ae.pixelRatio}}class J extends E{constructor(){const ae={other:"on",comments:"off",strings:"off"},De=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[u.localize(78,null),u.localize(79,null),u.localize(80,null)]}];super(87,"quickSuggestions",ae,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:De,default:ae.strings,description:u.localize(81,null)},comments:{anyOf:De,default:ae.comments,description:u.localize(82,null)},other:{anyOf:De,default:ae.other,description:u.localize(83,null)}},default:ae,markdownDescription:u.localize(84,null,"#editor.suggestOnTriggerCharacters#")}),this.defaultValue=ae}validate(ae){if(typeof ae=="boolean"){const It=ae?"on":"off";return{comments:It,strings:It,other:It}}if(!ae||typeof ae!="object")return this.defaultValue;const{other:De,comments:Me,strings:qe}=ae,Je=["on","inline","off"];let st,ct,pt;return typeof De=="boolean"?st=De?"on":"off":st=a(De,this.defaultValue.other,Je),typeof Me=="boolean"?ct=Me?"on":"off":ct=a(Me,this.defaultValue.comments,Je),typeof qe=="boolean"?pt=qe?"on":"off":pt=a(qe,this.defaultValue.strings,Je),{other:st,comments:ct,strings:pt}}}var I;(function(de){de[de.Off=0]="Off",de[de.On=1]="On",de[de.Relative=2]="Relative",de[de.Interval=3]="Interval",de[de.Custom=4]="Custom"})(I||(e.RenderLineNumbersType=I={}));class V extends E{constructor(){super(66,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[u.localize(85,null),u.localize(86,null),u.localize(87,null),u.localize(88,null)],default:"on",description:u.localize(89,null)})}validate(ae){let De=this.defaultValue.renderType,Me=this.defaultValue.renderFn;return typeof ae<"u"&&(typeof ae=="function"?(De=4,Me=ae):ae==="interval"?De=3:ae==="relative"?De=2:ae==="on"?De=1:De=0),{renderType:De,renderFn:Me}}}function j(de){const ae=de.get(96);return ae==="editable"?de.get(89):ae!=="on"}e.filterValidationDecorations=j;class Z extends E{constructor(){const ae=[],De={type:"number",description:u.localize(90,null)};super(100,"rulers",ae,{type:"array",items:{anyOf:[De,{type:["object"],properties:{column:De,color:{type:"string",description:u.localize(91,null),format:"color-hex"}}}]},default:ae,description:u.localize(92,null)})}validate(ae){if(Array.isArray(ae)){const De=[];for(const Me of ae)if(typeof Me=="number")De.push({column:b.clampedInt(Me,0,0,1e4),color:null});else if(Me&&typeof Me=="object"){const qe=Me;De.push({column:b.clampedInt(qe.column,0,0,1e4),color:qe.color})}return De.sort((Me,qe)=>Me.column-qe.column),De}return this.defaultValue}}class he extends E{constructor(){super(90,"readOnlyMessage",void 0)}validate(ae){return!ae||typeof ae!="object"?this.defaultValue:ae}}function Pe(de,ae){if(typeof de!="string")return ae;switch(de){case"hidden":return 2;case"visible":return 3;default:return 1}}class z extends E{constructor(){const ae={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(101,"scrollbar",ae,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[u.localize(93,null),u.localize(94,null),u.localize(95,null)],default:"auto",description:u.localize(96,null)},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[u.localize(97,null),u.localize(98,null),u.localize(99,null)],default:"auto",description:u.localize(100,null)},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:ae.verticalScrollbarSize,description:u.localize(101,null)},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:ae.horizontalScrollbarSize,description:u.localize(102,null)},"editor.scrollbar.scrollByPage":{type:"boolean",default:ae.scrollByPage,description:u.localize(103,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae,Me=b.clampedInt(De.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),qe=b.clampedInt(De.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:b.clampedInt(De.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Pe(De.vertical,this.defaultValue.vertical),horizontal:Pe(De.horizontal,this.defaultValue.horizontal),useShadows:r(De.useShadows,this.defaultValue.useShadows),verticalHasArrows:r(De.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:r(De.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:r(De.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:r(De.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Me,horizontalSliderSize:b.clampedInt(De.horizontalSliderSize,Me,0,1e3),verticalScrollbarSize:qe,verticalSliderSize:b.clampedInt(De.verticalSliderSize,qe,0,1e3),scrollByPage:r(De.scrollByPage,this.defaultValue.scrollByPage)}}}e.inUntrustedWorkspace="inUntrustedWorkspace",e.unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class ee extends E{constructor(){const ae={nonBasicASCII:e.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:e.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(123,"unicodeHighlight",ae,{[e.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:ae.nonBasicASCII,description:u.localize(104,null)},[e.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:ae.invisibleCharacters,description:u.localize(105,null)},[e.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:ae.ambiguousCharacters,description:u.localize(106,null)},[e.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:ae.includeComments,description:u.localize(107,null)},[e.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:ae.includeStrings,description:u.localize(108,null)},[e.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:ae.allowedCharacters,description:u.localize(109,null),additionalProperties:{type:"boolean"}},[e.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:ae.allowedLocales,description:u.localize(110,null)}})}applyUpdate(ae,De){let Me=!1;De.allowedCharacters&&ae&&(M.equals(ae.allowedCharacters,De.allowedCharacters)||(ae={...ae,allowedCharacters:De.allowedCharacters},Me=!0)),De.allowedLocales&&ae&&(M.equals(ae.allowedLocales,De.allowedLocales)||(ae={...ae,allowedLocales:De.allowedLocales},Me=!0));const qe=super.applyUpdate(ae,De);return Me?new t(qe.newValue,!0):qe}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{nonBasicASCII:me(De.nonBasicASCII,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),invisibleCharacters:r(De.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:r(De.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:me(De.includeComments,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),includeStrings:me(De.includeStrings,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(ae.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(ae.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(ae,De){if(typeof ae!="object"||!ae)return De;const Me={};for(const[qe,Je]of Object.entries(ae))Je===!0&&(Me[qe]=!0);return Me}}class ie extends E{constructor(){const ae={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1};super(61,"inlineSuggest",ae,{"editor.inlineSuggest.enabled":{type:"boolean",default:ae.enabled,description:u.localize(111,null)},"editor.inlineSuggest.showToolbar":{type:"string",default:ae.showToolbar,enum:["always","onHover"],enumDescriptions:[u.localize(112,null),u.localize(113,null)],description:u.localize(114,null)},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:ae.suppressSuggestions,description:u.localize(115,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),mode:a(De.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:a(De.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:r(De.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:r(De.keepOnBlur,this.defaultValue.keepOnBlur)}}}class ue extends E{constructor(){const ae={enabled:A.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:A.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(14,"bracketPairColorization",ae,{"editor.bracketPairColorization.enabled":{type:"boolean",default:ae.enabled,markdownDescription:u.localize(116,null,"`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:ae.independentColorPoolPerBracketType,description:u.localize(117,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:r(De.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class Y extends E{constructor(){const ae={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(15,"guides",ae,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[u.localize(118,null),u.localize(119,null),u.localize(120,null)],default:ae.bracketPairs,description:u.localize(121,null)},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[u.localize(122,null),u.localize(123,null),u.localize(124,null)],default:ae.bracketPairsHorizontal,description:u.localize(125,null)},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:ae.highlightActiveBracketPair,description:u.localize(126,null)},"editor.guides.indentation":{type:"boolean",default:ae.indentation,description:u.localize(127,null)},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[u.localize(128,null),u.localize(129,null),u.localize(130,null)],default:ae.highlightActiveIndentation,description:u.localize(131,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{bracketPairs:me(De.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:me(De.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:r(De.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:r(De.indentation,this.defaultValue.indentation),highlightActiveIndentation:me(De.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function me(de,ae,De){const Me=De.indexOf(de);return Me===-1?ae:De[Me]}class Se extends E{constructor(){const ae={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(116,"suggest",ae,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[u.localize(132,null),u.localize(133,null)],default:ae.insertMode,description:u.localize(134,null)},"editor.suggest.filterGraceful":{type:"boolean",default:ae.filterGraceful,description:u.localize(135,null)},"editor.suggest.localityBonus":{type:"boolean",default:ae.localityBonus,description:u.localize(136,null)},"editor.suggest.shareSuggestSelections":{type:"boolean",default:ae.shareSuggestSelections,markdownDescription:u.localize(137,null)},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[u.localize(138,null),u.localize(139,null),u.localize(140,null),u.localize(141,null)],default:ae.selectionMode,markdownDescription:u.localize(142,null)},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:ae.snippetsPreventQuickSuggestions,description:u.localize(143,null)},"editor.suggest.showIcons":{type:"boolean",default:ae.showIcons,description:u.localize(144,null)},"editor.suggest.showStatusBar":{type:"boolean",default:ae.showStatusBar,description:u.localize(145,null)},"editor.suggest.preview":{type:"boolean",default:ae.preview,description:u.localize(146,null)},"editor.suggest.showInlineDetails":{type:"boolean",default:ae.showInlineDetails,description:u.localize(147,null)},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:u.localize(148,null)},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:u.localize(149,null)},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:u.localize(150,null)},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:u.localize(151,null)},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:u.localize(152,null)},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:u.localize(153,null)},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:u.localize(154,null)},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:u.localize(155,null)},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:u.localize(156,null)},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:u.localize(157,null)},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:u.localize(158,null)},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:u.localize(159,null)},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:u.localize(160,null)},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:u.localize(161,null)},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:u.localize(162,null)},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:u.localize(163,null)},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:u.localize(164,null)},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:u.localize(165,null)},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:u.localize(166,null)},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:u.localize(167,null)},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:u.localize(168,null)},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:u.localize(169,null)},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:u.localize(170,null)},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:u.localize(171,null)},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:u.localize(172,null)},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:u.localize(173,null)},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:u.localize(174,null)},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:u.localize(175,null)},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:u.localize(176,null)},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:u.localize(177,null)},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:u.localize(178,null)},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:u.localize(179,null)}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{insertMode:a(De.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:r(De.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:r(De.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:r(De.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:r(De.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:a(De.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:r(De.showIcons,this.defaultValue.showIcons),showStatusBar:r(De.showStatusBar,this.defaultValue.showStatusBar),preview:r(De.preview,this.defaultValue.preview),previewMode:a(De.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:r(De.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:r(De.showMethods,this.defaultValue.showMethods),showFunctions:r(De.showFunctions,this.defaultValue.showFunctions),showConstructors:r(De.showConstructors,this.defaultValue.showConstructors),showDeprecated:r(De.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:r(De.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:r(De.showFields,this.defaultValue.showFields),showVariables:r(De.showVariables,this.defaultValue.showVariables),showClasses:r(De.showClasses,this.defaultValue.showClasses),showStructs:r(De.showStructs,this.defaultValue.showStructs),showInterfaces:r(De.showInterfaces,this.defaultValue.showInterfaces),showModules:r(De.showModules,this.defaultValue.showModules),showProperties:r(De.showProperties,this.defaultValue.showProperties),showEvents:r(De.showEvents,this.defaultValue.showEvents),showOperators:r(De.showOperators,this.defaultValue.showOperators),showUnits:r(De.showUnits,this.defaultValue.showUnits),showValues:r(De.showValues,this.defaultValue.showValues),showConstants:r(De.showConstants,this.defaultValue.showConstants),showEnums:r(De.showEnums,this.defaultValue.showEnums),showEnumMembers:r(De.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:r(De.showKeywords,this.defaultValue.showKeywords),showWords:r(De.showWords,this.defaultValue.showWords),showColors:r(De.showColors,this.defaultValue.showColors),showFiles:r(De.showFiles,this.defaultValue.showFiles),showReferences:r(De.showReferences,this.defaultValue.showReferences),showFolders:r(De.showFolders,this.defaultValue.showFolders),showTypeParameters:r(De.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:r(De.showSnippets,this.defaultValue.showSnippets),showUsers:r(De.showUsers,this.defaultValue.showUsers),showIssues:r(De.showIssues,this.defaultValue.showIssues)}}}class Ue extends E{constructor(){super(111,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:u.localize(180,null),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:u.localize(181,null),default:!0,type:"boolean"}})}validate(ae){return!ae||typeof ae!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:r(ae.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:r(ae.selectSubwords,this.defaultValue.selectSubwords)}}}var ze;(function(de){de[de.None=0]="None",de[de.Same=1]="Same",de[de.Indent=2]="Indent",de[de.DeepIndent=3]="DeepIndent"})(ze||(e.WrappingIndent=ze={}));class et extends E{constructor(){super(135,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[u.localize(182,null),u.localize(183,null),u.localize(184,null),u.localize(185,null)],description:u.localize(186,null),default:"same"}})}validate(ae){switch(ae){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(ae,De,Me){return De.get(2)===2?0:Me}}class Ye extends g{constructor(){super(143)}compute(ae,De,Me){const qe=De.get(142);return{isDominatedByLongLines:ae.isDominatedByLongLines,isWordWrapMinified:qe.isWordWrapMinified,isViewportWrapping:qe.isViewportWrapping,wrappingColumn:qe.wrappingColumn}}}class at extends E{constructor(){const ae={enabled:!0,showDropSelector:"afterDrop"};super(35,"dropIntoEditor",ae,{"editor.dropIntoEditor.enabled":{type:"boolean",default:ae.enabled,markdownDescription:u.localize(187,null)},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:u.localize(188,null),enum:["afterDrop","never"],enumDescriptions:[u.localize(189,null),u.localize(190,null)],default:"afterDrop"}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),showDropSelector:a(De.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class it extends E{constructor(){const ae={enabled:!0,showPasteSelector:"afterPaste"};super(83,"pasteAs",ae,{"editor.pasteAs.enabled":{type:"boolean",default:ae.enabled,markdownDescription:u.localize(191,null)},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:u.localize(192,null),enum:["afterPaste","never"],enumDescriptions:[u.localize(193,null),u.localize(194,null)],default:"afterPaste"}})}validate(ae){if(!ae||typeof ae!="object")return this.defaultValue;const De=ae;return{enabled:r(De.enabled,this.defaultValue.enabled),showPasteSelector:a(De.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const rt="Consolas, 'Courier New', monospace",Ae="Menlo, Monaco, 'Courier New', monospace",xe="'Droid Sans Mono', 'monospace', monospace";e.EDITOR_FONT_DEFAULTS={fontFamily:d.isMacintosh?Ae:d.isLinux?xe:rt,fontWeight:"normal",fontSize:12,lineHeight:0,letterSpacing:0},e.editorOptionsRegistry=[];function Te(de){return e.editorOptionsRegistry[de.id]=de,de}var Ve;(function(de){de[de.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",de[de.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",de[de.accessibilitySupport=2]="accessibilitySupport",de[de.accessibilityPageSize=3]="accessibilityPageSize",de[de.ariaLabel=4]="ariaLabel",de[de.ariaRequired=5]="ariaRequired",de[de.autoClosingBrackets=6]="autoClosingBrackets",de[de.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",de[de.autoClosingDelete=8]="autoClosingDelete",de[de.autoClosingOvertype=9]="autoClosingOvertype",de[de.autoClosingQuotes=10]="autoClosingQuotes",de[de.autoIndent=11]="autoIndent",de[de.automaticLayout=12]="automaticLayout",de[de.autoSurround=13]="autoSurround",de[de.bracketPairColorization=14]="bracketPairColorization",de[de.guides=15]="guides",de[de.codeLens=16]="codeLens",de[de.codeLensFontFamily=17]="codeLensFontFamily",de[de.codeLensFontSize=18]="codeLensFontSize",de[de.colorDecorators=19]="colorDecorators",de[de.colorDecoratorsLimit=20]="colorDecoratorsLimit",de[de.columnSelection=21]="columnSelection",de[de.comments=22]="comments",de[de.contextmenu=23]="contextmenu",de[de.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",de[de.cursorBlinking=25]="cursorBlinking",de[de.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",de[de.cursorStyle=27]="cursorStyle",de[de.cursorSurroundingLines=28]="cursorSurroundingLines",de[de.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",de[de.cursorWidth=30]="cursorWidth",de[de.disableLayerHinting=31]="disableLayerHinting",de[de.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",de[de.domReadOnly=33]="domReadOnly",de[de.dragAndDrop=34]="dragAndDrop",de[de.dropIntoEditor=35]="dropIntoEditor",de[de.emptySelectionClipboard=36]="emptySelectionClipboard",de[de.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",de[de.extraEditorClassName=38]="extraEditorClassName",de[de.fastScrollSensitivity=39]="fastScrollSensitivity",de[de.find=40]="find",de[de.fixedOverflowWidgets=41]="fixedOverflowWidgets",de[de.folding=42]="folding",de[de.foldingStrategy=43]="foldingStrategy",de[de.foldingHighlight=44]="foldingHighlight",de[de.foldingImportsByDefault=45]="foldingImportsByDefault",de[de.foldingMaximumRegions=46]="foldingMaximumRegions",de[de.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",de[de.fontFamily=48]="fontFamily",de[de.fontInfo=49]="fontInfo",de[de.fontLigatures=50]="fontLigatures",de[de.fontSize=51]="fontSize",de[de.fontWeight=52]="fontWeight",de[de.fontVariations=53]="fontVariations",de[de.formatOnPaste=54]="formatOnPaste",de[de.formatOnType=55]="formatOnType",de[de.glyphMargin=56]="glyphMargin",de[de.gotoLocation=57]="gotoLocation",de[de.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",de[de.hover=59]="hover",de[de.inDiffEditor=60]="inDiffEditor",de[de.inlineSuggest=61]="inlineSuggest",de[de.letterSpacing=62]="letterSpacing",de[de.lightbulb=63]="lightbulb",de[de.lineDecorationsWidth=64]="lineDecorationsWidth",de[de.lineHeight=65]="lineHeight",de[de.lineNumbers=66]="lineNumbers",de[de.lineNumbersMinChars=67]="lineNumbersMinChars",de[de.linkedEditing=68]="linkedEditing",de[de.links=69]="links",de[de.matchBrackets=70]="matchBrackets",de[de.minimap=71]="minimap",de[de.mouseStyle=72]="mouseStyle",de[de.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",de[de.mouseWheelZoom=74]="mouseWheelZoom",de[de.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",de[de.multiCursorModifier=76]="multiCursorModifier",de[de.multiCursorPaste=77]="multiCursorPaste",de[de.multiCursorLimit=78]="multiCursorLimit",de[de.occurrencesHighlight=79]="occurrencesHighlight",de[de.overviewRulerBorder=80]="overviewRulerBorder",de[de.overviewRulerLanes=81]="overviewRulerLanes",de[de.padding=82]="padding",de[de.pasteAs=83]="pasteAs",de[de.parameterHints=84]="parameterHints",de[de.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",de[de.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",de[de.quickSuggestions=87]="quickSuggestions",de[de.quickSuggestionsDelay=88]="quickSuggestionsDelay",de[de.readOnly=89]="readOnly",de[de.readOnlyMessage=90]="readOnlyMessage",de[de.renameOnType=91]="renameOnType",de[de.renderControlCharacters=92]="renderControlCharacters",de[de.renderFinalNewline=93]="renderFinalNewline",de[de.renderLineHighlight=94]="renderLineHighlight",de[de.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",de[de.renderValidationDecorations=96]="renderValidationDecorations",de[de.renderWhitespace=97]="renderWhitespace",de[de.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",de[de.roundedSelection=99]="roundedSelection",de[de.rulers=100]="rulers",de[de.scrollbar=101]="scrollbar",de[de.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",de[de.scrollBeyondLastLine=103]="scrollBeyondLastLine",de[de.scrollPredominantAxis=104]="scrollPredominantAxis",de[de.selectionClipboard=105]="selectionClipboard",de[de.selectionHighlight=106]="selectionHighlight",de[de.selectOnLineNumbers=107]="selectOnLineNumbers",de[de.showFoldingControls=108]="showFoldingControls",de[de.showUnused=109]="showUnused",de[de.snippetSuggestions=110]="snippetSuggestions",de[de.smartSelect=111]="smartSelect",de[de.smoothScrolling=112]="smoothScrolling",de[de.stickyScroll=113]="stickyScroll",de[de.stickyTabStops=114]="stickyTabStops",de[de.stopRenderingLineAfter=115]="stopRenderingLineAfter",de[de.suggest=116]="suggest",de[de.suggestFontSize=117]="suggestFontSize",de[de.suggestLineHeight=118]="suggestLineHeight",de[de.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",de[de.suggestSelection=120]="suggestSelection",de[de.tabCompletion=121]="tabCompletion",de[de.tabIndex=122]="tabIndex",de[de.unicodeHighlighting=123]="unicodeHighlighting",de[de.unusualLineTerminators=124]="unusualLineTerminators",de[de.useShadowDOM=125]="useShadowDOM",de[de.useTabStops=126]="useTabStops",de[de.wordBreak=127]="wordBreak",de[de.wordSeparators=128]="wordSeparators",de[de.wordWrap=129]="wordWrap",de[de.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",de[de.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",de[de.wordWrapColumn=132]="wordWrapColumn",de[de.wordWrapOverride1=133]="wordWrapOverride1",de[de.wordWrapOverride2=134]="wordWrapOverride2",de[de.wrappingIndent=135]="wrappingIndent",de[de.wrappingStrategy=136]="wrappingStrategy",de[de.showDeprecated=137]="showDeprecated",de[de.inlayHints=138]="inlayHints",de[de.editorClassName=139]="editorClassName",de[de.pixelRatio=140]="pixelRatio",de[de.tabFocusMode=141]="tabFocusMode",de[de.layoutInfo=142]="layoutInfo",de[de.wrappingInfo=143]="wrappingInfo",de[de.defaultColorDecorators=144]="defaultColorDecorators",de[de.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",de[de.inlineCompletionsAccessibilityVerbose=146]="inlineCompletionsAccessibilityVerbose"})(Ve||(e.EditorOption=Ve={})),e.EditorOptions={acceptSuggestionOnCommitCharacter:Te(new h(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:u.localize(195,null)})),acceptSuggestionOnEnter:Te(new l(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",u.localize(196,null),""],markdownDescription:u.localize(197,null)})),accessibilitySupport:Te(new _),accessibilityPageSize:Te(new b(3,"accessibilityPageSize",10,1,1073741824,{description:u.localize(198,null),tags:["accessibility"]})),ariaLabel:Te(new n(4,"ariaLabel",u.localize(199,null))),ariaRequired:Te(new h(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:Te(new h(7,"screenReaderAnnounceInlineSuggestion",!0,{description:u.localize(200,null),tags:["accessibility"]})),autoClosingBrackets:Te(new l(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",u.localize(201,null),u.localize(202,null),""],description:u.localize(203,null)})),autoClosingDelete:Te(new l(8,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",u.localize(204,null),""],description:u.localize(205,null)})),autoClosingOvertype:Te(new l(9,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",u.localize(206,null),""],description:u.localize(207,null)})),autoClosingQuotes:Te(new l(10,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",u.localize(208,null),u.localize(209,null),""],description:u.localize(210,null)})),autoIndent:Te(new i(11,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],c,{enumDescriptions:[u.localize(211,null),u.localize(212,null),u.localize(213,null),u.localize(214,null),u.localize(215,null)],description:u.localize(216,null)})),automaticLayout:Te(new h(12,"automaticLayout",!1)),autoSurround:Te(new l(13,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[u.localize(217,null),u.localize(218,null),u.localize(219,null),""],description:u.localize(220,null)})),bracketPairColorization:Te(new ue),bracketPairGuides:Te(new Y),stickyTabStops:Te(new h(114,"stickyTabStops",!1,{description:u.localize(221,null)})),codeLens:Te(new h(16,"codeLens",!0,{description:u.localize(222,null)})),codeLensFontFamily:Te(new n(17,"codeLensFontFamily","",{description:u.localize(223,null)})),codeLensFontSize:Te(new b(18,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:u.localize(224,null)})),colorDecorators:Te(new h(19,"colorDecorators",!0,{description:u.localize(225,null)})),colorDecoratorActivatedOn:Te(new l(145,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[u.localize(226,null),u.localize(227,null),u.localize(228,null)],description:u.localize(229,null)})),colorDecoratorsLimit:Te(new b(20,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:u.localize(230,null)})),columnSelection:Te(new h(21,"columnSelection",!1,{description:u.localize(231,null)})),comments:Te(new S),contextmenu:Te(new h(23,"contextmenu",!0)),copyWithSyntaxHighlighting:Te(new h(24,"copyWithSyntaxHighlighting",!0,{description:u.localize(232,null)})),cursorBlinking:Te(new i(25,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],m,{description:u.localize(233,null)})),cursorSmoothCaretAnimation:Te(new l(26,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[u.localize(234,null),u.localize(235,null),u.localize(236,null)],description:u.localize(237,null)})),cursorStyle:Te(new i(27,"cursorStyle",v.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],L,{description:u.localize(238,null)})),cursorSurroundingLines:Te(new b(28,"cursorSurroundingLines",0,0,1073741824,{description:u.localize(239,null)})),cursorSurroundingLinesStyle:Te(new l(29,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[u.localize(240,null),u.localize(241,null)],description:u.localize(242,null)})),cursorWidth:Te(new b(30,"cursorWidth",0,0,1073741824,{markdownDescription:u.localize(243,null)})),disableLayerHinting:Te(new h(31,"disableLayerHinting",!1)),disableMonospaceOptimizations:Te(new h(32,"disableMonospaceOptimizations",!1)),domReadOnly:Te(new h(33,"domReadOnly",!1)),dragAndDrop:Te(new h(34,"dragAndDrop",!0,{description:u.localize(244,null)})),emptySelectionClipboard:Te(new H),dropIntoEditor:Te(new at),stickyScroll:Te(new ce),experimentalWhitespaceRendering:Te(new l(37,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[u.localize(245,null),u.localize(246,null),u.localize(247,null)],description:u.localize(248,null)})),extraEditorClassName:Te(new n(38,"extraEditorClassName","")),fastScrollSensitivity:Te(new T(39,"fastScrollSensitivity",5,de=>de<=0?5:de,{markdownDescription:u.localize(249,null)})),find:Te(new N),fixedOverflowWidgets:Te(new h(41,"fixedOverflowWidgets",!1)),folding:Te(new h(42,"folding",!0,{description:u.localize(250,null)})),foldingStrategy:Te(new l(43,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[u.localize(251,null),u.localize(252,null)],description:u.localize(253,null)})),foldingHighlight:Te(new h(44,"foldingHighlight",!0,{description:u.localize(254,null)})),foldingImportsByDefault:Te(new h(45,"foldingImportsByDefault",!1,{description:u.localize(255,null)})),foldingMaximumRegions:Te(new b(46,"foldingMaximumRegions",5e3,10,65e3,{description:u.localize(256,null)})),unfoldOnClickAfterEndOfLine:Te(new h(47,"unfoldOnClickAfterEndOfLine",!1,{description:u.localize(257,null)})),fontFamily:Te(new n(48,"fontFamily",e.EDITOR_FONT_DEFAULTS.fontFamily,{description:u.localize(258,null)})),fontInfo:Te(new x),fontLigatures2:Te(new $),fontSize:Te(new X),fontWeight:Te(new K),fontVariations:Te(new U),formatOnPaste:Te(new h(54,"formatOnPaste",!1,{description:u.localize(259,null)})),formatOnType:Te(new h(55,"formatOnType",!1,{description:u.localize(260,null)})),glyphMargin:Te(new h(56,"glyphMargin",!0,{description:u.localize(261,null)})),gotoLocation:Te(new pe),hideCursorInOverviewRuler:Te(new h(58,"hideCursorInOverviewRuler",!1,{description:u.localize(262,null)})),hover:Te(new le),inDiffEditor:Te(new h(60,"inDiffEditor",!1)),letterSpacing:Te(new T(62,"letterSpacing",e.EDITOR_FONT_DEFAULTS.letterSpacing,de=>T.clamp(de,-5,20),{description:u.localize(263,null)})),lightbulb:Te(new ve),lineDecorationsWidth:Te(new te),lineHeight:Te(new B),lineNumbers:Te(new V),lineNumbersMinChars:Te(new b(67,"lineNumbersMinChars",5,1,300)),linkedEditing:Te(new h(68,"linkedEditing",!1,{description:u.localize(264,null)})),links:Te(new h(69,"links",!0,{description:u.localize(265,null)})),matchBrackets:Te(new l(70,"matchBrackets","always",["always","near","never"],{description:u.localize(266,null)})),minimap:Te(new G),mouseStyle:Te(new l(72,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Te(new T(73,"mouseWheelScrollSensitivity",1,de=>de===0?1:de,{markdownDescription:u.localize(267,null)})),mouseWheelZoom:Te(new h(74,"mouseWheelZoom",!1,{markdownDescription:u.localize(268,null)})),multiCursorMergeOverlapping:Te(new h(75,"multiCursorMergeOverlapping",!0,{description:u.localize(269,null)})),multiCursorModifier:Te(new i(76,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],fe,{markdownEnumDescriptions:[u.localize(270,null),u.localize(271,null)],markdownDescription:u.localize(272,null)})),multiCursorPaste:Te(new l(77,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[u.localize(273,null),u.localize(274,null)],markdownDescription:u.localize(275,null)})),multiCursorLimit:Te(new b(78,"multiCursorLimit",1e4,1,1e5,{markdownDescription:u.localize(276,null)})),occurrencesHighlight:Te(new h(79,"occurrencesHighlight",!0,{description:u.localize(277,null)})),overviewRulerBorder:Te(new h(80,"overviewRulerBorder",!0,{description:u.localize(278,null)})),overviewRulerLanes:Te(new b(81,"overviewRulerLanes",3,0,3)),padding:Te(new _e),pasteAs:Te(new it),parameterHints:Te(new Ee),peekWidgetDefaultFocus:Te(new l(85,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[u.localize(279,null),u.localize(280,null)],description:u.localize(281,null)})),definitionLinkOpensInPeek:Te(new h(86,"definitionLinkOpensInPeek",!1,{description:u.localize(282,null)})),quickSuggestions:Te(new J),quickSuggestionsDelay:Te(new b(88,"quickSuggestionsDelay",10,0,1073741824,{description:u.localize(283,null)})),readOnly:Te(new h(89,"readOnly",!1)),readOnlyMessage:Te(new he),renameOnType:Te(new h(91,"renameOnType",!1,{description:u.localize(284,null),markdownDeprecationMessage:u.localize(285,null)})),renderControlCharacters:Te(new h(92,"renderControlCharacters",!0,{description:u.localize(286,null),restricted:!0})),renderFinalNewline:Te(new l(93,"renderFinalNewline",d.isLinux?"dimmed":"on",["off","on","dimmed"],{description:u.localize(287,null)})),renderLineHighlight:Te(new l(94,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",u.localize(288,null)],description:u.localize(289,null)})),renderLineHighlightOnlyWhenFocus:Te(new h(95,"renderLineHighlightOnlyWhenFocus",!1,{description:u.localize(290,null)})),renderValidationDecorations:Te(new l(96,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Te(new l(97,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",u.localize(291,null),u.localize(292,null),u.localize(293,null),""],description:u.localize(294,null)})),revealHorizontalRightPadding:Te(new b(98,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Te(new h(99,"roundedSelection",!0,{description:u.localize(295,null)})),rulers:Te(new Z),scrollbar:Te(new z),scrollBeyondLastColumn:Te(new b(102,"scrollBeyondLastColumn",4,0,1073741824,{description:u.localize(296,null)})),scrollBeyondLastLine:Te(new h(103,"scrollBeyondLastLine",!0,{description:u.localize(297,null)})),scrollPredominantAxis:Te(new h(104,"scrollPredominantAxis",!0,{description:u.localize(298,null)})),selectionClipboard:Te(new h(105,"selectionClipboard",!0,{description:u.localize(299,null),included:d.isLinux})),selectionHighlight:Te(new h(106,"selectionHighlight",!0,{description:u.localize(300,null)})),selectOnLineNumbers:Te(new h(107,"selectOnLineNumbers",!0)),showFoldingControls:Te(new l(108,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[u.localize(301,null),u.localize(302,null),u.localize(303,null)],description:u.localize(304,null)})),showUnused:Te(new h(109,"showUnused",!0,{description:u.localize(305,null)})),showDeprecated:Te(new h(137,"showDeprecated",!0,{description:u.localize(306,null)})),inlayHints:Te(new se),snippetSuggestions:Te(new l(110,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[u.localize(307,null),u.localize(308,null),u.localize(309,null),u.localize(310,null)],description:u.localize(311,null)})),smartSelect:Te(new Ue),smoothScrolling:Te(new h(112,"smoothScrolling",!1,{description:u.localize(312,null)})),stopRenderingLineAfter:Te(new b(115,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Te(new Se),inlineSuggest:Te(new ie),inlineCompletionsAccessibilityVerbose:Te(new h(146,"inlineCompletionsAccessibilityVerbose",!1,{description:u.localize(313,null)})),suggestFontSize:Te(new b(117,"suggestFontSize",0,0,1e3,{markdownDescription:u.localize(314,null,"`0`","`#editor.fontSize#`")})),suggestLineHeight:Te(new b(118,"suggestLineHeight",0,0,1e3,{markdownDescription:u.localize(315,null,"`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Te(new h(119,"suggestOnTriggerCharacters",!0,{description:u.localize(316,null)})),suggestSelection:Te(new l(120,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[u.localize(317,null),u.localize(318,null),u.localize(319,null)],description:u.localize(320,null)})),tabCompletion:Te(new l(121,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[u.localize(321,null),u.localize(322,null),u.localize(323,null)],description:u.localize(324,null)})),tabIndex:Te(new b(122,"tabIndex",0,-1,1073741824)),unicodeHighlight:Te(new ee),unusualLineTerminators:Te(new l(124,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[u.localize(325,null),u.localize(326,null),u.localize(327,null)],description:u.localize(328,null)})),useShadowDOM:Te(new h(125,"useShadowDOM",!0)),useTabStops:Te(new h(126,"useTabStops",!0,{description:u.localize(329,null)})),wordBreak:Te(new l(127,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[u.localize(330,null),u.localize(331,null)],description:u.localize(332,null)})),wordSeparators:Te(new n(128,"wordSeparators",R.USUAL_WORD_SEPARATORS,{description:u.localize(333,null)})),wordWrap:Te(new l(129,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[u.localize(334,null),u.localize(335,null),u.localize(336,null),u.localize(337,null)],description:u.localize(338,null)})),wordWrapBreakAfterCharacters:Te(new n(130,"wordWrapBreakAfterCharacters"," 	})]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:Te(new n(131,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:Te(new b(132,"wordWrapColumn",80,1,1073741824,{markdownDescription:u.localize(339,null)})),wordWrapOverride1:Te(new l(133,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Te(new l(134,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Te(new O),defaultColorDecorators:Te(new h(144,"defaultColorDecorators",!1,{markdownDescription:u.localize(340,null)})),pixelRatio:Te(new F),tabFocusMode:Te(new h(141,"tabFocusMode",!1,{markdownDescription:u.localize(341,null)})),layoutInfo:Te(new q),wrappingInfo:Te(new Ye),wrappingIndent:Te(new et),wrappingStrategy:Te(new oe)}}),define(ye[196],Ce([9,10]),function(ge,e){return ge.create("vs/editor/common/languages",e)}),define(ye[81],Ce([1,0,74,2,166,37,176,196]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExternalUriOpenerPriority=e.TokenizationRegistry=e.LazyTokenizationSupport=e.InlayHintKind=e.CommentState=e.CommentMode=e.CommentThreadState=e.CommentThreadCollapsibleState=e.Command=e.FoldingRangeKind=e.TextEdit=e.SymbolKinds=e.SymbolTag=e.getAriaLabelForSymbol=e.symbolKindNames=e.SymbolKind=e.isLocationLink=e.DocumentHighlightKind=e.SignatureHelpTriggerKind=e.CodeActionTriggerType=e.SelectedSuggestionInfo=e.InlineCompletionTriggerKind=e.CompletionTriggerKind=e.CompletionItemInsertTextRule=e.CompletionItemTag=e.CompletionItemKinds=e.CompletionItemKind=e.EncodedTokenizationResult=e.TokenizationResult=e.Token=void 0;class p{constructor($,U,x){this.offset=$,this.type=U,this.language=x,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=p;class f{constructor($,U){this.tokens=$,this.endState=U,this._tokenizationResultBrand=void 0}}e.TokenizationResult=f;class y{constructor($,U){this.tokens=$,this.endState=U,this._encodedTokenizationResultBrand=void 0}}e.EncodedTokenizationResult=y;var E;(function(N){N[N.Method=0]="Method",N[N.Function=1]="Function",N[N.Constructor=2]="Constructor",N[N.Field=3]="Field",N[N.Variable=4]="Variable",N[N.Class=5]="Class",N[N.Struct=6]="Struct",N[N.Interface=7]="Interface",N[N.Module=8]="Module",N[N.Property=9]="Property",N[N.Event=10]="Event",N[N.Operator=11]="Operator",N[N.Unit=12]="Unit",N[N.Value=13]="Value",N[N.Constant=14]="Constant",N[N.Enum=15]="Enum",N[N.EnumMember=16]="EnumMember",N[N.Keyword=17]="Keyword",N[N.Text=18]="Text",N[N.Color=19]="Color",N[N.File=20]="File",N[N.Reference=21]="Reference",N[N.Customcolor=22]="Customcolor",N[N.Folder=23]="Folder",N[N.TypeParameter=24]="TypeParameter",N[N.User=25]="User",N[N.Issue=26]="Issue",N[N.Snippet=27]="Snippet"})(E||(e.CompletionItemKind=E={}));var t;(function(N){const $=new Map;$.set(0,w.Codicon.symbolMethod),$.set(1,w.Codicon.symbolFunction),$.set(2,w.Codicon.symbolConstructor),$.set(3,w.Codicon.symbolField),$.set(4,w.Codicon.symbolVariable),$.set(5,w.Codicon.symbolClass),$.set(6,w.Codicon.symbolStruct),$.set(7,w.Codicon.symbolInterface),$.set(8,w.Codicon.symbolModule),$.set(9,w.Codicon.symbolProperty),$.set(10,w.Codicon.symbolEvent),$.set(11,w.Codicon.symbolOperator),$.set(12,w.Codicon.symbolUnit),$.set(13,w.Codicon.symbolValue),$.set(15,w.Codicon.symbolEnum),$.set(14,w.Codicon.symbolConstant),$.set(15,w.Codicon.symbolEnum),$.set(16,w.Codicon.symbolEnumMember),$.set(17,w.Codicon.symbolKeyword),$.set(27,w.Codicon.symbolSnippet),$.set(18,w.Codicon.symbolText),$.set(19,w.Codicon.symbolColor),$.set(20,w.Codicon.symbolFile),$.set(21,w.Codicon.symbolReference),$.set(22,w.Codicon.symbolCustomColor),$.set(23,w.Codicon.symbolFolder),$.set(24,w.Codicon.symbolTypeParameter),$.set(25,w.Codicon.account),$.set(26,w.Codicon.issues);function U(K){let pe=$.get(K);return pe||(console.info("No codicon found for CompletionItemKind "+K),pe=w.Codicon.symbolProperty),pe}N.toIcon=U;const x=new Map;x.set("method",0),x.set("function",1),x.set("constructor",2),x.set("field",3),x.set("variable",4),x.set("class",5),x.set("struct",6),x.set("interface",7),x.set("module",8),x.set("property",9),x.set("event",10),x.set("operator",11),x.set("unit",12),x.set("value",13),x.set("constant",14),x.set("enum",15),x.set("enum-member",16),x.set("enumMember",16),x.set("keyword",17),x.set("snippet",27),x.set("text",18),x.set("color",19),x.set("file",20),x.set("reference",21),x.set("customcolor",22),x.set("folder",23),x.set("type-parameter",24),x.set("typeParameter",24),x.set("account",25),x.set("issue",26);function X(K,pe){let le=x.get(K);return typeof le>"u"&&!pe&&(le=9),le}N.fromString=X})(t||(e.CompletionItemKinds=t={}));var s;(function(N){N[N.Deprecated=1]="Deprecated"})(s||(e.CompletionItemTag=s={}));var g;(function(N){N[N.None=0]="None",N[N.KeepWhitespace=1]="KeepWhitespace",N[N.InsertAsSnippet=4]="InsertAsSnippet"})(g||(e.CompletionItemInsertTextRule=g={}));var C;(function(N){N[N.Invoke=0]="Invoke",N[N.TriggerCharacter=1]="TriggerCharacter",N[N.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(C||(e.CompletionTriggerKind=C={}));var r;(function(N){N[N.Automatic=0]="Automatic",N[N.Explicit=1]="Explicit"})(r||(e.InlineCompletionTriggerKind=r={}));class h{constructor($,U,x,X){this.range=$,this.text=U,this.completionKind=x,this.isSnippetText=X}equals($){return A.Range.lift(this.range).equalsRange($.range)&&this.text===$.text&&this.completionKind===$.completionKind&&this.isSnippetText===$.isSnippetText}}e.SelectedSuggestionInfo=h;var o;(function(N){N[N.Invoke=1]="Invoke",N[N.Auto=2]="Auto"})(o||(e.CodeActionTriggerType=o={}));var b;(function(N){N[N.Invoke=1]="Invoke",N[N.TriggerCharacter=2]="TriggerCharacter",N[N.ContentChange=3]="ContentChange"})(b||(e.SignatureHelpTriggerKind=b={}));var P;(function(N){N[N.Text=0]="Text",N[N.Read=1]="Read",N[N.Write=2]="Write"})(P||(e.DocumentHighlightKind=P={}));function T(N){return N&&M.URI.isUri(N.uri)&&A.Range.isIRange(N.range)&&(A.Range.isIRange(N.originSelectionRange)||A.Range.isIRange(N.targetSelectionRange))}e.isLocationLink=T;var n;(function(N){N[N.File=0]="File",N[N.Module=1]="Module",N[N.Namespace=2]="Namespace",N[N.Package=3]="Package",N[N.Class=4]="Class",N[N.Method=5]="Method",N[N.Property=6]="Property",N[N.Field=7]="Field",N[N.Constructor=8]="Constructor",N[N.Enum=9]="Enum",N[N.Interface=10]="Interface",N[N.Function=11]="Function",N[N.Variable=12]="Variable",N[N.Constant=13]="Constant",N[N.String=14]="String",N[N.Number=15]="Number",N[N.Boolean=16]="Boolean",N[N.Array=17]="Array",N[N.Object=18]="Object",N[N.Key=19]="Key",N[N.Null=20]="Null",N[N.EnumMember=21]="EnumMember",N[N.Struct=22]="Struct",N[N.Event=23]="Event",N[N.Operator=24]="Operator",N[N.TypeParameter=25]="TypeParameter"})(n||(e.SymbolKind=n={})),e.symbolKindNames={[17]:(0,u.localize)(0,null),[16]:(0,u.localize)(1,null),[4]:(0,u.localize)(2,null),[13]:(0,u.localize)(3,null),[8]:(0,u.localize)(4,null),[9]:(0,u.localize)(5,null),[21]:(0,u.localize)(6,null),[23]:(0,u.localize)(7,null),[7]:(0,u.localize)(8,null),[0]:(0,u.localize)(9,null),[11]:(0,u.localize)(10,null),[10]:(0,u.localize)(11,null),[19]:(0,u.localize)(12,null),[5]:(0,u.localize)(13,null),[1]:(0,u.localize)(14,null),[2]:(0,u.localize)(15,null),[20]:(0,u.localize)(16,null),[15]:(0,u.localize)(17,null),[18]:(0,u.localize)(18,null),[24]:(0,u.localize)(19,null),[3]:(0,u.localize)(20,null),[6]:(0,u.localize)(21,null),[14]:(0,u.localize)(22,null),[22]:(0,u.localize)(23,null),[25]:(0,u.localize)(24,null),[12]:(0,u.localize)(25,null)};function a(N,$){return(0,u.localize)(26,null,N,e.symbolKindNames[$])}e.getAriaLabelForSymbol=a;var l;(function(N){N[N.Deprecated=1]="Deprecated"})(l||(e.SymbolTag=l={}));var i;(function(N){const $=new Map;$.set(0,w.Codicon.symbolFile),$.set(1,w.Codicon.symbolModule),$.set(2,w.Codicon.symbolNamespace),$.set(3,w.Codicon.symbolPackage),$.set(4,w.Codicon.symbolClass),$.set(5,w.Codicon.symbolMethod),$.set(6,w.Codicon.symbolProperty),$.set(7,w.Codicon.symbolField),$.set(8,w.Codicon.symbolConstructor),$.set(9,w.Codicon.symbolEnum),$.set(10,w.Codicon.symbolInterface),$.set(11,w.Codicon.symbolFunction),$.set(12,w.Codicon.symbolVariable),$.set(13,w.Codicon.symbolConstant),$.set(14,w.Codicon.symbolString),$.set(15,w.Codicon.symbolNumber),$.set(16,w.Codicon.symbolBoolean),$.set(17,w.Codicon.symbolArray),$.set(18,w.Codicon.symbolObject),$.set(19,w.Codicon.symbolKey),$.set(20,w.Codicon.symbolNull),$.set(21,w.Codicon.symbolEnumMember),$.set(22,w.Codicon.symbolStruct),$.set(23,w.Codicon.symbolEvent),$.set(24,w.Codicon.symbolOperator),$.set(25,w.Codicon.symbolTypeParameter);function U(x){let X=$.get(x);return X||(console.info("No codicon found for SymbolKind "+x),X=w.Codicon.symbolProperty),X}N.toIcon=U})(i||(e.SymbolKinds=i={}));class c{static asEditOperation($){return d.EditOperation.replace(A.Range.lift($.range),$.text)}}e.TextEdit=c;class _{static{this.Comment=new _("comment")}static{this.Imports=new _("imports")}static{this.Region=new _("region")}static fromValue($){switch($){case"comment":return _.Comment;case"imports":return _.Imports;case"region":return _.Region}return new _($)}constructor($){this.value=$}}e.FoldingRangeKind=_;var S;(function(N){function $(U){return!U||typeof U!="object"?!1:typeof U.id=="string"&&typeof U.title=="string"}N.is=$})(S||(e.Command=S={}));var k;(function(N){N[N.Collapsed=0]="Collapsed",N[N.Expanded=1]="Expanded"})(k||(e.CommentThreadCollapsibleState=k={}));var m;(function(N){N[N.Unresolved=0]="Unresolved",N[N.Resolved=1]="Resolved"})(m||(e.CommentThreadState=m={}));var v;(function(N){N[N.Editing=0]="Editing",N[N.Preview=1]="Preview"})(v||(e.CommentMode=v={}));var D;(function(N){N[N.Published=0]="Published",N[N.Draft=1]="Draft"})(D||(e.CommentState=D={}));var L;(function(N){N[N.Type=1]="Type",N[N.Parameter=2]="Parameter"})(L||(e.InlayHintKind=L={}));class O{constructor($){this.createSupport=$,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then($=>{$&&$.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}e.LazyTokenizationSupport=O,e.TokenizationRegistry=new R.TokenizationRegistry;var H;(function(N){N[N.None=0]="None",N[N.Option=1]="Option",N[N.Default=2]="Default",N[N.Preferred=3]="Preferred"})(H||(e.ExternalUriOpenerPriority=H={}))}),define(ye[197],Ce([9,10]),function(ge,e){return ge.create("vs/platform/configuration/common/configurationRegistry",e)}),define(ye[198],Ce([9,10]),function(ge,e){return ge.create("vs/platform/contextkey/common/contextkey",e)}),define(ye[199],Ce([9,10]),function(ge,e){return ge.create("vs/platform/contextkey/common/scanner",e)}),define(ye[200],Ce([9,10]),function(ge,e){return ge.create("vs/platform/extensionManagement/common/extensionManagement",e)}),define(ye[201],Ce([9,10]),function(ge,e){return ge.create("vs/platform/extensions/common/extensionValidator",e)}),define(ye[202],Ce([9,10]),function(ge,e){return ge.create("vs/platform/files/common/files",e)}),define(ye[203],Ce([9,10]),function(ge,e){return ge.create("vs/platform/files/common/io",e)}),define(ye[204],Ce([9,10]),function(ge,e){return ge.create("vs/platform/files/node/diskFileSystemProvider",e)}),define(ye[205],Ce([9,10]),function(ge,e){return ge.create("vs/platform/markers/common/markers",e)}),define(ye[206],Ce([9,10]),function(ge,e){return ge.create("vs/platform/theme/common/iconRegistry",e)}),define(ye[207],Ce([9,10]),function(ge,e){return ge.create("vs/platform/workspace/common/workspace",e)}),define(ye[208],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostChat",e)}),define(ye[209],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostDiagnostics",e)}),define(ye[210],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostExtensionService",e)}),define(ye[211],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostLanguageFeatures",e)}),define(ye[212],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostLogService",e)}),define(ye[213],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostNotebook",e)}),define(ye[214],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostProgress",e)}),define(ye[215],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostStatusBar",e)}),define(ye[216],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostTelemetry",e)}),define(ye[217],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostTerminalService",e)}),define(ye[218],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostTreeViews",e)}),define(ye[219],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostTunnelService",e)}),define(ye[220],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/api/common/extHostWorkspace",e)}),define(ye[221],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/common/editor",e)}),define(ye[222],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/common/views",e)}),define(ye[223],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/contrib/debug/common/debug",e)}),define(ye[224],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/contrib/tasks/common/taskDefinitionRegistry",e)}),define(ye[225],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/contrib/tasks/common/tasks",e)}),define(ye[226],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/services/configurationResolver/common/variableResolver",e)}),define(ye[227],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/services/extensions/common/extensionsRegistry",e)}),define(ye[228],Ce([9,10]),function(ge,e){return ge.create("vs/workbench/services/search/common/queryBuilder",e)}),define(ye[229],Ce([1,0,8,199]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scanner=e.TokenType=void 0;var d;(function(f){f[f.LParen=0]="LParen",f[f.RParen=1]="RParen",f[f.Neg=2]="Neg",f[f.Eq=3]="Eq",f[f.NotEq=4]="NotEq",f[f.Lt=5]="Lt",f[f.LtEq=6]="LtEq",f[f.Gt=7]="Gt",f[f.GtEq=8]="GtEq",f[f.RegexOp=9]="RegexOp",f[f.RegexStr=10]="RegexStr",f[f.True=11]="True",f[f.False=12]="False",f[f.In=13]="In",f[f.Not=14]="Not",f[f.And=15]="And",f[f.Or=16]="Or",f[f.Str=17]="Str",f[f.QuotedStr=18]="QuotedStr",f[f.Error=19]="Error",f[f.EOF=20]="EOF"})(d||(e.TokenType=d={}));function A(...f){switch(f.length){case 1:return(0,M.localize)(0,null,f[0]);case 2:return(0,M.localize)(1,null,f[0],f[1]);case 3:return(0,M.localize)(2,null,f[0],f[1],f[2]);default:return}}const R=(0,M.localize)(3,null),u=(0,M.localize)(4,null);class p{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(y){switch(y.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return y.isTripleEq?"===":"==";case 4:return y.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return y.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return y.lexeme;case 18:return y.lexeme;case 19:return y.lexeme;case 20:return"EOF";default:throw(0,w.illegalState)(`unhandled token type: ${JSON.stringify(y)}; have you forgotten to add a case?`)}}static{this._regexFlags=new Set(["i","g","s","m","y","u"].map(y=>y.charCodeAt(0)))}static{this._keywords=new Map([["not",14],["in",13],["false",12],["true",11]])}get errors(){return this._errors}reset(y){return this._input=y,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const E=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:E})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const E=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:E})}else this._match(126)?this._addToken(9):this._error(A("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(A("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(A("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(y){return this._isAtEnd()||this._input.charCodeAt(this._current)!==y?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(y){this._tokens.push({type:y,offset:this._start})}_error(y){const E=this._start,t=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:t};this._errors.push({offset:E,lexeme:t,additionalInfo:y}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const y=this.stringRe.exec(this._input);if(y){this._current=this._start+y[0].length;const E=this._input.substring(this._start,this._current),t=p._keywords.get(E);t?this._addToken(t):this._tokens.push({type:17,lexeme:E,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(R);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let y=this._current,E=!1,t=!1;for(;;){if(y>=this._input.length){this._current=y,this._error(u);return}const g=this._input.charCodeAt(y);if(E)E=!1;else if(g===47&&!t){y++;break}else g===91?t=!0:g===92?E=!0:g===93&&(t=!1);y++}for(;y<this._input.length&&p._regexFlags.has(this._input.charCodeAt(y));)y++;this._current=y;const s=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:s,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}}e.Scanner=p}),define(ye[230],Ce([1,0,25,43,201,391,178]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEngineValid=e.isValidExtensionVersion=e.validateExtensionManifest=e.isValidVersion=e.normalizeVersion=e.parseVersion=e.isValidVersionStr=void 0;const u=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/,p=/^-(\d{4})(\d{2})(\d{2})$/;function f(o){return o=o.trim(),o==="*"||u.test(o)}e.isValidVersionStr=f;function y(o){if(!f(o))return null;if(o=o.trim(),o==="*")return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};const b=o.match(u);return b?{hasCaret:b[1]==="^",hasGreaterEquals:b[1]===">=",majorBase:b[2]==="x"?0:parseInt(b[2],10),majorMustEqual:b[2]!=="x",minorBase:b[4]==="x"?0:parseInt(b[4],10),minorMustEqual:b[4]!=="x",patchBase:b[6]==="x"?0:parseInt(b[6],10),patchMustEqual:b[6]!=="x",preRelease:b[8]||null}:null}e.parseVersion=y;function E(o){if(!o)return null;const b=o.majorBase,P=o.majorMustEqual,T=o.minorBase;let n=o.minorMustEqual;const a=o.patchBase;let l=o.patchMustEqual;o.hasCaret&&(b===0||(n=!1),l=!1);let i=0;if(o.preRelease){const c=p.exec(o.preRelease);if(c){const[,_,S,k]=c;i=Date.UTC(Number(_),Number(S)-1,Number(k))}}return{majorBase:b,majorMustEqual:P,minorBase:T,minorMustEqual:n,patchBase:a,patchMustEqual:l,isMinimum:o.hasGreaterEquals,notBefore:i}}e.normalizeVersion=E;function t(o,b,P){let T;typeof o=="string"?T=E(y(o)):T=o;let n;b instanceof Date?n=b.getTime():typeof b=="string"&&(n=new Date(b).getTime());let a;if(typeof P=="string"?a=E(y(P)):a=P,!T||!a)return!1;const l=T.majorBase,i=T.minorBase,c=T.patchBase;let _=a.majorBase,S=a.minorBase,k=a.patchBase;const m=a.notBefore;let v=a.majorMustEqual,D=a.minorMustEqual,L=a.patchMustEqual;return a.isMinimum?l>_?!0:l<_?!1:i>S?!0:i<S||n&&n<m?!1:c>=k:(l===1&&_===0&&(!v||!D||!L)&&(_=1,S=0,k=0,v=!0,D=!1,L=!1),l<_?!1:l>_?!v:i<S?!1:i>S?!D:c<k?!1:c>k?!L:!(n&&n<m))}e.isValidVersion=t;function s(o,b,P,T,n,a){const l=[];if(typeof n.publisher<"u"&&typeof n.publisher!="string")return l.push([M.default.Error,d.localize(0,null)]),l;if(typeof n.name!="string")return l.push([M.default.Error,d.localize(1,null,"name")]),l;if(typeof n.version!="string")return l.push([M.default.Error,d.localize(2,null,"version")]),l;if(!n.engines)return l.push([M.default.Error,d.localize(3,null,"engines")]),l;if(typeof n.engines.vscode!="string")return l.push([M.default.Error,d.localize(4,null,"engines.vscode")]),l;if(typeof n.extensionDependencies<"u"&&!h(n.extensionDependencies))return l.push([M.default.Error,d.localize(5,null,"extensionDependencies")]),l;if(typeof n.activationEvents<"u"){if(!h(n.activationEvents))return l.push([M.default.Error,d.localize(6,null,"activationEvents")]),l;if(typeof n.main>"u"&&typeof n.browser>"u")return l.push([M.default.Error,d.localize(7,null,"activationEvents","main","browser")]),l}if(typeof n.extensionKind<"u"&&typeof n.main>"u"&&l.push([M.default.Warning,d.localize(8,null,"extensionKind")]),typeof n.main<"u"){if(typeof n.main!="string")return l.push([M.default.Error,d.localize(9,null,"main")]),l;{const _=(0,w.joinPath)(T,n.main);(0,w.isEqualOrParent)(_,T)||l.push([M.default.Warning,d.localize(10,null,_.path,T.path)])}}if(typeof n.browser<"u"){if(typeof n.browser!="string")return l.push([M.default.Error,d.localize(11,null,"browser")]),l;{const _=(0,w.joinPath)(T,n.browser);(0,w.isEqualOrParent)(_,T)||l.push([M.default.Warning,d.localize(12,null,_.path,T.path)])}}if(!A.valid(n.version))return l.push([M.default.Error,d.localize(13,null)]),l;const i=[];if(!g(o,b,P,n,a,i))for(const _ of i)l.push([M.default.Error,_]);return l}e.validateExtensionManifest=s;function g(o,b,P,T,n,a){if(n||typeof T.main>"u"&&typeof T.browser>"u")return!0;const l=T.engines.azdata,i=T.engines.vscode,c=l?l==="*"||r(o,P,l,R.versionSyntax("engines.azdata",l),R.versionMismatch(o,l),a):!0,_=i?i==="*"||r(b,P,i,R.versionSyntax("engines.vscode",i),R.versionMismatchVsCode(o,i,b),a):!0;return c&&_}e.isValidExtensionVersion=g;function C(o,b,P){return o==="*"||r(b,P,o,"","")}e.isEngineValid=C;function r(o,b,P,T,n,a=[]){const l=E(y(P));return l?t(o,b,l)?!0:(a.push(n),!1):(a.push(T),!1)}function h(o){if(!Array.isArray(o))return!1;for(let b=0,P=o.length;b<P;b++)if(typeof o[b]!="string")return!1;return!0}}),define(ye[99],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyncDescriptor=void 0;class w{constructor(d,A=[],R=!1){this.ctor=d,this.staticArguments=A,this.supportsDelayedInstantiation=R}}e.SyncDescriptor=w}),define(ye[100],Ce([1,0,99]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingletonServiceDescriptors=e.registerSingleton=e.InstantiationType=void 0;const M=[];var d;(function(u){u[u.Eager=0]="Eager",u[u.Delayed=1]="Delayed"})(d||(e.InstantiationType=d={}));function A(u,p,f){p instanceof w.SyncDescriptor||(p=new w.SyncDescriptor(p,[],!!f)),M.push([u,p])}e.registerSingleton=A;function R(){return M}e.getSingletonServiceDescriptors=R}),define(ye[231],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=e.Node=void 0;class w{constructor(A,R){this.key=A,this.data=R,this.incoming=new Map,this.outgoing=new Map}}e.Node=w;class M{constructor(A){this._hashFn=A,this._nodes=new Map}roots(){const A=[];for(const R of this._nodes.values())R.outgoing.size===0&&A.push(R);return A}insertEdge(A,R){const u=this.lookupOrInsertNode(A),p=this.lookupOrInsertNode(R);u.outgoing.set(p.key,p),p.incoming.set(u.key,u)}removeNode(A){const R=this._hashFn(A);this._nodes.delete(R);for(const u of this._nodes.values())u.outgoing.delete(R),u.incoming.delete(R)}lookupOrInsertNode(A){const R=this._hashFn(A);let u=this._nodes.get(R);return u||(u=new w(R,A),this._nodes.set(R,u)),u}lookup(A){return this._nodes.get(this._hashFn(A))}isEmpty(){return this._nodes.size===0}toString(){const A=[];for(const[R,u]of this._nodes)A.push(`${R}
	(-> incoming)[${[...u.incoming.keys()].join(", ")}]
	(outgoing ->)[${[...u.outgoing.keys()].join(",")}]
`);return A.join(`
`)}findCycleSlow(){for(const[A,R]of this._nodes){const u=new Set([A]),p=this._findCycle(R,u);if(p)return p}}_findCycle(A,R){for(const[u,p]of A.outgoing){if(R.has(u))return[...R,u].join(" -> ");R.add(u);const f=this._findCycle(p,R);if(f)return f;R.delete(u)}}}e.Graph=M}),define(ye[6],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var w;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function u(p){return p[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=u})(w||(e._util=w={})),e.IInstantiationService=d("instantiationService");function M(R,u,p){u[w.DI_TARGET]===u?u[w.DI_DEPENDENCIES].push({id:R,index:p}):(u[w.DI_DEPENDENCIES]=[{id:R,index:p}],u[w.DI_TARGET]=u)}function d(R){if(w.serviceIds.has(R))return w.serviceIds.get(R);const u=function(p,f,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");M(u,p,y)};return u.toString=()=>R,w.serviceIds.set(R,u),u}e.createDecorator=d;function A(R){return R}e.refineServiceDecorator=A}),define(ye[53],Ce([1,0,18,2,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLanguageTagSettingPlainKey=e.merge=e.getConfigurationValue=e.removeFromValueTree=e.addToValueTree=e.toValuesTree=e.isConfigured=e.ConfigurationTargetToString=e.ConfigurationTarget=e.isConfigurationUpdateOverrides=e.isConfigurationOverrides=e.IConfigurationService=void 0,e.IConfigurationService=(0,d.createDecorator)("configurationService");function A(h){return h&&typeof h=="object"&&(!h.overrideIdentifier||typeof h.overrideIdentifier=="string")&&(!h.resource||h.resource instanceof M.URI)}e.isConfigurationOverrides=A;function R(h){return h&&typeof h=="object"&&(!h.overrideIdentifiers||Array.isArray(h.overrideIdentifiers))&&!h.overrideIdentifier&&(!h.resource||h.resource instanceof M.URI)}e.isConfigurationUpdateOverrides=R;var u;(function(h){h[h.APPLICATION=1]="APPLICATION",h[h.USER=2]="USER",h[h.USER_LOCAL=3]="USER_LOCAL",h[h.USER_REMOTE=4]="USER_REMOTE",h[h.WORKSPACE=5]="WORKSPACE",h[h.WORKSPACE_FOLDER=6]="WORKSPACE_FOLDER",h[h.DEFAULT=7]="DEFAULT",h[h.MEMORY=8]="MEMORY"})(u||(e.ConfigurationTarget=u={}));function p(h){switch(h){case 1:return"APPLICATION";case 2:return"USER";case 3:return"USER_LOCAL";case 4:return"USER_REMOTE";case 5:return"WORKSPACE";case 6:return"WORKSPACE_FOLDER";case 7:return"DEFAULT";case 8:return"MEMORY"}}e.ConfigurationTargetToString=p;function f(h){return h.applicationValue!==void 0||h.userValue!==void 0||h.userLocalValue!==void 0||h.userRemoteValue!==void 0||h.workspaceValue!==void 0||h.workspaceFolderValue!==void 0}e.isConfigured=f;function y(h,o){const b=Object.create(null);for(const P in h)E(b,P,h[P],o);return b}e.toValuesTree=y;function E(h,o,b,P){const T=o.split("."),n=T.pop();let a=h;for(let l=0;l<T.length;l++){const i=T[l];let c=a[i];switch(typeof c){case"undefined":c=a[i]=Object.create(null);break;case"object":break;default:P(`Ignoring ${o} as ${T.slice(0,l+1).join(".")} is ${JSON.stringify(c)}`);return}a=c}if(typeof a=="object"&&a!==null)try{a[n]=b}catch{P(`Ignoring ${o} as ${T.join(".")} is ${JSON.stringify(a)}`)}else P(`Ignoring ${o} as ${T.join(".")} is ${JSON.stringify(a)}`)}e.addToValueTree=E;function t(h,o){const b=o.split(".");s(h,b)}e.removeFromValueTree=t;function s(h,o){const b=o.shift();if(o.length===0){delete h[b];return}if(Object.keys(h).indexOf(b)!==-1){const P=h[b];typeof P=="object"&&!Array.isArray(P)&&(s(P,o),Object.keys(P).length===0&&delete h[b])}}function g(h,o,b){function P(a,l){let i=a;for(const c of l){if(typeof i!="object"||i===null)return;i=i[c]}return i}const T=o.split("."),n=P(h,T);return typeof n>"u"?b:n}e.getConfigurationValue=g;function C(h,o,b){Object.keys(o).forEach(P=>{P!=="__proto__"&&(P in h?w.isObject(h[P])&&w.isObject(o[P])?C(h[P],o[P],b):b&&(h[P]=o[P]):h[P]=o[P])})}e.merge=C;function r(h){return h.replace(/[\[\]]/g,"")}e.getLanguageTagSettingPlainKey=r}),define(ye[45],Ce([1,0,14,16,229,6,198,8]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.implies=e.IContextKeyService=e.RawContextKey=e.ContextKeyOrExpr=e.ContextKeyAndExpr=e.ContextKeyNotRegexExpr=e.ContextKeyRegexExpr=e.ContextKeySmallerEqualsExpr=e.ContextKeySmallerExpr=e.ContextKeyGreaterEqualsExpr=e.ContextKeyGreaterExpr=e.ContextKeyNotExpr=e.ContextKeyNotEqualsExpr=e.ContextKeyNotInExpr=e.ContextKeyInExpr=e.ContextKeyEqualsExpr=e.ContextKeyDefinedExpr=e.ContextKeyTrueExpr=e.ContextKeyFalseExpr=e.expressionsAreEqualWithConstantSubstitution=e.validateWhenClauses=e.ContextKeyExpr=e.Parser=e.ContextKeyExprType=e.setConstant=void 0;const p=new Map;p.set("false",!1),p.set("true",!0),p.set("isMac",w.isMacintosh),p.set("isLinux",w.isLinux),p.set("isWindows",w.isWindows),p.set("isWeb",w.isWeb),p.set("isMacNative",w.isMacintosh&&!w.isWeb),p.set("isEdge",w.isEdge),p.set("isFirefox",w.isFirefox),p.set("isChrome",w.isChrome),p.set("isSafari",w.isSafari);function f(te,B){if(p.get(te)!==void 0)throw(0,u.illegalArgument)("contextkey.setConstant(k, v) invoked with already set constant `k`");p.set(te,B)}e.setConstant=f;const y=Object.prototype.hasOwnProperty;var E;(function(te){te[te.False=0]="False",te[te.True=1]="True",te[te.Defined=2]="Defined",te[te.Not=3]="Not",te[te.Equals=4]="Equals",te[te.NotEquals=5]="NotEquals",te[te.And=6]="And",te[te.Regex=7]="Regex",te[te.NotRegex=8]="NotRegex",te[te.Or=9]="Or",te[te.In=10]="In",te[te.NotIn=11]="NotIn",te[te.Greater=12]="Greater",te[te.GreaterEquals=13]="GreaterEquals",te[te.Smaller=14]="Smaller",te[te.SmallerEquals=15]="SmallerEquals"})(E||(e.ContextKeyExprType=E={}));const t={regexParsingWithErrorRecovery:!0},s=(0,R.localize)(0,null),g=(0,R.localize)(1,null),C=(0,R.localize)(2,null),r=(0,R.localize)(3,null),h=(0,R.localize)(4,null),o=(0,R.localize)(5,null),b=(0,R.localize)(6,null),P=(0,R.localize)(7,null);class T{static{this._parseError=new Error}get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(B=t){this._config=B,this._scanner=new d.Scanner,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(B){if(B===""){this._parsingErrors.push({message:s,offset:0,lexeme:"",additionalInfo:g});return}this._tokens=this._scanner.reset(B).scan(),this._current=0,this._parsingErrors=[];try{const G=this._expr();if(!this._isAtEnd()){const fe=this._peek(),_e=fe.type===17?o:void 0;throw this._parsingErrors.push({message:h,offset:fe.offset,lexeme:d.Scanner.getLexeme(fe),additionalInfo:_e}),T._parseError}return G}catch(G){if(G!==T._parseError)throw G;return}}_expr(){return this._or()}_or(){const B=[this._and()];for(;this._matchOne(16);){const G=this._and();B.push(G)}return B.length===1?B[0]:n.or(...B)}_and(){const B=[this._term()];for(;this._matchOne(15);){const G=this._term();B.push(G)}return B.length===1?B[0]:n.and(...B)}_term(){if(this._matchOne(2)){const B=this._peek();switch(B.type){case 11:return this._advance(),c.INSTANCE;case 12:return this._advance(),_.INSTANCE;case 0:{this._advance();const G=this._expr();return this._consume(1,r),G?.negate()}case 17:return this._advance(),L.create(B.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",B)}}return this._primary()}_primary(){const B=this._peek();switch(B.type){case 11:return this._advance(),n.true();case 12:return this._advance(),n.false();case 0:{this._advance();const G=this._expr();return this._consume(1,r),G}case 17:{const G=B.lexeme;if(this._advance(),this._matchOne(9)){const _e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),_e.type!==10)throw this._errExpectedButGot("REGEX",_e);const Ee=_e.lexeme,F=Ee.lastIndexOf("/"),J=F===Ee.length-1?void 0:this._removeFlagsGY(Ee.substring(F+1));let I;try{I=new RegExp(Ee.substring(1,F),J)}catch{throw this._errExpectedButGot("REGEX",_e)}return x.create(G,I)}switch(_e.type){case 10:case 19:{const Ee=[_e.lexeme];this._advance();let F=this._peek(),J=0;for(let he=0;he<_e.lexeme.length;he++)_e.lexeme.charCodeAt(he)===40?J++:_e.lexeme.charCodeAt(he)===41&&J--;for(;!this._isAtEnd()&&F.type!==15&&F.type!==16;){switch(F.type){case 0:J++;break;case 1:J--;break;case 10:case 18:for(let he=0;he<F.lexeme.length;he++)F.lexeme.charCodeAt(he)===40?J++:_e.lexeme.charCodeAt(he)===41&&J--}if(J<0)break;Ee.push(d.Scanner.getLexeme(F)),this._advance(),F=this._peek()}const I=Ee.join(""),V=I.lastIndexOf("/"),j=V===I.length-1?void 0:this._removeFlagsGY(I.substring(V+1));let Z;try{Z=new RegExp(I.substring(1,V),j)}catch{throw this._errExpectedButGot("REGEX",_e)}return n.regex(G,Z)}case 18:{const Ee=_e.lexeme;this._advance();let F=null;if(!(0,M.isFalsyOrWhitespace)(Ee)){const J=Ee.indexOf("/"),I=Ee.lastIndexOf("/");if(J!==I&&J>=0){const V=Ee.slice(J+1,I),j=Ee[I+1]==="i"?"i":"";try{F=new RegExp(V,j)}catch{throw this._errExpectedButGot("REGEX",_e)}}}if(F===null)throw this._errExpectedButGot("REGEX",_e);return x.create(G,F)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,C);const _e=this._value();return n.notIn(G,_e)}switch(this._peek().type){case 3:{this._advance();const _e=this._value();if(this._previous().type===18)return n.equals(G,_e);switch(_e){case"true":return n.has(G);case"false":return n.not(G);default:return n.equals(G,_e)}}case 4:{this._advance();const _e=this._value();if(this._previous().type===18)return n.notEquals(G,_e);switch(_e){case"true":return n.not(G);case"false":return n.has(G);default:return n.notEquals(G,_e)}}case 5:return this._advance(),$.create(G,this._value());case 6:return this._advance(),U.create(G,this._value());case 7:return this._advance(),H.create(G,this._value());case 8:return this._advance(),N.create(G,this._value());case 13:return this._advance(),n.in(G,this._value());default:return n.has(G)}}case 20:throw this._parsingErrors.push({message:b,offset:B.offset,lexeme:"",additionalInfo:P}),T._parseError;default:throw this._errExpectedButGot(`true | false | KEY 
	| KEY '=~' REGEX 
	| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const B=this._peek();switch(B.type){case 17:case 18:return this._advance(),B.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(B){return B.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(B){return this._check(B)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(B,G){if(this._check(B))return this._advance();throw this._errExpectedButGot(G,this._peek())}_errExpectedButGot(B,G,fe){const _e=(0,R.localize)(8,null,B,d.Scanner.getLexeme(G)),Ee=G.offset,F=d.Scanner.getLexeme(G);return this._parsingErrors.push({message:_e,offset:Ee,lexeme:F,additionalInfo:fe}),T._parseError}_check(B){return this._peek().type===B}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}}e.Parser=T;class n{static false(){return c.INSTANCE}static true(){return _.INSTANCE}static has(B){return S.create(B)}static equals(B,G){return k.create(B,G)}static notEquals(B,G){return D.create(B,G)}static regex(B,G){return x.create(B,G)}static in(B,G){return m.create(B,G)}static notIn(B,G){return v.create(B,G)}static not(B){return L.create(B)}static and(...B){return pe.create(B,null,!0)}static or(...B){return le.create(B,null,!0)}static greater(B,G){return H.create(B,G)}static greaterEquals(B,G){return N.create(B,G)}static smaller(B,G){return $.create(B,G)}static smallerEquals(B,G){return U.create(B,G)}static{this._parser=new T({regexParsingWithErrorRecovery:!1})}static deserialize(B){return B==null?void 0:this._parser.parse(B)}}e.ContextKeyExpr=n;function a(te){const B=new T({regexParsingWithErrorRecovery:!1});return te.map(G=>(B.parse(G),B.lexingErrors.length>0?B.lexingErrors.map(fe=>({errorMessage:fe.additionalInfo?(0,R.localize)(9,null,fe.additionalInfo):(0,R.localize)(10,null),offset:fe.offset,length:fe.lexeme.length})):B.parsingErrors.length>0?B.parsingErrors.map(fe=>({errorMessage:fe.additionalInfo?`${fe.message}. ${fe.additionalInfo}`:fe.message,offset:fe.offset,length:fe.lexeme.length})):[]))}e.validateWhenClauses=a;function l(te,B){const G=te?te.substituteConstants():void 0,fe=B?B.substituteConstants():void 0;return!G&&!fe?!0:!G||!fe?!1:G.equals(fe)}e.expressionsAreEqualWithConstantSubstitution=l;function i(te,B){return te.cmp(B)}class c{static{this.INSTANCE=new c}constructor(){this.type=0}cmp(B){return this.type-B.type}equals(B){return B.type===this.type}substituteConstants(){return this}evaluate(B){return!1}serialize(){return"false"}keys(){return[]}map(B){return this}negate(){return _.INSTANCE}}e.ContextKeyFalseExpr=c;class _{static{this.INSTANCE=new _}constructor(){this.type=1}cmp(B){return this.type-B.type}equals(B){return B.type===this.type}substituteConstants(){return this}evaluate(B){return!0}serialize(){return"true"}keys(){return[]}map(B){return this}negate(){return c.INSTANCE}}e.ContextKeyTrueExpr=_;class S{static create(B,G=null){const fe=p.get(B);return typeof fe=="boolean"?fe?_.INSTANCE:c.INSTANCE:new S(B,G)}constructor(B,G){this.key=B,this.negated=G,this.type=2}cmp(B){return B.type!==this.type?this.type-B.type:q(this.key,B.key)}equals(B){return B.type===this.type?this.key===B.key:!1}substituteConstants(){const B=p.get(this.key);return typeof B=="boolean"?B?_.INSTANCE:c.INSTANCE:this}evaluate(B){return!!B.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(B){return B.mapDefined(this.key)}negate(){return this.negated||(this.negated=L.create(this.key,this)),this.negated}}e.ContextKeyDefinedExpr=S;class k{static create(B,G,fe=null){if(typeof G=="boolean")return G?S.create(B,fe):L.create(B,fe);const _e=p.get(B);return typeof _e=="boolean"?G===(_e?"true":"false")?_.INSTANCE:c.INSTANCE:new k(B,G,fe)}constructor(B,G,fe){this.key=B,this.value=G,this.negated=fe,this.type=4}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.value,B.key,B.value)}equals(B){return B.type===this.type?this.key===B.key&&this.value===B.value:!1}substituteConstants(){const B=p.get(this.key);if(typeof B=="boolean"){const G=B?"true":"false";return this.value===G?_.INSTANCE:c.INSTANCE}return this}evaluate(B){return B.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(B){return B.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}e.ContextKeyEqualsExpr=k;class m{static create(B,G){return new m(B,G)}constructor(B,G){this.key=B,this.valueKey=G,this.type=10,this.negated=null}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.valueKey,B.key,B.valueKey)}equals(B){return B.type===this.type?this.key===B.key&&this.valueKey===B.valueKey:!1}substituteConstants(){return this}evaluate(B){const G=B.getValue(this.valueKey),fe=B.getValue(this.key);return Array.isArray(G)?G.includes(fe):typeof fe=="string"&&typeof G=="object"&&G!==null?y.call(G,fe):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(B){return B.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=v.create(this.key,this.valueKey)),this.negated}}e.ContextKeyInExpr=m;class v{static create(B,G){return new v(B,G)}constructor(B,G){this.key=B,this.valueKey=G,this.type=11,this._negated=m.create(B,G)}cmp(B){return B.type!==this.type?this.type-B.type:this._negated.cmp(B._negated)}equals(B){return B.type===this.type?this._negated.equals(B._negated):!1}substituteConstants(){return this}evaluate(B){return!this._negated.evaluate(B)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(B){return B.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}e.ContextKeyNotInExpr=v;class D{static create(B,G,fe=null){if(typeof G=="boolean")return G?L.create(B,fe):S.create(B,fe);const _e=p.get(B);return typeof _e=="boolean"?G===(_e?"true":"false")?c.INSTANCE:_.INSTANCE:new D(B,G,fe)}constructor(B,G,fe){this.key=B,this.value=G,this.negated=fe,this.type=5}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.value,B.key,B.value)}equals(B){return B.type===this.type?this.key===B.key&&this.value===B.value:!1}substituteConstants(){const B=p.get(this.key);if(typeof B=="boolean"){const G=B?"true":"false";return this.value===G?c.INSTANCE:_.INSTANCE}return this}evaluate(B){return B.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(B){return B.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}e.ContextKeyNotEqualsExpr=D;class L{static create(B,G=null){const fe=p.get(B);return typeof fe=="boolean"?fe?c.INSTANCE:_.INSTANCE:new L(B,G)}constructor(B,G){this.key=B,this.negated=G,this.type=3}cmp(B){return B.type!==this.type?this.type-B.type:q(this.key,B.key)}equals(B){return B.type===this.type?this.key===B.key:!1}substituteConstants(){const B=p.get(this.key);return typeof B=="boolean"?B?c.INSTANCE:_.INSTANCE:this}evaluate(B){return!B.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(B){return B.mapNot(this.key)}negate(){return this.negated||(this.negated=S.create(this.key,this)),this.negated}}e.ContextKeyNotExpr=L;function O(te,B){if(typeof te=="string"){const G=parseFloat(te);isNaN(G)||(te=G)}return typeof te=="string"||typeof te=="number"?B(te):c.INSTANCE}class H{static create(B,G,fe=null){return O(G,_e=>new H(B,_e,fe))}constructor(B,G,fe){this.key=B,this.value=G,this.negated=fe,this.type=12}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.value,B.key,B.value)}equals(B){return B.type===this.type?this.key===B.key&&this.value===B.value:!1}substituteConstants(){return this}evaluate(B){return typeof this.value=="string"?!1:parseFloat(B.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(B){return B.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterExpr=H;class N{static create(B,G,fe=null){return O(G,_e=>new N(B,_e,fe))}constructor(B,G,fe){this.key=B,this.value=G,this.negated=fe,this.type=13}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.value,B.key,B.value)}equals(B){return B.type===this.type?this.key===B.key&&this.value===B.value:!1}substituteConstants(){return this}evaluate(B){return typeof this.value=="string"?!1:parseFloat(B.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(B){return B.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=$.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterEqualsExpr=N;class ${static create(B,G,fe=null){return O(G,_e=>new $(B,_e,fe))}constructor(B,G,fe){this.key=B,this.value=G,this.negated=fe,this.type=14}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.value,B.key,B.value)}equals(B){return B.type===this.type?this.key===B.key&&this.value===B.value:!1}substituteConstants(){return this}evaluate(B){return typeof this.value=="string"?!1:parseFloat(B.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(B){return B.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerExpr=$;class U{static create(B,G,fe=null){return O(G,_e=>new U(B,_e,fe))}constructor(B,G,fe){this.key=B,this.value=G,this.negated=fe,this.type=15}cmp(B){return B.type!==this.type?this.type-B.type:oe(this.key,this.value,B.key,B.value)}equals(B){return B.type===this.type?this.key===B.key&&this.value===B.value:!1}substituteConstants(){return this}evaluate(B){return typeof this.value=="string"?!1:parseFloat(B.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(B){return B.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerEqualsExpr=U;class x{static create(B,G){return new x(B,G)}constructor(B,G){this.key=B,this.regexp=G,this.type=7,this.negated=null}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.key<B.key)return-1;if(this.key>B.key)return 1;const G=this.regexp?this.regexp.source:"",fe=B.regexp?B.regexp.source:"";return G<fe?-1:G>fe?1:0}equals(B){if(B.type===this.type){const G=this.regexp?this.regexp.source:"",fe=B.regexp?B.regexp.source:"";return this.key===B.key&&G===fe}return!1}substituteConstants(){return this}evaluate(B){const G=B.getValue(this.key);return this.regexp?this.regexp.test(G):!1}serialize(){const B=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${B}`}keys(){return[this.key]}map(B){return B.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=X.create(this)),this.negated}}e.ContextKeyRegexExpr=x;class X{static create(B){return new X(B)}constructor(B){this._actual=B,this.type=8}cmp(B){return B.type!==this.type?this.type-B.type:this._actual.cmp(B._actual)}equals(B){return B.type===this.type?this._actual.equals(B._actual):!1}substituteConstants(){return this}evaluate(B){return!this._actual.evaluate(B)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(B){return new X(this._actual.map(B))}negate(){return this._actual}}e.ContextKeyNotRegexExpr=X;function K(te){let B=null;for(let G=0,fe=te.length;G<fe;G++){const _e=te[G].substituteConstants();if(te[G]!==_e&&B===null){B=[];for(let Ee=0;Ee<G;Ee++)B[Ee]=te[Ee]}B!==null&&(B[G]=_e)}return B===null?te:B}class pe{static create(B,G,fe){return pe._normalizeArr(B,G,fe)}constructor(B,G){this.expr=B,this.negated=G,this.type=6}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.expr.length<B.expr.length)return-1;if(this.expr.length>B.expr.length)return 1;for(let G=0,fe=this.expr.length;G<fe;G++){const _e=i(this.expr[G],B.expr[G]);if(_e!==0)return _e}return 0}equals(B){if(B.type===this.type){if(this.expr.length!==B.expr.length)return!1;for(let G=0,fe=this.expr.length;G<fe;G++)if(!this.expr[G].equals(B.expr[G]))return!1;return!0}return!1}substituteConstants(){const B=K(this.expr);return B===this.expr?this:pe.create(B,this.negated,!1)}evaluate(B){for(let G=0,fe=this.expr.length;G<fe;G++)if(!this.expr[G].evaluate(B))return!1;return!0}static _normalizeArr(B,G,fe){const _e=[];let Ee=!1;for(const F of B)if(F){if(F.type===1){Ee=!0;continue}if(F.type===0)return c.INSTANCE;if(F.type===6){_e.push(...F.expr);continue}_e.push(F)}if(_e.length===0&&Ee)return _.INSTANCE;if(_e.length!==0){if(_e.length===1)return _e[0];_e.sort(i);for(let F=1;F<_e.length;F++)_e[F-1].equals(_e[F])&&(_e.splice(F,1),F--);if(_e.length===1)return _e[0];for(;_e.length>1;){const F=_e[_e.length-1];if(F.type!==9)break;_e.pop();const J=_e.pop(),I=_e.length===0,V=le.create(F.expr.map(j=>pe.create([j,J],null,fe)),null,I);V&&(_e.push(V),_e.sort(i))}if(_e.length===1)return _e[0];if(fe){for(let F=0;F<_e.length;F++)for(let J=F+1;J<_e.length;J++)if(_e[F].negate().equals(_e[J]))return c.INSTANCE;if(_e.length===1)return _e[0]}return new pe(_e,G)}}serialize(){return this.expr.map(B=>B.serialize()).join(" && ")}keys(){const B=[];for(const G of this.expr)B.push(...G.keys());return B}map(B){return new pe(this.expr.map(G=>G.map(B)),null)}negate(){if(!this.negated){const B=[];for(const G of this.expr)B.push(G.negate());this.negated=le.create(B,this,!0)}return this.negated}}e.ContextKeyAndExpr=pe;class le{static create(B,G,fe){return le._normalizeArr(B,G,fe)}constructor(B,G){this.expr=B,this.negated=G,this.type=9}cmp(B){if(B.type!==this.type)return this.type-B.type;if(this.expr.length<B.expr.length)return-1;if(this.expr.length>B.expr.length)return 1;for(let G=0,fe=this.expr.length;G<fe;G++){const _e=i(this.expr[G],B.expr[G]);if(_e!==0)return _e}return 0}equals(B){if(B.type===this.type){if(this.expr.length!==B.expr.length)return!1;for(let G=0,fe=this.expr.length;G<fe;G++)if(!this.expr[G].equals(B.expr[G]))return!1;return!0}return!1}substituteConstants(){const B=K(this.expr);return B===this.expr?this:le.create(B,this.negated,!1)}evaluate(B){for(let G=0,fe=this.expr.length;G<fe;G++)if(this.expr[G].evaluate(B))return!0;return!1}static _normalizeArr(B,G,fe){let _e=[],Ee=!1;if(B){for(let F=0,J=B.length;F<J;F++){const I=B[F];if(I){if(I.type===0){Ee=!0;continue}if(I.type===1)return _.INSTANCE;if(I.type===9){_e=_e.concat(I.expr);continue}_e.push(I)}}if(_e.length===0&&Ee)return c.INSTANCE;_e.sort(i)}if(_e.length!==0){if(_e.length===1)return _e[0];for(let F=1;F<_e.length;F++)_e[F-1].equals(_e[F])&&(_e.splice(F,1),F--);if(_e.length===1)return _e[0];if(fe){for(let F=0;F<_e.length;F++)for(let J=F+1;J<_e.length;J++)if(_e[F].negate().equals(_e[J]))return _.INSTANCE;if(_e.length===1)return _e[0]}return new le(_e,G)}}serialize(){return this.expr.map(B=>B.serialize()).join(" || ")}keys(){const B=[];for(const G of this.expr)B.push(...G.keys());return B}map(B){return new le(this.expr.map(G=>G.map(B)),null)}negate(){if(!this.negated){const B=[];for(const G of this.expr)B.push(G.negate());for(;B.length>1;){const G=B.shift(),fe=B.shift(),_e=[];for(const Ee of se(G))for(const F of se(fe))_e.push(pe.create([Ee,F],null,!1));B.unshift(le.create(_e,null,!1))}this.negated=le.create(B,this,!0)}return this.negated}}e.ContextKeyOrExpr=le;class re extends S{static{this._info=[]}static all(){return re._info.values()}constructor(B,G,fe){super(B,null),this._defaultValue=G,typeof fe=="object"?re._info.push({...fe,key:B}):fe!==!0&&re._info.push({key:B,description:fe,type:G!=null?typeof G:void 0})}bindTo(B){return B.createKey(this.key,this._defaultValue)}getValue(B){return B.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(B){return k.create(this.key,B)}notEqualsTo(B){return D.create(this.key,B)}}e.RawContextKey=re,e.IContextKeyService=(0,A.createDecorator)("contextKeyService");function q(te,B){return te<B?-1:te>B?1:0}function oe(te,B,G,fe){return te<G?-1:te>G?1:B<fe?-1:B>fe?1:0}function ve(te,B){if(te.type===0||B.type===1)return!0;if(te.type===9)return B.type===9?ce(te.expr,B.expr):!1;if(B.type===9){for(const G of B.expr)if(ve(te,G))return!0;return!1}if(te.type===6){if(B.type===6)return ce(B.expr,te.expr);for(const G of te.expr)if(ve(G,B))return!0;return!1}return te.equals(B)}e.implies=ve;function ce(te,B){let G=0,fe=0;for(;G<te.length&&fe<B.length;){const _e=te[G].cmp(B[fe]);if(_e<0)return!1;_e===0&&G++,fe++}return G===te.length}function se(te){return te.type===9?te.expr:[te]}}),define(ye[232],Ce([1,0,45,184]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notebookMultipleRequestsError=e.RESULTS_GRID_DEFAULTS=e.NotebookLanguage=e.NBFORMAT_MINOR=e.NBFORMAT=e.DEFAULT_NOTEBOOK_FILETYPE=e.CELL_URI_PATH_PREFIX=e.TSGOPS_WEB_QUALITY=e.IPYKERNEL_DISPLAY_NAME=e.VSCODE_JUPYTER_PROVIDER_ID=e.JUPYTER_PROVIDER_ID=e.RESOURCE_VIEWER_TYPEID=e.FILE_QUERY_EDITOR_TYPEID=e.UNTITLED_QUERY_EDITOR_TYPEID=e.UNTITLED_NOTEBOOK_TYPEID=e.SearchInputBoxFocusedKey=e.InputBoxFocusedKey=e.SearchViewFocusedKey=e.CONFIG_WORKBENCH_USEVSCODENOTEBOOKS=e.CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES=e.AddCursorsAtSearchResults=e.ToggleRegexCommandId=e.ToggleWholeWordCommandId=e.ToggleCaseSensitiveCommandId=e.FocusSearchListCommandID=e.ClearSearchHistoryCommandId=e.OpenInEditorCommandId=e.CopyAllCommandId=e.CopyMatchCommandId=e.CopyPathCommandId=e.RemoveActionId=e.CancelActionId=e.OpenMatchToSide=e.FocusSearchFromResults=e.FocusActiveEditorCommandId=e.FindInNotebooksActionId=void 0,e.FindInNotebooksActionId="workbench.action.findInNotebooks",e.FocusActiveEditorCommandId="notebookSearch.action.focusActiveEditor",e.FocusSearchFromResults="notebookSearch.action.focusSearchFromResults",e.OpenMatchToSide="notebookSearch.action.openResultToSide",e.CancelActionId="notebookSearch.action.cancel",e.RemoveActionId="notebookSearch.action.remove",e.CopyPathCommandId="notebookSearch.action.copyPath",e.CopyMatchCommandId="notebookSearch.action.copyMatch",e.CopyAllCommandId="notebookSearch.action.copyAll",e.OpenInEditorCommandId="notebookSearch.action.openInEditor",e.ClearSearchHistoryCommandId="notebookSearch.action.clearHistory",e.FocusSearchListCommandID="notebookSearch.action.focusSearchList",e.ToggleCaseSensitiveCommandId="toggleSearchCaseSensitive",e.ToggleWholeWordCommandId="toggleSearchWholeWord",e.ToggleRegexCommandId="toggleSearchRegex",e.AddCursorsAtSearchResults="addCursorsAtSearchResults",e.CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES="workbench.enablePreviewFeatures",e.CONFIG_WORKBENCH_USEVSCODENOTEBOOKS="workbench.useVSCodeNotebooks",e.SearchViewFocusedKey=new w.RawContextKey("notebookSearchViewletFocus",!1),e.InputBoxFocusedKey=new w.RawContextKey("inputBoxFocus",!1),e.SearchInputBoxFocusedKey=new w.RawContextKey("searchInputBoxFocus",!1),e.UNTITLED_NOTEBOOK_TYPEID="workbench.editorinputs.untitledNotebookInput",e.UNTITLED_QUERY_EDITOR_TYPEID="workbench.editorInput.untitledQueryInput",e.FILE_QUERY_EDITOR_TYPEID="workbench.editorInput.fileQueryInput",e.RESOURCE_VIEWER_TYPEID="workbench.editorInput.resourceViewerInput",e.JUPYTER_PROVIDER_ID="jupyter",e.VSCODE_JUPYTER_PROVIDER_ID="jupyter-notebook",e.IPYKERNEL_DISPLAY_NAME="Python 3 (ipykernel)",e.TSGOPS_WEB_QUALITY="tsgops-image",e.CELL_URI_PATH_PREFIX="notebook-editor-",e.DEFAULT_NOTEBOOK_FILETYPE=".ipynb",e.NBFORMAT=4,e.NBFORMAT_MINOR=2;var d;(function(A){A.Notebook="notebook",A.Ipynb="ipynb"})(d||(e.NotebookLanguage=d={})),e.RESULTS_GRID_DEFAULTS={cellPadding:[5,8,4],rowHeight:24},e.notebookMultipleRequestsError=M.localize(0,null)}),define(ye[233],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INativeEnvironmentService=e.IEnvironmentService=void 0,e.IEnvironmentService=(0,w.createDecorator)("environmentService"),e.INativeEnvironmentService=(0,w.refineServiceDecorator)(e.IEnvironmentService)}),define(ye[132],Ce([1,0,200,6]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreferencesLocalizedLabel=e.ExtensionsLocalizedLabel=e.ExtensionsLabel=e.IExtensionTipsService=e.IGlobalExtensionEnablementService=e.ENABLED_EXTENSIONS_STORAGE_PATH=e.DISABLED_EXTENSIONS_STORAGE_PATH=e.IExtensionManagementService=e.ExtensionManagementError=e.ExtensionSignaturetErrorCode=e.ExtensionManagementErrorCode=e.IExtensionGalleryService=e.InstallOperation=e.StatisticType=e.SortOrder=e.SortBy=e.isIExtensionIdentifier=e.getFallbackTargetPlarforms=e.isTargetPlatformCompatible=e.isNotWebExtensionInWebTargetPlatform=e.getTargetPlatform=e.toTargetPlatform=e.TargetPlatformToString=e.EXTENSION_INSTALL_DEP_PACK_CONTEXT=e.EXTENSION_INSTALL_SYNC_CONTEXT=e.EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT=e.WEB_EXTENSION_TAG=e.EXTENSION_IDENTIFIER_REGEX=e.EXTENSION_IDENTIFIER_PATTERN=void 0,e.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",e.EXTENSION_IDENTIFIER_REGEX=new RegExp(e.EXTENSION_IDENTIFIER_PATTERN),e.WEB_EXTENSION_TAG="__web_extension",e.EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT="skipWalkthrough",e.EXTENSION_INSTALL_SYNC_CONTEXT="extensionsSync",e.EXTENSION_INSTALL_DEP_PACK_CONTEXT="dependecyOrPackExtensionInstall";function d(o){switch(o){case"win32-x64":return"Windows 64 bit";case"win32-ia32":return"Windows 32 bit";case"win32-arm64":return"Windows ARM";case"linux-x64":return"Linux 64 bit";case"linux-arm64":return"Linux ARM 64";case"linux-armhf":return"Linux ARM";case"alpine-x64":return"Alpine Linux 64 bit";case"alpine-arm64":return"Alpine ARM 64";case"darwin-x64":return"Mac";case"darwin-arm64":return"Mac Silicon";case"web":return"Web";case"universal":return"universal";case"unknown":return"unknown";case"undefined":return"undefined"}}e.TargetPlatformToString=d;function A(o){switch(o){case"win32-x64":return"win32-x64";case"win32-ia32":return"win32-ia32";case"win32-arm64":return"win32-arm64";case"linux-x64":return"linux-x64";case"linux-arm64":return"linux-arm64";case"linux-armhf":return"linux-armhf";case"alpine-x64":return"alpine-x64";case"alpine-arm64":return"alpine-arm64";case"darwin-x64":return"darwin-x64";case"darwin-arm64":return"darwin-arm64";case"web":return"web";case"universal":return"universal";default:return"unknown"}}e.toTargetPlatform=A;function R(o,b){switch(o){case 3:return b==="x64"?"win32-x64":b==="ia32"?"win32-ia32":b==="arm64"?"win32-arm64":"unknown";case 2:return b==="x64"?"linux-x64":b==="arm64"?"linux-arm64":b==="arm"?"linux-armhf":"unknown";case"alpine":return b==="x64"?"alpine-x64":b==="arm64"?"alpine-arm64":"unknown";case 1:return b==="x64"?"darwin-x64":b==="arm64"?"darwin-arm64":"unknown";case 0:return"web"}}e.getTargetPlatform=R;function u(o,b){return b==="web"&&!o.includes("web")}e.isNotWebExtensionInWebTargetPlatform=u;function p(o,b,P){return u(b,P)?!1:o==="undefined"||o==="universal"?!0:o==="unknown"?!1:o===P?!0:f(P).includes(o)}e.isTargetPlatformCompatible=p;function f(o){switch(o){case"win32-x64":return["win32-ia32"];case"win32-arm64":return["win32-ia32"]}return[]}e.getFallbackTargetPlarforms=f;function y(o){return o&&typeof o=="object"&&typeof o.id=="string"&&(!o.uuid||typeof o.uuid=="string")}e.isIExtensionIdentifier=y;var E;(function(o){o[o.NoneOrRelevance=0]="NoneOrRelevance",o[o.LastUpdatedDate=1]="LastUpdatedDate",o[o.Title=2]="Title",o[o.PublisherName=3]="PublisherName",o[o.InstallCount=4]="InstallCount",o[o.PublishedDate=10]="PublishedDate",o[o.AverageRating=6]="AverageRating",o[o.WeightedRating=12]="WeightedRating"})(E||(e.SortBy=E={}));var t;(function(o){o[o.Default=0]="Default",o[o.Ascending=1]="Ascending",o[o.Descending=2]="Descending"})(t||(e.SortOrder=t={}));var s;(function(o){o.Install="install",o.Uninstall="uninstall"})(s||(e.StatisticType=s={}));var g;(function(o){o[o.None=1]="None",o[o.Install=2]="Install",o[o.Update=3]="Update",o[o.Migrate=4]="Migrate"})(g||(e.InstallOperation=g={})),e.IExtensionGalleryService=(0,M.createDecorator)("extensionGalleryService");var C;(function(o){o.Unsupported="Unsupported",o.Deprecated="Deprecated",o.Malicious="Malicious",o.Incompatible="Incompatible",o.IncompatibleTargetPlatform="IncompatibleTargetPlatform",o.ReleaseVersionNotFound="ReleaseVersionNotFound",o.Invalid="Invalid",o.Download="Download",o.Extract="Extract",o.Delete="Delete",o.Rename="Rename",o.CorruptZip="CorruptZip",o.IncompleteZip="IncompleteZip",o.Signature="Signature",o.Internal="Internal"})(C||(e.ExtensionManagementErrorCode=C={}));var r;(function(o){o.UnknownError="UnknownError",o.PackageIsInvalidZip="PackageIsInvalidZip",o.SignatureArchiveIsInvalidZip="SignatureArchiveIsInvalidZip"})(r||(e.ExtensionSignaturetErrorCode=r={}));class h extends Error{constructor(b,P){super(b),this.code=P,this.name=P}}e.ExtensionManagementError=h,e.IExtensionManagementService=(0,M.createDecorator)("extensionManagementService"),e.DISABLED_EXTENSIONS_STORAGE_PATH="extensionsIdentifiers/disabled",e.ENABLED_EXTENSIONS_STORAGE_PATH="extensionsIdentifiers/enabled",e.IGlobalExtensionEnablementService=(0,M.createDecorator)("IGlobalExtensionEnablementService"),e.IExtensionTipsService=(0,M.createDecorator)("IExtensionTipsService"),e.ExtensionsLabel=(0,w.localize)(0,null),e.ExtensionsLocalizedLabel={value:e.ExtensionsLabel,original:"Extensions"},e.PreferencesLocalizedLabel={value:(0,w.localize)(1,null),original:"Preferences"}}),define(ye[30],Ce([1,0,73,17,16,18,2,202,6,14,15]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLargeFileConfirmationLimit=e.ByteSize=e.whenProviderRegistered=e.etag=e.ETAG_DISABLED=e.FileKind=e.FILES_READONLY_FROM_PERMISSIONS_CONFIG=e.FILES_READONLY_EXCLUDE_CONFIG=e.FILES_READONLY_INCLUDE_CONFIG=e.FILES_EXCLUDE_CONFIG=e.FILES_ASSOCIATIONS_CONFIG=e.HotExitConfiguration=e.AutoSaveConfiguration=e.FileOperationResult=e.NotModifiedSinceFileOperationError=e.TooLargeFileOperationError=e.FileOperationError=e.isParent=e.FileChangesEvent=e.FileChangeType=e.FileOperationEvent=e.FileOperation=e.toFileOperationResult=e.toFileSystemProviderErrorCode=e.markAsFileSystemProviderError=e.ensureFileSystemProviderError=e.createFileSystemProviderError=e.FileSystemProviderError=e.FileSystemProviderErrorCode=e.hasReadonlyCapability=e.hasFileAtomicDeleteCapability=e.hasFileAtomicWriteCapability=e.hasFileAtomicReadCapability=e.hasFileReadStreamCapability=e.hasOpenReadWriteCloseCapability=e.hasFileCloneCapability=e.hasFileFolderCopyCapability=e.hasReadWriteCapability=e.FileSystemProviderCapabilities=e.FilePermission=e.FileType=e.isFileOpenForWriteOptions=e.IFileService=void 0,e.IFileService=(0,p.createDecorator)("fileService");function E(q){return q.create===!0}e.isFileOpenForWriteOptions=E;var t;(function(q){q[q.Unknown=0]="Unknown",q[q.File=1]="File",q[q.Directory=2]="Directory",q[q.SymbolicLink=64]="SymbolicLink"})(t||(e.FileType=t={}));var s;(function(q){q[q.Readonly=1]="Readonly",q[q.Locked=2]="Locked"})(s||(e.FilePermission=s={}));var g;(function(q){q[q.None=0]="None",q[q.FileReadWrite=2]="FileReadWrite",q[q.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",q[q.FileReadStream=16]="FileReadStream",q[q.FileFolderCopy=8]="FileFolderCopy",q[q.PathCaseSensitive=1024]="PathCaseSensitive",q[q.Readonly=2048]="Readonly",q[q.Trash=4096]="Trash",q[q.FileWriteUnlock=8192]="FileWriteUnlock",q[q.FileAtomicRead=16384]="FileAtomicRead",q[q.FileAtomicWrite=32768]="FileAtomicWrite",q[q.FileAtomicDelete=65536]="FileAtomicDelete",q[q.FileClone=131072]="FileClone"})(g||(e.FileSystemProviderCapabilities=g={}));function C(q){return!!(q.capabilities&2)}e.hasReadWriteCapability=C;function r(q){return!!(q.capabilities&8)}e.hasFileFolderCopyCapability=r;function h(q){return!!(q.capabilities&131072)}e.hasFileCloneCapability=h;function o(q){return!!(q.capabilities&4)}e.hasOpenReadWriteCloseCapability=o;function b(q){return!!(q.capabilities&16)}e.hasFileReadStreamCapability=b;function P(q){return C(q)?!!(q.capabilities&16384):!1}e.hasFileAtomicReadCapability=P;function T(q){return C(q)?!!(q.capabilities&32768):!1}e.hasFileAtomicWriteCapability=T;function n(q){return!!(q.capabilities&65536)}e.hasFileAtomicDeleteCapability=n;function a(q){return!!(q.capabilities&2048)}e.hasReadonlyCapability=a;var l;(function(q){q.FileExists="EntryExists",q.FileNotFound="EntryNotFound",q.FileNotADirectory="EntryNotADirectory",q.FileIsADirectory="EntryIsADirectory",q.FileExceedsStorageQuota="EntryExceedsStorageQuota",q.FileTooLarge="EntryTooLarge",q.FileWriteLocked="EntryWriteLocked",q.NoPermissions="NoPermissions",q.Unavailable="Unavailable",q.Unknown="Unknown"})(l||(e.FileSystemProviderErrorCode=l={}));class i extends Error{static create(oe,ve){const ce=new i(oe.toString(),ve);return S(ce,ve),ce}constructor(oe,ve){super(oe),this.code=ve}}e.FileSystemProviderError=i;function c(q,oe){return i.create(q,oe)}e.createFileSystemProviderError=c;function _(q){return q||c((0,u.localize)(0,null),l.Unknown)}e.ensureFileSystemProviderError=_;function S(q,oe){return q.name=oe?`${oe} (FileSystemError)`:"FileSystemError",q}e.markAsFileSystemProviderError=S;function k(q){if(!q)return l.Unknown;if(q instanceof i)return q.code;const oe=/^(.+) \(FileSystemError\)$/.exec(q.name);if(!oe)return l.Unknown;switch(oe[1]){case l.FileExists:return l.FileExists;case l.FileIsADirectory:return l.FileIsADirectory;case l.FileNotADirectory:return l.FileNotADirectory;case l.FileNotFound:return l.FileNotFound;case l.FileTooLarge:return l.FileTooLarge;case l.FileWriteLocked:return l.FileWriteLocked;case l.NoPermissions:return l.NoPermissions;case l.Unavailable:return l.Unavailable}return l.Unknown}e.toFileSystemProviderErrorCode=k;function m(q){if(q instanceof N)return q.fileOperationResult;switch(k(q)){case l.FileNotFound:return 1;case l.FileIsADirectory:return 0;case l.FileNotADirectory:return 9;case l.FileWriteLocked:return 5;case l.NoPermissions:return 6;case l.FileExists:return 4;case l.FileTooLarge:return 7;default:return 10}}e.toFileOperationResult=m;var v;(function(q){q[q.CREATE=0]="CREATE",q[q.DELETE=1]="DELETE",q[q.MOVE=2]="MOVE",q[q.COPY=3]="COPY",q[q.WRITE=4]="WRITE"})(v||(e.FileOperation=v={}));class D{constructor(oe,ve,ce){this.resource=oe,this.operation=ve,this.target=ce}isOperation(oe){return this.operation===oe}}e.FileOperationEvent=D;var L;(function(q){q[q.UPDATED=0]="UPDATED",q[q.ADDED=1]="ADDED",q[q.DELETED=2]="DELETED"})(L||(e.FileChangeType=L={}));class O{constructor(oe,ve){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];const ce=new Map;for(const se of oe){const te=ce.get(se.type);switch(te?te.push([se.resource,se]):ce.set(se.type,[[se.resource,se]]),se.type){case 1:this.rawAdded.push(se.resource);break;case 0:this.rawUpdated.push(se.resource);break;case 2:this.rawDeleted.push(se.resource);break}}for(const[se,te]of ce)switch(se){case 1:this.added=w.TernarySearchTree.forUris(()=>ve),this.added.fill(te);break;case 0:this.updated=w.TernarySearchTree.forUris(()=>ve),this.updated.fill(te);break;case 2:this.deleted=w.TernarySearchTree.forUris(()=>ve),this.deleted.fill(te);break}}contains(oe,...ve){return this.doContains(oe,{includeChildren:!1},...ve)}affects(oe,...ve){return this.doContains(oe,{includeChildren:!0},...ve)}doContains(oe,ve,...ce){if(!oe)return!1;const se=ce.length>0;return!!((!se||ce.includes(1))&&(this.added?.get(oe)||ve.includeChildren&&this.added?.findSuperstr(oe))||(!se||ce.includes(0))&&(this.updated?.get(oe)||ve.includeChildren&&this.updated?.findSuperstr(oe))||(!se||ce.includes(2))&&(this.deleted?.findSubstr(oe)||ve.includeChildren&&this.deleted?.findSuperstr(oe)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=O;function H(q,oe,ve){return!q||!oe||q===oe||oe.length>q.length?!1:(oe.charAt(oe.length-1)!==M.sep&&(oe+=M.sep),ve?(0,d.startsWithIgnoreCase)(q,oe):q.indexOf(oe)===0)}e.isParent=H;class N extends Error{constructor(oe,ve,ce){super(oe),this.fileOperationResult=ve,this.options=ce}}e.FileOperationError=N;class $ extends N{constructor(oe,ve,ce,se){super(oe,ve,se),this.fileOperationResult=ve,this.size=ce}}e.TooLargeFileOperationError=$;class U extends N{constructor(oe,ve,ce){super(oe,2,ce),this.stat=ve}}e.NotModifiedSinceFileOperationError=U;var x;(function(q){q[q.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",q[q.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",q[q.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",q[q.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",q[q.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",q[q.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",q[q.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",q[q.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",q[q.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",q[q.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",q[q.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"})(x||(e.FileOperationResult=x={})),e.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},e.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},e.FILES_ASSOCIATIONS_CONFIG="files.associations",e.FILES_EXCLUDE_CONFIG="files.exclude",e.FILES_READONLY_INCLUDE_CONFIG="files.readonlyInclude",e.FILES_READONLY_EXCLUDE_CONFIG="files.readonlyExclude",e.FILES_READONLY_FROM_PERMISSIONS_CONFIG="files.readonlyFromPermissions";var X;(function(q){q[q.FILE=0]="FILE",q[q.FOLDER=1]="FOLDER",q[q.ROOT_FOLDER=2]="ROOT_FOLDER"})(X||(e.FileKind=X={})),e.ETAG_DISABLED="";function K(q){if(!(typeof q.size!="number"||typeof q.mtime!="number"))return q.mtime.toString(29)+q.size.toString(31)}e.etag=K;async function pe(q,oe){if(!oe.hasProvider(R.URI.from({scheme:q.scheme})))return new Promise(ve=>{const ce=oe.onDidChangeFileSystemProviderRegistrations(se=>{se.scheme===q.scheme&&se.added&&(ce.dispose(),ve())})})}e.whenProviderRegistered=pe;class le{static{this.KB=1024}static{this.MB=le.KB*le.KB}static{this.GB=le.MB*le.KB}static{this.TB=le.GB*le.KB}static formatSize(oe){return(0,A.isNumber)(oe)||(oe=0),oe<le.KB?(0,u.localize)(1,null,oe.toFixed(0)):oe<le.MB?(0,u.localize)(2,null,(oe/le.KB).toFixed(2)):oe<le.GB?(0,u.localize)(3,null,(oe/le.MB).toFixed(2)):oe<le.TB?(0,u.localize)(4,null,(oe/le.GB).toFixed(2)):(0,u.localize)(5,null,(oe/le.TB).toFixed(2))}}e.ByteSize=le;function re(q){const oe=typeof q=="string"||q?.scheme===y.Schemas.vscodeRemote;return typeof q!="string"&&q?.scheme===y.Schemas.file?1024*le.MB:oe?10*le.MB:f.isWeb?50*le.MB:1024*le.MB}e.getLargeFileConfirmationLimit=re}),define(ye[234],Ce([1,0,21,8,203,30]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readFileIntoStream=void 0;async function R(y,E,t,s,g,C){let r;try{await u(y,E,t,s,g,C)}catch(h){r=h}finally{r&&g.errorTransformer&&(r=g.errorTransformer(r)),typeof r<"u"&&t.error(r),t.end()}}e.readFileIntoStream=R;async function u(y,E,t,s,g,C){p(C);const r=await y.open(E,{create:!1});try{p(C);let h=0,o=0,b=g&&typeof g.length=="number"?g.length:void 0,P=w.VSBuffer.alloc(Math.min(g.bufferSize,typeof b=="number"?b:g.bufferSize)),T=g&&typeof g.position=="number"?g.position:0,n=0;do o=await y.read(r,T,P.buffer,n,P.byteLength-n),T+=o,n+=o,h+=o,typeof b=="number"&&(b-=o),n===P.byteLength&&(await t.write(s(P)),P=w.VSBuffer.alloc(Math.min(g.bufferSize,typeof b=="number"?b:g.bufferSize)),n=0);while(o>0&&(typeof b!="number"||b>0)&&p(C)&&f(h,g));if(n>0){let a=n;typeof b=="number"&&(a=Math.min(n,b)),t.write(s(P.slice(0,a)))}}catch(h){throw(0,A.ensureFileSystemProviderError)(h)}finally{await y.close(r)}}function p(y){if(y.isCancellationRequested)throw(0,M.canceled)();return!0}function f(y,E){if(typeof E?.limits?.size=="number"&&y>E.limits.size)throw(0,A.createFileSystemProviderError)((0,d.localize)(0,null),A.FileSystemProviderErrorCode.FileTooLarge);return!0}}),define(ye[82],Ce([1,0,34,5,17,14,2,30]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseWatcherPatterns=e.normalizeWatcherPattern=e.coalesceEvents=e.toFileChanges=e.AbstractUniversalWatcherClient=e.AbstractNonRecursiveWatcherClient=e.AbstractWatcherClient=e.isRecursiveWatchRequest=void 0;function p(h){return h.recursive===!0}e.isRecursiveWatchRequest=p;class f extends M.Disposable{static{this.MAX_RESTARTS=5}constructor(o,b,P,T){super(),this.onFileChanges=o,this.onLogMessage=b,this.verboseLogging=P,this.options=T,this.watcherDisposables=this._register(new M.MutableDisposable),this.requests=void 0,this.restartCounter=0}init(){const o=new M.DisposableStore;this.watcherDisposables.value=o,this.watcher=this.createWatcher(o),this.watcher.setVerboseLogging(this.verboseLogging),o.add(this.watcher.onDidChangeFile(b=>this.onFileChanges(b))),o.add(this.watcher.onDidLogMessage(b=>this.onLogMessage(b))),o.add(this.watcher.onDidError(b=>this.onError(b)))}onError(o){this.options.restartOnError?this.restartCounter<f.MAX_RESTARTS&&this.requests?(this.error(`restarting watcher after error: ${o}`),this.restart(this.requests)):this.error(`gave up attempting to restart watcher after error: ${o}`):this.error(o)}restart(o){this.restartCounter++,this.init(),this.watch(o)}async watch(o){this.requests=o,await this.watcher?.watch(o)}async setVerboseLogging(o){this.verboseLogging=o,await this.watcher?.setVerboseLogging(o)}error(o){this.onLogMessage({type:"error",message:`[File Watcher (${this.options.type})] ${o}`})}trace(o){this.onLogMessage({type:"trace",message:`[File Watcher (${this.options.type})] ${o}`})}dispose(){return this.watcher=void 0,super.dispose()}}e.AbstractWatcherClient=f;class y extends f{constructor(o,b,P){super(o,b,P,{type:"node.js",restartOnError:!1})}}e.AbstractNonRecursiveWatcherClient=y;class E extends f{constructor(o,b,P){super(o,b,P,{type:"universal",restartOnError:!0})}}e.AbstractUniversalWatcherClient=E;function t(h){return h.map(o=>({type:o.type,resource:R.URI.file(o.path)}))}e.toFileChanges=t;function s(h){const o=new r;for(const b of h)o.processEvent(b);return o.coalesce()}e.coalesceEvents=s;function g(h,o){return typeof o=="string"&&!o.startsWith(w.GLOBSTAR)&&!(0,d.isAbsolute)(o)?{base:h,pattern:o}:o}e.normalizeWatcherPattern=g;function C(h,o){const b=[];for(const P of o)b.push((0,w.parse)(g(h,P)));return b}e.parseWatcherPatterns=C;class r{constructor(){this.coalesced=new Set,this.mapPathToChange=new Map}toKey(o){return A.isLinux?o.path:o.path.toLowerCase()}processEvent(o){const b=this.mapPathToChange.get(this.toKey(o));let P=!1;if(b){const T=b.type,n=o.type;b.path!==o.path&&(o.type===2||o.type===1)?P=!0:T===1&&n===2?(this.mapPathToChange.delete(this.toKey(o)),this.coalesced.delete(b)):T===2&&n===1?b.type=0:T===1&&n===0||(b.type=n)}else P=!0;P&&(this.coalesced.add(o),this.mapPathToChange.set(this.toKey(o),o))}coalesce(){const o=[],b=[];return Array.from(this.coalesced).filter(P=>P.type!==2?(o.push(P),!1):!0).sort((P,T)=>P.path.length-T.path.length).filter(P=>b.some(T=>(0,u.isParent)(P.path,T,!A.isLinux))?!1:(b.push(P.path),!0)).concat(o)}}}),define(ye[235],Ce([1,0,52,13,22,33,5,71,17,14,98,31,82]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.watchFileContents=e.NodeJSFileWatcherLibrary=void 0;class s extends R.Disposable{static{this.FILE_DELETE_HANDLER_DELAY=100}static{this.FILE_CHANGES_HANDLER_DELAY=75}constructor(r,h,o,b){super(),this.request=r,this.onDidFilesChange=h,this.onLogMessage=o,this.verboseLogging=b,this.throttledFileChangesEmitter=this._register(new M.ThrottledWorker({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},P=>this.onDidFilesChange(P))),this.fileChangesAggregator=this._register(new M.RunOnceWorker(P=>this.handleFileChanges(P),s.FILE_CHANGES_HANDLER_DELAY)),this.excludes=(0,t.parseWatcherPatterns)(this.request.path,this.request.excludes),this.includes=this.request.includes?(0,t.parseWatcherPatterns)(this.request.path,this.request.includes):void 0,this.cts=new d.CancellationTokenSource,this.ready=this.watch()}async watch(){try{const r=await this.normalizePath(this.request);if(this.cts.token.isCancellationRequested)return;const h=await E.Promises.stat(r);this._register(await this.doWatch(r,h.isDirectory()))}catch(r){r.code!=="ENOENT"?this.error(r):this.trace(r)}}async normalizePath(r){let h=r.path;try{h=await E.Promises.realpath(r.path),r.path===h&&(h=await(0,y.realcase)(r.path)??r.path),r.path!==h&&this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${r.path}, real: ${h})`)}catch{}return h}async doWatch(r,h){if(f.isMacintosh&&(0,A.isEqualOrParent)(r,"/Volumes/",!0))return this.error(`Refusing to watch ${r} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`),R.Disposable.None;const o=new d.CancellationTokenSource(this.cts.token),b=new R.DisposableStore;try{const P=(0,p.basename)(r),T=(0,w.watch)(r);b.add((0,R.toDisposable)(()=>{T.removeAllListeners(),T.close()})),this.trace(`Started watching: '${r}'`);const n=new Set;if(h)try{for(const l of await E.Promises.readdir(r))n.add(l)}catch(l){this.error(l)}const a=new Map;b.add((0,R.toDisposable)(()=>{for(const[,l]of a)l.dispose();a.clear()})),T.on("error",(l,i)=>{this.error(`Failed to watch ${r} for changes using fs.watch() (${l}, ${i})`),this.dispose()}),T.on("change",(l,i)=>{if(o.token.isCancellationRequested)return;this.trace(`[raw] ["${l}"] ${i}`);let c="";if(i&&(c=i.toString(),f.isMacintosh&&(c=(0,u.normalizeNFC)(c))),!(!c||l!=="change"&&l!=="rename"))if(h)if(l==="rename"){a.get(c)?.dispose();const _=setTimeout(async()=>{if(a.delete(c),c===P&&!await E.Promises.exists(r)){this.warn("Watcher shutdown because watched path got deleted"),this.dispose();return}const S=await this.existsChildStrictCase((0,p.join)(r,c));if(o.token.isCancellationRequested)return;let k;S?n.has(c)?k=0:(k=1,n.add(c)):(n.delete(c),k=2),this.onFileChange({path:(0,p.join)(this.request.path,c),type:k})},s.FILE_DELETE_HANDLER_DELAY);a.set(c,(0,R.toDisposable)(()=>clearTimeout(_)))}else{let _;n.has(c)?_=0:(_=1,n.add(c)),this.onFileChange({path:(0,p.join)(this.request.path,c),type:_})}else if(l==="rename"||c!==P){const _=setTimeout(async()=>{const S=await E.Promises.exists(r);o.token.isCancellationRequested||(S?(this.onFileChange({path:this.request.path,type:0},!0),b.add(await this.doWatch(r,!1))):(this.onFileChange({path:this.request.path,type:2},!0),this.fileChangesAggregator.flush(),this.dispose()))},s.FILE_DELETE_HANDLER_DELAY);b.clear(),b.add((0,R.toDisposable)(()=>clearTimeout(_)))}else this.onFileChange({path:this.request.path,type:0},!0)})}catch(P){await E.Promises.exists(r)&&!o.token.isCancellationRequested&&this.error(`Failed to watch ${r} for changes using fs.watch() (${P.toString()})`)}return(0,R.toDisposable)(()=>{o.dispose(!0),b.dispose()})}onFileChange(r,h=!1){this.cts.token.isCancellationRequested||(this.verboseLogging&&this.trace(`${r.type===1?"[ADDED]":r.type===2?"[DELETED]":"[CHANGED]"} ${r.path}`),!h&&this.excludes.some(o=>o(r.path))?this.verboseLogging&&this.trace(` >> ignored (excluded) ${r.path}`):!h&&this.includes&&this.includes.length>0&&!this.includes.some(o=>o(r.path))?this.verboseLogging&&this.trace(` >> ignored (not included) ${r.path}`):this.fileChangesAggregator.work(r))}handleFileChanges(r){const h=(0,t.coalesceEvents)(r);if(h.length>0){if(this.verboseLogging)for(const b of h)this.trace(`>> normalized ${b.type===1?"[ADDED]":b.type===2?"[DELETED]":"[CHANGED]"} ${b.path}`);this.throttledFileChangesEmitter.work(h)?this.throttledFileChangesEmitter.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesEmitter.pending}, most recent change: ${h[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${h.length}, most recent change: ${h[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}}async existsChildStrictCase(r){if(f.isLinux)return E.Promises.exists(r);try{const h=(0,p.basename)(r);return(await E.Promises.readdir((0,p.dirname)(r))).some(b=>b===h)}catch(h){return this.trace(h),!1}}setVerboseLogging(r){this.verboseLogging=r}error(r){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${r}`})}warn(r){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${r}`})}trace(r){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${r}`})}dispose(){this.trace(`stopping file watcher on ${this.request.path}`),this.cts.dispose(!0),super.dispose()}}e.NodeJSFileWatcherLibrary=s;async function g(C,r,h,o,b=512){const P=await E.Promises.open(C,"r"),T=Buffer.allocUnsafe(b),n=new d.CancellationTokenSource(o);let a,l=!1;const i={path:C,excludes:[],recursive:!1},c=new s(i,_=>{(async()=>{for(const{type:S}of _)if(S===0){if(l)return;l=!0;try{for(;!n.token.isCancellationRequested;){const{bytesRead:k}=await E.Promises.read(P,T,0,b,null);if(!k||n.token.isCancellationRequested)break;r(T.slice(0,k))}}catch(k){a=new Error(k),n.dispose(!0)}finally{l=!1}}})()});return await c.ready,h(),new Promise((_,S)=>{n.token.onCancellationRequested(async()=>{c.dispose();try{await E.Promises.close(P)}catch(k){a=new Error(k)}a?S(a):_()})})}e.watchFileContents=g}),define(ye[236],Ce([1,0,4,34,5,14,235]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeJSWatcher=void 0;class u extends d.Disposable{constructor(){super(...arguments),this._onDidChangeFile=this._register(new w.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new w.Emitter),this.onDidLogMessage=this._onDidLogMessage.event,this.onDidError=w.Event.None,this.watchers=new Map,this.verboseLogging=!1}async watch(f){const y=this.normalizeRequests(f),E=y.filter(s=>{const g=this.watchers.get(s.path);return g?!(0,M.patternsEquals)(g.request.excludes,s.excludes)||!(0,M.patternsEquals)(g.request.includes,s.includes):!0}),t=Array.from(this.watchers.values()).filter(({request:s})=>!y.find(g=>g.path===s.path&&(0,M.patternsEquals)(g.excludes,s.excludes)&&(0,M.patternsEquals)(g.includes,s.includes))).map(({request:s})=>s.path);E.length&&this.trace(`Request to start watching: ${E.map(s=>`${s.path} (excludes: ${s.excludes.length>0?s.excludes:"<none>"}, includes: ${s.includes&&s.includes.length>0?JSON.stringify(s.includes):"<all>"})`).join(",")}`),t.length&&this.trace(`Request to stop watching: ${t.join(",")}`);for(const s of t)this.stopWatching(s);for(const s of E)this.startWatching(s)}startWatching(f){const y=new R.NodeJSFileWatcherLibrary(f,t=>this._onDidChangeFile.fire(t),t=>this._onDidLogMessage.fire(t),this.verboseLogging),E={request:f,instance:y};this.watchers.set(f.path,E)}async stop(){for(const[f]of this.watchers)this.stopWatching(f);this.watchers.clear()}stopWatching(f){const y=this.watchers.get(f);y&&(this.watchers.delete(f),y.instance.dispose())}normalizeRequests(f){const y=new Map;for(const E of f){const t=A.isLinux?E.path:E.path.toLowerCase();y.set(t,E)}return Array.from(y.values())}async setVerboseLogging(f){this.verboseLogging=f;for(const[,y]of this.watchers)y.instance.setVerboseLogging(f)}trace(f){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(f)})}toMessage(f,y){return y?`[File Watcher (node.js)] ${f} (path: ${y.request.path})`:`[File Watcher (node.js)] ${f}`}}e.NodeJSWatcher=u}),define(ye[237],Ce([1,0,82,236]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeJSWatcherClient=void 0;class d extends w.AbstractNonRecursiveWatcherClient{constructor(R,u,p){super(R,u,p),this.init()}createWatcher(){return new M.NodeJSWatcher}}e.NodeJSWatcherClient=d}),define(ye[238],Ce([1,0,15,78,193,82]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UniversalWatcherClient=void 0;class R extends A.AbstractUniversalWatcherClient{constructor(p,f,y){super(p,f,y),this.init()}createWatcher(p){const f=p.add(new d.Client(w.FileAccess.asFileUri("bootstrap-fork").fsPath,{serverName:"File Watcher",args:["--type=fileWatcher"],env:{VSCODE_AMD_ENTRYPOINT:"vs/platform/files/node/watcher/watcherMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true"}}));return p.add(f.onDidProcessExit(({code:y,signal:E})=>this.onError(`terminated by itself with code ${y}, signal: ${E}`))),M.ProxyChannel.toService((0,M.getNextTickChannel)(f.getChannel("watcher")))}}e.UniversalWatcherClient=R}),define(ye[101],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class w{constructor(...d){this._entries=new Map;for(const[A,R]of d)this.set(A,R)}set(d,A){const R=this._entries.get(d);return this._entries.set(d,A),R}has(d){return this._entries.has(d)}get(d){return this._entries.get(d)}}e.ServiceCollection=w}),define(ye[239],Ce([1,0,13,8,5,99,231,6,101,70]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=e.InstantiationService=void 0;const y=!1;class E extends Error{constructor(r){super("cyclic dependency between services"),this.message=r.findCycleSlow()??`UNABLE to detect cycle, dumping graph: 
${r.toString()}`}}class t{constructor(r=new p.ServiceCollection,h=!1,o,b=y){this._services=r,this._strict=h,this._parent=o,this._enableTracing=b,this._activeInstantiations=new Set,this._services.set(u.IInstantiationService,this),this._globalGraph=b?o?._globalGraph??new R.Graph(P=>P):void 0}createChild(r){return new t(r,this._strict,this,this._enableTracing)}invokeFunction(r,...h){const o=g.traceInvocation(this._enableTracing,r);let b=!1;try{return r({get:T=>{if(b)throw(0,M.illegalState)("service accessor is only valid during the invocation of its target method");const n=this._getOrCreateServiceInstance(T,o);if(!n)throw new Error(`[invokeFunction] unknown service '${T}'`);return n}},...h)}finally{b=!0,o.stop()}}createInstance(r,...h){let o,b;return r instanceof A.SyncDescriptor?(o=g.traceCreation(this._enableTracing,r.ctor),b=this._createInstance(r.ctor,r.staticArguments.concat(h),o)):(o=g.traceCreation(this._enableTracing,r),b=this._createInstance(r,h,o)),o.stop(),b}_createInstance(r,h=[],o){const b=u._util.getServiceDependencies(r).sort((n,a)=>n.index-a.index),P=[];for(const n of b){const a=this._getOrCreateServiceInstance(n.id,o);a||this._throwIfStrict(`[createInstance] ${r.name} depends on UNKNOWN service ${n.id}.`,!1),P.push(a)}const T=b.length>0?b[0].index:h.length;if(h.length!==T){console.trace(`[createInstance] First service dependency of ${r.name} at position ${T+1} conflicts with ${h.length} static arguments`);const n=T-h.length;n>0?h=h.concat(new Array(n)):h=h.slice(0,T)}return Reflect.construct(r,h.concat(P))}_setServiceInstance(r,h){if(this._services.get(r)instanceof A.SyncDescriptor)this._services.set(r,h);else if(this._parent)this._parent._setServiceInstance(r,h);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(r){const h=this._services.get(r);return!h&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):h}_getOrCreateServiceInstance(r,h){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(r));const o=this._getServiceInstanceOrDescriptor(r);return o instanceof A.SyncDescriptor?this._safeCreateAndCacheServiceInstance(r,o,h.branch(r,!0)):(h.branch(r,!1),o)}_safeCreateAndCacheServiceInstance(r,h,o){if(this._activeInstantiations.has(r))throw new Error(`illegal state - RECURSIVELY instantiating service '${r}'`);this._activeInstantiations.add(r);try{return this._createAndCacheServiceInstance(r,h,o)}finally{this._activeInstantiations.delete(r)}}_createAndCacheServiceInstance(r,h,o){const b=new R.Graph(n=>n.id.toString());let P=0;const T=[{id:r,desc:h,_trace:o}];for(;T.length;){const n=T.pop();if(b.lookupOrInsertNode(n),P++>1e3)throw new E(b);for(const a of u._util.getServiceDependencies(n.desc.ctor)){const l=this._getServiceInstanceOrDescriptor(a.id);if(l||this._throwIfStrict(`[createInstance] ${r} depends on ${a.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(n.id),String(a.id)),l instanceof A.SyncDescriptor){const i={id:a.id,desc:l,_trace:n._trace.branch(a.id,!0)};b.insertEdge(n,i),T.push(i)}}}for(;;){const n=b.roots();if(n.length===0){if(!b.isEmpty())throw new E(b);break}for(const{data:a}of n){if(this._getServiceInstanceOrDescriptor(a.id)instanceof A.SyncDescriptor){const i=this._createServiceInstanceWithOwner(a.id,a.desc.ctor,a.desc.staticArguments,a.desc.supportsDelayedInstantiation,a._trace);this._setServiceInstance(a.id,i)}b.removeNode(a)}}return this._getServiceInstanceOrDescriptor(r)}_createServiceInstanceWithOwner(r,h,o=[],b,P){if(this._services.get(r)instanceof A.SyncDescriptor)return this._createServiceInstance(r,h,o,b,P);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,h,o,b,P);throw new Error(`illegalState - creating UNKNOWN service instance ${h.name}`)}_createServiceInstance(r,h,o=[],b,P){if(b){const T=new t(void 0,this._strict,this,this._enableTracing);T._globalGraphImplicitDependency=String(r);const n=new Map,a=new w.IdleValue(()=>{const l=T._createInstance(h,o,P);for(const[i,c]of n){const _=l[i];if(typeof _=="function")for(const S of c)_.apply(l,S)}return n.clear(),l});return new Proxy(Object.create(null),{get(l,i){if(!a.isInitialized&&typeof i=="string"&&(i.startsWith("onDid")||i.startsWith("onWill"))){let S=n.get(i);return S||(S=new f.LinkedList,n.set(i,S)),(m,v,D)=>{const L=S.push([m,v,D]);return(0,d.toDisposable)(L)}}if(i in l)return l[i];const c=a.value;let _=c[i];return typeof _!="function"||(_=_.bind(c),l[i]=_),_},set(l,i,c){return a.value[i]=c,!0},getPrototypeOf(l){return h.prototype}})}else return this._createInstance(h,o,P)}_throwIfStrict(r,h){if(h&&console.warn(r),this._strict)throw new Error(r)}}e.InstantiationService=t;var s;(function(C){C[C.None=0]="None",C[C.Creation=1]="Creation",C[C.Invocation=2]="Invocation",C[C.Branch=3]="Branch"})(s||(s={}));class g{static{this.all=new Set}static{this._None=new class extends g{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(r,h){return r?new g(2,h.name||new Error().stack.split(`
`).slice(3,4).join(`
`)):g._None}static traceCreation(r,h){return r?new g(1,h.name):g._None}static{this._totals=0}constructor(r,h){this.type=r,this.name=h,this._start=Date.now(),this._dep=[]}branch(r,h){const o=new g(3,r.toString());return this._dep.push([r,h,o]),o}stop(){const r=Date.now()-this._start;g._totals+=r;let h=!1;function o(P,T){const n=[],a=new Array(P+1).join("	");for(const[l,i,c]of T._dep)if(i&&c){h=!0,n.push(`${a}CREATES -> ${l}`);const _=o(P+1,c);_&&n.push(_)}else n.push(`${a}uses -> ${l}`);return n.join(`
`)}const b=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${o(1,this)}`,`DONE, took ${r.toFixed(2)}ms (grand total ${g._totals.toFixed(2)}ms)`];(r>2||h)&&g.all.add(b.join(`
`))}}e.Trace=g}),define(ye[12],Ce([1,0,47,4,72,5,28,14,25,18,2,45,6]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTEXT_LOG_LEVEL=e.parseLogLevel=e.LogLevelToString=e.getLogLevel=e.NullLogService=e.NullLogger=e.AbstractLoggerService=e.MultiplexLogger=e.AdapterLogger=e.ConsoleLogger=e.ConsoleMainLogger=e.AbstractMessageLogger=e.AbstractLogger=e.log=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.isLogLevel=e.ILoggerService=e.ILogService=void 0,e.ILogService=(0,t.createDecorator)("logService"),e.ILoggerService=(0,t.createDecorator)("loggerService");function s(){return new Date().toISOString()}function g(m){return(0,f.isNumber)(m)}e.isLogLevel=g;var C;(function(m){m[m.Off=0]="Off",m[m.Trace=1]="Trace",m[m.Debug=2]="Debug",m[m.Info=3]="Info",m[m.Warning=4]="Warning",m[m.Error=5]="Error"})(C||(e.LogLevel=C={})),e.DEFAULT_LOG_LEVEL=C.Info;function r(m,v,D){switch(v){case C.Trace:m.trace(D);break;case C.Debug:m.debug(D);break;case C.Info:m.info(D);break;case C.Warning:m.warn(D);break;case C.Error:m.error(D);break;case C.Off:break;default:throw new Error(`Invalid log level ${v}`)}}e.log=r;function h(m,v=!1){let D="";for(let L=0;L<m.length;L++){let O=m[L];if(O instanceof Error&&(O=(0,w.toErrorMessage)(O,v)),typeof O=="object")try{O=JSON.stringify(O)}catch{}D+=(L>0?" ":"")+O}return D}class o extends A.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new M.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(v){this.level!==v&&(this.level=v,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(v){return this.level!==C.Off&&this.level<=v}}e.AbstractLogger=o;class b extends o{constructor(v){super(),this.logAlways=v}checkLogLevel(v){return this.logAlways||super.checkLogLevel(v)}trace(v,...D){this.checkLogLevel(C.Trace)&&this.log(C.Trace,h([v,...D],!0))}debug(v,...D){this.checkLogLevel(C.Debug)&&this.log(C.Debug,h([v,...D]))}info(v,...D){this.checkLogLevel(C.Info)&&this.log(C.Info,h([v,...D]))}warn(v,...D){this.checkLogLevel(C.Warning)&&this.log(C.Warning,h([v,...D]))}error(v,...D){if(this.checkLogLevel(C.Error))if(v instanceof Error){const L=Array.prototype.slice.call(arguments);L[0]=v.stack,this.log(C.Error,h(L))}else this.log(C.Error,h([v,...D]))}flush(){}}e.AbstractMessageLogger=b;class P extends o{constructor(v=e.DEFAULT_LOG_LEVEL){super(),this.setLevel(v),this.useColors=!u.isWindows}trace(v,...D){this.checkLogLevel(C.Trace)&&(this.useColors?console.log(`\x1B[90m[main ${s()}]\x1B[0m`,v,...D):console.log(`[main ${s()}]`,v,...D))}debug(v,...D){this.checkLogLevel(C.Debug)&&(this.useColors?console.log(`\x1B[90m[main ${s()}]\x1B[0m`,v,...D):console.log(`[main ${s()}]`,v,...D))}info(v,...D){this.checkLogLevel(C.Info)&&(this.useColors?console.log(`\x1B[90m[main ${s()}]\x1B[0m`,v,...D):console.log(`[main ${s()}]`,v,...D))}warn(v,...D){this.checkLogLevel(C.Warning)&&(this.useColors?console.warn(`\x1B[93m[main ${s()}]\x1B[0m`,v,...D):console.warn(`[main ${s()}]`,v,...D))}error(v,...D){this.checkLogLevel(C.Error)&&(this.useColors?console.error(`\x1B[91m[main ${s()}]\x1B[0m`,v,...D):console.error(`[main ${s()}]`,v,...D))}dispose(){}flush(){}}e.ConsoleMainLogger=P;class T extends o{constructor(v=e.DEFAULT_LOG_LEVEL,D=!0){super(),this.useColors=D,this.setLevel(v)}trace(v,...D){this.checkLogLevel(C.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",v,...D):console.log(v,...D))}debug(v,...D){this.checkLogLevel(C.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",v,...D):console.log(v,...D))}info(v,...D){this.checkLogLevel(C.Info)&&(this.useColors?console.log("%c INFO","color: #33f",v,...D):console.log(v,...D))}warn(v,...D){this.checkLogLevel(C.Warning)&&(this.useColors?console.log("%c WARN","color: #993",v,...D):console.log(v,...D))}error(v,...D){this.checkLogLevel(C.Error)&&(this.useColors?console.log("%c  ERR","color: #f33",v,...D):console.error(v,...D))}dispose(){}flush(){}}e.ConsoleLogger=T;class n extends o{constructor(v,D=e.DEFAULT_LOG_LEVEL){super(),this.adapter=v,this.setLevel(D)}trace(v,...D){this.checkLogLevel(C.Trace)&&this.adapter.log(C.Trace,[this.extractMessage(v),...D])}debug(v,...D){this.checkLogLevel(C.Debug)&&this.adapter.log(C.Debug,[this.extractMessage(v),...D])}info(v,...D){this.checkLogLevel(C.Info)&&this.adapter.log(C.Info,[this.extractMessage(v),...D])}warn(v,...D){this.checkLogLevel(C.Warning)&&this.adapter.log(C.Warning,[this.extractMessage(v),...D])}error(v,...D){this.checkLogLevel(C.Error)&&this.adapter.log(C.Error,[this.extractMessage(v),...D])}extractMessage(v){return typeof v=="string"?v:(0,w.toErrorMessage)(v,this.checkLogLevel(C.Trace))}dispose(){}flush(){}}e.AdapterLogger=n;class a extends o{constructor(v){super(),this.loggers=v,v.length&&this.setLevel(v[0].getLevel())}setLevel(v){for(const D of this.loggers)D.setLevel(v);super.setLevel(v)}trace(v,...D){for(const L of this.loggers)L.trace(v,...D)}debug(v,...D){for(const L of this.loggers)L.debug(v,...D)}info(v,...D){for(const L of this.loggers)L.info(v,...D)}warn(v,...D){for(const L of this.loggers)L.warn(v,...D)}error(v,...D){for(const L of this.loggers)L.error(v,...D)}flush(){for(const v of this.loggers)v.flush()}dispose(){for(const v of this.loggers)v.dispose()}}e.MultiplexLogger=a;class l extends A.Disposable{constructor(v,D,L){if(super(),this.logLevel=v,this.logsHome=D,this._loggers=new R.ResourceMap,this._onDidChangeLoggers=this._register(new M.Emitter),this.onDidChangeLoggers=this._onDidChangeLoggers.event,this._onDidChangeLogLevel=this._register(new M.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event,this._onDidChangeVisibility=this._register(new M.Emitter),this.onDidChangeVisibility=this._onDidChangeVisibility.event,L)for(const O of L)this._loggers.set(O.resource,{logger:void 0,info:O})}getLoggerEntry(v){return(0,f.isString)(v)?[...this._loggers.values()].find(D=>D.info.id===v):this._loggers.get(v)}getLogger(v){return this.getLoggerEntry(v)?.logger}createLogger(v,D){const L=this.toResource(v),O=(0,f.isString)(v)?v:D?.id??(0,d.hash)(L.toString()).toString(16);let H=this._loggers.get(L)?.logger;const N=D?.logLevel==="always"?C.Trace:D?.logLevel;H||(H=this.doCreateLogger(L,N??this.getLogLevel(L)??this.logLevel,{...D,id:O}));const $={logger:H,info:{resource:L,id:O,logLevel:N,name:D?.name,hidden:D?.hidden,extensionId:D?.extensionId,when:D?.when}};return this.registerLogger($.info),this._loggers.set(L,$),H}toResource(v){return(0,f.isString)(v)?(0,p.joinPath)(this.logsHome,`${v}.log`):v}setLogLevel(v,D){if(y.URI.isUri(v)){const L=v,O=D,H=this._loggers.get(L);H&&O!==H.info.logLevel&&(H.info.logLevel=O===this.logLevel?void 0:O,H.logger?.setLevel(O),this._loggers.set(H.info.resource,H),this._onDidChangeLogLevel.fire([L,O]))}else{this.logLevel=v;for(const[L,O]of this._loggers.entries())this._loggers.get(L)?.info.logLevel===void 0&&O.logger?.setLevel(this.logLevel);this._onDidChangeLogLevel.fire(this.logLevel)}}setVisibility(v,D){const L=this.getLoggerEntry(v);L&&D!==!L.info.hidden&&(L.info.hidden=!D,this._loggers.set(L.info.resource,L),this._onDidChangeVisibility.fire([L.info.resource,D]))}getLogLevel(v){let D;return v&&(D=this._loggers.get(v)?.info.logLevel),D??this.logLevel}registerLogger(v){const D=this._loggers.get(v.resource);D?D.info.hidden!==v.hidden&&this.setVisibility(v.resource,!v.hidden):(this._loggers.set(v.resource,{info:v,logger:void 0}),this._onDidChangeLoggers.fire({added:[v],removed:[]}))}deregisterLogger(v){const D=this._loggers.get(v);D&&(D.logger&&D.logger.dispose(),this._loggers.delete(v),this._onDidChangeLoggers.fire({added:[],removed:[D.info]}))}*getRegisteredLoggers(){for(const v of this._loggers.values())yield v.info}getRegisteredLogger(v){return this._loggers.get(v)?.info}dispose(){this._loggers.forEach(v=>v.logger?.dispose()),this._loggers.clear(),super.dispose()}}e.AbstractLoggerService=l;class i{constructor(){this.onDidChangeLogLevel=new M.Emitter().event}setLevel(v){}getLevel(){return C.Info}trace(v,...D){}debug(v,...D){}info(v,...D){}warn(v,...D){}error(v,...D){}critical(v,...D){}dispose(){}flush(){}}e.NullLogger=i;class c extends i{}e.NullLogService=c;function _(m){if(m.verbose)return C.Trace;if(typeof m.logLevel=="string"){const v=k(m.logLevel.toLowerCase());if(v!==void 0)return v}return e.DEFAULT_LOG_LEVEL}e.getLogLevel=_;function S(m){switch(m){case C.Trace:return"trace";case C.Debug:return"debug";case C.Info:return"info";case C.Warning:return"warn";case C.Error:return"error";case C.Off:return"off"}}e.LogLevelToString=S;function k(m){switch(m){case"trace":return C.Trace;case"debug":return C.Debug;case"info":return C.Info;case"warn":return C.Warning;case"error":return C.Error;case"critical":return C.Error;case"off":return C.Off}}e.parseLogLevel=k,e.CONTEXT_LOG_LEVEL=new E.RawContextKey("logLevel",S(C.Info))}),define(ye[240],Ce([1,0,19,13,8,4,5,17,82,12]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDiskFileSystemProvider=void 0;class y extends R.Disposable{constructor(t,s){super(),this.logService=t,this.options=s,this._onDidChangeFile=this._register(new A.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidWatchError=this._register(new A.Emitter),this.onDidWatchError=this._onDidWatchError.event,this.universalPathsToWatch=[],this.universalWatchRequestDelayer=this._register(new M.ThrottledDelayer(0)),this.nonRecursivePathsToWatch=[],this.nonRecursiveWatchRequestDelayer=this._register(new M.ThrottledDelayer(0))}watch(t,s){return s.recursive||this.options?.watcher?.forceUniversal?this.watchUniversal(t,s):this.watchNonRecursive(t,s)}watchUniversal(t,s){const g={path:this.toFilePath(t),excludes:s.excludes,includes:s.includes,recursive:s.recursive},C=(0,w.insert)(this.universalPathsToWatch,g);return this.refreshUniversalWatchers(),(0,R.toDisposable)(()=>{C(),this.refreshUniversalWatchers()})}refreshUniversalWatchers(){this.universalWatchRequestDelayer.trigger(()=>this.doRefreshUniversalWatchers()).catch(t=>(0,d.onUnexpectedError)(t))}doRefreshUniversalWatchers(){this.universalWatcher||(this.universalWatcher=this._register(this.createUniversalWatcher(s=>this._onDidChangeFile.fire((0,p.toFileChanges)(s)),s=>this.onWatcherLogMessage(s),this.logService.getLevel()===f.LogLevel.Trace)),this._register(this.logService.onDidChangeLogLevel(()=>{this.universalWatcher?.setVerboseLogging(this.logService.getLevel()===f.LogLevel.Trace)})));const t=this.options?.watcher?.recursive?.usePolling;if(t===!0)for(const s of this.universalPathsToWatch)(0,p.isRecursiveWatchRequest)(s)&&(s.pollingInterval=this.options?.watcher?.recursive?.pollingInterval??5e3);else if(Array.isArray(t))for(const s of this.universalPathsToWatch)(0,p.isRecursiveWatchRequest)(s)&&t.includes(s.path)&&(s.pollingInterval=this.options?.watcher?.recursive?.pollingInterval??5e3);return this.universalWatcher.watch(this.universalPathsToWatch)}watchNonRecursive(t,s){const g={path:this.toFilePath(t),excludes:s.excludes,includes:s.includes,recursive:!1},C=(0,w.insert)(this.nonRecursivePathsToWatch,g);return this.refreshNonRecursiveWatchers(),(0,R.toDisposable)(()=>{C(),this.refreshNonRecursiveWatchers()})}refreshNonRecursiveWatchers(){this.nonRecursiveWatchRequestDelayer.trigger(()=>this.doRefreshNonRecursiveWatchers()).catch(t=>(0,d.onUnexpectedError)(t))}doRefreshNonRecursiveWatchers(){return this.nonRecursiveWatcher||(this.nonRecursiveWatcher=this._register(this.createNonRecursiveWatcher(t=>this._onDidChangeFile.fire((0,p.toFileChanges)(t)),t=>this.onWatcherLogMessage(t),this.logService.getLevel()===f.LogLevel.Trace)),this._register(this.logService.onDidChangeLogLevel(()=>{this.nonRecursiveWatcher?.setVerboseLogging(this.logService.getLevel()===f.LogLevel.Trace)}))),this.nonRecursiveWatcher.watch(this.nonRecursivePathsToWatch)}onWatcherLogMessage(t){t.type==="error"&&this._onDidWatchError.fire(t.message),this.logService[t.type](t.message)}toFilePath(t){return(0,u.normalize)(t.fsPath)}}e.AbstractDiskFileSystemProvider=y}),define(ye[241],Ce([1,0,52,392,13,28,21,4,33,5,17,14,25,96,31,204,30,234,240,47,238,237]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiskFileSystemProvider=void 0,(()=>{try{(0,M.gracefulify)(w)}catch(a){console.error(`Error enabling graceful-fs: ${(0,b.toErrorMessage)(a)}`)}})();class n extends o.AbstractDiskFileSystemProvider{static{this.TRACE_LOG_RESOURCE_LOCKS=!1}constructor(l,i){super(l,i),this.onDidChangeCapabilities=u.Event.None,this.resourceLocks=new A.ResourceMap(c=>t.extUriBiasedIgnorePathCase.getComparisonKey(c)),this.mapHandleToPos=new Map,this.mapHandleToLock=new Map,this.writeHandles=new Map}get capabilities(){return this._capabilities||(this._capabilities=253982,E.isLinux&&(this._capabilities|=1024)),this._capabilities}async stat(l){try{const{stat:i,symbolicLink:c}=await g.SymlinkSupport.stat(this.toFilePath(l));return{type:this.toType(i,c),ctime:i.birthtime.getTime(),mtime:i.mtime.getTime(),size:i.size,permissions:i.mode&128?void 0:r.FilePermission.Locked}}catch(i){throw this.toFileSystemProviderError(i)}}async statIgnoreError(l){try{return await this.stat(l)}catch{return}}async readdir(l){try{const i=await g.Promises.readdir(this.toFilePath(l),{withFileTypes:!0}),c=[];return await Promise.all(i.map(async _=>{try{let S;_.isSymbolicLink()?S=(await this.stat((0,t.joinPath)(l,_.name))).type:S=this.toType(_),c.push([_.name,S])}catch(S){this.logService.trace(S)}})),c}catch(i){throw this.toFileSystemProviderError(i)}}toType(l,i){let c;return i?.dangling?c=r.FileType.Unknown:l.isFile()?c=r.FileType.File:l.isDirectory()?c=r.FileType.Directory:c=r.FileType.Unknown,i&&(c|=r.FileType.SymbolicLink),c}async createResourceLock(l){const i=this.toFilePath(l);this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - request to acquire resource lock (${i})`);let c;for(;c=this.resourceLocks.get(l);)this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - waiting for resource lock to be released (${i})`),await c.wait();const _=new d.Barrier;return this.resourceLocks.set(l,_),this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - new resource lock created (${i})`),(0,f.toDisposable)(()=>{this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - resource lock dispose() (${i})`),this.resourceLocks.get(l)===_&&(this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - resource lock removed from resource-lock map (${i})`),this.resourceLocks.delete(l)),this.traceLock(`[Disk FileSystemProvider]: createResourceLock() - resource lock barrier open() (${i})`),_.open()})}async readFile(l,i){let c;try{i?.atomic&&(this.traceLock(`[Disk FileSystemProvider]: atomic read operation started (${this.toFilePath(l)})`),c=await this.createResourceLock(l));const _=this.toFilePath(l);return await g.Promises.readFile(_)}catch(_){throw this.toFileSystemProviderError(_)}finally{c?.dispose()}}traceLock(l){n.TRACE_LOG_RESOURCE_LOCKS&&this.logService.trace(l)}readFileStream(l,i,c){const _=(0,s.newWriteableStream)(S=>R.VSBuffer.concat(S.map(k=>R.VSBuffer.wrap(k))).buffer);return(0,h.readFileIntoStream)(this,l,_,S=>S.buffer,{...i,bufferSize:256*1024},c),_}async writeFile(l,i,c){return c?.atomic!==!1&&c?.atomic?.postfix?this.doWriteFileAtomic(l,(0,t.joinPath)((0,t.dirname)(l),`${(0,t.basename)(l)}${c.atomic.postfix}`),i,c):this.doWriteFile(l,i,c)}async doWriteFileAtomic(l,i,c,_){await this.doWriteFile(i,c,_);try{await this.rename(i,l,{overwrite:!0})}catch(S){try{await this.delete(i,{recursive:!1,useTrash:!1,atomic:!1})}catch{}throw S}}async doWriteFile(l,i,c){let _;try{const S=this.toFilePath(l);if(!c.create||!c.overwrite){if(await g.Promises.exists(S)){if(!c.overwrite)throw(0,r.createFileSystemProviderError)((0,C.localize)(0,null),r.FileSystemProviderErrorCode.FileExists)}else if(!c.create)throw(0,r.createFileSystemProviderError)((0,C.localize)(1,null),r.FileSystemProviderErrorCode.FileNotFound)}_=await this.open(l,{create:!0,unlock:c.unlock}),await this.write(_,0,i,0,i.byteLength)}catch(S){throw await this.toFileSystemProviderWriteError(l,S)}finally{typeof _=="number"&&await this.close(_)}}static{this.canFlush=!0}static configureFlushOnWrite(l){n.canFlush=l}async open(l,i){const c=this.toFilePath(l);let _;(0,r.isFileOpenForWriteOptions)(i)&&(_=await this.createResourceLock(l));let S;try{if((0,r.isFileOpenForWriteOptions)(i)&&i.unlock)try{const{stat:m}=await g.SymlinkSupport.stat(c);m.mode&128||await g.Promises.chmod(c,m.mode|128)}catch(m){m.code!=="ENOENT"&&this.logService.trace(m)}let k;if((0,r.isFileOpenForWriteOptions)(i)){if(E.isWindows)try{await g.Promises.truncate(c,0),k="r+"}catch(m){m.code!=="ENOENT"&&this.logService.trace(m)}k||(k="w")}else k="r";S=await g.Promises.open(c,k)}catch(k){throw _?.dispose(),(0,r.isFileOpenForWriteOptions)(i)?await this.toFileSystemProviderWriteError(l,k):this.toFileSystemProviderError(k)}if(this.mapHandleToPos.set(S,0),(0,r.isFileOpenForWriteOptions)(i)&&this.writeHandles.set(S,l),_){const k=this.mapHandleToLock.get(S);this.traceLock(`[Disk FileSystemProvider]: open() - storing lock for handle ${S} (${c})`),this.mapHandleToLock.set(S,_),k&&(this.traceLock(`[Disk FileSystemProvider]: open() - disposing a previous lock that was still stored on same handle ${S} (${c})`),k.dispose())}return S}async close(l){const i=this.mapHandleToLock.get(l);try{if(this.mapHandleToPos.delete(l),this.writeHandles.delete(l)&&n.canFlush)try{await g.Promises.fdatasync(l)}catch(c){n.configureFlushOnWrite(!1),this.logService.error(c)}return await g.Promises.close(l)}catch(c){throw this.toFileSystemProviderError(c)}finally{i&&(this.mapHandleToLock.get(l)===i&&(this.traceLock(`[Disk FileSystemProvider]: close() - resource lock removed from handle-lock map ${l}`),this.mapHandleToLock.delete(l)),this.traceLock(`[Disk FileSystemProvider]: close() - disposing lock for handle ${l}`),i.dispose())}}async read(l,i,c,_,S){const k=this.normalizePos(l,i);let m=null;try{m=(await g.Promises.read(l,c,_,S,k)).bytesRead}catch(v){throw this.toFileSystemProviderError(v)}finally{this.updatePos(l,k,m)}return m}normalizePos(l,i){return i===this.mapHandleToPos.get(l)?null:i}updatePos(l,i,c){const _=this.mapHandleToPos.get(l);typeof _=="number"&&(typeof i=="number"||(typeof c=="number"?this.mapHandleToPos.set(l,_+c):this.mapHandleToPos.delete(l)))}async write(l,i,c,_,S){return(0,d.retry)(()=>this.doWrite(l,i,c,_,S),100,3)}async doWrite(l,i,c,_,S){const k=this.normalizePos(l,i);let m=null;try{m=(await g.Promises.write(l,c,_,S,k)).bytesWritten}catch(v){throw await this.toFileSystemProviderWriteError(this.writeHandles.get(l),v)}finally{this.updatePos(l,k,m)}return m}async mkdir(l){try{await g.Promises.mkdir(this.toFilePath(l))}catch(i){throw this.toFileSystemProviderError(i)}}async delete(l,i){try{const c=this.toFilePath(l);if(i.recursive){let _;i?.atomic!==!1&&i.atomic.postfix&&(_=(0,y.join)((0,y.dirname)(c),`${(0,y.basename)(c)}${i.atomic.postfix}`)),await g.Promises.rm(c,g.RimRafMode.MOVE,_)}else try{await g.Promises.unlink(c)}catch(_){if(_.code==="EPERM"||_.code==="EISDIR"){let S=!1;try{const{stat:k,symbolicLink:m}=await g.SymlinkSupport.stat(c);S=k.isDirectory()&&!m}catch{}if(S)await g.Promises.rmdir(c);else throw _}else throw _}}catch(c){throw this.toFileSystemProviderError(c)}}async rename(l,i,c){const _=this.toFilePath(l),S=this.toFilePath(i);if(_!==S)try{await this.validateMoveCopy(l,i,"move",c.overwrite),await g.Promises.rename(_,S)}catch(k){throw(k.code==="EINVAL"||k.code==="EBUSY"||k.code==="ENAMETOOLONG")&&(k=new Error((0,C.localize)(2,null,(0,y.basename)(_),(0,y.basename)((0,y.dirname)(S)),k.toString()))),this.toFileSystemProviderError(k)}}async copy(l,i,c){const _=this.toFilePath(l),S=this.toFilePath(i);if(_!==S)try{await this.validateMoveCopy(l,i,"copy",c.overwrite),await g.Promises.copy(_,S,{preserveSymlinks:!0})}catch(k){throw(k.code==="EINVAL"||k.code==="EBUSY"||k.code==="ENAMETOOLONG")&&(k=new Error((0,C.localize)(3,null,(0,y.basename)(_),(0,y.basename)((0,y.dirname)(S)),k.toString()))),this.toFileSystemProviderError(k)}}async validateMoveCopy(l,i,c,_){const S=this.toFilePath(l),k=this.toFilePath(i);let m=!1;if(!!(this.capabilities&1024)||(m=(0,p.isEqual)(S,k,!0)),m){if(c==="copy")throw(0,r.createFileSystemProviderError)((0,C.localize)(4,null),r.FileSystemProviderErrorCode.FileExists);if(c==="move")return}const D=await this.statIgnoreError(l);if(!D)throw(0,r.createFileSystemProviderError)((0,C.localize)(5,null),r.FileSystemProviderErrorCode.FileNotFound);const L=await this.statIgnoreError(i);if(L){if(!_)throw(0,r.createFileSystemProviderError)((0,C.localize)(6,null),r.FileSystemProviderErrorCode.FileExists);D.type&r.FileType.File&&L.type&r.FileType.File||await this.delete(i,{recursive:!0,useTrash:!1,atomic:!1})}}async cloneFile(l,i){return this.doCloneFile(l,i,!1)}async doCloneFile(l,i,c){const _=this.toFilePath(l),S=this.toFilePath(i),k=!!(this.capabilities&1024);if((0,p.isEqual)(_,S,!k))return;const m=new f.DisposableStore;try{const[v,D]=await Promise.all([this.createResourceLock(l),this.createResourceLock(i)]);m.add(v),m.add(D),c&&await g.Promises.mkdir((0,y.dirname)(S),{recursive:!0}),await g.Promises.copyFile(_,S)}catch(v){if(v.code==="ENOENT"&&!c)return this.doCloneFile(l,i,!0);throw this.toFileSystemProviderError(v)}finally{m.dispose()}}createUniversalWatcher(l,i,c){return new P.UniversalWatcherClient(_=>l(_),_=>i(_),c)}createNonRecursiveWatcher(l,i,c){return new T.NodeJSWatcherClient(_=>l(_),_=>i(_),c)}toFileSystemProviderError(l){if(l instanceof r.FileSystemProviderError)return l;let i=l,c;switch(l.code){case"ENOENT":c=r.FileSystemProviderErrorCode.FileNotFound;break;case"EISDIR":c=r.FileSystemProviderErrorCode.FileIsADirectory;break;case"ENOTDIR":c=r.FileSystemProviderErrorCode.FileNotADirectory;break;case"EEXIST":c=r.FileSystemProviderErrorCode.FileExists;break;case"EPERM":case"EACCES":c=r.FileSystemProviderErrorCode.NoPermissions;break;case"ERR_UNC_HOST_NOT_ALLOWED":i=`${l.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`,c=r.FileSystemProviderErrorCode.Unknown;break;default:c=r.FileSystemProviderErrorCode.Unknown}return(0,r.createFileSystemProviderError)(i,c)}async toFileSystemProviderWriteError(l,i){let c=this.toFileSystemProviderError(i);if(l&&c.code===r.FileSystemProviderErrorCode.NoPermissions)try{const{stat:_}=await g.SymlinkSupport.stat(this.toFilePath(l));_.mode&128||(c=(0,r.createFileSystemProviderError)(i,r.FileSystemProviderErrorCode.FileWriteLocked))}catch(_){this.logService.trace(_)}return c}}e.DiskFileSystemProvider=n}),define(ye[242],Ce([1,0,5,12]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogService=void 0;class d extends w.Disposable{constructor(R,u=[]){super(),this.logger=new M.MultiplexLogger([R,...u]),this._register(R.onDidChangeLogLevel(p=>this.setLevel(p)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(R){this.logger.setLevel(R)}getLevel(){return this.logger.getLevel()}trace(R,...u){this.logger.trace(R,...u)}debug(R,...u){this.logger.debug(R,...u)}info(R,...u){this.logger.info(R,...u)}warn(R,...u){this.logger.warn(R,...u)}error(R,...u){this.logger.error(R,...u)}flush(){this.logger.flush()}}e.LogService=d}),define(ye[243],Ce([1,0,30,12]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SpdLogLogger=void 0;var d;(function(f){f[f.Trace=0]="Trace",f[f.Debug=1]="Debug",f[f.Info=2]="Info",f[f.Warning=3]="Warning",f[f.Error=4]="Error",f[f.Critical=5]="Critical",f[f.Off=6]="Off"})(d||(d={}));async function A(f,y,E,t,s){try{const g=await new Promise((r,h)=>{ge(["@vscode/spdlog"],r,h)});g.setFlushOn(d.Trace);const C=await g.createAsyncRotatingLogger(f,y,E,t);return s?C.clearFormatters():C.setPattern("%Y-%m-%d %H:%M:%S.%e [%l] %v"),C}catch(g){console.error(g)}return null}function R(f,y,E){switch(y){case M.LogLevel.Trace:f.trace(E);break;case M.LogLevel.Debug:f.debug(E);break;case M.LogLevel.Info:f.info(E);break;case M.LogLevel.Warning:f.warn(E);break;case M.LogLevel.Error:f.error(E);break;case M.LogLevel.Off:break;default:throw new Error(`Invalid log level ${y}`)}}function u(f,y){switch(y){case M.LogLevel.Trace:f.setLevel(d.Trace);break;case M.LogLevel.Debug:f.setLevel(d.Debug);break;case M.LogLevel.Info:f.setLevel(d.Info);break;case M.LogLevel.Warning:f.setLevel(d.Warning);break;case M.LogLevel.Error:f.setLevel(d.Error);break;case M.LogLevel.Off:f.setLevel(d.Off);break;default:throw new Error(`Invalid log level ${y}`)}}class p extends M.AbstractMessageLogger{constructor(y,E,t,s,g){super(),this.buffer=[],this.setLevel(g),this._loggerCreationPromise=this._createSpdLogLogger(y,E,t,s),this._register(this.onDidChangeLogLevel(C=>{this._logger&&u(this._logger,C)}))}async _createSpdLogLogger(y,E,t,s){const g=t?6:1,C=30/g*w.ByteSize.MB,r=await A(y,E,C,g,s);if(r){this._logger=r,u(this._logger,this.getLevel());for(const{level:h,message:o}of this.buffer)R(this._logger,h,o);this.buffer=[]}}log(y,E){this._logger?R(this._logger,y,E):this.getLevel()<=y&&this.buffer.push({level:y,message:E})}flush(){this._logger?this._logger.flush():this._loggerCreationPromise.then(()=>this.flush())}dispose(){this._logger?this.disposeLogger():this._loggerCreationPromise.then(()=>this.disposeLogger())}disposeLogger(){this._logger&&(this._logger.drop(),this._logger=void 0)}}e.SpdLogLogger=p}),define(ye[133],Ce([1,0,43,205,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerService=e.IMarkerData=e.MarkerSeverity=e.MarkerTag=void 0;var A;(function(p){p[p.Unnecessary=1]="Unnecessary",p[p.Deprecated=2]="Deprecated"})(A||(e.MarkerTag=A={}));var R;(function(p){p[p.Hint=1]="Hint",p[p.Info=2]="Info",p[p.Warning=4]="Warning",p[p.Error=8]="Error"})(R||(e.MarkerSeverity=R={})),function(p){function f(g,C){return C-g}p.compare=f;const y=Object.create(null);y[p.Error]=(0,M.localize)(0,null),y[p.Warning]=(0,M.localize)(1,null),y[p.Info]=(0,M.localize)(2,null);function E(g){return y[g]||""}p.toString=E;function t(g){switch(g){case w.default.Error:return p.Error;case w.default.Warning:return p.Warning;case w.default.Info:return p.Info;case w.default.Ignore:return p.Hint}}p.fromSeverity=t;function s(g){switch(g){case p.Error:return w.default.Error;case p.Warning:return w.default.Warning;case p.Info:return w.default.Info;case p.Hint:return w.default.Ignore}}p.toSeverity=s}(R||(e.MarkerSeverity=R={}));var u;(function(p){const f="";function y(t){return E(t,!0)}p.makeKey=y;function E(t,s){const g=[f];return t.source?g.push(t.source.replace("\xA6","\\\xA6")):g.push(f),t.code?typeof t.code=="string"?g.push(t.code.replace("\xA6","\\\xA6")):g.push(t.code.value.replace("\xA6","\\\xA6")):g.push(f),t.severity!==void 0&&t.severity!==null?g.push(R.toString(t.severity)):g.push(f),t.message&&s?g.push(t.message.replace("\xA6","\\\xA6")):g.push(f),t.startLineNumber!==void 0&&t.startLineNumber!==null?g.push(t.startLineNumber.toString()):g.push(f),t.startColumn!==void 0&&t.startColumn!==null?g.push(t.startColumn.toString()):g.push(f),t.endLineNumber!==void 0&&t.endLineNumber!==null?g.push(t.endLineNumber.toString()):g.push(f),t.endColumn!==void 0&&t.endColumn!==null?g.push(t.endColumn.toString()):g.push(f),g.push(f),g.join("\xA6")}p.makeKeyOptionalMessage=E})(u||(e.IMarkerData=u={})),e.IMarkerService=(0,d.createDecorator)("markerService")}),define(ye[244],Ce([1,0,4,43,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoOpProgress=e.NoOpNotification=e.NotificationsFilter=e.NeverShowAgainScope=e.NotificationPriority=e.INotificationService=e.Severity=void 0,e.Severity=M.default,e.INotificationService=(0,d.createDecorator)("notificationService");var A;(function(y){y[y.DEFAULT=0]="DEFAULT",y[y.SILENT=1]="SILENT",y[y.URGENT=2]="URGENT"})(A||(e.NotificationPriority=A={}));var R;(function(y){y[y.WORKSPACE=0]="WORKSPACE",y[y.PROFILE=1]="PROFILE",y[y.APPLICATION=2]="APPLICATION"})(R||(e.NeverShowAgainScope=R={}));var u;(function(y){y[y.OFF=0]="OFF",y[y.SILENT=1]="SILENT",y[y.ERROR=2]="ERROR"})(u||(e.NotificationsFilter=u={}));class p{constructor(){this.progress=new f,this.onDidClose=w.Event.None,this.onDidChangeVisibility=w.Event.None}updateSeverity(E){}updateMessage(E){}updateActions(E){}close(){}}e.NoOpNotification=p;class f{infinite(){}done(){}total(E){}worked(E){}}e.NoOpProgress=f}),define(ye[134],Ce([1,0,16,2,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractSelection=e.withSelection=e.matchesSomeScheme=e.matchesScheme=e.IOpenerService=void 0,e.IOpenerService=(0,d.createDecorator)("openerService");function A(f,y){return M.URI.isUri(f)?(0,w.equalsIgnoreCase)(f.scheme,y):(0,w.startsWithIgnoreCase)(f,y+":")}e.matchesScheme=A;function R(f,...y){return y.some(E=>A(f,E))}e.matchesSomeScheme=R;function u(f,y){return f.with({fragment:`${y.startLineNumber},${y.startColumn}${y.endLineNumber?`-${y.endLineNumber}${y.endColumn?`,${y.endColumn}`:""}`:""}`})}e.withSelection=u;function p(f){let y;const E=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(f.fragment);return E&&(y={startLineNumber:parseInt(E[1]),startColumn:E[2]?parseInt(E[2]):1,endLineNumber:E[4]?parseInt(E[4]):void 0,endColumn:E[4]?E[5]?parseInt(E[5]):1:void 0},f=f.with({fragment:""})),{selection:y,uri:f}}e.extractSelection=p}),define(ye[135],Ce([1,0,14,44]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let d;if(typeof w.globals.vscode<"u"&&typeof w.globals.vscode.context<"u"){const A=w.globals.vscode.context.configuration();if(A)d=A.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(d=globalThis._VSCODE_PRODUCT_JSON,M.env.VSCODE_DEV&&Object.assign(d,{nameShort:`${d.nameShort} Dev`,nameLong:`${d.nameLong} Dev`,dataFolderName:`${d.dataFolderName}-dev`,serverDataFolderName:d.serverDataFolderName?`${d.serverDataFolderName}-dev`:void 0}),!d.version){const A=globalThis._VSCODE_PACKAGE_JSON;Object.assign(d,{version:A.version})}}else d={},Object.keys(d).length===0&&Object.assign(d,{version:"1.78.0-dev",nameShort:"Azure Data Studio Dev",nameLong:"Azure Data Studio Dev",applicationName:"azuredatastudio-oss",dataFolderName:"azuredatastudio-oss",urlProtocol:"azuredatastudio-oss",reportIssueUrl:"https://github.com/microsoft/azuredatastudio/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});e.default=d}),define(ye[136],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.productSchemaId=e.IProductService=void 0,e.IProductService=(0,w.createDecorator)("productService"),e.productSchemaId="vscode://schemas/vscode-product"});var He=this&&this.__param||function(ge,e){return function(w,M){e(w,M,ge)}};define(ye[83],Ce([1,0,13,22,5,6]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorProgressService=e.LongRunningOperation=e.UnmanagedProgress=e.Progress=e.emptyProgressRunner=e.ProgressLocation=e.IProgressService=void 0,e.IProgressService=(0,A.createDecorator)("progressService");var R;(function(y){y[y.Explorer=1]="Explorer",y[y.Scm=3]="Scm",y[y.Extensions=5]="Extensions",y[y.Window=10]="Window",y[y.Notification=15]="Notification",y[y.Dialog=20]="Dialog"})(R||(e.ProgressLocation=R={})),e.emptyProgressRunner=Object.freeze({total(){},worked(){},done(){}});class u{static{this.None=Object.freeze({report(){}})}get value(){return this._value}constructor(E,t){this.callback=E,this.report=t?.async?this._reportAsync.bind(this):this._reportSync.bind(this)}_reportSync(E){this._value=E,this.callback(this._value)}_reportAsync(E){Promise.resolve(this._lastTask).finally(()=>{this._value=E;const t=this.callback(this._value);this._lastTask=Promise.resolve(t).finally(()=>this._lastTask=void 0)})}}e.Progress=u;let p=class extends d.Disposable{constructor(E,t){super(),this.deferred=new w.DeferredPromise,t.withProgress(E,s=>(this.reporter=s,this.lastStep&&s.report(this.lastStep),this.deferred.p)),this._register((0,d.toDisposable)(()=>this.deferred.complete()))}report(E){this.reporter?this.reporter.report(E):this.lastStep=E}};e.UnmanagedProgress=p,e.UnmanagedProgress=p=je([He(1,e.IProgressService)],p);class f extends d.Disposable{constructor(E){super(),this.progressIndicator=E,this.currentOperationId=0,this.currentOperationDisposables=this._register(new d.DisposableStore)}start(E){this.stop();const t=++this.currentOperationId,s=new M.CancellationTokenSource;return this.currentProgressTimeout=setTimeout(()=>{t===this.currentOperationId&&(this.currentProgressRunner=this.progressIndicator.show(!0))},E),this.currentOperationDisposables.add((0,d.toDisposable)(()=>clearTimeout(this.currentProgressTimeout))),this.currentOperationDisposables.add((0,d.toDisposable)(()=>s.cancel())),this.currentOperationDisposables.add((0,d.toDisposable)(()=>this.currentProgressRunner?this.currentProgressRunner.done():void 0)),{id:t,token:s.token,stop:()=>this.doStop(t),isCurrent:()=>this.currentOperationId===t}}stop(){this.doStop(this.currentOperationId)}doStop(E){this.currentOperationId===E&&this.currentOperationDisposables.clear()}}e.LongRunningOperation=f,e.IEditorProgressService=(0,A.createDecorator)("editorProgressService")}),define(ye[38],Ce([1,0,42,18]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;class d{constructor(){this.data=new Map}add(R,u){w.ok(M.isString(R)),w.ok(M.isObject(u)),w.ok(!this.data.has(R),"There is already an extension with this id"),this.data.set(R,u)}knows(R){return this.data.has(R)}as(R){return this.data.get(R)||null}}e.Registry=new d}),define(ye[245],Ce([1,0,38]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerCellComponent=e.InjectedParametersTag=e.ParametersTag=e.HideInputTag=e.Extensions=void 0,e.Extensions={CellComponentContributions:"notebook.contributions.cells"},e.HideInputTag="hide_input",e.ParametersTag="parameters",e.InjectedParametersTag="injected-parameters";class M{constructor(){this.components=new Array}registerComponent(u){this.components.push(u)}getComponents(){return this.components.slice()}}const d=new M;w.Registry.add(e.Extensions.CellComponentContributions,d);function A(R){d.registerComponent(R)}e.registerCellComponent=A}),define(ye[102],Ce([1,0,4,38]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=void 0,e.Extensions={JSONContribution:"base.contributions.json"};function d(u){return u.length>0&&u.charAt(u.length-1)==="#"?u.substring(0,u.length-1):u}class A{constructor(){this._onDidChangeSchema=new w.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}registerSchema(p,f){this.schemasById[d(p)]=f,this._onDidChangeSchema.fire(p)}notifySchemaChanged(p){this._onDidChangeSchema.fire(p)}getSchemaContributions(){return{schemas:this.schemasById}}}const R=new A;M.Registry.add(e.Extensions.JSONContribution,R)}),define(ye[137],Ce([1,0,19,4,18,197,53,102,38]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScopes=e.validateProperty=e.getDefaultValue=e.keyFromOverrideIdentifiers=e.overrideIdentifiersFromKey=e.OVERRIDE_PROPERTY_REGEX=e.OVERRIDE_PROPERTY_PATTERN=e.configurationDefaultsSchemaId=e.resourceLanguageSettingsSchemaId=e.resourceSettings=e.windowSettings=e.machineOverridableSettings=e.machineSettings=e.applicationSettings=e.allSettings=e.ConfigurationScope=e.Extensions=e.EditPresentationTypes=void 0;var f;(function(T){T.Multiline="multilineText",T.Singleline="singlelineText"})(f||(e.EditPresentationTypes=f={})),e.Extensions={Configuration:"base.contributions.configuration"};var y;(function(T){T[T.APPLICATION=1]="APPLICATION",T[T.MACHINE=2]="MACHINE",T[T.WINDOW=3]="WINDOW",T[T.RESOURCE=4]="RESOURCE",T[T.LANGUAGE_OVERRIDABLE=5]="LANGUAGE_OVERRIDABLE",T[T.MACHINE_OVERRIDABLE=6]="MACHINE_OVERRIDABLE"})(y||(e.ConfigurationScope=y={})),e.allSettings={properties:{},patternProperties:{}},e.applicationSettings={properties:{},patternProperties:{}},e.machineSettings={properties:{},patternProperties:{}},e.machineOverridableSettings={properties:{},patternProperties:{}},e.windowSettings={properties:{},patternProperties:{}},e.resourceSettings={properties:{},patternProperties:{}},e.resourceLanguageSettingsSchemaId="vscode://schemas/settings/resourceLanguage",e.configurationDefaultsSchemaId="vscode://schemas/settings/configurationDefaults";const E=p.Registry.as(u.Extensions.JSONContribution);class t{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new M.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidUpdateConfiguration=new M.Emitter,this.onDidUpdateConfiguration=this._onDidUpdateConfiguration.event,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:A.localize(0,null),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},E.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(n,a=!0){this.registerConfigurations([n],a)}registerConfigurations(n,a=!0){const l=new Set;this.doRegisterConfigurations(n,a,l),E.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:l})}deregisterConfigurations(n){const a=new Set;this.doDeregisterConfigurations(n,a),E.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:a})}updateConfigurations({add:n,remove:a}){const l=new Set;this.doDeregisterConfigurations(a,l),this.doRegisterConfigurations(n,!1,l),E.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:l})}registerDefaultConfigurations(n){const a=new Set;this.doRegisterDefaultConfigurations(n,a),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:a,defaultsOverrides:!0})}doRegisterDefaultConfigurations(n,a){const l=[];for(const{overrides:i,source:c}of n)for(const _ in i)if(a.add(_),e.OVERRIDE_PROPERTY_REGEX.test(_)){const S=this.configurationDefaultsOverrides.get(_),k=S?.valuesSources??new Map;if(c)for(const L of Object.keys(i[_]))k.set(L,c);const m={...S?.value||{},...i[_]};this.configurationDefaultsOverrides.set(_,{source:c,value:m,valuesSources:k});const v=(0,R.getLanguageTagSettingPlainKey)(_),D={type:"object",default:m,description:A.localize(1,null,v),$ref:e.resourceLanguageSettingsSchemaId,defaultDefaultValue:m,source:d.isString(c)?void 0:c,defaultValueSource:c};l.push(...C(_)),this.configurationProperties[_]=D,this.defaultLanguageConfigurationOverridesNode.properties[_]=D}else{this.configurationDefaultsOverrides.set(_,{value:i[_],source:c});const S=this.configurationProperties[_];S&&(this.updatePropertyDefaultValue(_,S),this.updateSchema(_,S))}this.doRegisterOverrideIdentifiers(l)}deregisterDefaultConfigurations(n){const a=new Set;this.doDeregisterDefaultConfigurations(n,a),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:a,defaultsOverrides:!0})}doDeregisterDefaultConfigurations(n,a){for(const{overrides:l,source:i}of n)for(const c in l){const _=this.configurationDefaultsOverrides.get(c),S=d.isString(i)?i:i?.id,k=d.isString(_?.source)?_?.source:_?.source?.id;if(S===k)if(a.add(c),this.configurationDefaultsOverrides.delete(c),e.OVERRIDE_PROPERTY_REGEX.test(c))delete this.configurationProperties[c],delete this.defaultLanguageConfigurationOverridesNode.properties[c];else{const m=this.configurationProperties[c];m&&(this.updatePropertyDefaultValue(c,m),this.updateSchema(c,m))}}this.updateOverridePropertyPatternKey()}deltaConfiguration(n){let a=!1;const l=new Set;n.removedDefaults&&(this.doDeregisterDefaultConfigurations(n.removedDefaults,l),a=!0),n.addedDefaults&&(this.doRegisterDefaultConfigurations(n.addedDefaults,l),a=!0),n.removedConfigurations&&this.doDeregisterConfigurations(n.removedConfigurations,l),n.addedConfigurations&&this.doRegisterConfigurations(n.addedConfigurations,!1,l),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:l,defaultsOverrides:a})}notifyConfigurationSchemaUpdated(...n){this._onDidSchemaChange.fire()}registerOverrideIdentifiers(n){this.doRegisterOverrideIdentifiers(n),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(n){for(const a of n)this.overrideIdentifiers.add(a);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(n,a,l){n.forEach(i=>{this.validateAndRegisterProperties(i,a,i.extensionInfo,i.restrictedProperties,void 0,l),this.configurationContributors.push(i),this.registerJSONConfiguration(i)})}doDeregisterConfigurations(n,a){const l=i=>{if(i.properties)for(const c in i.properties){a.add(c);const _=this.configurationProperties[c];_?.policy?.name&&this.policyConfigurations.delete(_.policy.name),delete this.configurationProperties[c],this.removeFromSchema(c,i.properties[c])}i.allOf?.forEach(c=>l(c))};for(const i of n){l(i);const c=this.configurationContributors.indexOf(i);c!==-1&&this.configurationContributors.splice(c,1)}}validateAndRegisterProperties(n,a=!0,l,i,c=3,_){c=d.isUndefinedOrNull(n.scope)?c:n.scope;const S=n.properties;if(S)for(const m in S){const v=S[m];if(a&&b(m,v)){delete S[m];continue}if(v.source=l,v.defaultDefaultValue=S[m].default,this.updatePropertyDefaultValue(m,v),e.OVERRIDE_PROPERTY_REGEX.test(m)?v.scope=void 0:(v.scope=d.isUndefinedOrNull(v.scope)?c:v.scope,v.restricted=d.isUndefinedOrNull(v.restricted)?!!i?.includes(m):v.restricted),S[m].hasOwnProperty("included")&&!S[m].included){this.excludedConfigurationProperties[m]=S[m],delete S[m];continue}else this.configurationProperties[m]=S[m],S[m].policy?.name&&this.policyConfigurations.set(S[m].policy.name,m);!S[m].deprecationMessage&&S[m].markdownDeprecationMessage&&(S[m].deprecationMessage=S[m].markdownDeprecationMessage),_.add(m)}const k=n.allOf;if(k)for(const m of k)this.validateAndRegisterProperties(m,a,l,i,c,_)}getConfigurations(){return this.configurationContributors}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}getConfigurationDefaultsOverrides(){return this.configurationDefaultsOverrides}registerJSONConfiguration(n){const a=l=>{const i=l.properties;if(i)for(const _ in i)this.updateSchema(_,i[_]);l.allOf?.forEach(a)};a(n)}updateSchema(n,a){switch(e.allSettings.properties[n]=a,a.scope){case 1:e.applicationSettings.properties[n]=a;break;case 2:e.machineSettings.properties[n]=a;break;case 6:e.machineOverridableSettings.properties[n]=a;break;case 3:e.windowSettings.properties[n]=a;break;case 4:e.resourceSettings.properties[n]=a;break;case 5:e.resourceSettings.properties[n]=a,this.resourceLanguageSettingsSchema.properties[n]=a;break}}removeFromSchema(n,a){switch(delete e.allSettings.properties[n],a.scope){case 1:delete e.applicationSettings.properties[n];break;case 2:delete e.machineSettings.properties[n];break;case 6:delete e.machineOverridableSettings.properties[n];break;case 3:delete e.windowSettings.properties[n];break;case 4:case 5:delete e.resourceSettings.properties[n],delete this.resourceLanguageSettingsSchema.properties[n];break}}updateOverridePropertyPatternKey(){for(const n of this.overrideIdentifiers.values()){const a=`[${n}]`,l={type:"object",description:A.localize(2,null),errorMessage:A.localize(3,null),$ref:e.resourceLanguageSettingsSchemaId};this.updatePropertyDefaultValue(a,l),e.allSettings.properties[a]=l,e.applicationSettings.properties[a]=l,e.machineSettings.properties[a]=l,e.machineOverridableSettings.properties[a]=l,e.windowSettings.properties[a]=l,e.resourceSettings.properties[a]=l}}registerOverridePropertyPatternKey(){const n={type:"object",description:A.localize(4,null),errorMessage:A.localize(5,null),$ref:e.resourceLanguageSettingsSchemaId};e.allSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=n,e.applicationSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=n,e.machineSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=n,e.machineOverridableSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=n,e.windowSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=n,e.resourceSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=n,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(n,a){const l=this.configurationDefaultsOverrides.get(n);let i=l?.value,c=l?.source;d.isUndefined(i)&&(i=a.defaultDefaultValue,c=void 0),d.isUndefined(i)&&(i=h(a.type)),a.default=i,a.defaultValueSource=c}}const s="\\[([^\\]]+)\\]",g=new RegExp(s,"g");e.OVERRIDE_PROPERTY_PATTERN=`^(${s})+$`,e.OVERRIDE_PROPERTY_REGEX=new RegExp(e.OVERRIDE_PROPERTY_PATTERN);function C(T){const n=[];if(e.OVERRIDE_PROPERTY_REGEX.test(T)){let a=g.exec(T);for(;a?.length;){const l=a[1].trim();l&&n.push(l),a=g.exec(T)}}return(0,w.distinct)(n)}e.overrideIdentifiersFromKey=C;function r(T){return T.reduce((n,a)=>`${n}[${a}]`,"")}e.keyFromOverrideIdentifiers=r;function h(T){switch(Array.isArray(T)?T[0]:T){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}e.getDefaultValue=h;const o=new t;p.Registry.add(e.Extensions.Configuration,o);function b(T,n){return T.trim()?e.OVERRIDE_PROPERTY_REGEX.test(T)?A.localize(7,null,T):o.getConfigurationProperties()[T]!==void 0?A.localize(8,null,T):n.policy?.name&&o.getPolicyConfigurations().get(n.policy?.name)!==void 0?A.localize(9,null,T,n.policy?.name,o.getPolicyConfigurations().get(n.policy?.name)):null:A.localize(6,null)}e.validateProperty=b;function P(){const T=[],n=o.getConfigurationProperties();for(const a of Object.keys(n))T.push([a,n[a].scope]);return T.push(["launch",4]),T.push(["task",4]),T}e.getScopes=P}),define(ye[246],Ce([1,0,19,4,158,5,28,24,18,2,53,137,38]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationChangeEvent=e.mergeChanges=e.Configuration=e.UserSettings=e.ConfigurationModelParser=e.ConfigurationModel=void 0;function s(a){return Object.isFrozen(a)?a:u.deepFreeze(a)}class g{constructor(l={},i=[],c=[],_){this._contents=l,this._keys=i,this._overrides=c,this.raw=_,this.overrideConfigurations=new Map}get rawConfiguration(){if(!this._rawConfiguration)if(this.raw?.length){const l=this.raw.map(i=>{if(i instanceof g)return i;const c=new C("");return c.parseRaw(i),c.configurationModel});this._rawConfiguration=l.reduce((i,c)=>c===i?c:i.merge(c),l[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(l){return l?(0,y.getConfigurationValue)(this.contents,l):this.contents}inspect(l,i){const c=this.rawConfiguration.getValue(l),_=i?this.rawConfiguration.getOverrideValue(l,i):void 0,S=i?this.rawConfiguration.override(i).getValue(l):c;return{value:c,override:_,merged:S}}getOverrideValue(l,i){const c=this.getContentsForOverrideIdentifer(i);return c?l?(0,y.getConfigurationValue)(c,l):c:void 0}getKeysForOverrideIdentifier(l){const i=[];for(const c of this.overrides)c.identifiers.includes(l)&&i.push(...c.keys);return w.distinct(i)}getAllOverrideIdentifiers(){const l=[];for(const i of this.overrides)l.push(...i.identifiers);return w.distinct(l)}override(l){let i=this.overrideConfigurations.get(l);return i||(i=this.createOverrideConfigurationModel(l),this.overrideConfigurations.set(l,i)),i}merge(...l){const i=u.deepClone(this.contents),c=u.deepClone(this.overrides),_=[...this.keys],S=this.raw?.length?[...this.raw]:[this];for(const k of l)if(S.push(...k.raw?.length?k.raw:[k]),!k.isEmpty()){this.mergeContents(i,k.contents);for(const m of k.overrides){const[v]=c.filter(D=>w.equals(D.identifiers,m.identifiers));v?(this.mergeContents(v.contents,m.contents),v.keys.push(...m.keys),v.keys=w.distinct(v.keys)):c.push(u.deepClone(m))}for(const m of k.keys)_.indexOf(m)===-1&&_.push(m)}return new g(i,_,c,S.every(k=>k instanceof g)?void 0:S)}createOverrideConfigurationModel(l){const i=this.getContentsForOverrideIdentifer(l);if(!i||typeof i!="object"||!Object.keys(i).length)return this;const c={};for(const _ of w.distinct([...Object.keys(this.contents),...Object.keys(i)])){let S=this.contents[_];const k=i[_];k&&(typeof S=="object"&&typeof k=="object"?(S=u.deepClone(S),this.mergeContents(S,k)):S=k),c[_]=S}return new g(c,this.keys,this.overrides)}mergeContents(l,i){for(const c of Object.keys(i)){if(c in l&&p.isObject(l[c])&&p.isObject(i[c])){this.mergeContents(l[c],i[c]);continue}l[c]=u.deepClone(i[c])}}getContentsForOverrideIdentifer(l){let i=null,c=null;const _=S=>{S&&(c?this.mergeContents(c,S):c=u.deepClone(S))};for(const S of this.overrides)S.identifiers.length===1&&S.identifiers[0]===l?i=S.contents:S.identifiers.includes(l)&&_(S.contents);return _(i),c}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(l,i){this.updateValue(l,i,!0)}setValue(l,i){this.updateValue(l,i,!1)}removeValue(l){const i=this.keys.indexOf(l);i!==-1&&(this.keys.splice(i,1),(0,y.removeFromValueTree)(this.contents,l),E.OVERRIDE_PROPERTY_REGEX.test(l)&&this.overrides.splice(this.overrides.findIndex(c=>w.equals(c.identifiers,(0,E.overrideIdentifiersFromKey)(l))),1))}updateValue(l,i,c){(0,y.addToValueTree)(this.contents,l,i,_=>console.error(_)),c=c||this.keys.indexOf(l)===-1,c&&this.keys.push(l),E.OVERRIDE_PROPERTY_REGEX.test(l)&&this.overrides.push({identifiers:(0,E.overrideIdentifiersFromKey)(l),keys:Object.keys(this.contents[l]),contents:(0,y.toValuesTree)(this.contents[l],_=>console.error(_))})}}e.ConfigurationModel=g;class C{constructor(l){this._name=l,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[],this._parseErrors=[]}get configurationModel(){return this._configurationModel||new g}get restrictedConfigurations(){return this._restrictedConfigurations}get errors(){return this._parseErrors}parse(l,i){if(!p.isUndefinedOrNull(l)){const c=this.doParseContent(l);this.parseRaw(c,i)}}reparse(l){this._raw&&this.parseRaw(this._raw,l)}parseRaw(l,i){this._raw=l;const{contents:c,keys:_,overrides:S,restricted:k,hasExcludedProperties:m}=this.doParseRaw(l,i);this._configurationModel=new g(c,_,S,m?[l]:void 0),this._restrictedConfigurations=k||[]}doParseContent(l){let i={},c=null,_=[];const S=[],k=[];function m(D){Array.isArray(_)?_.push(D):c!==null&&(_[c]=D)}const v={onObjectBegin:()=>{const D={};m(D),S.push(_),_=D,c=null},onObjectProperty:D=>{c=D},onObjectEnd:()=>{_=S.pop()},onArrayBegin:()=>{const D=[];m(D),S.push(_),_=D,c=null},onArrayEnd:()=>{_=S.pop()},onLiteralValue:m,onError:(D,L,O)=>{k.push({error:D,offset:L,length:O})}};if(l)try{d.visit(l,v),i=_[0]||{}}catch(D){console.error(`Error while parsing settings file ${this._name}: ${D}`),this._parseErrors=[D]}return i}doParseRaw(l,i){const c=t.Registry.as(E.Extensions.Configuration).getConfigurationProperties(),_=this.filter(l,c,!0,i);l=_.raw;const S=(0,y.toValuesTree)(l,v=>console.error(`Conflict in settings file ${this._name}: ${v}`)),k=Object.keys(l),m=this.toOverrides(l,v=>console.error(`Conflict in settings file ${this._name}: ${v}`));return{contents:S,keys:k,overrides:m,restricted:_.restricted,hasExcludedProperties:_.hasExcludedProperties}}filter(l,i,c,_){let S=!1;if(!_?.scopes&&!_?.skipRestricted&&!_?.exclude?.length)return{raw:l,restricted:[],hasExcludedProperties:S};const k={},m=[];for(const v in l)if(E.OVERRIDE_PROPERTY_REGEX.test(v)&&c){const D=this.filter(l[v],i,!1,_);k[v]=D.raw,S=S||D.hasExcludedProperties,m.push(...D.restricted)}else{const D=i[v],L=D?typeof D.scope<"u"?D.scope:3:void 0;D?.restricted&&m.push(v),!_.exclude?.includes(v)&&(_.include?.includes(v)||(L===void 0||_.scopes===void 0||_.scopes.includes(L))&&!(_.skipRestricted&&D?.restricted))?k[v]=l[v]:S=!0}return{raw:k,restricted:m,hasExcludedProperties:S}}toOverrides(l,i){const c=[];for(const _ of Object.keys(l))if(E.OVERRIDE_PROPERTY_REGEX.test(_)){const S={};for(const k in l[_])S[k]=l[_][k];c.push({identifiers:(0,E.overrideIdentifiersFromKey)(_),keys:Object.keys(S),contents:(0,y.toValuesTree)(S,i)})}return c}}e.ConfigurationModelParser=C;class r extends A.Disposable{constructor(l,i,c,_){super(),this.userSettingsResource=l,this.parseOptions=i,this.fileService=_,this._onDidChange=this._register(new M.Emitter),this.onDidChange=this._onDidChange.event,this.parser=new C(this.userSettingsResource.toString()),this._register(this.fileService.watch(c.dirname(this.userSettingsResource))),this._register(this.fileService.watch(this.userSettingsResource)),this._register(M.Event.any(M.Event.filter(this.fileService.onDidFilesChange,S=>S.contains(this.userSettingsResource)),M.Event.filter(this.fileService.onDidRunOperation,S=>(S.isOperation(0)||S.isOperation(3)||S.isOperation(1)||S.isOperation(4))&&c.isEqual(S.resource,l)))(()=>this._onDidChange.fire()))}async loadConfiguration(){try{const l=await this.fileService.readFile(this.userSettingsResource);return this.parser.parse(l.value.toString()||"{}",this.parseOptions),this.parser.configurationModel}catch{return new g}}reparse(l){return l&&(this.parseOptions=l),this.parser.reparse(this.parseOptions),this.parser.configurationModel}getRestrictedSettings(){return this.parser.restrictedConfigurations}}e.UserSettings=r;class h{constructor(l,i,c,_,S,k,m,v,D,L,O,H,N){this.key=l,this.overrides=i,this._value=c,this.overrideIdentifiers=_,this.defaultConfiguration=S,this.policyConfiguration=k,this.applicationConfiguration=m,this.userConfiguration=v,this.localUserConfiguration=D,this.remoteUserConfiguration=L,this.workspaceConfiguration=O,this.folderConfigurationModel=H,this.memoryConfigurationModel=N}get value(){return s(this._value)}inspect(l,i,c){const _=l.inspect(i,c);return{get value(){return s(_.value)},get override(){return s(_.override)},get merged(){return s(_.merged)}}}get defaultInspectValue(){return this._defaultInspectValue||(this._defaultInspectValue=this.inspect(this.defaultConfiguration,this.key,this.overrides.overrideIdentifier)),this._defaultInspectValue}get defaultValue(){return this.defaultInspectValue.merged}get default(){return this.defaultInspectValue.value!==void 0||this.defaultInspectValue.override!==void 0?{value:this.defaultInspectValue.value,override:this.defaultInspectValue.override}:void 0}get policyInspectValue(){return this._policyInspectValue===void 0&&(this._policyInspectValue=this.policyConfiguration?this.inspect(this.policyConfiguration,this.key):null),this._policyInspectValue}get policyValue(){return this.policyInspectValue?.merged}get policy(){return this.policyInspectValue?.value!==void 0?{value:this.policyInspectValue.value}:void 0}get applicationInspectValue(){return this._applicationInspectValue===void 0&&(this._applicationInspectValue=this.applicationConfiguration?this.inspect(this.applicationConfiguration,this.key):null),this._applicationInspectValue}get applicationValue(){return this.applicationInspectValue?.merged}get application(){return this.applicationInspectValue?.value!==void 0||this.applicationInspectValue?.override!==void 0?{value:this.applicationInspectValue.value,override:this.applicationInspectValue.override}:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.inspect(this.userConfiguration,this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get userValue(){return this.userInspectValue.merged}get user(){return this.userInspectValue.value!==void 0||this.userInspectValue.override!==void 0?{value:this.userInspectValue.value,override:this.userInspectValue.override}:void 0}get userLocalInspectValue(){return this._userLocalInspectValue||(this._userLocalInspectValue=this.inspect(this.localUserConfiguration,this.key,this.overrides.overrideIdentifier)),this._userLocalInspectValue}get userLocalValue(){return this.userLocalInspectValue.merged}get userLocal(){return this.userLocalInspectValue.value!==void 0||this.userLocalInspectValue.override!==void 0?{value:this.userLocalInspectValue.value,override:this.userLocalInspectValue.override}:void 0}get userRemoteInspectValue(){return this._userRemoteInspectValue||(this._userRemoteInspectValue=this.inspect(this.remoteUserConfiguration,this.key,this.overrides.overrideIdentifier)),this._userRemoteInspectValue}get userRemoteValue(){return this.userRemoteInspectValue.merged}get userRemote(){return this.userRemoteInspectValue.value!==void 0||this.userRemoteInspectValue.override!==void 0?{value:this.userRemoteInspectValue.value,override:this.userRemoteInspectValue.override}:void 0}get workspaceInspectValue(){return this._workspaceInspectValue===void 0&&(this._workspaceInspectValue=this.workspaceConfiguration?this.inspect(this.workspaceConfiguration,this.key,this.overrides.overrideIdentifier):null),this._workspaceInspectValue}get workspaceValue(){return this.workspaceInspectValue?.merged}get workspace(){return this.workspaceInspectValue?.value!==void 0||this.workspaceInspectValue?.override!==void 0?{value:this.workspaceInspectValue.value,override:this.workspaceInspectValue.override}:void 0}get workspaceFolderInspectValue(){return this._workspaceFolderInspectValue===void 0&&(this._workspaceFolderInspectValue=this.folderConfigurationModel?this.inspect(this.folderConfigurationModel,this.key,this.overrides.overrideIdentifier):null),this._workspaceFolderInspectValue}get workspaceFolderValue(){return this.workspaceFolderInspectValue?.merged}get workspaceFolder(){return this.workspaceFolderInspectValue?.value!==void 0||this.workspaceFolderInspectValue?.override!==void 0?{value:this.workspaceFolderInspectValue.value,override:this.workspaceFolderInspectValue.override}:void 0}get memoryInspectValue(){return this._memoryInspectValue===void 0&&(this._memoryInspectValue=this.inspect(this.memoryConfigurationModel,this.key,this.overrides.overrideIdentifier)),this._memoryInspectValue}get memoryValue(){return this.memoryInspectValue.merged}get memory(){return this.memoryInspectValue.value!==void 0||this.memoryInspectValue.override!==void 0?{value:this.memoryInspectValue.value,override:this.memoryInspectValue.override}:void 0}}class o{constructor(l,i,c,_,S=new g,k=new g,m=new R.ResourceMap,v=new g,D=new R.ResourceMap){this._defaultConfiguration=l,this._policyConfiguration=i,this._applicationConfiguration=c,this._localUserConfiguration=_,this._remoteUserConfiguration=S,this._workspaceConfiguration=k,this._folderConfigurations=m,this._memoryConfiguration=v,this._memoryConfigurationByResource=D,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new R.ResourceMap,this._userConfiguration=null}getValue(l,i,c){return this.getConsolidatedConfigurationModel(l,i,c).getValue(l)}updateValue(l,i,c={}){let _;c.resource?(_=this._memoryConfigurationByResource.get(c.resource),_||(_=new g,this._memoryConfigurationByResource.set(c.resource,_))):_=this._memoryConfiguration,i===void 0?_.removeValue(l):_.setValue(l,i),c.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(l,i,c){const _=this.getConsolidatedConfigurationModel(l,i,c),S=this.getFolderConfigurationModelForResource(i.resource,c),k=i.resource?this._memoryConfigurationByResource.get(i.resource)||this._memoryConfiguration:this._memoryConfiguration,m=new Set;for(const v of _.overrides)for(const D of v.identifiers)_.getOverrideValue(l,D)!==void 0&&m.add(D);return new h(l,i,_.getValue(l),m.size?[...m]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,c?this._workspaceConfiguration:void 0,S||void 0,k)}keys(l){const i=this.getFolderConfigurationModelForResource(void 0,l);return{default:this._defaultConfiguration.keys.slice(0),user:this.userConfiguration.keys.slice(0),workspace:this._workspaceConfiguration.keys.slice(0),workspaceFolder:i?i.keys.slice(0):[]}}updateDefaultConfiguration(l){this._defaultConfiguration=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updatePolicyConfiguration(l){this._policyConfiguration=l}updateApplicationConfiguration(l){this._applicationConfiguration=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateLocalUserConfiguration(l){this._localUserConfiguration=l,this._userConfiguration=null,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateRemoteUserConfiguration(l){this._remoteUserConfiguration=l,this._userConfiguration=null,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateWorkspaceConfiguration(l){this._workspaceConfiguration=l,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateFolderConfiguration(l,i){this._folderConfigurations.set(l,i),this._foldersConsolidatedConfigurations.delete(l)}deleteFolderConfiguration(l){this.folderConfigurations.delete(l),this._foldersConsolidatedConfigurations.delete(l)}compareAndUpdateDefaultConfiguration(l,i){const c=[];if(!i){const{added:_,updated:S,removed:k}=T(this._defaultConfiguration,l);i=[..._,...S,...k]}for(const _ of i)for(const S of(0,E.overrideIdentifiersFromKey)(_)){const k=this._defaultConfiguration.getKeysForOverrideIdentifier(S),m=l.getKeysForOverrideIdentifier(S),v=[...m.filter(D=>k.indexOf(D)===-1),...k.filter(D=>m.indexOf(D)===-1),...k.filter(D=>!u.equals(this._defaultConfiguration.override(S).getValue(D),l.override(S).getValue(D)))];c.push([S,v])}return this.updateDefaultConfiguration(l),{keys:i,overrides:c}}compareAndUpdatePolicyConfiguration(l){const{added:i,updated:c,removed:_}=T(this._policyConfiguration,l),S=[...i,...c,..._];return S.length&&this.updatePolicyConfiguration(l),{keys:S,overrides:[]}}compareAndUpdateApplicationConfiguration(l){const{added:i,updated:c,removed:_,overrides:S}=T(this.applicationConfiguration,l),k=[...i,...c,..._];return k.length&&this.updateApplicationConfiguration(l),{keys:k,overrides:S}}compareAndUpdateLocalUserConfiguration(l){const{added:i,updated:c,removed:_,overrides:S}=T(this.localUserConfiguration,l),k=[...i,...c,..._];return k.length&&this.updateLocalUserConfiguration(l),{keys:k,overrides:S}}compareAndUpdateRemoteUserConfiguration(l){const{added:i,updated:c,removed:_,overrides:S}=T(this.remoteUserConfiguration,l),k=[...i,...c,..._];return k.length&&this.updateRemoteUserConfiguration(l),{keys:k,overrides:S}}compareAndUpdateWorkspaceConfiguration(l){const{added:i,updated:c,removed:_,overrides:S}=T(this.workspaceConfiguration,l),k=[...i,...c,..._];return k.length&&this.updateWorkspaceConfiguration(l),{keys:k,overrides:S}}compareAndUpdateFolderConfiguration(l,i){const c=this.folderConfigurations.get(l),{added:_,updated:S,removed:k,overrides:m}=T(c,i),v=[..._,...S,...k];return(v.length||!c)&&this.updateFolderConfiguration(l,i),{keys:v,overrides:m}}compareAndDeleteFolderConfiguration(l){const i=this.folderConfigurations.get(l);if(!i)throw new Error("Unknown folder");this.deleteFolderConfiguration(l);const{added:c,updated:_,removed:S,overrides:k}=T(i,void 0);return{keys:[...c,..._,...S],overrides:k}}get defaults(){return this._defaultConfiguration}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}get workspaceConfiguration(){return this._workspaceConfiguration}get folderConfigurations(){return this._folderConfigurations}getConsolidatedConfigurationModel(l,i,c){let _=this.getConsolidatedConfigurationModelForResource(i,c);return i.overrideIdentifier&&(_=_.override(i.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(l)!==void 0&&(_=_.merge(this._policyConfiguration)),_}getConsolidatedConfigurationModelForResource({resource:l},i){let c=this.getWorkspaceConsolidatedConfiguration();if(i&&l){const _=i.getFolder(l);_&&(c=this.getFolderConsolidatedConfiguration(_.uri)||c);const S=this._memoryConfigurationByResource.get(l);S&&(c=c.merge(S))}return c}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(l){let i=this._foldersConsolidatedConfigurations.get(l);if(!i){const c=this.getWorkspaceConsolidatedConfiguration(),_=this._folderConfigurations.get(l);_?(i=c.merge(_),this._foldersConsolidatedConfigurations.set(l,i)):i=c}return i}getFolderConfigurationModelForResource(l,i){if(i&&l){const c=i.getFolder(l);if(c)return this._folderConfigurations.get(c.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((l,i)=>{const{contents:c,overrides:_,keys:S}=this._folderConfigurations.get(i);return l.push([i,{contents:c,overrides:_,keys:S}]),l},[])}}allKeys(){const l=new Set;return this._defaultConfiguration.keys.forEach(i=>l.add(i)),this.userConfiguration.keys.forEach(i=>l.add(i)),this._workspaceConfiguration.keys.forEach(i=>l.add(i)),this._folderConfigurations.forEach(i=>i.keys.forEach(c=>l.add(c))),[...l.values()]}allOverrideIdentifiers(){const l=new Set;return this._defaultConfiguration.getAllOverrideIdentifiers().forEach(i=>l.add(i)),this.userConfiguration.getAllOverrideIdentifiers().forEach(i=>l.add(i)),this._workspaceConfiguration.getAllOverrideIdentifiers().forEach(i=>l.add(i)),this._folderConfigurations.forEach(i=>i.getAllOverrideIdentifiers().forEach(c=>l.add(c))),[...l.values()]}getAllKeysForOverrideIdentifier(l){const i=new Set;return this._defaultConfiguration.getKeysForOverrideIdentifier(l).forEach(c=>i.add(c)),this.userConfiguration.getKeysForOverrideIdentifier(l).forEach(c=>i.add(c)),this._workspaceConfiguration.getKeysForOverrideIdentifier(l).forEach(c=>i.add(c)),this._folderConfigurations.forEach(c=>c.getKeysForOverrideIdentifier(l).forEach(_=>i.add(_))),[...i.values()]}static parse(l){const i=this.parseConfigurationModel(l.defaults),c=this.parseConfigurationModel(l.policy),_=this.parseConfigurationModel(l.application),S=this.parseConfigurationModel(l.user),k=this.parseConfigurationModel(l.workspace),m=l.folders.reduce((v,D)=>(v.set(f.URI.revive(D[0]),this.parseConfigurationModel(D[1])),v),new R.ResourceMap);return new o(i,c,_,S,new g,k,m,new g,new R.ResourceMap)}static parseConfigurationModel(l){return new g(l.contents,l.keys,l.overrides)}}e.Configuration=o;function b(...a){if(a.length===0)return{keys:[],overrides:[]};if(a.length===1)return a[0];const l=new Set,i=new Map;for(const _ of a)_.keys.forEach(S=>l.add(S)),_.overrides.forEach(([S,k])=>{const m=(0,R.getOrSet)(i,S,new Set);k.forEach(v=>m.add(v))});const c=[];return i.forEach((_,S)=>c.push([S,[..._.values()]])),{keys:[...l.values()],overrides:c}}e.mergeChanges=b;class P{constructor(l,i,c,_){this.change=l,this.previous=i,this.currentConfiguraiton=c,this.currentWorkspace=_,this._marker=`
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const S of l.keys)this.affectedKeys.add(S);for(const[,S]of l.overrides)for(const k of S)this.affectedKeys.add(k);this._affectsConfigStr=this._marker;for(const S of this.affectedKeys)this._affectsConfigStr+=S+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=o.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(l,i){const c=this._marker+l,_=this._affectsConfigStr.indexOf(c);if(_<0)return!1;const S=_+c.length;if(S>=this._affectsConfigStr.length)return!1;const k=this._affectsConfigStr.charCodeAt(S);if(k!==this._markerCode1&&k!==this._markerCode2)return!1;if(i){const m=this.previousConfiguration?this.previousConfiguration.getValue(l,i,this.previous?.workspace):void 0,v=this.currentConfiguraiton.getValue(l,i,this.currentWorkspace);return!u.equals(m,v)}return!0}}e.ConfigurationChangeEvent=P;function T(a,l){const{added:i,removed:c,updated:_}=n(l?.rawConfiguration,a?.rawConfiguration),S=[],k=a?.getAllOverrideIdentifiers()||[],m=l?.getAllOverrideIdentifiers()||[];if(l){const v=m.filter(D=>!k.includes(D));for(const D of v)S.push([D,l.getKeysForOverrideIdentifier(D)])}if(a){const v=k.filter(D=>!m.includes(D));for(const D of v)S.push([D,a.getKeysForOverrideIdentifier(D)])}if(l&&a){for(const v of k)if(m.includes(v)){const D=n({contents:a.getOverrideValue(void 0,v)||{},keys:a.getKeysForOverrideIdentifier(v)},{contents:l.getOverrideValue(void 0,v)||{},keys:l.getKeysForOverrideIdentifier(v)});S.push([v,[...D.added,...D.removed,...D.updated]])}}return{added:i,removed:c,updated:_,overrides:S}}function n(a,l){const i=a?l?a.keys.filter(S=>l.keys.indexOf(S)===-1):[...a.keys]:[],c=l?a?l.keys.filter(S=>a.keys.indexOf(S)===-1):[...l.keys]:[],_=[];if(a&&l){for(const S of l.keys)if(a.keys.indexOf(S)!==-1){const k=(0,y.getConfigurationValue)(l.contents,S),m=(0,y.getConfigurationValue)(a.contents,S);u.equals(k,m)||_.push(S)}}return{added:i,removed:c,updated:_}}}),define(ye[247],Ce([1,0,21,4,5,79]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagedSocket=e.connectManagedSocket=e.socketRawEndHeaderSequence=e.makeRawSocketHeaders=void 0;const R=(f,y,E)=>{const t=new Uint8Array(16);for(let C=0;C<16;C++)t[C]=Math.round(Math.random()*256);const s=(0,w.encodeBase64)(w.VSBuffer.wrap(t));return[`GET ws://localhost${f}?${y}&skipWebSocketFrames=true HTTP/1.1`,"Connection: Upgrade","Upgrade: websocket",`Sec-WebSocket-Key: ${s}`].join(`\r
`)+`\r
\r
`};e.makeRawSocketHeaders=R,e.socketRawEndHeaderSequence=w.VSBuffer.fromString(`\r
\r
`);async function u(f,y,E,t,s){f.write(w.VSBuffer.fromString((0,e.makeRawSocketHeaders)(y,E,t)));const g=new d.DisposableStore;try{return await new Promise((C,r)=>{let h;g.add(f.onData(o=>{h?h=w.VSBuffer.concat([h,o],h.byteLength+o.byteLength):h=o;const b=h.indexOf(e.socketRawEndHeaderSequence);if(b===-1)return;C(f),f.pauseData();const P=h.slice(b+e.socketRawEndHeaderSequence.byteLength);P.byteLength&&s.onData.fire(P)})),g.add(f.onClose(o=>r(o??new Error("socket closed")))),g.add(f.onEnd(()=>r(new Error("socket ended"))))})}catch(C){throw f.dispose(),C}finally{g.dispose()}}e.connectManagedSocket=u;class p extends d.Disposable{constructor(y,E){super(),this.debugLabel=y,this.pausableDataEmitter=this._register(new M.PauseableEmitter),this.onData=(...t)=>(this.pausableDataEmitter.isPaused&&queueMicrotask(()=>this.pausableDataEmitter.resume()),this.pausableDataEmitter.event(...t)),this.didDisposeEmitter=this._register(new M.Emitter),this.onDidDispose=this.didDisposeEmitter.event,this.ended=!1,this._register(E.onData),this._register(E.onData.event(t=>this.pausableDataEmitter.fire(t))),this.onClose=this._register(E.onClose).event,this.onEnd=this._register(E.onEnd).event}pauseData(){this.pausableDataEmitter.pause()}drain(){return Promise.resolve()}end(){this.ended=!0,this.closeRemote()}traceSocketEvent(y,E){A.SocketDiagnostics.traceSocketEvent(this,this.debugLabel,y,E)}dispose(){this.ended||this.closeRemote(),this.didDisposeEmitter.fire(),super.dispose()}}e.ManagedSocket=p}),define(ye[84],Ce([1,0,8,6]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRemoteAuthorityPrefix=e.RemoteAuthorityResolverError=e.RemoteAuthorityResolverErrorCode=e.WebSocketRemoteConnection=e.ManagedRemoteConnection=e.RemoteConnectionType=e.IRemoteAuthorityResolverService=void 0,e.IRemoteAuthorityResolverService=(0,M.createDecorator)("remoteAuthorityResolverService");var d;(function(y){y[y.WebSocket=0]="WebSocket",y[y.Managed=1]="Managed"})(d||(e.RemoteConnectionType=d={}));class A{constructor(E){this.id=E,this.type=1}toString(){return`Managed(${this.id})`}}e.ManagedRemoteConnection=A;class R{constructor(E,t){this.host=E,this.port=t,this.type=0}toString(){return`WebSocket(${this.host}:${this.port})`}}e.WebSocketRemoteConnection=R;var u;(function(y){y.Unknown="Unknown",y.NotAvailable="NotAvailable",y.TemporarilyNotAvailable="TemporarilyNotAvailable",y.NoResolverFound="NoResolverFound",y.InvalidAuthority="InvalidAuthority"})(u||(e.RemoteAuthorityResolverErrorCode=u={}));class p extends w.ErrorNoTelemetry{static isNotAvailable(E){return E instanceof p&&E._code===u.NotAvailable}static isTemporarilyNotAvailable(E){return E instanceof p&&E._code===u.TemporarilyNotAvailable}static isNoResolverFound(E){return E instanceof p&&E._code===u.NoResolverFound}static isInvalidAuthority(E){return E instanceof p&&E._code===u.InvalidAuthority}static isHandled(E){return E instanceof p&&E.isHandled}constructor(E,t=u.Unknown,s){super(E),this._message=E,this._code=t,this._detail=s,this.isHandled=t===u.NotAvailable&&s===!0,Object.setPrototypeOf(this,p.prototype)}}e.RemoteAuthorityResolverError=p;function f(y){const E=y.indexOf("+");return E===-1?y:y.substring(0,E)}e.getRemoteAuthorityPrefix=f}),define(ye[61],Ce([1,0,15]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAuthorityWithOptionalPort=e.parseAuthorityWithPort=e.getRemoteServerRootPath=e.getRemoteName=e.getRemoteAuthority=void 0;function M(f){return f.scheme===w.Schemas.vscodeRemote?f.authority:void 0}e.getRemoteAuthority=M;function d(f){if(!f)return;const y=f.indexOf("+");return y<0?f:f.substr(0,y)}e.getRemoteName=d;function A(f){return`/${f.quality??"oss"}-${f.commit??"dev"}`}e.getRemoteServerRootPath=A;function R(f){const{host:y,port:E}=p(f);if(typeof E>"u")throw new Error("Remote authority doesn't contain a port!");return{host:y,port:E}}e.parseAuthorityWithPort=R;function u(f,y){let{host:E,port:t}=p(f);return typeof t>"u"&&(t=y),{host:E,port:t}}e.parseAuthorityWithOptionalPort=u;function p(f){const y=f.match(/^(\[[0-9a-z:]+\]):(\d+)$/);if(y)return{host:y[1],port:parseInt(y[2],10)};const E=f.match(/^(\[[0-9a-z:]+\])$/);if(E)return{host:E[1],port:void 0};const t=f.match(/(.*):(\d+)$/);return t?{host:t[1],port:parseInt(t[2],10)}:{host:f,port:void 0}}}),define(ye[23],Ce([1,0,16,6,61]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IBuiltinExtensionsScannerService=e.isResolverExtension=e.isAuthenticationProviderExtension=e.isLanguagePackExtension=e.isApplicationScopedExtension=e.ExtensionIdentifierMap=e.ExtensionIdentifierSet=e.ExtensionIdentifier=e.TargetPlatform=e.ExtensionType=e.EXTENSION_CATEGORIES=e.getWorkspaceSupportTypeMessage=e.ALL_EXTENSION_KINDS=e.ExtensionsPolicy=e.ExtensionsPolicyKey=e.UNDEFINED_PUBLISHER=e.BUILTIN_MANIFEST_CACHE_FILE=e.USER_MANIFEST_CACHE_FILE=void 0,e.USER_MANIFEST_CACHE_FILE="extensions.user.cache",e.BUILTIN_MANIFEST_CACHE_FILE="extensions.builtin.cache",e.UNDEFINED_PUBLISHER="undefined_publisher",e.ExtensionsPolicyKey="extensions.extensionsPolicy";var A;(function(r){r.allowAll="allowAll",r.allowNone="allowNone",r.allowMicrosoft="allowMicrosoft"})(A||(e.ExtensionsPolicy=A={})),e.ALL_EXTENSION_KINDS=["ui","workspace","web"];function R(r){if(typeof r=="object"&&r!==null&&r.supported!==!0)return r.description}e.getWorkspaceSupportTypeMessage=R,e.EXTENSION_CATEGORIES=["Language Packs"];var u;(function(r){r[r.System=0]="System",r[r.User=1]="User"})(u||(e.ExtensionType=u={}));var p;(function(r){r.WIN32_X64="win32-x64",r.WIN32_IA32="win32-ia32",r.WIN32_ARM64="win32-arm64",r.LINUX_X64="linux-x64",r.LINUX_ARM64="linux-arm64",r.LINUX_ARMHF="linux-armhf",r.ALPINE_X64="alpine-x64",r.ALPINE_ARM64="alpine-arm64",r.DARWIN_X64="darwin-x64",r.DARWIN_ARM64="darwin-arm64",r.WEB="web",r.UNIVERSAL="universal",r.UNKNOWN="unknown",r.UNDEFINED="undefined"})(p||(e.TargetPlatform=p={}));class f{constructor(h){this.value=h,this._lower=h.toLowerCase()}static equals(h,o){if(typeof h>"u"||h===null)return typeof o>"u"||o===null;if(typeof o>"u"||o===null)return!1;if(typeof h=="string"||typeof o=="string"){const b=typeof h=="string"?h:h.value,P=typeof o=="string"?o:o.value;return w.equalsIgnoreCase(b,P)}return h._lower===o._lower}static toKey(h){return typeof h=="string"?h.toLowerCase():h._lower}}e.ExtensionIdentifier=f;class y{get size(){return this._set.size}constructor(h){if(this._set=new Set,h)for(const o of h)this.add(o)}add(h){this._set.add(f.toKey(h))}delete(h){return this._set.delete(f.toKey(h))}has(h){return this._set.has(f.toKey(h))}}e.ExtensionIdentifierSet=y;class E{constructor(){this._map=new Map}clear(){this._map.clear()}delete(h){this._map.delete(f.toKey(h))}get(h){return this._map.get(f.toKey(h))}has(h){return this._map.has(f.toKey(h))}set(h,o){this._map.set(f.toKey(h),o)}values(){return this._map.values()}forEach(h){this._map.forEach(h)}[Symbol.iterator](){return this._map[Symbol.iterator]()}}e.ExtensionIdentifierMap=E;function t(r){return s(r)}e.isApplicationScopedExtension=t;function s(r){return r.contributes&&r.contributes.localizations?r.contributes.localizations.length>0:!1}e.isLanguagePackExtension=s;function g(r){return r.contributes&&r.contributes.authentication?r.contributes.authentication.length>0:!1}e.isAuthenticationProviderExtension=g;function C(r,h){if(h){const o=`onResolveRemoteAuthority:${(0,d.getRemoteName)(h)}`;return!!r.activationEvents?.includes(o)}return!1}e.isResolverExtension=C,e.IBuiltinExtensionsScannerService=(0,M.createDecorator)("IBuiltinExtensionsScannerService")}),define(ye[138],Ce([1,0,8,23]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImplicitActivationEvents=e.ImplicitActivationEventsImpl=void 0;class d{constructor(){this._generators=new Map,this._cache=new WeakMap}register(R,u){this._generators.set(R,u)}readActivationEvents(R){return this._cache.has(R)||this._cache.set(R,this._readActivationEvents(R)),this._cache.get(R)}createActivationEventsMap(R){const u=Object.create(null);for(const p of R){const f=this.readActivationEvents(p);f.length>0&&(u[M.ExtensionIdentifier.toKey(p.identifier)]=f)}return u}_readActivationEvents(R){if(typeof R.main>"u"&&typeof R.browser>"u")return[];const u=Array.isArray(R.activationEvents)?R.activationEvents.slice(0):[];if(!R.contributes)return u;for(const p in R.contributes){const f=this._generators.get(p);if(!f)continue;const y=R.contributes[p],E=Array.isArray(y)?y:[y];try{f(E,u)}catch(t){(0,w.onUnexpectedError)(t)}}return u}}e.ImplicitActivationEventsImpl=d,e.ImplicitActivationEvents=new d}),define(ye[248],Ce([1,0,13,21,22,8,4,5,62,36,29,79,84,61]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionHostPersistentConnection=e.ManagementPersistentConnection=e.PersistentConnection=e.ReconnectionPermanentFailureEvent=e.ConnectionGainEvent=e.ReconnectionRunningEvent=e.ReconnectionWaitEvent=e.ConnectionLostEvent=e.PersistentConnectionEventType=e.connectRemoteAgentTunnel=e.connectRemoteAgentExtensionHost=e.connectRemoteAgentManagement=e.ConnectionType=void 0;const g=30*1e3;var C;(function(te){te[te.Management=1]="Management",te[te.ExtensionHost=2]="ExtensionHost",te[te.Tunnel=3]="Tunnel"})(C||(e.ConnectionType=C={}));function r(te){switch(te){case 1:return"Management";case 2:return"ExtensionHost";case 3:return"Tunnel"}}function h(te){const B=new d.CancellationTokenSource;return setTimeout(()=>B.cancel(),te),B.token}function o(te,B){if(te.isCancellationRequested||B.isCancellationRequested)return d.CancellationToken.Cancelled;const G=new d.CancellationTokenSource;return te.onCancellationRequested(()=>G.cancel()),B.onCancellationRequested(()=>G.cancel()),G.token}class b{get didTimeout(){return this._state==="timedout"}constructor(B){this._state="pending",this._disposables=new u.DisposableStore,this.promise=new Promise((G,fe)=>{this._resolvePromise=G,this._rejectPromise=fe}),B.isCancellationRequested?this._timeout():this._disposables.add(B.onCancellationRequested(()=>this._timeout()))}registerDisposable(B){this._state==="pending"?this._disposables.add(B):B.dispose()}_timeout(){this._state==="pending"&&(this._disposables.dispose(),this._state="timedout",this._rejectPromise(this._createTimeoutError()))}_createTimeoutError(){const B=new Error("Time limit reached");return B.code="ETIMEDOUT",B.syscall="connect",B}resolve(B){this._state==="pending"&&(this._disposables.dispose(),this._state="resolved",this._resolvePromise(B))}reject(B){this._state==="pending"&&(this._disposables.dispose(),this._state="rejected",this._rejectPromise(B))}}function P(te,B){const G=new b(B);return G.registerDisposable(te.onControlMessage(fe=>{const _e=JSON.parse(fe.toString()),Ee=re(_e);Ee?G.reject(Ee):G.resolve(_e)})),G.promise}function T(te,B,G,fe,_e,Ee,F,J){const I=new b(J),V=f.StopWatch.create(!1);return te.info(`Creating a socket (${F})...`),p.mark(`code/willCreateSocket/${Ee}`),B.connect(G,fe,_e,F).then(j=>{I.didTimeout?(p.mark(`code/didCreateSocketError/${Ee}`),te.info(`Creating a socket (${F}) finished after ${V.elapsed()} ms, but this is too late and has timed out already.`),j?.dispose()):(p.mark(`code/didCreateSocketOK/${Ee}`),te.info(`Creating a socket (${F}) was successful after ${V.elapsed()} ms.`),I.resolve(j))},j=>{p.mark(`code/didCreateSocketError/${Ee}`),te.info(`Creating a socket (${F}) returned an error after ${V.elapsed()} ms.`),te.error(j),I.reject(j)}),I.promise}function n(te,B){const G=new b(B);return te.then(fe=>{G.didTimeout||G.resolve(fe)},fe=>{G.didTimeout||G.reject(fe)}),G.promise}async function a(te,B,G,fe){const _e=ce(te,B);te.logService.trace(`${_e} 1/6. invoking socketFactory.connect().`);let Ee;try{Ee=await T(te.logService,te.remoteSocketFactoryService,te.connectTo,(0,s.getRemoteServerRootPath)(te),`reconnectionToken=${te.reconnectionToken}&reconnection=${te.reconnectionProtocol?"true":"false"}`,r(B),`renderer-${r(B)}-${te.reconnectionToken}`,fe)}catch(j){throw te.logService.error(`${_e} socketFactory.connect() failed or timed out. Error:`),te.logService.error(j),j}te.logService.trace(`${_e} 2/6. socketFactory.connect() was successful.`);let F,J;te.reconnectionProtocol?(te.reconnectionProtocol.beginAcceptReconnection(Ee,null),F=te.reconnectionProtocol,J=!1):(F=new E.PersistentProtocol({socket:Ee}),J=!0),te.logService.trace(`${_e} 3/6. sending AuthRequest control message.`);const I=await n(te.signService.createNewMessage((0,y.generateUuid)()),fe),V={type:"auth",auth:te.connectionToken||"00000000000000000000",data:I.data};F.sendControl(M.VSBuffer.fromString(JSON.stringify(V)));try{const j=await P(F,o(fe,h(1e4)));if(j.type!=="sign"||typeof j.data!="string"){const z=new Error("Unexpected handshake message");throw z.code="VSCODE_CONNECTION_ERROR",z}if(te.logService.trace(`${_e} 4/6. received SignRequest control message.`),!await n(te.signService.validate(I,j.signedData),fe)){const z=new Error("Refused to connect to unsupported server");throw z.code="VSCODE_CONNECTION_ERROR",z}const he=await n(te.signService.sign(j.data),fe),Pe={type:"connectionType",commit:te.commit,signedData:he,desiredConnectionType:B};return G&&(Pe.args=G),te.logService.trace(`${_e} 5/6. sending ConnectionTypeRequest control message.`),F.sendControl(M.VSBuffer.fromString(JSON.stringify(Pe))),{protocol:F,ownsProtocol:J}}catch(j){throw j&&j.code==="ETIMEDOUT"&&(te.logService.error(`${_e} the handshake timed out. Error:`),te.logService.error(j)),j&&j.code==="VSCODE_CONNECTION_ERROR"&&(te.logService.error(`${_e} received error control message when negotiating connection. Error:`),te.logService.error(j)),J&&le(F),j}}async function l(te,B,G,fe){const _e=Date.now(),Ee=ce(te,B),{protocol:F,ownsProtocol:J}=await a(te,B,G,fe),I=new b(fe);return I.registerDisposable(F.onControlMessage(V=>{const j=JSON.parse(V.toString()),Z=re(j);Z?(te.logService.error(`${Ee} received error control message when negotiating connection. Error:`),te.logService.error(Z),J&&le(F),I.reject(Z)):(te.reconnectionProtocol?.endAcceptReconnection(),te.logService.trace(`${Ee} 6/6. handshake finished, connection is up and running after ${se(_e)}!`),I.resolve({protocol:F,firstMessage:j}))})),I.promise}async function i(te,B){const{protocol:G}=await l(te,1,void 0,B);return{protocol:G}}async function c(te,B,G){const{protocol:fe,firstMessage:_e}=await l(te,2,B,G),Ee=_e&&_e.debugPort;return{protocol:fe,debugPort:Ee}}async function _(te,B,G){const fe=Date.now(),_e=ce(te,3),{protocol:Ee}=await a(te,3,B,G);return te.logService.trace(`${_e} 6/6. handshake finished, connection is up and running after ${se(fe)}!`),Ee}async function S(te,B,G){const{connectTo:fe,connectionToken:_e}=await te.addressProvider.getAddress();return{commit:te.commit,quality:te.quality,connectTo:fe,connectionToken:_e,reconnectionToken:B,reconnectionProtocol:G,remoteSocketFactoryService:te.remoteSocketFactoryService,signService:te.signService,logService:te.logService}}async function k(te,B,G){return v(te,async fe=>{const{protocol:_e}=await i(fe,d.CancellationToken.None);return new K(te,B,G,fe.reconnectionToken,_e)})}e.connectRemoteAgentManagement=k;async function m(te,B){return v(te,async G=>{const{protocol:fe,debugPort:_e}=await c(G,B,d.CancellationToken.None);return new pe(te,B,G.reconnectionToken,fe,_e)})}e.connectRemoteAgentExtensionHost=m;async function v(te,B){for(let fe=1;;fe++)try{const _e=(0,y.generateUuid)(),Ee=await S(te,_e,null);return await B(Ee)}catch(_e){if(fe<5)te.logService.error(`[remote-connection][attempt ${fe}] An error occurred in initial connection! Will retry... Error:`),te.logService.error(_e);else throw te.logService.error(`[remote-connection][attempt ${fe}]  An error occurred in initial connection! It will be treated as a permanent error. Error:`),te.logService.error(_e),X.triggerPermanentFailure(0,0,t.RemoteAuthorityResolverError.isHandled(_e)),_e}}async function D(te,B,G){const fe=await S(te,(0,y.generateUuid)(),null);return await _(fe,{host:B,port:G},d.CancellationToken.None)}e.connectRemoteAgentTunnel=D;function L(te){return(0,w.createCancelablePromise)(B=>new Promise((G,fe)=>{const _e=setTimeout(G,te*1e3);B.onCancellationRequested(()=>{clearTimeout(_e),G()})}))}var O;(function(te){te[te.ConnectionLost=0]="ConnectionLost",te[te.ReconnectionWait=1]="ReconnectionWait",te[te.ReconnectionRunning=2]="ReconnectionRunning",te[te.ReconnectionPermanentFailure=3]="ReconnectionPermanentFailure",te[te.ConnectionGain=4]="ConnectionGain"})(O||(e.PersistentConnectionEventType=O={}));class H{constructor(B,G){this.reconnectionToken=B,this.millisSinceLastIncomingData=G,this.type=0}}e.ConnectionLostEvent=H;class N{constructor(B,G,fe,_e){this.reconnectionToken=B,this.millisSinceLastIncomingData=G,this.durationSeconds=fe,this.cancellableTimer=_e,this.type=1}skipWait(){this.cancellableTimer.cancel()}}e.ReconnectionWaitEvent=N;class ${constructor(B,G,fe){this.reconnectionToken=B,this.millisSinceLastIncomingData=G,this.attempt=fe,this.type=2}}e.ReconnectionRunningEvent=$;class U{constructor(B,G,fe){this.reconnectionToken=B,this.millisSinceLastIncomingData=G,this.attempt=fe,this.type=4}}e.ConnectionGainEvent=U;class x{constructor(B,G,fe,_e){this.reconnectionToken=B,this.millisSinceLastIncomingData=G,this.attempt=fe,this.handled=_e,this.type=3}}e.ReconnectionPermanentFailureEvent=x;class X extends u.Disposable{static triggerPermanentFailure(B,G,fe){this._permanentFailure=!0,this._permanentFailureMillisSinceLastIncomingData=B,this._permanentFailureAttempt=G,this._permanentFailureHandled=fe,this._instances.forEach(_e=>_e._gotoPermanentFailure(this._permanentFailureMillisSinceLastIncomingData,this._permanentFailureAttempt,this._permanentFailureHandled))}static debugTriggerReconnection(){this._instances.forEach(B=>B._beginReconnecting())}static debugPauseSocketWriting(){this._instances.forEach(B=>B._pauseSocketWriting())}static{this._permanentFailure=!1}static{this._permanentFailureMillisSinceLastIncomingData=0}static{this._permanentFailureAttempt=0}static{this._permanentFailureHandled=!1}static{this._instances=[]}get _isPermanentFailure(){return this._permanentFailure||X._permanentFailure}constructor(B,G,fe,_e,Ee){super(),this._connectionType=B,this._options=G,this.reconnectionToken=fe,this.protocol=_e,this._reconnectionFailureIsFatal=Ee,this._onDidStateChange=this._register(new R.Emitter),this.onDidStateChange=this._onDidStateChange.event,this._permanentFailure=!1,this._isReconnecting=!1,this._isDisposed=!1,this._onDidStateChange.fire(new U(this.reconnectionToken,0,0)),this._register(_e.onSocketClose(F=>{const J=ve(this._connectionType,this.reconnectionToken,!0);F?F.type===0?(this._options.logService.info(`${J} received socket close event (hadError: ${F.hadError}).`),F.error&&this._options.logService.error(F.error)):(this._options.logService.info(`${J} received socket close event (wasClean: ${F.wasClean}, code: ${F.code}, reason: ${F.reason}).`),F.event&&this._options.logService.error(F.event)):this._options.logService.info(`${J} received socket close event.`),this._beginReconnecting()})),this._register(_e.onSocketTimeout(F=>{const J=ve(this._connectionType,this.reconnectionToken,!0);this._options.logService.info(`${J} received socket timeout event (unacknowledgedMsgCount: ${F.unacknowledgedMsgCount}, timeSinceOldestUnacknowledgedMsg: ${F.timeSinceOldestUnacknowledgedMsg}, timeSinceLastReceivedSomeData: ${F.timeSinceLastReceivedSomeData}).`),this._beginReconnecting()})),X._instances.push(this),this._register((0,u.toDisposable)(()=>{const F=X._instances.indexOf(this);F>=0&&X._instances.splice(F,1)})),this._isPermanentFailure&&this._gotoPermanentFailure(X._permanentFailureMillisSinceLastIncomingData,X._permanentFailureAttempt,X._permanentFailureHandled)}dispose(){super.dispose(),this._isDisposed=!0}async _beginReconnecting(){if(!this._isReconnecting)try{this._isReconnecting=!0,await this._runReconnectingLoop()}finally{this._isReconnecting=!1}}async _runReconnectingLoop(){if(this._isPermanentFailure||this._isDisposed)return;const B=ve(this._connectionType,this.reconnectionToken,!0);this._options.logService.info(`${B} starting reconnecting loop. You can get more information with the trace log level.`),this._onDidStateChange.fire(new H(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData()));const G=[0,5,5,10,10,10,10,10,30];let fe=-1;do{fe++;const _e=fe<G.length?G[fe]:G[G.length-1];try{if(_e>0){const F=L(_e);this._onDidStateChange.fire(new N(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData(),_e,F)),this._options.logService.info(`${B} waiting for ${_e} seconds before reconnecting...`);try{await F}catch{}}if(this._isPermanentFailure){this._options.logService.error(`${B} permanent failure occurred while running the reconnecting loop.`);break}this._onDidStateChange.fire(new $(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData(),fe+1)),this._options.logService.info(`${B} resolving connection...`);const Ee=await S(this._options,this.reconnectionToken,this.protocol);this._options.logService.info(`${B} connecting to ${Ee.connectTo}...`),await this._reconnect(Ee,h(g)),this._options.logService.info(`${B} reconnected!`),this._onDidStateChange.fire(new U(this.reconnectionToken,this.protocol.getMillisSinceLastIncomingData(),fe+1));break}catch(Ee){if(Ee.code==="VSCODE_CONNECTION_ERROR"){this._options.logService.error(`${B} A permanent error occurred in the reconnecting loop! Will give up now! Error:`),this._options.logService.error(Ee),this._onReconnectionPermanentFailure(this.protocol.getMillisSinceLastIncomingData(),fe+1,!1);break}if(fe>360){this._options.logService.error(`${B} An error occurred while reconnecting, but it will be treated as a permanent error because the reconnection grace time has expired! Will give up now! Error:`),this._options.logService.error(Ee),this._onReconnectionPermanentFailure(this.protocol.getMillisSinceLastIncomingData(),fe+1,!1);break}if(t.RemoteAuthorityResolverError.isTemporarilyNotAvailable(Ee)){this._options.logService.info(`${B} A temporarily not available error occurred while trying to reconnect, will try again...`),this._options.logService.trace(Ee);continue}if((Ee.code==="ETIMEDOUT"||Ee.code==="ENETUNREACH"||Ee.code==="ECONNREFUSED"||Ee.code==="ECONNRESET")&&Ee.syscall==="connect"){this._options.logService.info(`${B} A network error occurred while trying to reconnect, will try again...`),this._options.logService.trace(Ee);continue}if((0,A.isCancellationError)(Ee)){this._options.logService.info(`${B} A promise cancelation error occurred while trying to reconnect, will try again...`),this._options.logService.trace(Ee);continue}if(Ee instanceof t.RemoteAuthorityResolverError){this._options.logService.error(`${B} A RemoteAuthorityResolverError occurred while trying to reconnect. Will give up now! Error:`),this._options.logService.error(Ee),this._onReconnectionPermanentFailure(this.protocol.getMillisSinceLastIncomingData(),fe+1,t.RemoteAuthorityResolverError.isHandled(Ee));break}this._options.logService.error(`${B} An unknown error occurred while trying to reconnect, since this is an unknown case, it will be treated as a permanent error! Will give up now! Error:`),this._options.logService.error(Ee),this._onReconnectionPermanentFailure(this.protocol.getMillisSinceLastIncomingData(),fe+1,!1);break}}while(!this._isPermanentFailure&&!this._isDisposed)}_onReconnectionPermanentFailure(B,G,fe){this._reconnectionFailureIsFatal?X.triggerPermanentFailure(B,G,fe):this._gotoPermanentFailure(B,G,fe)}_gotoPermanentFailure(B,G,fe){this._onDidStateChange.fire(new x(this.reconnectionToken,B,G,fe)),le(this.protocol)}_pauseSocketWriting(){this.protocol.pauseSocketWriting()}}e.PersistentConnection=X;class K extends X{constructor(B,G,fe,_e,Ee){super(1,B,_e,Ee,!0),this.client=this._register(new E.Client(Ee,{remoteAuthority:G,clientId:fe},B.ipcLogger))}async _reconnect(B,G){await i(B,G)}}e.ManagementPersistentConnection=K;class pe extends X{constructor(B,G,fe,_e,Ee){super(2,B,fe,_e,!1),this._startArguments=G,this.debugPort=Ee}async _reconnect(B,G){await c(B,this._startArguments,G)}}e.ExtensionHostPersistentConnection=pe;function le(te){try{te.acceptDisconnect();const B=te.getSocket();te.dispose(),B.dispose()}catch(B){(0,A.onUnexpectedError)(B)}}function re(te){if(te&&te.type==="error"){const B=new Error(`Connection error: ${te.reason}`);return B.code="VSCODE_CONNECTION_ERROR",B}return null}function q(te,B){for(;te.length<B;)te+=" ";return te}function oe(te,B){return`[remote-connection][${q(r(te),13)}][${B.substr(0,5)}\u2026]`}function ve(te,B,G){return`${oe(te,B)}[${G?"reconnect":"initial"}]`}function ce(te,B){return`${ve(B,te.reconnectionToken,!!te.reconnectionProtocol)}[${te.connectTo}]`}function se(te){return`${Date.now()-te} ms`}}),define(ye[249],Ce([1,0,5,6]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteSocketFactoryService=e.IRemoteSocketFactoryService=void 0,e.IRemoteSocketFactoryService=(0,M.createDecorator)("remoteSocketFactoryService");class d{constructor(){this.factories={}}register(R,u){return this.factories[R]??=[],this.factories[R].push(u),(0,w.toDisposable)(()=>{const p=this.factories[R]?.indexOf(u);typeof p=="number"&&p>=0&&this.factories[R]?.splice(p,1)})}getSocketFactory(R){return(this.factories[R.type]||[]).find(p=>p.supports(R))}connect(R,u,p,f){const y=this.getSocketFactory(R);if(!y)throw new Error(`No socket factory found for ${R}`);return y.connect(R,u,p,f)}}e.RemoteSocketFactoryService=d}),define(ye[250],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSignService=void 0;class w{constructor(){this.validators=new Map}static{this._nextId=1}async createNewMessage(d){try{const A=await this.getValidator();if(A){const R=String(w._nextId++);return this.validators.set(R,A),{id:R,data:A.createNewMessage(d)}}}catch{}return{id:"",data:d}}async validate(d,A){if(!d.id)return!0;const R=this.validators.get(d.id);if(!R)return!1;this.validators.delete(d.id);try{return R.validate(A)==="ok"}catch{return!1}finally{R.dispose?.()}}async sign(d){try{return await this.signValue(d)}catch{}return d}}e.AbstractSignService=w}),define(ye[103],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISignService=e.SIGN_SERVICE_ID=void 0,e.SIGN_SERVICE_ID="signService",e.ISignService=(0,w.createDecorator)(e.SIGN_SERVICE_ID)}),define(ye[251],Ce([1,0,250]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignService=void 0;class M extends w.AbstractSignService{getValidator(){return this.vsda().then(A=>new A.validator)}signValue(A){return this.vsda().then(R=>new R.signer().sign(A))}vsda(){return new Promise((A,R)=>ge(["vsda"],A,R))}}e.SignService=M}),define(ye[252],Ce([1,0,14,44,29,135]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyMicrosoftInternalDomain=e.resolveCommonProperties=void 0;const R=A.default;function u(y){if(w.platform===2&&/^penguin(\.|$)/i.test(y))return"chromebook"}function p(y,E,t,s,g,C,r,h){const o=Object.create(null);o["common.machineId"]=C,o.sessionID=(0,d.generateUuid)()+Date.now(),o.commitHash=s,o.version=g,o["common.platformVersion"]=(y||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),o["common.platform"]=(0,w.PlatformToString)(w.platform),o["common.nodePlatform"]=M.platform,o["common.nodeArch"]=t,o["common.product"]=R.nameShort||"desktop",o["common.application.name"]=R.nameLong,o.quality=R.quality||"dev",r&&(o["common.msftInternal"]=r);let b=0;const P=Date.now();Object.defineProperties(o,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-P,enumerable:!0},"common.sequence":{get:()=>b++,enumerable:!0}}),w.isLinuxSnap&&(o["common.snap"]="true");const T=u(E);return T&&(o["common.platformDetail"]=T),o}e.resolveCommonProperties=p;function f(y){const E=M.env.USERDNSDOMAIN;if(!E)return!1;const t=E.toLowerCase();return y.some(s=>t===s)}e.verifyMicrosoftInternalDomain=f}),define(ye[253],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryConfiguration=e.TelemetryLevel=e.TELEMETRY_OLD_SETTING_ID=e.TELEMETRY_CRASH_REPORTER_SETTING_ID=e.TELEMETRY_SETTING_ID=e.TELEMETRY_SECTION_ID=e.machineIdKey=e.lastSessionDateStorageKey=e.firstSessionDateStorageKey=e.currentSessionDateStorageKey=e.ICustomEndpointTelemetryService=e.ITelemetryService=void 0,e.ITelemetryService=(0,w.createDecorator)("telemetryService"),e.ICustomEndpointTelemetryService=(0,w.createDecorator)("customEndpointTelemetryService"),e.currentSessionDateStorageKey="telemetry.currentSessionDate",e.firstSessionDateStorageKey="telemetry.firstSessionDate",e.lastSessionDateStorageKey="telemetry.lastSessionDate",e.machineIdKey="telemetry.machineId",e.TELEMETRY_SECTION_ID="telemetry",e.TELEMETRY_SETTING_ID="telemetry.telemetryLevel",e.TELEMETRY_CRASH_REPORTER_SETTING_ID="telemetry.enableCrashReporter",e.TELEMETRY_OLD_SETTING_ID="telemetry.enableTelemetry";var M;(function(A){A[A.NONE=0]="NONE",A[A.CRASH=1]="CRASH",A[A.ERROR=2]="ERROR",A[A.USAGE=3]="USAGE"})(M||(e.TelemetryLevel=M={}));var d;(function(A){A.OFF="off",A.CRASH="crash",A.ERROR="error",A.ON="all"})(d||(e.TelemetryConfiguration=d={}))}),define(ye[85],Ce([1,0,24,18,4,53,61,252,253]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cleanData=e.getPiiPathsFromEnvironment=e.isInternalTelemetry=e.cleanRemoteAuthority=e.validateTelemetryData=e.getTelemetryLevel=e.isLoggingOnly=e.supportsTelemetry=e.configurationTelemetry=e.NullAppender=e.extensionTelemetryLogChannelId=e.telemetryLogId=e.NullEndpointTelemetryService=e.NullTelemetryService=e.NullTelemetryServiceShape=e.TelemetryTrustedValue=void 0;class f{constructor(c){this.value=c,this.isTrustedTelemetryValue=!0}}e.TelemetryTrustedValue=f;class y{constructor(){this.telemetryLevel=0,this.sessionId="someValue.sessionId",this.machineId="someValue.machineId",this.firstSessionDate="someValue.firstSessionDate",this.sendErrorTelemetry=!1}publicLog(){}publicLog2(){}publicLogError(){}publicLogError2(){}setExperimentProperty(){}}e.NullTelemetryServiceShape=y,e.NullTelemetryService=new y;class E{async publicLog(c,_,S){}async publicLogError(c,_,S){}}e.NullEndpointTelemetryService=E,e.telemetryLogId="telemetry",e.extensionTelemetryLogChannelId="extensionTelemetryLog",e.NullAppender={log:()=>null,flush:()=>Promise.resolve(null)};function t(i,c){return d.Event.debounce(c.onDidChangeConfiguration,(S,k)=>{const m=S?new Set([...S.affectedKeys,...k.affectedKeys]):k.affectedKeys;return{...k,affectedKeys:m}},1e3,!0)(S=>{S.source!==7&&i.publicLog2("updateConfiguration",{configurationSource:(0,A.ConfigurationTargetToString)(S.source),configurationKeys:Array.from(S.affectedKeys)})})}e.configurationTelemetry=t;function s(i,c){return!c.isBuilt&&!c.disableTelemetry?!0:!(c.disableTelemetry||!i.enableTelemetry||c.extensionTestsLocationURI)}e.supportsTelemetry=s;function g(i,c){return!(c.isBuilt||c.disableTelemetry||i.enableTelemetry&&i.aiConfig?.ariaKey)}e.isLoggingOnly=g;function C(i){const c=i.getValue(p.TELEMETRY_SETTING_ID),_=i.getValue(p.TELEMETRY_CRASH_REPORTER_SETTING_ID);if(i.getValue(p.TELEMETRY_OLD_SETTING_ID)===!1||_===!1)return 0;switch(c??"all"){case"all":return 3;case"error":return 2;case"crash":return 1;case"off":return 0}}e.getTelemetryLevel=C;function r(i){const c={},_={},S={};b(i,S);for(let k in S){k=k.length>150?k.substr(k.length-149):k;const m=S[k];typeof m=="number"?_[k]=m:typeof m=="boolean"?_[k]=m?1:0:typeof m=="string"?(m.length>8192&&console.warn(`Telemetry property: ${k} has been trimmed to 8192, the original length is ${m.length}`),c[k]=m.substring(0,8191)):typeof m<"u"&&m!==null&&(c[k]=m)}return{properties:c,measurements:_}}e.validateTelemetryData=r;const h=new Set(["ssh-remote","dev-container","attached-container","wsl","tunnel","codespaces","amlext"]);function o(i){if(!i)return"none";const c=(0,R.getRemoteName)(i);return h.has(c)?c:"other"}e.cleanRemoteAuthority=o;function b(i,c,_=0,S){if(i)for(const k of Object.getOwnPropertyNames(i)){const m=i[k],v=S?S+k:k;Array.isArray(m)?c[v]=(0,w.safeStringify)(m):m instanceof Date?c[v]=m.toISOString():(0,M.isObject)(m)?_<2?b(m,c,_+1,v+"."):c[v]=(0,w.safeStringify)(m):c[v]=m}}function P(i,c){const _=i.msftInternalDomains||[],S=c.getValue("telemetry.internalTesting");return(0,u.verifyMicrosoftInternalDomain)(_)||S}e.isInternalTelemetry=P;function T(i){return[i.appRoot,i.extensionsPath,i.userHome.fsPath,i.tmpDir.fsPath,i.userDataPath]}e.getPiiPathsFromEnvironment=T;function n(i,c){if(!i||!i.includes("/")&&!i.includes("\\"))return i;let _=i;const S=[];for(const D of c)for(;;){const L=D.exec(i);if(!L)break;S.push([L.index,D.lastIndex])}const k=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,m=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let v=0;for(_="";;){const D=m.exec(i);if(!D)break;const L=S.some(([O,H])=>D.index<H&&O<m.lastIndex);!k.test(D[0])&&!L&&(_+=i.substring(v,D.index)+"<REDACTED: user-file-path>",v=m.lastIndex)}return v<i.length&&(_+=i.substr(v)),_}function a(i){if(!i)return i;const c=[{label:"Google API Key",regex:/AIza[A-Za-z0-9_\\\-]{35}/},{label:"Slack Token",regex:/xox[pbar]\-[A-Za-z0-9]/},{label:"Generic Secret",regex:/(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i},{label:"Email",regex:/@[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+/}];for(const _ of c)if(_.regex.test(i))return`<REDACTED: ${_.label}>`;return i}function l(i,c){return(0,w.cloneAndChange)(i,_=>{if(_ instanceof f||Object.hasOwnProperty.call(_,"isTrustedTelemetryValue"))return _.value;if(typeof _=="string"){let S=_.replaceAll("%20"," ");S=n(S,c);for(const k of c)S=S.replace(k,"");return S=a(S),S}})}e.cleanData=l}),define(ye[254],Ce([1,0,16,132,23,14,2,8,44,85]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeTargetPlatform=e.getExtensionDependencies=e.BetterMergeId=e.getGalleryExtensionTelemetryData=e.getLocalExtensionTelemetryData=e.groupByExtension=e.getGalleryExtensionId=e.adoptToGalleryExtensionId=e.getExtensionId=e.getIdAndVersion=e.ExtensionKey=e.areSameExtensions=void 0;function y(l,i){return l.id===i.id?!0:(0,w.compareIgnoreCase)(l.id,i.id)===0}e.areSameExtensions=y;const E=/^([^.]+\..+)-(\d+\.\d+\.\d+)(-(.+))?$/;class t{static create(i){const c=i.manifest?i.manifest.version:i.version,_=i.manifest?i.targetPlatform:i.properties.targetPlatform;return new t(i.identifier,c,_)}static parse(i){const c=E.exec(i);return c&&c[1]&&c[2]?new t({id:c[1]},c[2],c[4]||void 0):null}constructor(i,c,_="undefined"){this.version=c,this.targetPlatform=_,this.id=i.id}toString(){return`${this.id}-${this.version}${this.targetPlatform!=="undefined"?`-${this.targetPlatform}`:""}`}equals(i){return i instanceof t?y(this,i)&&this.version===i.version&&this.targetPlatform===i.targetPlatform:!1}}e.ExtensionKey=t;const s=/^([^.]+\..+)@((prerelease)|(\d+\.\d+\.\d+(-.*)?))$/;function g(l){const i=s.exec(l);return i&&i[1]?[r(i[1]),i[2]]:[r(l),void 0]}e.getIdAndVersion=g;function C(l,i){return`${l}.${i}`}e.getExtensionId=C;function r(l){return l.toLowerCase()}e.adoptToGalleryExtensionId=r;function h(l,i){return r(C(l??d.UNDEFINED_PUBLISHER,i))}e.getGalleryExtensionId=h;function o(l,i){const c=[],_=S=>{for(const k of c)if(k.some(m=>y(i(m),i(S))))return k;return null};for(const S of l){const k=_(S);k?k.push(S):c.push([S])}return c}e.groupByExtension=o;function b(l){return{id:l.identifier.id,name:l.manifest.name,galleryId:null,publisherId:l.publisherId,publisherName:l.manifest.publisher,publisherDisplayName:l.publisherDisplayName,dependencies:l.manifest.extensionDependencies&&l.manifest.extensionDependencies.length>0,extensionVersion:l.manifest.version}}e.getLocalExtensionTelemetryData=b;function P(l){return{id:new f.TelemetryTrustedValue(l.identifier.id),name:new f.TelemetryTrustedValue(l.name),galleryId:l.identifier.uuid,publisherId:l.publisherId,publisherName:l.publisher,publisherDisplayName:l.publisherDisplayName,isPreReleaseVersion:l.properties.isPreReleaseVersion,dependencies:!!(l.properties.dependencies&&l.properties.dependencies.length>0),isSigned:l.isSigned,extensionVersion:l.version,...l.telemetryData}}e.getGalleryExtensionTelemetryData=P,e.BetterMergeId=new d.ExtensionIdentifier("pprice.better-merge");function T(l,i){const c=[],_=i.manifest.extensionDependencies?.slice(0)??[];for(;_.length;){const S=_.shift();if(S&&c.every(k=>!y(k.identifier,{id:S}))){const k=l.filter(m=>y(m.identifier,{id:S}));k.length===1&&(c.push(k[0]),_.push(...k[0].manifest.extensionDependencies?.slice(0)??[]))}}return c}e.getExtensionDependencies=T;async function n(l,i){if(!A.isLinux)return!1;let c;try{c=(await l.readFile(R.URI.file("/etc/os-release"))).value.toString()}catch{try{c=(await l.readFile(R.URI.file("/usr/lib/os-release"))).value.toString()}catch(S){i.debug("Error while getting the os-release file.",(0,u.getErrorMessage)(S))}}return!!c&&(c.match(/^ID=([^\u001b\r\n]*)/m)||[])[1]==="alpine"}async function a(l,i){const c=await n(l,i),_=(0,M.getTargetPlatform)(c?"alpine":A.platform,p.arch);return i.debug("ComputeTargetPlatform:",_),_}e.computeTargetPlatform=a}),define(ye[255],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeEnvironmentVariableCollections=e.serializeEnvironmentVariableCollections=e.deserializeEnvironmentDescriptionMap=e.deserializeEnvironmentVariableCollection=e.serializeEnvironmentDescriptionMap=e.serializeEnvironmentVariableCollection=void 0;function w(p){return[...p.entries()]}e.serializeEnvironmentVariableCollection=w;function M(p){return p?[...p.entries()]:[]}e.serializeEnvironmentDescriptionMap=M;function d(p){return new Map(p)}e.deserializeEnvironmentVariableCollection=d;function A(p){return new Map(p??[])}e.deserializeEnvironmentDescriptionMap=A;function R(p){return Array.from(p.entries()).map(f=>[f[0],w(f[1].map),M(f[1].descriptionMap)])}e.serializeEnvironmentVariableCollections=R;function u(p){return new Map(p.map(f=>[f[0],{map:d(f[1]),descriptionMap:A(f[2])}]))}e.deserializeEnvironmentVariableCollections=u}),define(ye[256],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalDataBufferer=void 0;class w{constructor(d){this._callback=d,this._terminalBufferMap=new Map}dispose(){for(const d of this._terminalBufferMap.values())d.dispose()}startBuffering(d,A,R=5){const u=A(p=>{const f=typeof p=="string"?p:p.data;let y=this._terminalBufferMap.get(d);if(y){y.data.push(f);return}const E=setTimeout(()=>this.flushBuffer(d),R);y={data:[f],timeoutId:E,dispose:()=>{clearTimeout(E),this.flushBuffer(d),u.dispose()}},this._terminalBufferMap.set(d,y)});return u}stopBuffering(d){this._terminalBufferMap.get(d)?.dispose()}flushBuffer(d){const A=this._terminalBufferMap.get(d);A&&(this._terminalBufferMap.delete(d),this._callback(d,A.data.join("")))}}e.TerminalDataBufferer=w}),define(ye[257],Ce([1,0,13,74,58,4,18,2,206,102,38]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spinningLoading=e.syncing=e.gotoNextLocation=e.gotoPreviousLocation=e.widgetClose=e.iconsSchemaId=e.getIconRegistry=e.registerIcon=e.IconFontDefinition=e.IconContribution=e.Extensions=void 0,e.Extensions={IconContribution:"base.contributions.icons"};var E;(function(P){function T(n,a){let l=n.defaults;for(;d.ThemeIcon.isThemeIcon(l);){const i=g.getIcon(l.id);if(!i)return;l=i.defaults}return l}P.getDefinition=T})(E||(e.IconContribution=E={}));var t;(function(P){function T(a){return{weight:a.weight,style:a.style,src:a.src.map(l=>({format:l.format,location:l.location.toString()}))}}P.toJSONObject=T;function n(a){const l=i=>(0,R.isString)(i)?i:void 0;if(a&&Array.isArray(a.src)&&a.src.every(i=>(0,R.isString)(i.format)&&(0,R.isString)(i.location)))return{weight:l(a.weight),style:l(a.style),src:a.src.map(i=>({format:i.format,location:u.URI.parse(i.location)}))}}P.fromJSONObject=n})(t||(e.IconFontDefinition=t={}));class s{constructor(){this._onDidChange=new A.Emitter,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,p.localize)(0,null)},fontCharacter:{type:"string",description:(0,p.localize)(1,null)}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${d.ThemeIcon.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(T,n,a,l){const i=this.iconsById[T];if(i){if(a&&!i.description){i.description=a,this.iconSchema.properties[T].markdownDescription=`${a} $(${T})`;const S=this.iconReferenceSchema.enum.indexOf(T);S!==-1&&(this.iconReferenceSchema.enumDescriptions[S]=a),this._onDidChange.fire()}return i}const c={id:T,description:a,defaults:n,deprecationMessage:l};this.iconsById[T]=c;const _={$ref:"#/definitions/icons"};return l&&(_.deprecationMessage=l),a&&(_.markdownDescription=`${a}: $(${T})`),this.iconSchema.properties[T]=_,this.iconReferenceSchema.enum.push(T),this.iconReferenceSchema.enumDescriptions.push(a||""),this._onDidChange.fire(),{id:T}}deregisterIcon(T){delete this.iconsById[T],delete this.iconSchema.properties[T];const n=this.iconReferenceSchema.enum.indexOf(T);n!==-1&&(this.iconReferenceSchema.enum.splice(n,1),this.iconReferenceSchema.enumDescriptions.splice(n,1)),this._onDidChange.fire()}getIcons(){return Object.keys(this.iconsById).map(T=>this.iconsById[T])}getIcon(T){return this.iconsById[T]}getIconSchema(){return this.iconSchema}getIconReferenceSchema(){return this.iconReferenceSchema}registerIconFont(T,n){const a=this.iconFontsById[T];return a||(this.iconFontsById[T]=n,this._onDidChange.fire(),n)}deregisterIconFont(T){delete this.iconFontsById[T]}getIconFont(T){return this.iconFontsById[T]}toString(){const T=(i,c)=>i.id.localeCompare(c.id),n=i=>{for(;d.ThemeIcon.isThemeIcon(i.defaults);)i=this.iconsById[i.defaults.id];return`codicon codicon-${i?i.id:""}`},a=[];a.push("| preview     | identifier                        | default codicon ID                | description"),a.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const l=Object.keys(this.iconsById).map(i=>this.iconsById[i]);for(const i of l.filter(c=>!!c.description).sort(T))a.push(`|<i class="${n(i)}"></i>|${i.id}|${d.ThemeIcon.isThemeIcon(i.defaults)?i.defaults.id:i.id}|${i.description||""}|`);a.push("| preview     | identifier                        "),a.push("| ----------- | --------------------------------- |");for(const i of l.filter(c=>!d.ThemeIcon.isThemeIcon(c.defaults)).sort(T))a.push(`|<i class="${n(i)}"></i>|${i.id}|`);return a.join(`
`)}}const g=new s;y.Registry.add(e.Extensions.IconContribution,g);function C(P,T,n,a){return g.registerIcon(P,T,n,a)}e.registerIcon=C;function r(){return g}e.getIconRegistry=r;function h(){const P=(0,M.getCodiconFontCharacters)();for(const T in P){const n="\\"+P[T].toString(16);g.registerIcon(T,{fontCharacter:n})}}h(),e.iconsSchemaId="vscode://schemas/icons";const o=y.Registry.as(f.Extensions.JSONContribution);o.registerSchema(e.iconsSchemaId,g.getIconSchema());const b=new w.RunOnceScheduler(()=>o.notifySchemaChanged(e.iconsSchemaId),200);g.onDidChange(()=>{b.isScheduled()||b.schedule()}),e.widgetClose=C("widget-close",M.Codicon.close,(0,p.localize)(2,null)),e.gotoPreviousLocation=C("goto-previous-location",M.Codicon.arrowUp,(0,p.localize)(3,null)),e.gotoNextLocation=C("goto-next-location",M.Codicon.arrowDown,(0,p.localize)(4,null)),e.syncing=d.ThemeIcon.modify(M.Codicon.sync,"spin"),e.spinningLoading=d.ThemeIcon.modify(M.Codicon.loading,"spin")}),define(ye[104],Ce([1,0,4,53,6,12]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTunnelService=e.DisposableTunnel=e.isPortPrivileged=e.isAllInterfaces=e.ALL_INTERFACES_ADDRESSES=e.isLocalhost=e.LOCALHOST_ADDRESSES=e.extractLocalHostUriMetaDataForPortMapping=e.ProvidedOnAutoForward=e.isTunnelProvider=e.TunnelPrivacyId=e.TunnelProtocol=e.ISharedTunnelsService=e.ITunnelService=void 0,e.ITunnelService=(0,d.createDecorator)("tunnelService"),e.ISharedTunnelsService=(0,d.createDecorator)("sharedTunnelsService");var R;(function(r){r.Http="http",r.Https="https"})(R||(e.TunnelProtocol=R={}));var u;(function(r){r.ConstantPrivate="constantPrivate",r.Private="private",r.Public="public"})(u||(e.TunnelPrivacyId=u={}));function p(r){return!!r.forwardPort}e.isTunnelProvider=p;var f;(function(r){r[r.Notify=1]="Notify",r[r.OpenBrowser=2]="OpenBrowser",r[r.OpenPreview=3]="OpenPreview",r[r.Silent=4]="Silent",r[r.Ignore=5]="Ignore",r[r.OpenBrowserOnce=6]="OpenBrowserOnce"})(f||(e.ProvidedOnAutoForward=f={}));function y(r){if(r.scheme!=="http"&&r.scheme!=="https")return;const h=/^(localhost|127\.0\.0\.1|0\.0\.0\.0):(\d+)$/.exec(r.authority);if(h)return{address:h[1],port:+h[2]}}e.extractLocalHostUriMetaDataForPortMapping=y,e.LOCALHOST_ADDRESSES=["localhost","127.0.0.1","0:0:0:0:0:0:0:1","::1"];function E(r){return e.LOCALHOST_ADDRESSES.indexOf(r)>=0}e.isLocalhost=E,e.ALL_INTERFACES_ADDRESSES=["0.0.0.0","0:0:0:0:0:0:0:0","::"];function t(r){return e.ALL_INTERFACES_ADDRESSES.indexOf(r)>=0}e.isAllInterfaces=t;function s(r,h,o,b){if(o===1)return!1;if(o===2&&t(h)){const P=/(\d+)\.(\d+)\.(\d+)/g.exec(b);if(P?.length===4&&parseInt(P[1])>=18)return!1}return r<1024}e.isPortPrivileged=s;class g{constructor(h,o,b){this.remoteAddress=h,this.localAddress=o,this._dispose=b,this._onDispose=new w.Emitter,this.onDidDispose=this._onDispose.event}dispose(){return this._onDispose.fire(),this._dispose()}}e.DisposableTunnel=g;let C=class{constructor(h,o){this.logService=h,this.configurationService=o,this._onTunnelOpened=new w.Emitter,this.onTunnelOpened=this._onTunnelOpened.event,this._onTunnelClosed=new w.Emitter,this.onTunnelClosed=this._onTunnelClosed.event,this._onAddedTunnelProvider=new w.Emitter,this.onAddedTunnelProvider=this._onAddedTunnelProvider.event,this._tunnels=new Map,this._canElevate=!1,this._privacyOptions=[],this._factoryInProgress=new Set}get hasTunnelProvider(){return!!this._tunnelProvider}get defaultTunnelHost(){const h=this.configurationService.getValue("remote.localPortHost");return!h||h==="localhost"?"127.0.0.1":"0.0.0.0"}setTunnelProvider(h){return this._tunnelProvider=h,h?(this._onAddedTunnelProvider.fire(),{dispose:()=>{this._tunnelProvider=void 0,this._canElevate=!1,this._privacyOptions=[]}}):(this._canElevate=!1,this._privacyOptions=[],this._onAddedTunnelProvider.fire(),{dispose:()=>{}})}setTunnelFeatures(h){this._canElevate=h.elevation,this._privacyOptions=h.privacyOptions}get canElevate(){return this._canElevate}get canChangePrivacy(){return this._privacyOptions.length>0}get privacyOptions(){return this._privacyOptions}get tunnels(){return this.getTunnels()}async getTunnels(){const h=[],o=Array.from(this._tunnels.values());for(const b of o){const P=Array.from(b.values());for(const T of P){const n=await T.value;n&&typeof n!="string"&&h.push(n)}}return h}async dispose(){for(const h of this._tunnels.values()){for(const{value:o}of h.values())await o.then(b=>typeof b!="string"?b?.dispose():void 0);h.clear()}this._tunnels.clear()}setEnvironmentTunnel(h,o,b,P,T){this.addTunnelToMap(h,o,Promise.resolve({tunnelRemoteHost:h,tunnelRemotePort:o,localAddress:b,privacy:P,protocol:T,dispose:()=>Promise.resolve()}))}async getExistingTunnel(h,o){(t(h)||E(h))&&(h=e.LOCALHOST_ADDRESSES[0]);const b=this.getTunnelFromMap(h,o);if(b)return++b.refcount,b.value}openTunnel(h,o,b,P,T,n=!1,a,l){this.logService.trace(`ForwardedPorts: (TunnelService) openTunnel request for ${o}:${b} on local port ${T}.`);const i=this._tunnelProvider??h;if(!i)return;if(o||(o="localhost"),P||(P=this.defaultTunnelHost),this._tunnelProvider&&this._factoryInProgress.has(b)){this.logService.debug("ForwardedPorts: (TunnelService) Another call to create a tunnel with the same address has occurred before the last one completed. This call will be ignored.");return}const c=this.retainOrCreateTunnel(i,o,b,P,T,n,a,l);return c?c.then(_=>{if(_){if(typeof _=="string")return this.logService.trace("ForwardedPorts: (TunnelService) The tunnel provider returned an error when creating the tunnel."),this.removeEmptyOrErrorTunnelFromMap(o,b),_}else{this.logService.trace("ForwardedPorts: (TunnelService) New tunnel is undefined."),this.removeEmptyOrErrorTunnelFromMap(o,b);return}this.logService.trace("ForwardedPorts: (TunnelService) New tunnel established.");const S=this.makeTunnel(_);return(_.tunnelRemoteHost!==o||_.tunnelRemotePort!==b)&&this.logService.warn("ForwardedPorts: (TunnelService) Created tunnel does not match requirements of requested tunnel. Host or port mismatch."),a&&_.privacy!==a&&this.logService.warn("ForwardedPorts: (TunnelService) Created tunnel does not match requirements of requested tunnel. Privacy mismatch."),this._onTunnelOpened.fire(S),S}):(this.logService.trace("ForwardedPorts: (TunnelService) Tunnel was not created."),c)}makeTunnel(h){return{tunnelRemotePort:h.tunnelRemotePort,tunnelRemoteHost:h.tunnelRemoteHost,tunnelLocalPort:h.tunnelLocalPort,localAddress:h.localAddress,privacy:h.privacy,protocol:h.protocol,dispose:async()=>{this.logService.trace(`ForwardedPorts: (TunnelService) dispose request for ${h.tunnelRemoteHost}:${h.tunnelRemotePort} `);const o=this._tunnels.get(h.tunnelRemoteHost);if(o){const b=o.get(h.tunnelRemotePort);b&&(b.refcount--,await this.tryDisposeTunnel(h.tunnelRemoteHost,h.tunnelRemotePort,b))}}}}async tryDisposeTunnel(h,o,b){if(b.refcount<=0){this.logService.trace(`ForwardedPorts: (TunnelService) Tunnel is being disposed ${h}:${o}.`);const P=b.value.then(async T=>{T&&typeof T!="string"&&(await T.dispose(!0),this._onTunnelClosed.fire({host:T.tunnelRemoteHost,port:T.tunnelRemotePort}))});return this._tunnels.has(h)&&this._tunnels.get(h).delete(o),P}}async closeTunnel(h,o){this.logService.trace(`ForwardedPorts: (TunnelService) close request for ${h}:${o} `);const b=this._tunnels.get(h);if(b&&b.has(o)){const P=b.get(o);P.refcount=0,await this.tryDisposeTunnel(h,o,P)}}addTunnelToMap(h,o,b){this._tunnels.has(h)||this._tunnels.set(h,new Map),this._tunnels.get(h).set(o,{refcount:1,value:b})}async removeEmptyOrErrorTunnelFromMap(h,o){const b=this._tunnels.get(h);if(b){const P=b.get(o),T=P?await P.value:void 0;(!T||typeof T=="string")&&b.delete(o),b.size===0&&this._tunnels.delete(h)}}getTunnelFromMap(h,o){const b=[h];E(h)?(b.push(...e.LOCALHOST_ADDRESSES),b.push(...e.ALL_INTERFACES_ADDRESSES)):t(h)&&b.push(...e.ALL_INTERFACES_ADDRESSES);const P=b.map(T=>this._tunnels.get(T));for(const T of P){const n=T?.get(o);if(n)return n}}canTunnel(h){return!!y(h)}createWithProvider(h,o,b,P,T,n,a){this.logService.trace(`ForwardedPorts: (TunnelService) Creating tunnel with provider ${o}:${b} on local port ${P}.`);const l=b;this._factoryInProgress.add(l);const i=P===void 0?b:P,c={elevationRequired:T?this.isPortPrivileged(i):!1},_={remoteAddress:{host:o,port:b},localAddressPort:P,privacy:n,public:n?n!==u.Private:void 0,protocol:a},S=h.forwardPort(_,c);return S?(this.addTunnelToMap(o,b,S),S.finally(()=>{this.logService.trace("ForwardedPorts: (TunnelService) Tunnel created by provider."),this._factoryInProgress.delete(l)})):this._factoryInProgress.delete(l),S}};e.AbstractTunnelService=C,e.AbstractTunnelService=C=je([He(0,A.ILogService),He(1,M.IConfigurationService)],C)}),define(ye[258],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditSessionIdentityMatch=e.IEditSessionIdentityService=void 0,e.IEditSessionIdentityService=(0,w.createDecorator)("editSessionIdentityService");var M;(function(d){d[d.Complete=100]="Complete",d[d.Partial=50]="Partial",d[d.None=0]="None"})(M||(e.EditSessionIdentityMatch=M={}))}),define(ye[259],Ce([1,0,15]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isVirtualWorkspace=e.getVirtualWorkspaceAuthority=e.getVirtualWorkspaceScheme=e.getVirtualWorkspaceLocation=e.isVirtualResource=void 0;function M(p){return p.scheme!==w.Schemas.file&&p.scheme!==w.Schemas.vscodeRemote}e.isVirtualResource=M;function d(p){if(p.folders.length)return p.folders.every(f=>M(f.uri))?p.folders[0].uri:void 0;if(p.configuration&&M(p.configuration))return p.configuration}e.getVirtualWorkspaceLocation=d;function A(p){return d(p)?.scheme}e.getVirtualWorkspaceScheme=A;function R(p){return d(p)?.authority}e.getVirtualWorkspaceAuthority=R;function u(p){return d(p)!==void 0}e.isVirtualWorkspace=u}),define(ye[54],Ce([1,0,207,17,73,25,2,6,15]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasWorkspaceFileExtension=e.isSavedWorkspace=e.isStandaloneEditorWorkspace=e.STANDALONE_EDITOR_WORKSPACE_ID=e.isTemporaryWorkspace=e.isUntitledWorkspace=e.UNTITLED_WORKSPACE_NAME=e.WORKSPACE_FILTER=e.WORKSPACE_SUFFIX=e.WORKSPACE_EXTENSION=e.toWorkspaceFolder=e.WorkspaceFolder=e.Workspace=e.isWorkspaceFolder=e.isWorkspace=e.WorkbenchState=e.reviveIdentifier=e.isWorkspaceIdentifier=e.toWorkspaceIdentifier=e.UNKNOWN_EMPTY_WINDOW_WORKSPACE=e.EXTENSION_DEVELOPMENT_EMPTY_WINDOW_WORKSPACE=e.isEmptyWorkspaceIdentifier=e.isSingleFolderWorkspaceIdentifier=e.IWorkspaceContextService=void 0,e.IWorkspaceContextService=(0,u.createDecorator)("contextService");function f(i){const c=i;return typeof c?.id=="string"&&R.URI.isUri(c.uri)}e.isSingleFolderWorkspaceIdentifier=f;function y(i){return typeof i?.id=="string"&&!f(i)&&!t(i)}e.isEmptyWorkspaceIdentifier=y,e.EXTENSION_DEVELOPMENT_EMPTY_WINDOW_WORKSPACE={id:"ext-dev"},e.UNKNOWN_EMPTY_WINDOW_WORKSPACE={id:"empty-window"};function E(i,c){if(typeof i=="string"||typeof i>"u")return typeof i=="string"?{id:(0,M.basename)(i)}:c?e.EXTENSION_DEVELOPMENT_EMPTY_WINDOW_WORKSPACE:e.UNKNOWN_EMPTY_WINDOW_WORKSPACE;const _=i;return _.configuration?{id:_.id,configPath:_.configuration}:_.folders.length===1?{id:_.id,uri:_.folders[0].uri}:{id:_.id}}e.toWorkspaceIdentifier=E;function t(i){const c=i;return typeof c?.id=="string"&&R.URI.isUri(c.configPath)}e.isWorkspaceIdentifier=t;function s(i){const c=i;if(c?.uri)return{id:c.id,uri:R.URI.revive(c.uri)};const _=i;if(_?.configPath)return{id:_.id,configPath:R.URI.revive(_.configPath)};if(i?.id)return{id:i.id}}e.reviveIdentifier=s;var g;(function(i){i[i.EMPTY=1]="EMPTY",i[i.FOLDER=2]="FOLDER",i[i.WORKSPACE=3]="WORKSPACE"})(g||(e.WorkbenchState=g={}));function C(i){const c=i;return!!(c&&typeof c=="object"&&typeof c.id=="string"&&Array.isArray(c.folders))}e.isWorkspace=C;function r(i){const c=i;return!!(c&&typeof c=="object"&&R.URI.isUri(c.uri)&&typeof c.name=="string"&&typeof c.toResource=="function")}e.isWorkspaceFolder=r;class h{constructor(c,_,S,k,m){this._id=c,this._transient=S,this._configuration=k,this._ignorePathCasing=m,this._foldersMap=d.TernarySearchTree.forUris(this._ignorePathCasing,()=>!0),this.folders=_}update(c){this._id=c.id,this._configuration=c.configuration,this._transient=c.transient,this._ignorePathCasing=c._ignorePathCasing,this.folders=c.folders}get folders(){return this._folders}set folders(c){this._folders=c,this.updateFoldersMap()}get id(){return this._id}get transient(){return this._transient}get configuration(){return this._configuration}set configuration(c){this._configuration=c}getFolder(c){return c&&this._foldersMap.findSubstr(c)||null}updateFoldersMap(){this._foldersMap=d.TernarySearchTree.forUris(this._ignorePathCasing,()=>!0);for(const c of this.folders)this._foldersMap.set(c.uri,c)}toJSON(){return{id:this.id,folders:this.folders,transient:this.transient,configuration:this.configuration}}}e.Workspace=h;class o{constructor(c,_){this.raw=_,this.uri=c.uri,this.index=c.index,this.name=c.name}toResource(c){return(0,A.joinPath)(this.uri,c)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}e.WorkspaceFolder=o;function b(i){return new o({uri:i,index:0,name:(0,A.basenameOrAuthority)(i)},{uri:i.toString()})}e.toWorkspaceFolder=b,e.WORKSPACE_EXTENSION="code-workspace",e.WORKSPACE_SUFFIX=`.${e.WORKSPACE_EXTENSION}`,e.WORKSPACE_FILTER=[{name:(0,w.localize)(0,null),extensions:[e.WORKSPACE_EXTENSION]}],e.UNTITLED_WORKSPACE_NAME="workspace.json";function P(i,c){return A.extUriBiasedIgnorePathCase.isEqualOrParent(i,c.untitledWorkspacesHome)}e.isUntitledWorkspace=P;function T(i){let c;return R.URI.isUri(i)?c=i:c=i.configuration,c?.scheme===p.Schemas.tmp}e.isTemporaryWorkspace=T,e.STANDALONE_EDITOR_WORKSPACE_ID="4064f6ec-cb38-4ad0-af64-ee6467e63c82";function n(i){return i.id===e.STANDALONE_EDITOR_WORKSPACE_ID}e.isStandaloneEditorWorkspace=n;function a(i,c){return!P(i,c)&&!T(i)}e.isSavedWorkspace=a;function l(i){return(typeof i=="string"?(0,M.extname)(i):(0,A.extname)(i))===e.WORKSPACE_SUFFIX}e.hasWorkspaceFileExtension=l}),define(ye[86],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cache=void 0;class w{static{this.enableDebugLogging=!1}constructor(d){this.id=d,this._data=new Map,this._idPool=1}add(d){const A=this._idPool++;return this._data.set(A,d),this.logDebugInfo(),A}get(d,A){return this._data.has(d)?this._data.get(d)[A]:void 0}delete(d){this._data.delete(d),this.logDebugInfo()}logDebugInfo(){w.enableDebugLogging&&console.log(`${this.id} cache size - ${this._data.size}`)}}e.Cache=w}),define(ye[55],Ce([1,0,15,25,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostFileSystemInfo=e.ExtHostFileSystemInfo=void 0;class A{constructor(){this._systemSchemes=new Set(Object.keys(w.Schemas)),this._providerInfo=new Map,this.extUri=new M.ExtUri(u=>{const p=this._providerInfo.get(u.scheme);return!(p===void 0||p&1024)})}$acceptProviderInfos(u,p){p===null?this._providerInfo.delete(u.scheme):this._providerInfo.set(u.scheme,p)}isFreeScheme(u){return!this._providerInfo.has(u)&&!this._systemSchemes.has(u)}getCapabilities(u){return this._providerInfo.get(u)}}e.ExtHostFileSystemInfo=A,e.IExtHostFileSystemInfo=(0,d.createDecorator)("IExtHostFileSystemInfo")}),define(ye[26],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostInitDataService=void 0,e.IExtHostInitDataService=(0,w.createDecorator)("IExtHostInitDataService")}),define(ye[260],Ce([1,0,212,12,242,26]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostLogService=void 0;let R=class extends d.LogService{constructor(p,f,y){const E=y.remote.isRemote?"remoteexthost":p?"workerexthost":"exthost",t=y.remote.isRemote?(0,w.localize)(0,null):p?(0,w.localize)(1,null):(0,w.localize)(2,null);super(f.createLogger(E,{name:t}))}};e.ExtHostLogService=R,e.ExtHostLogService=R=je([He(1,M.ILoggerService),He(2,A.IExtHostInitDataService)],R)}),define(ye[261],Ce([1,0,13]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionGlobalMemento=e.ExtensionMemento=void 0;class M{constructor(R,u,p){this._deferredPromises=new Map,this._id=R,this._shared=u,this._storage=p,this._init=this._storage.initializeExtensionStorage(this._shared,this._id,Object.create(null)).then(f=>(this._value=f,this)),this._storageListener=this._storage.onDidChangeStorage(f=>{f.shared===this._shared&&f.key===this._id&&(this._value=f.value)}),this._scheduler=new w.RunOnceScheduler(()=>{const f=this._deferredPromises;this._deferredPromises=new Map,(async()=>{try{await this._storage.setValue(this._shared,this._id,this._value);for(const y of f.values())y.complete()}catch(y){for(const E of f.values())E.error(y)}})()},0)}keys(){return Object.entries(this._value??{}).filter(([,R])=>R!==void 0).map(([R])=>R)}get whenReady(){return this._init}get(R,u){let p=this._value[R];return typeof p>"u"&&(p=u),p}update(R,u){this._value[R]=u;const p=this._deferredPromises.get(R);if(p!==void 0)return p.p;const f=new w.DeferredPromise;return this._deferredPromises.set(R,f),this._scheduler.isScheduled()||this._scheduler.schedule(),f.p}dispose(){this._storageListener.dispose()}}e.ExtensionMemento=M;class d extends M{setKeysForSync(R){this._storage.registerExtensionStorageKeysToSync({id:this._id,version:this._extension.version},R)}constructor(R,u){super(R.identifier.value,!0,u),this._extension=R}}e.ExtensionGlobalMemento=d}),define(ye[262],Ce([1,0,4,2]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookDocuments=void 0;class d{constructor(R){this._notebooksAndEditors=R,this._onDidSaveNotebookDocument=new w.Emitter,this.onDidSaveNotebookDocument=this._onDidSaveNotebookDocument.event,this._onDidChangeNotebookDocument=new w.Emitter,this.onDidChangeNotebookDocument=this._onDidChangeNotebookDocument.event}$acceptModelChanged(R,u,p,f){const E=this._notebooksAndEditors.getNotebookDocument(M.URI.revive(R)).acceptModelChanged(u.value,p,f);this._onDidChangeNotebookDocument.fire(E)}$acceptDirtyStateChanged(R,u){this._notebooksAndEditors.getNotebookDocument(M.URI.revive(R)).acceptDirty(u)}$acceptModelSaved(R){const u=this._notebooksAndEditors.getNotebookDocument(M.URI.revive(R));this._onDidSaveNotebookDocument.fire(u.apiNotebook)}}e.ExtHostNotebookDocuments=d}),define(ye[20],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostRpcService=e.IExtHostRpcService=void 0,e.IExtHostRpcService=(0,w.createDecorator)("IExtHostRpcService");class M{constructor(A){this.getProxy=A.getProxy.bind(A),this.set=A.set.bind(A),this.dispose=A.dispose.bind(A),this.assertRegistered=A.assertRegistered.bind(A),this.drain=A.drain.bind(A)}}e.ExtHostRpcService=M}),define(ye[263],Ce([1,0,23,4]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionSecrets=void 0;class d{#e;constructor(R,u){this._onDidChange=new M.Emitter,this.onDidChange=this._onDidChange.event,this._id=w.ExtensionIdentifier.toKey(R.identifier),this.#e=u,this.#e.onDidChangePassword(p=>{p.extensionId===this._id&&this._onDidChange.fire({key:p.key})})}get(R){return this.#e.get(this._id,R)}store(R,u){return this.#e.store(this._id,R,u)}delete(R){return this.#e.delete(this._id,R)}}e.ExtensionSecrets=d}),define(ye[56],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.URITransformerService=e.IURITransformerService=void 0,e.IURITransformerService=(0,w.createDecorator)("IURITransformerService");class M{constructor(A){A?(this.transformIncoming=A.transformIncoming.bind(A),this.transformOutgoing=A.transformOutgoing.bind(A),this.transformOutgoingURI=A.transformOutgoingURI.bind(A),this.transformOutgoingScheme=A.transformOutgoingScheme.bind(A)):(this.transformIncoming=R=>R,this.transformOutgoing=R=>R,this.transformOutgoingURI=R=>R,this.transformOutgoingScheme=R=>R)}}e.URITransformerService=M}),define(ye[264],Ce([1,0,21]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeWebviewMessage=e.serializeWebviewMessage=void 0;class M{constructor(){this.buffers=[]}add(p){let f=this.buffers.indexOf(p);return f<0&&(f=this.buffers.length,this.buffers.push(p)),f}}function d(u,p){if(p.serializeBuffersForPostMessage){const f=new M,E=JSON.stringify(u,(s,g)=>{if(g instanceof ArrayBuffer)return{$$vscode_array_buffer_reference$$:!0,index:f.add(g)};if(ArrayBuffer.isView(g)){const C=A(g);if(C)return{$$vscode_array_buffer_reference$$:!0,index:f.add(g.buffer),view:{type:C,byteLength:g.byteLength,byteOffset:g.byteOffset}}}return g}),t=f.buffers.map(s=>{const g=new Uint8Array(s);return w.VSBuffer.wrap(g)});return{message:E,buffers:t}}else return{message:JSON.stringify(u),buffers:[]}}e.serializeWebviewMessage=d;function A(u){switch(u.constructor.name){case"Int8Array":return 1;case"Uint8Array":return 2;case"Uint8ClampedArray":return 3;case"Int16Array":return 4;case"Uint16Array":return 5;case"Int32Array":return 6;case"Uint32Array":return 7;case"Float32Array":return 8;case"Float64Array":return 9;case"BigInt64Array":return 10;case"BigUint64Array":return 11}}function R(u,p){const f=p.map(t=>{const s=new ArrayBuffer(t.byteLength);return new Uint8Array(s).set(t.buffer),s}),y=p.length?(t,s)=>{if(s&&typeof s=="object"&&s.$$vscode_array_buffer_reference$$){const g=s,{index:C}=g,r=f[C];if(g.view)switch(g.view.type){case 1:return new Int8Array(r,g.view.byteOffset,g.view.byteLength/Int8Array.BYTES_PER_ELEMENT);case 2:return new Uint8Array(r,g.view.byteOffset,g.view.byteLength/Uint8Array.BYTES_PER_ELEMENT);case 3:return new Uint8ClampedArray(r,g.view.byteOffset,g.view.byteLength/Uint8ClampedArray.BYTES_PER_ELEMENT);case 4:return new Int16Array(r,g.view.byteOffset,g.view.byteLength/Int16Array.BYTES_PER_ELEMENT);case 5:return new Uint16Array(r,g.view.byteOffset,g.view.byteLength/Uint16Array.BYTES_PER_ELEMENT);case 6:return new Int32Array(r,g.view.byteOffset,g.view.byteLength/Int32Array.BYTES_PER_ELEMENT);case 7:return new Uint32Array(r,g.view.byteOffset,g.view.byteLength/Uint32Array.BYTES_PER_ELEMENT);case 8:return new Float32Array(r,g.view.byteOffset,g.view.byteLength/Float32Array.BYTES_PER_ELEMENT);case 9:return new Float64Array(r,g.view.byteOffset,g.view.byteLength/Float64Array.BYTES_PER_ELEMENT);case 10:return new BigInt64Array(r,g.view.byteOffset,g.view.byteLength/BigInt64Array.BYTES_PER_ELEMENT);case 11:return new BigUint64Array(r,g.view.byteOffset,g.view.byteLength/BigUint64Array.BYTES_PER_ELEMENT);default:throw new Error("Unknown array buffer view type")}return r}return s}:void 0;return{message:JSON.parse(u,y),arrayBuffers:f}}e.deserializeWebviewMessage=R}),define(ye[265],Ce([1,0,266,393,394,75,2,395]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectProxyResolver=void 0;const p=!1;function f(o,b,P,T,n,a){const l=a.environment.useHostProxy,i=typeof l=="boolean"?l:!a.remote.isRemote,c={resolveProxy:k=>o.resolveProxy(k),lookupProxyAuthorization:C.bind(void 0,T,n,b,{},a.remote.isRemote),getProxyURL:()=>b.getConfiguration("http").get("proxy"),getProxySupport:()=>b.getConfiguration("http").get("proxySupport")||"off",getSystemCertificatesV1:()=>E(b),getSystemCertificatesV2:()=>t(b),log:(k,m,...v)=>{switch(k){case u.LogLevel.Trace:T.trace(m,...v);break;case u.LogLevel.Debug:T.debug(m,...v);break;case u.LogLevel.Info:T.info(m,...v);break;case u.LogLevel.Warning:T.warn(m,...v);break;case u.LogLevel.Error:T.error(m,...v);break;case u.LogLevel.Critical:T.error(m,...v);break;case u.LogLevel.Off:break;default:D(k,m,v);break}function D(L,O,...H){T.error("Unknown log level",L),T.error(O,...H)}},getLogLevel:()=>T.getLevel(),proxyResolveTelemetry:()=>{},useHostProxy:i,addCertificates:[],env:process.env},_=(0,u.createProxyResolver)(c),S=y(c,_);return g(P,S)}e.connectProxyResolver=f;function y(o,b){return{http:Object.assign(w,(0,u.createHttpPatch)(o,w,b)),https:Object.assign(M,(0,u.createHttpPatch)(o,M,b)),net:Object.assign(A,(0,u.createNetPatch)(o,A)),tls:Object.assign(d,(0,u.createTlsPatch)(o,d))}}function E(o){const b=o.getConfiguration("http");return!b.get("experimental.systemCertificatesV2",p)&&!!b.get("systemCertificates")}function t(o){const b=o.getConfiguration("http");return!!b.get("experimental.systemCertificatesV2",p)&&!!b.get("systemCertificates")}const s=new Map;function g(o,b){return o.getExtensionPathIndex().then(P=>{const T=globalThis._VSCODE_NODE_MODULES.module,n=T._load;T._load=function(l,i,c){if(l==="net")return b.net;if(l==="tls")return b.tls;if(l!=="http"&&l!=="https")return n.apply(this,arguments);const _=P.findSubstr(R.URI.file(i.filename));let S=s.get(_);if(S||s.set(_,S={}),!S[l]){const k=b[l];S[l]={...k}}return S[l]}})}async function C(o,b,P,T,n,a,l,i){const c=T[a];l&&(T[a]=l),o.trace("ProxyResolver#lookupProxyAuthorization callback",`proxyURL:${a}`,`proxyAuthenticate:${l}`,`proxyAuthenticateCache:${c}`);const _=l||c,S=Array.isArray(_)?_:typeof _=="string"?[_]:[];if(h(b,S,n),S.some(k=>/^(Negotiate|Kerberos)( |$)/i.test(k))&&!i.kerberosRequested)try{i.kerberosRequested=!0;const k=await new Promise((O,H)=>{ge(["kerberos"],O,H)}),m=new URL(a),v=P.getConfiguration("http").get("proxyKerberosServicePrincipal")||(process.platform==="win32"?`HTTP/${m.hostname}`:`HTTP@${m.hostname}`);return o.debug("ProxyResolver#lookupProxyAuthorization Kerberos authentication lookup",`proxyURL:${a}`,`spn:${v}`),"Negotiate "+await(await k.initializeClient(v)).step("")}catch(k){o.error("ProxyResolver#lookupProxyAuthorization Kerberos authentication failed",k)}}let r=!1;function h(o,b,P){r||!b.length||(r=!0,o.$publicLog2("proxyAuthenticationRequest",{authenticationType:b.map(T=>T.split(" ")[0]).join(","),extensionHostType:P?"remote":"local"}))}}),define(ye[267],Ce([1,0,128]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createURITransformer=void 0;function M(A){return{transformIncoming:R=>R.scheme==="vscode-remote"?{scheme:"file",path:R.path,query:R.query,fragment:R.fragment}:R.scheme==="file"?{scheme:"vscode-local",path:R.path,query:R.query,fragment:R.fragment}:R,transformOutgoing:R=>R.scheme==="file"?{scheme:"vscode-remote",authority:A,path:R.path,query:R.query,fragment:R.fragment}:R.scheme==="vscode-local"?{scheme:"file",path:R.path,query:R.query,fragment:R.fragment}:R,transformOutgoingScheme:R=>R==="file"?"vscode-remote":R==="vscode-local"?"file":R}}function d(A){return new w.URITransformer(M(A))}e.createURITransformer=d}),define(ye[139],Ce([1,0,221,18,2,5,6,38,30,15,47,186,43]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createEditorOpenError=e.isEditorOpenError=e.isTextEditorViewState=e.EditorsOrder=e.pathsToEditors=e.CloseDirection=e.EditorResourceAccessor=e.preventEditorClose=e.EditorCloseMethod=e.SideBySideEditor=e.GroupModelChangeKind=e.EditorCloseContext=e.isEditorIdentifier=e.isEditorInputWithOptionsAndGroup=e.isEditorInputWithOptions=e.createTooLargeFileError=e.isDiffEditorInput=e.isSideBySideEditorInput=e.isEditorInput=e.AbstractEditorInput=e.EditorInputCapabilities=e.SaveSourceRegistry=e.SaveReason=e.Verbosity=e.isResourceMergeEditorInput=e.isUntitledResourceEditorInput=e.isResourceSideBySideEditorInput=e.isResourceDiffEditorInput=e.isResourceEditorInput=e.findViewStateForEditor=e.isEditorPaneWithSelection=e.EditorPaneSelectionCompareResult=e.EditorPaneSelectionChangeReason=e.BINARY_DIFF_EDITOR_ID=e.TEXT_DIFF_EDITOR_ID=e.SIDE_BY_SIDE_EDITOR_ID=e.DEFAULT_EDITOR_ASSOCIATION=e.EditorExtensions=void 0,e.EditorExtensions={EditorPane:"workbench.contributions.editors",EditorFactory:"workbench.contributions.editor.inputFactories"},e.DEFAULT_EDITOR_ASSOCIATION={id:"default",displayName:(0,w.localize)(0,null),providerDisplayName:(0,w.localize)(1,null)},e.SIDE_BY_SIDE_EDITOR_ID="workbench.editor.sidebysideEditor",e.TEXT_DIFF_EDITOR_ID="workbench.editors.textDiffEditor",e.BINARY_DIFF_EDITOR_ID="workbench.editors.binaryResourceDiffEditor";var s;(function(ce){ce[ce.PROGRAMMATIC=1]="PROGRAMMATIC",ce[ce.USER=2]="USER",ce[ce.EDIT=3]="EDIT",ce[ce.NAVIGATION=4]="NAVIGATION",ce[ce.JUMP=5]="JUMP"})(s||(e.EditorPaneSelectionChangeReason=s={}));var g;(function(ce){ce[ce.IDENTICAL=1]="IDENTICAL",ce[ce.SIMILAR=2]="SIMILAR",ce[ce.DIFFERENT=3]="DIFFERENT"})(g||(e.EditorPaneSelectionCompareResult=g={}));function C(ce){const se=ce;return!!se&&typeof se.getSelection=="function"&&!!se.onDidChangeSelection}e.isEditorPaneWithSelection=C;function r(ce,se,te){for(const B of te.visibleEditorPanes)if(B.group.id===se&&ce.matches(B.input))return B.getViewState()}e.findViewStateForEditor=r;function h(ce){if(_(ce))return!1;const se=ce;return d.URI.isUri(se?.resource)}e.isResourceEditorInput=h;function o(ce){if(_(ce))return!1;const se=ce;return se?.original!==void 0&&se.modified!==void 0}e.isResourceDiffEditorInput=o;function b(ce){if(_(ce)||o(ce))return!1;const se=ce;return se?.primary!==void 0&&se.secondary!==void 0}e.isResourceSideBySideEditorInput=b;function P(ce){if(_(ce))return!1;const se=ce;return se?se.resource===void 0||se.resource.scheme===f.Schemas.untitled||se.forceUntitled===!0:!1}e.isUntitledResourceEditorInput=P;function T(ce){if(_(ce))return!1;const se=ce;return d.URI.isUri(se?.base?.resource)&&d.URI.isUri(se?.input1?.resource)&&d.URI.isUri(se?.input2?.resource)&&d.URI.isUri(se?.result?.resource)}e.isResourceMergeEditorInput=T;var n;(function(ce){ce[ce.SHORT=0]="SHORT",ce[ce.MEDIUM=1]="MEDIUM",ce[ce.LONG=2]="LONG"})(n||(e.Verbosity=n={}));var a;(function(ce){ce[ce.EXPLICIT=1]="EXPLICIT",ce[ce.AUTO=2]="AUTO",ce[ce.FOCUS_CHANGE=3]="FOCUS_CHANGE",ce[ce.WINDOW_CHANGE=4]="WINDOW_CHANGE"})(a||(e.SaveReason=a={}));class l{constructor(){this.mapIdToSaveSource=new Map}registerSource(se,te){let B=this.mapIdToSaveSource.get(se);return B||(B={source:se,label:te},this.mapIdToSaveSource.set(se,B)),B.source}getSourceLabel(se){return this.mapIdToSaveSource.get(se)?.label??se}}e.SaveSourceRegistry=new l;var i;(function(ce){ce[ce.None=0]="None",ce[ce.Readonly=2]="Readonly",ce[ce.Untitled=4]="Untitled",ce[ce.Singleton=8]="Singleton",ce[ce.RequiresTrust=16]="RequiresTrust",ce[ce.CanSplitInGroup=32]="CanSplitInGroup",ce[ce.ForceDescription=64]="ForceDescription",ce[ce.CanDropIntoEditor=128]="CanDropIntoEditor",ce[ce.MultipleEditors=256]="MultipleEditors",ce[ce.Scratchpad=512]="Scratchpad"})(i||(e.EditorInputCapabilities=i={}));class c extends A.Disposable{}e.AbstractEditorInput=c;function _(ce){return ce instanceof c}e.isEditorInput=_;function S(ce){const se=ce;return d.URI.isUri(se?.preferredResource)}function k(ce){const se=ce;return _(se?.primary)&&_(se?.secondary)}e.isSideBySideEditorInput=k;function m(ce){const se=ce;return _(se?.modified)&&_(se?.original)}e.isDiffEditorInput=m;function v(ce,se,te,B,G){return ve(B,[(0,E.toAction)({id:"workbench.action.openLargeFile",label:(0,w.localize)(2,null),run:()=>{const fe={...te,limits:{size:Number.MAX_VALUE}};ce.openEditor(se,fe)}}),(0,E.toAction)({id:"workbench.action.configureEditorLargeFileConfirmation",label:(0,w.localize)(3,null),run:()=>G.openUserSettings({query:"workbench.editorLargeFileConfirmation"})})],{forceMessage:!0,forceSeverity:t.default.Warning})}e.createTooLargeFileError=v;function D(ce){return _(ce?.editor)}e.isEditorInputWithOptions=D;function L(ce){const se=ce;return D(ce)&&se?.group!==void 0}e.isEditorInputWithOptionsAndGroup=L;function O(ce){const se=ce;return typeof se?.groupId=="number"&&_(se.editor)}e.isEditorIdentifier=O;var H;(function(ce){ce[ce.UNKNOWN=0]="UNKNOWN",ce[ce.REPLACE=1]="REPLACE",ce[ce.MOVE=2]="MOVE",ce[ce.UNPIN=3]="UNPIN"})(H||(e.EditorCloseContext=H={}));var N;(function(ce){ce[ce.GROUP_ACTIVE=0]="GROUP_ACTIVE",ce[ce.GROUP_INDEX=1]="GROUP_INDEX",ce[ce.GROUP_LOCKED=2]="GROUP_LOCKED",ce[ce.EDITOR_OPEN=3]="EDITOR_OPEN",ce[ce.EDITOR_CLOSE=4]="EDITOR_CLOSE",ce[ce.EDITOR_MOVE=5]="EDITOR_MOVE",ce[ce.EDITOR_ACTIVE=6]="EDITOR_ACTIVE",ce[ce.EDITOR_LABEL=7]="EDITOR_LABEL",ce[ce.EDITOR_CAPABILITIES=8]="EDITOR_CAPABILITIES",ce[ce.EDITOR_PIN=9]="EDITOR_PIN",ce[ce.EDITOR_STICKY=10]="EDITOR_STICKY",ce[ce.EDITOR_DIRTY=11]="EDITOR_DIRTY",ce[ce.EDITOR_WILL_DISPOSE=12]="EDITOR_WILL_DISPOSE"})(N||(e.GroupModelChangeKind=N={}));var $;(function(ce){ce[ce.PRIMARY=1]="PRIMARY",ce[ce.SECONDARY=2]="SECONDARY",ce[ce.BOTH=3]="BOTH",ce[ce.ANY=4]="ANY"})($||(e.SideBySideEditor=$={}));class U{getOriginalUri(se,te){if(!se)return;if(T(se))return e.EditorResourceAccessor.getOriginalUri(se.result,te);if(te?.supportSideBySide){const{primary:G,secondary:fe}=this.getSideEditors(se);if(G&&fe){if(te?.supportSideBySide===$.BOTH)return{primary:this.getOriginalUri(G,{filterByScheme:te.filterByScheme}),secondary:this.getOriginalUri(fe,{filterByScheme:te.filterByScheme})};if(te?.supportSideBySide===$.ANY)return this.getOriginalUri(G,{filterByScheme:te.filterByScheme})??this.getOriginalUri(fe,{filterByScheme:te.filterByScheme});se=te.supportSideBySide===$.PRIMARY?G:fe}}if(o(se)||b(se)||T(se))return;const B=S(se)?se.preferredResource:se.resource;return!B||!te||!te.filterByScheme?B:this.filterUri(B,te.filterByScheme)}getSideEditors(se){return k(se)||b(se)?{primary:se.primary,secondary:se.secondary}:m(se)||o(se)?{primary:se.modified,secondary:se.original}:{primary:void 0,secondary:void 0}}getCanonicalUri(se,te){if(!se)return;if(T(se))return e.EditorResourceAccessor.getCanonicalUri(se.result,te);if(te?.supportSideBySide){const{primary:G,secondary:fe}=this.getSideEditors(se);if(G&&fe){if(te?.supportSideBySide===$.BOTH)return{primary:this.getCanonicalUri(G,{filterByScheme:te.filterByScheme}),secondary:this.getCanonicalUri(fe,{filterByScheme:te.filterByScheme})};if(te?.supportSideBySide===$.ANY)return this.getCanonicalUri(G,{filterByScheme:te.filterByScheme})??this.getCanonicalUri(fe,{filterByScheme:te.filterByScheme});se=te.supportSideBySide===$.PRIMARY?G:fe}}if(o(se)||b(se)||T(se))return;const B=se.resource;return!B||!te||!te.filterByScheme?B:this.filterUri(B,te.filterByScheme)}filterUri(se,te){if(Array.isArray(te)){if(te.some(B=>se.scheme===B))return se}else if(te===se.scheme)return se}}var x;(function(ce){ce[ce.UNKNOWN=0]="UNKNOWN",ce[ce.KEYBOARD=1]="KEYBOARD",ce[ce.MOUSE=2]="MOUSE"})(x||(e.EditorCloseMethod=x={}));function X(ce,se,te,B){if(!ce.isSticky(se))return!1;switch(B.preventPinnedEditorClose){case"keyboardAndMouse":return te===x.MOUSE||te===x.KEYBOARD;case"mouse":return te===x.MOUSE;case"keyboard":return te===x.KEYBOARD}return!1}e.preventEditorClose=X,e.EditorResourceAccessor=new U;var K;(function(ce){ce[ce.LEFT=0]="LEFT",ce[ce.RIGHT=1]="RIGHT"})(K||(e.CloseDirection=K={}));class pe{constructor(){this.editorSerializerConstructors=new Map,this.editorSerializerInstances=new Map}start(se){const te=this.instantiationService=se.get(R.IInstantiationService);for(const[B,G]of this.editorSerializerConstructors)this.createEditorSerializer(B,G,te);this.editorSerializerConstructors.clear()}createEditorSerializer(se,te,B){const G=B.createInstance(te);this.editorSerializerInstances.set(se,G)}registerFileEditorFactory(se){if(this.fileEditorFactory)throw new Error("Can only register one file editor factory.");this.fileEditorFactory=se}getFileEditorFactory(){return(0,M.assertIsDefined)(this.fileEditorFactory)}registerEditorSerializer(se,te){if(this.editorSerializerConstructors.has(se)||this.editorSerializerInstances.has(se))throw new Error(`A editor serializer with type ID '${se}' was already registered.`);return this.instantiationService?this.createEditorSerializer(se,te,this.instantiationService):this.editorSerializerConstructors.set(se,te),(0,A.toDisposable)(()=>{this.editorSerializerConstructors.delete(se),this.editorSerializerInstances.delete(se)})}getEditorSerializer(se){return this.editorSerializerInstances.get(typeof se=="string"?se:se.typeId)}}u.Registry.add(e.EditorExtensions.EditorFactory,new pe);async function le(ce,se,te){return!ce||!ce.length?[]:await Promise.all(ce.map(async B=>{const G=d.URI.revive(B.fileUri);if(!G){te.info("Cannot resolve the path because it is not valid.",B);return}if(!await se.canHandleResource(G)){te.info("Cannot resolve the path because it cannot be handled",B);return}let _e=B.exists,Ee=B.type;if(typeof _e!="boolean"||typeof Ee!="number")try{Ee=(await se.stat(G)).isDirectory?p.FileType.Directory:p.FileType.Unknown,_e=!0}catch(J){te.error(J),_e=!1}if(!_e&&B.openOnlyIfExists){te.info("Cannot resolve the path because it does not exist",B);return}if(Ee===p.FileType.Directory){te.info("Cannot resolve the path because it is a directory",B);return}const F={...B.options,pinned:!0};return _e?{resource:G,options:F}:{resource:G,options:F,forceUntitled:!0}}))}e.pathsToEditors=le;var re;(function(ce){ce[ce.MOST_RECENTLY_ACTIVE=0]="MOST_RECENTLY_ACTIVE",ce[ce.SEQUENTIAL=1]="SEQUENTIAL"})(re||(e.EditorsOrder=re={}));function q(ce){const se=ce;if(!se)return!1;const te=se;if(te.modified)return q(te.modified);const B=se;return!!(B.contributionsState&&B.viewState&&Array.isArray(B.cursorState))}e.isTextEditorViewState=q;function oe(ce){return(0,y.isErrorWithActions)(ce)}e.isEditorOpenError=oe;function ve(ce,se,te){const B=(0,y.createErrorWithActions)(ce,se);return B.forceMessage=te?.forceMessage,B.forceSeverity=te?.forceSeverity,B.allowDialog=te?.allowDialog,B}e.createEditorOpenError=ve}),define(ye[268],Ce([1,0,4,222,6,5,28,38,19,41,24,74,257]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoTreeViewError=e.ResolvableTreeItem=e.TreeItemCollapsibleState=e.ViewVisibilityState=e.IViewDescriptorService=e.IViewsService=e.ViewContentGroups=e.ViewContainerLocationToString=e.ViewContainerLocations=e.ViewContainerLocation=e.Extensions=e.defaultViewIcon=void 0,e.defaultViewIcon=(0,t.registerIcon)("default-view-icon",E.Codicon.window,(0,M.localize)(0,null));var s;(function(l){l.ViewContainersRegistry="workbench.registry.view.containers",l.ViewsRegistry="workbench.registry.view"})(s||(e.Extensions=s={}));var g;(function(l){l[l.Sidebar=0]="Sidebar",l[l.Panel=1]="Panel",l[l.AuxiliaryBar=2]="AuxiliaryBar",l[l.Dialog=3]="Dialog"})(g||(e.ViewContainerLocation=g={})),e.ViewContainerLocations=[0,1,2];function C(l){switch(l){case 0:return"sidebar";case 1:return"panel";case 2:return"auxiliarybar"}return""}e.ViewContainerLocationToString=C;class r extends A.Disposable{constructor(){super(...arguments),this._onDidRegister=this._register(new w.Emitter),this.onDidRegister=this._onDidRegister.event,this._onDidDeregister=this._register(new w.Emitter),this.onDidDeregister=this._onDidDeregister.event,this.viewContainers=new Map,this.defaultViewContainers=[]}get all(){return(0,p.flatten)([...this.viewContainers.values()])}registerViewContainer(i,c,_){const S=this.get(i.id);if(S)return S;const k=i;return k.openCommandActionDescriptor=_?.doNotRegisterOpenCommand?void 0:k.openCommandActionDescriptor??{id:k.id},(0,R.getOrSet)(this.viewContainers,c,[]).push(k),_?.isDefault&&this.defaultViewContainers.push(k),this._onDidRegister.fire({viewContainer:k,viewContainerLocation:c}),k}deregisterViewContainer(i){for(const c of this.viewContainers.keys()){const _=this.viewContainers.get(c),S=_?.indexOf(i);if(S!==-1){_?.splice(S,1),_.length===0&&this.viewContainers.delete(c),this._onDidDeregister.fire({viewContainer:i,viewContainerLocation:c});return}}}get(i){return this.all.filter(c=>c.id===i)[0]}getViewContainers(i){return[...this.viewContainers.get(i)||[]]}getViewContainerLocation(i){return[...this.viewContainers.keys()].filter(c=>this.getViewContainers(c).filter(_=>_?.id===i.id).length>0)[0]}getDefaultViewContainer(i){return this.defaultViewContainers.find(c=>this.getViewContainerLocation(c)===i)}}u.Registry.add(s.ViewContainersRegistry,new r);var h;(function(l){l.Open="2_open",l.Debug="4_debug",l.SCM="5_scm",l.More="9_more"})(h||(e.ViewContentGroups=h={}));function o(l,i){const c=l.group??h.More,_=i.group??h.More;return c!==_?c.localeCompare(_):(l.order??5)-(i.order??5)}class b extends A.Disposable{constructor(){super(...arguments),this._onViewsRegistered=this._register(new w.Emitter),this.onViewsRegistered=this._onViewsRegistered.event,this._onViewsDeregistered=this._register(new w.Emitter),this.onViewsDeregistered=this._onViewsDeregistered.event,this._onDidChangeContainer=this._register(new w.Emitter),this.onDidChangeContainer=this._onDidChangeContainer.event,this._onDidChangeViewWelcomeContent=this._register(new w.Emitter),this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event,this._viewContainers=[],this._views=new Map,this._viewWelcomeContents=new f.SetMap}registerViews(i,c){this.registerViews2([{views:i,viewContainer:c}])}registerViews2(i){i.forEach(({views:c,viewContainer:_})=>this.addViews(c,_)),this._onViewsRegistered.fire(i)}deregisterViews(i,c){const _=this.removeViews(i,c);_.length&&this._onViewsDeregistered.fire({views:_,viewContainer:c})}moveViews(i,c){for(const _ of this._views.keys())if(_!==c){const S=this.removeViews(i,_);S.length&&(this.addViews(S,c),this._onDidChangeContainer.fire({views:S,from:_,to:c}))}}getViews(i){return this._views.get(i)||[]}getView(i){for(const c of this._viewContainers){const _=(this._views.get(c)||[]).filter(S=>S.id===i)[0];if(_)return _}return null}getViewContainer(i){for(const c of this._viewContainers)if((this._views.get(c)||[]).filter(S=>S.id===i)[0])return c;return null}registerViewWelcomeContent(i,c){return this._viewWelcomeContents.add(i,c),this._onDidChangeViewWelcomeContent.fire(i),(0,A.toDisposable)(()=>{this._viewWelcomeContents.delete(i,c),this._onDidChangeViewWelcomeContent.fire(i)})}registerViewWelcomeContent2(i,c){const _=new Map;for(const[S,k]of c)this._viewWelcomeContents.add(i,k),_.set(S,(0,A.toDisposable)(()=>{this._viewWelcomeContents.delete(i,k),this._onDidChangeViewWelcomeContent.fire(i)}));return this._onDidChangeViewWelcomeContent.fire(i),_}getViewWelcomeContent(i){const c=[];return this._viewWelcomeContents.forEach(i,_=>c.push(_)),c.sort(o)}addViews(i,c){let _=this._views.get(c);_||(_=[],this._views.set(c,_),this._viewContainers.push(c));for(const S of i){if(this.getView(S.id)!==null)throw new Error((0,M.localize)(1,null,S.id));_.push(S)}}removeViews(i,c){const _=this._views.get(c);if(!_)return[];const S=[],k=[];for(const m of _)i.includes(m)?S.push(m):k.push(m);return S.length&&(k.length?this._views.set(c,k):(this._views.delete(c),this._viewContainers.splice(this._viewContainers.indexOf(c),1))),S}}u.Registry.add(s.ViewsRegistry,new b),e.IViewsService=(0,d.createDecorator)("viewsService"),e.IViewDescriptorService=(0,d.createDecorator)("viewDescriptorService");var P;(function(l){l[l.Default=0]="Default",l[l.Expand=1]="Expand"})(P||(e.ViewVisibilityState=P={}));var T;(function(l){l[l.None=0]="None",l[l.Collapsed=1]="Collapsed",l[l.Expanded=2]="Expanded"})(T||(e.TreeItemCollapsibleState=T={}));class n{constructor(i,c){this.resolved=!1,this._hasResolve=!1,(0,y.mixin)(this,i),this._hasResolve=!!c,this.resolve=async _=>{if(c&&!this.resolved){const S=await c(_);S&&(this.tooltip=this.tooltip??S.tooltip,this.command=this.command??S.command)}_.isCancellationRequested||(this.resolved=!0)}}get hasResolve(){return this._hasResolve}resetResolve(){this.resolved=!1}asTreeItem(){return{handle:this.handle,parentHandle:this.parentHandle,collapsibleState:this.collapsibleState,label:this.label,description:this.description,icon:this.icon,iconDark:this.iconDark,themeIcon:this.themeIcon,resourceUri:this.resourceUri,tooltip:this.tooltip,contextValue:this.contextValue,command:this.command,children:this.children,accessibilityInformation:this.accessibilityInformation}}}e.ResolvableTreeItem=n;class a extends Error{constructor(i){super((0,M.localize)(2,null,i)),this.name="NoTreeViewError"}static is(i){return i.name==="NoTreeViewError"}}e.NoTreeViewError=a}),define(ye[269],Ce([1,0,223,45,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BreakpointWidgetContext=e.IDebugService=e.DebuggerString=e.DebugConfigurationProviderTriggerKind=e.DEBUG_MEMORY_SCHEME=e.MemoryRangeType=e.getStateLabel=e.State=e.INTERNAL_CONSOLE_OPTIONS_SCHEMA=e.DEBUG_SCHEME=e.BREAKPOINT_EDITOR_CONTRIBUTION_ID=e.EDITOR_CONTRIBUTION_ID=e.debuggerDisabledMessage=e.CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE=e.CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST=e.CONTEXT_DISASSEMBLY_VIEW_FOCUS=e.CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED=e.CONTEXT_MULTI_SESSION_DEBUG=e.CONTEXT_MULTI_SESSION_REPL=e.CONTEXT_EXCEPTION_WIDGET_VISIBLE=e.CONTEXT_VARIABLE_IS_READONLY=e.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=e.CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED=e.CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED=e.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=e.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=e.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=e.CONTEXT_SET_EXPRESSION_SUPPORTED=e.CONTEXT_SET_VARIABLE_SUPPORTED=e.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=e.CONTEXT_DEBUG_EXTENSION_AVAILABLE=e.CONTEXT_DEBUGGERS_AVAILABLE=e.CONTEXT_BREAKPOINTS_EXIST=e.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=e.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=e.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=e.CONTEXT_RESTART_FRAME_SUPPORTED=e.CONTEXT_STEP_BACK_SUPPORTED=e.CONTEXT_FOCUSED_SESSION_IS_ATTACH=e.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=e.CONTEXT_LOADED_SCRIPTS_SUPPORTED=e.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=e.CONTEXT_BREAKPOINT_ITEM_TYPE=e.CONTEXT_CAN_VIEW_MEMORY=e.CONTEXT_WATCH_ITEM_TYPE=e.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=e.CONTEXT_CALLSTACK_ITEM_STOPPED=e.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=e.CONTEXT_CALLSTACK_ITEM_TYPE=e.CONTEXT_BREAKPOINT_INPUT_FOCUSED=e.CONTEXT_EXPRESSION_SELECTED=e.CONTEXT_VARIABLES_FOCUSED=e.CONTEXT_WATCH_EXPRESSIONS_EXIST=e.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=e.CONTEXT_BREAKPOINTS_FOCUSED=e.CONTEXT_IN_BREAKPOINT_WIDGET=e.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=e.CONTEXT_IN_DEBUG_REPL=e.CONTEXT_IN_DEBUG_MODE=e.CONTEXT_HAS_DEBUGGED=e.CONTEXT_DEBUG_UX=e.CONTEXT_DEBUG_UX_KEY=e.CONTEXT_DEBUG_STATE=e.CONTEXT_DEBUG_CONFIGURATION_TYPE=e.CONTEXT_DEBUG_TYPE=e.REPL_VIEW_ID=e.DEBUG_PANEL_ID=e.DISASSEMBLY_VIEW_ID=e.BREAKPOINTS_VIEW_ID=e.LOADED_SCRIPTS_VIEW_ID=e.CALLSTACK_VIEW_ID=e.WATCH_VIEW_ID=e.VARIABLES_VIEW_ID=e.VIEWLET_ID=void 0,e.VIEWLET_ID="workbench.view.debug",e.VARIABLES_VIEW_ID="workbench.debug.variablesView",e.WATCH_VIEW_ID="workbench.debug.watchExpressionsView",e.CALLSTACK_VIEW_ID="workbench.debug.callStackView",e.LOADED_SCRIPTS_VIEW_ID="workbench.debug.loadedScriptsView",e.BREAKPOINTS_VIEW_ID="workbench.debug.breakPointsView",e.DISASSEMBLY_VIEW_ID="workbench.debug.disassemblyView",e.DEBUG_PANEL_ID="workbench.panel.repl",e.REPL_VIEW_ID="workbench.panel.repl.view",e.CONTEXT_DEBUG_TYPE=new M.RawContextKey("debugType",void 0,{type:"string",description:w.localize(0,null)}),e.CONTEXT_DEBUG_CONFIGURATION_TYPE=new M.RawContextKey("debugConfigurationType",void 0,{type:"string",description:w.localize(1,null)}),e.CONTEXT_DEBUG_STATE=new M.RawContextKey("debugState","inactive",{type:"string",description:w.localize(2,null)}),e.CONTEXT_DEBUG_UX_KEY="debugUx",e.CONTEXT_DEBUG_UX=new M.RawContextKey(e.CONTEXT_DEBUG_UX_KEY,"default",{type:"string",description:w.localize(3,null)}),e.CONTEXT_HAS_DEBUGGED=new M.RawContextKey("hasDebugged",!1,{type:"boolean",description:w.localize(4,null)}),e.CONTEXT_IN_DEBUG_MODE=new M.RawContextKey("inDebugMode",!1,{type:"boolean",description:w.localize(5,null)}),e.CONTEXT_IN_DEBUG_REPL=new M.RawContextKey("inDebugRepl",!1,{type:"boolean",description:w.localize(6,null)}),e.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=new M.RawContextKey("breakpointWidgetVisible",!1,{type:"boolean",description:w.localize(7,null)}),e.CONTEXT_IN_BREAKPOINT_WIDGET=new M.RawContextKey("inBreakpointWidget",!1,{type:"boolean",description:w.localize(8,null)}),e.CONTEXT_BREAKPOINTS_FOCUSED=new M.RawContextKey("breakpointsFocused",!0,{type:"boolean",description:w.localize(9,null)}),e.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=new M.RawContextKey("watchExpressionsFocused",!0,{type:"boolean",description:w.localize(10,null)}),e.CONTEXT_WATCH_EXPRESSIONS_EXIST=new M.RawContextKey("watchExpressionsExist",!1,{type:"boolean",description:w.localize(11,null)}),e.CONTEXT_VARIABLES_FOCUSED=new M.RawContextKey("variablesFocused",!0,{type:"boolean",description:w.localize(12,null)}),e.CONTEXT_EXPRESSION_SELECTED=new M.RawContextKey("expressionSelected",!1,{type:"boolean",description:w.localize(13,null)}),e.CONTEXT_BREAKPOINT_INPUT_FOCUSED=new M.RawContextKey("breakpointInputFocused",!1,{type:"boolean",description:w.localize(14,null)}),e.CONTEXT_CALLSTACK_ITEM_TYPE=new M.RawContextKey("callStackItemType",void 0,{type:"string",description:w.localize(15,null)}),e.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=new M.RawContextKey("callStackSessionIsAttach",!1,{type:"boolean",description:w.localize(16,null)}),e.CONTEXT_CALLSTACK_ITEM_STOPPED=new M.RawContextKey("callStackItemStopped",!1,{type:"boolean",description:w.localize(17,null)}),e.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=new M.RawContextKey("callStackSessionHasOneThread",!1,{type:"boolean",description:w.localize(18,null)}),e.CONTEXT_WATCH_ITEM_TYPE=new M.RawContextKey("watchItemType",void 0,{type:"string",description:w.localize(19,null)}),e.CONTEXT_CAN_VIEW_MEMORY=new M.RawContextKey("canViewMemory",void 0,{type:"boolean",description:w.localize(20,null)}),e.CONTEXT_BREAKPOINT_ITEM_TYPE=new M.RawContextKey("breakpointItemType",void 0,{type:"string",description:w.localize(21,null)}),e.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=new M.RawContextKey("breakpointSupportsCondition",!1,{type:"boolean",description:w.localize(22,null)}),e.CONTEXT_LOADED_SCRIPTS_SUPPORTED=new M.RawContextKey("loadedScriptsSupported",!1,{type:"boolean",description:w.localize(23,null)}),e.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=new M.RawContextKey("loadedScriptsItemType",void 0,{type:"string",description:w.localize(24,null)}),e.CONTEXT_FOCUSED_SESSION_IS_ATTACH=new M.RawContextKey("focusedSessionIsAttach",!1,{type:"boolean",description:w.localize(25,null)}),e.CONTEXT_STEP_BACK_SUPPORTED=new M.RawContextKey("stepBackSupported",!1,{type:"boolean",description:w.localize(26,null)}),e.CONTEXT_RESTART_FRAME_SUPPORTED=new M.RawContextKey("restartFrameSupported",!1,{type:"boolean",description:w.localize(27,null)}),e.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=new M.RawContextKey("stackFrameSupportsRestart",!1,{type:"boolean",description:w.localize(28,null)}),e.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=new M.RawContextKey("jumpToCursorSupported",!1,{type:"boolean",description:w.localize(29,null)}),e.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=new M.RawContextKey("stepIntoTargetsSupported",!1,{type:"boolean",description:w.localize(30,null)}),e.CONTEXT_BREAKPOINTS_EXIST=new M.RawContextKey("breakpointsExist",!1,{type:"boolean",description:w.localize(31,null)}),e.CONTEXT_DEBUGGERS_AVAILABLE=new M.RawContextKey("debuggersAvailable",!1,{type:"boolean",description:w.localize(32,null)}),e.CONTEXT_DEBUG_EXTENSION_AVAILABLE=new M.RawContextKey("debugExtensionAvailable",!0,{type:"boolean",description:w.localize(33,null)}),e.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=new M.RawContextKey("debugProtocolVariableMenuContext",void 0,{type:"string",description:w.localize(34,null)}),e.CONTEXT_SET_VARIABLE_SUPPORTED=new M.RawContextKey("debugSetVariableSupported",!1,{type:"boolean",description:w.localize(35,null)}),e.CONTEXT_SET_EXPRESSION_SUPPORTED=new M.RawContextKey("debugSetExpressionSupported",!1,{type:"boolean",description:w.localize(36,null)}),e.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=new M.RawContextKey("breakWhenValueChangesSupported",!1,{type:"boolean",description:w.localize(37,null)}),e.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=new M.RawContextKey("breakWhenValueIsAccessedSupported",!1,{type:"boolean",description:w.localize(38,null)}),e.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=new M.RawContextKey("breakWhenValueIsReadSupported",!1,{type:"boolean",description:w.localize(39,null)}),e.CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED=new M.RawContextKey("terminateDebuggeeSupported",!1,{type:"boolean",description:w.localize(40,null)}),e.CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED=new M.RawContextKey("suspendDebuggeeSupported",!1,{type:"boolean",description:w.localize(41,null)}),e.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=new M.RawContextKey("variableEvaluateNamePresent",!1,{type:"boolean",description:w.localize(42,null)}),e.CONTEXT_VARIABLE_IS_READONLY=new M.RawContextKey("variableIsReadonly",!1,{type:"boolean",description:w.localize(43,null)}),e.CONTEXT_EXCEPTION_WIDGET_VISIBLE=new M.RawContextKey("exceptionWidgetVisible",!1,{type:"boolean",description:w.localize(44,null)}),e.CONTEXT_MULTI_SESSION_REPL=new M.RawContextKey("multiSessionRepl",!1,{type:"boolean",description:w.localize(45,null)}),e.CONTEXT_MULTI_SESSION_DEBUG=new M.RawContextKey("multiSessionDebug",!1,{type:"boolean",description:w.localize(46,null)}),e.CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED=new M.RawContextKey("disassembleRequestSupported",!1,{type:"boolean",description:w.localize(47,null)}),e.CONTEXT_DISASSEMBLY_VIEW_FOCUS=new M.RawContextKey("disassemblyViewFocus",!1,{type:"boolean",description:w.localize(48,null)}),e.CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST=new M.RawContextKey("languageSupportsDisassembleRequest",!1,{type:"boolean",description:w.localize(49,null)}),e.CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE=new M.RawContextKey("focusedStackFrameHasInstructionReference",!1,{type:"boolean",description:w.localize(50,null)});const A=t=>w.localize(51,null,t);e.debuggerDisabledMessage=A,e.EDITOR_CONTRIBUTION_ID="editor.contrib.debug",e.BREAKPOINT_EDITOR_CONTRIBUTION_ID="editor.contrib.breakpoint",e.DEBUG_SCHEME="debug",e.INTERNAL_CONSOLE_OPTIONS_SCHEMA={enum:["neverOpen","openOnSessionStart","openOnFirstSessionStart"],default:"openOnFirstSessionStart",description:w.localize(52,null)};var R;(function(t){t[t.Inactive=0]="Inactive",t[t.Initializing=1]="Initializing",t[t.Stopped=2]="Stopped",t[t.Running=3]="Running"})(R||(e.State=R={}));function u(t){switch(t){case 1:return"initializing";case 2:return"stopped";case 3:return"running";default:return"inactive"}}e.getStateLabel=u;var p;(function(t){t[t.Valid=0]="Valid",t[t.Unreadable=1]="Unreadable",t[t.Error=2]="Error"})(p||(e.MemoryRangeType=p={})),e.DEBUG_MEMORY_SCHEME="vscode-debug-memory";var f;(function(t){t[t.Initial=1]="Initial",t[t.Dynamic=2]="Dynamic"})(f||(e.DebugConfigurationProviderTriggerKind=f={}));var y;(function(t){t.UnverifiedBreakpoints="unverifiedBreakpoints"})(y||(e.DebuggerString=y={})),e.IDebugService=(0,d.createDecorator)("debugService");var E;(function(t){t[t.CONDITION=0]="CONDITION",t[t.HIT_COUNT=1]="HIT_COUNT",t[t.LOG_MESSAGE=2]="LOG_MESSAGE"})(E||(e.BreakpointWidgetContext=E={}))}),define(ye[105],Ce([1,0,21,34,51,97,15,17,14,45]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MOVE_CURSOR_1_LINE_COMMAND=e.compressOutputItemStreams=e.isTextStreamMime=e.NotebookWorkingCopyTypeIdentifier=e.CellStatusbarAlignment=e.NotebookSetting=e.notebookDocumentFilterMatch=e.isDocumentExcludePattern=e.NotebookEditorPriority=e.NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY=e.NOTEBOOK_EDITOR_CURSOR_BOUNDARY=e.diff=e.MimeTypeDisplayOrder=e.CellUri=e.CellEditType=e.SelectionStateType=e.NotebookCellsChangeType=e.RendererMessagingSpec=e.NotebookRendererMatch=e.NotebookExecutionState=e.NotebookCellExecutionState=e.NotebookRunState=e.RENDERER_NOT_AVAILABLE=e.RENDERER_EQUIVALENT_EXTENSIONS=e.ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER=e.NOTEBOOK_DISPLAY_ORDER=e.CellKind=e.INTERACTIVE_WINDOW_EDITOR_ID=e.NOTEBOOK_DIFF_EDITOR_ID=e.NOTEBOOK_EDITOR_ID=void 0,e.NOTEBOOK_EDITOR_ID="workbench.editor.notebook",e.NOTEBOOK_DIFF_EDITOR_ID="workbench.editor.notebookTextDiffEditor",e.INTERACTIVE_WINDOW_EDITOR_ID="workbench.editor.interactive";var y;(function(x){x[x.Markup=1]="Markup",x[x.Code=2]="Code"})(y||(e.CellKind=y={})),e.NOTEBOOK_DISPLAY_ORDER=["application/json","application/javascript","text/html","image/svg+xml",A.Mimes.latex,A.Mimes.markdown,"image/png","image/jpeg",A.Mimes.text],e.ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER=[A.Mimes.latex,A.Mimes.markdown,"application/json","text/html","image/svg+xml","image/png","image/jpeg",A.Mimes.text],e.RENDERER_EQUIVALENT_EXTENSIONS=new Map([["ms-toolsai.jupyter",new Set(["jupyter-notebook","interactive"])],["ms-toolsai.jupyter-renderers",new Set(["jupyter-notebook","interactive"])]]),e.RENDERER_NOT_AVAILABLE="_notAvailable";var E;(function(x){x[x.Running=1]="Running",x[x.Idle=2]="Idle"})(E||(e.NotebookRunState=E={}));var t;(function(x){x[x.Unconfirmed=1]="Unconfirmed",x[x.Pending=2]="Pending",x[x.Executing=3]="Executing"})(t||(e.NotebookCellExecutionState=t={}));var s;(function(x){x[x.Unconfirmed=1]="Unconfirmed",x[x.Pending=2]="Pending",x[x.Executing=3]="Executing"})(s||(e.NotebookExecutionState=s={}));var g;(function(x){x[x.WithHardKernelDependency=0]="WithHardKernelDependency",x[x.WithOptionalKernelDependency=1]="WithOptionalKernelDependency",x[x.Pure=2]="Pure",x[x.Never=3]="Never"})(g||(e.NotebookRendererMatch=g={}));var C;(function(x){x.Always="always",x.Never="never",x.Optional="optional"})(C||(e.RendererMessagingSpec=C={}));var r;(function(x){x[x.ModelChange=1]="ModelChange",x[x.Move=2]="Move",x[x.ChangeCellLanguage=5]="ChangeCellLanguage",x[x.Initialize=6]="Initialize",x[x.ChangeCellMetadata=7]="ChangeCellMetadata",x[x.Output=8]="Output",x[x.OutputItem=9]="OutputItem",x[x.ChangeCellContent=10]="ChangeCellContent",x[x.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",x[x.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",x[x.ChangeCellMime=13]="ChangeCellMime",x[x.Unknown=100]="Unknown"})(r||(e.NotebookCellsChangeType=r={}));var h;(function(x){x[x.Handle=0]="Handle",x[x.Index=1]="Index"})(h||(e.SelectionStateType=h={}));var o;(function(x){x[x.Replace=1]="Replace",x[x.Output=2]="Output",x[x.Metadata=3]="Metadata",x[x.CellLanguage=4]="CellLanguage",x[x.DocumentMetadata=5]="DocumentMetadata",x[x.Move=6]="Move",x[x.OutputItems=7]="OutputItems",x[x.PartialMetadata=8]="PartialMetadata",x[x.PartialInternalMetadata=9]="PartialInternalMetadata"})(o||(e.CellEditType=o={}));var b;(function(x){x.scheme=R.Schemas.vscodeNotebookCell;const X=["W","X","Y","Z","a","b","c","d","e","f"],K=new RegExp(`^[${X.join("")}]+`),pe=7;function le(se,te){const B=te.toString(pe),fe=`${B.length<X.length?X[B.length-1]:"z"}${B}s${(0,w.encodeBase64)(w.VSBuffer.fromString(se.scheme),!0,!0)}`;return se.with({scheme:x.scheme,fragment:fe})}x.generate=le;function re(se){if(se.scheme!==x.scheme)return;const te=se.fragment.indexOf("s");if(te<0)return;const B=parseInt(se.fragment.substring(0,te).replace(K,""),pe),G=(0,w.decodeBase64)(se.fragment.substring(te+1)).toString();if(!isNaN(B))return{handle:B,notebook:se.with({scheme:G,fragment:null})}}x.parse=re;function q(se,te){return se.with({scheme:R.Schemas.vscodeNotebookCellOutput,fragment:`op${te??""},${se.scheme!==R.Schemas.file?se.scheme:""}`})}x.generateCellOutputUri=q;function oe(se){if(se.scheme!==R.Schemas.vscodeNotebookCellOutput)return;const te=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(se.fragment);if(!te)return;const B=te[1]&&te[1]!==""?te[1]:void 0,G=te[2];return{outputId:B,notebook:se.with({scheme:G||R.Schemas.file,fragment:null})}}x.parseCellOutputUri=oe;function ve(se,te,B){return x.generate(se,te).with({scheme:B})}x.generateCellPropertyUri=ve;function ce(se,te){if(se.scheme===te)return x.parse(se.with({scheme:x.scheme}))}x.parseCellPropertyUri=ce})(b||(e.CellUri=b={}));const P=x=>p.isWindows?x.replace(/\//g,"\\"):x;class T{constructor(X=[],K=e.NOTEBOOK_DISPLAY_ORDER){this.defaultOrder=K,this.order=[...new Set(X)].map(pe=>({pattern:pe,matches:M.parse(P(pe))}))}sort(X){const K=new Map(d.Iterable.map(X,le=>[le,P(le)]));let pe=[];for(const{matches:le}of this.order)for(const[re,q]of K)if(le(q)){pe.push(re),K.delete(re);break}return K.size&&(pe=pe.concat([...K.keys()].sort((le,re)=>this.defaultOrder.indexOf(le)-this.defaultOrder.indexOf(re)))),pe}prioritize(X,K){const pe=this.findIndex(X);if(pe===-1){this.order.unshift({pattern:X,matches:M.parse(P(X))});return}const le=new Set(K.map(q=>this.findIndex(q,pe)));le.delete(-1);const re=Array.from(le).sort();this.order.splice(pe+1,0,...re.map(q=>this.order[q]));for(let q=re.length-1;q>=0;q--)this.order.splice(re[q],1)}toArray(){return this.order.map(X=>X.pattern)}findIndex(X,K=this.order.length){const pe=P(X);for(let le=0;le<K;le++)if(this.order[le].matches(pe))return le;return-1}}e.MimeTypeDisplayOrder=T;function n(x,X,K,pe=(le,re)=>le===re){const le=[];function re(ve,ce,se){if(ce===0&&se.length===0)return;const te=le[le.length-1];te&&te.start+te.deleteCount===ve?(te.deleteCount+=ce,te.toInsert.push(...se)):le.push({start:ve,deleteCount:ce,toInsert:se})}let q=0,oe=0;for(;;){if(q===x.length){re(q,0,X.slice(oe));break}if(oe===X.length){re(q,x.length-q,[]);break}const ve=x[q],ce=X[oe];if(pe(ve,ce)){q+=1,oe+=1;continue}K(ce)?(re(q,1,[]),q+=1):(re(q,0,[ce]),oe+=1)}return le}e.diff=n,e.NOTEBOOK_EDITOR_CURSOR_BOUNDARY=new f.RawContextKey("notebookEditorCursorAtBoundary","none"),e.NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY=new f.RawContextKey("notebookEditorCursorAtLineBoundary","none");var a;(function(x){x.default="default",x.option="option"})(a||(e.NotebookEditorPriority=a={}));function l(x){const X=x;return!!((typeof X.include=="string"||M.isRelativePattern(X.include))&&(typeof X.exclude=="string"||M.isRelativePattern(X.exclude)))}e.isDocumentExcludePattern=l;function i(x,X,K){if(Array.isArray(x.viewType)&&x.viewType.indexOf(X)>=0||x.viewType===X)return!0;if(x.filenamePattern){const pe=l(x.filenamePattern)?x.filenamePattern.include:x.filenamePattern,le=l(x.filenamePattern)?x.filenamePattern.exclude:void 0;if(M.match(pe,(0,u.basename)(K.fsPath).toLowerCase()))return!(le&&M.match(le,(0,u.basename)(K.fsPath).toLowerCase()))}return!1}e.notebookDocumentFilterMatch=i,e.NotebookSetting={displayOrder:"notebook.displayOrder",cellToolbarLocation:"notebook.cellToolbarLocation",cellToolbarVisibility:"notebook.cellToolbarVisibility",showCellStatusBar:"notebook.showCellStatusBar",textDiffEditorPreview:"notebook.diff.enablePreview",diffOverviewRuler:"notebook.diff.overviewRuler",experimentalInsertToolbarAlignment:"notebook.experimental.insertToolbarAlignment",compactView:"notebook.compactView",focusIndicator:"notebook.cellFocusIndicator",insertToolbarLocation:"notebook.insertToolbarLocation",globalToolbar:"notebook.globalToolbar",stickyScroll:"notebook.stickyScroll.enabled",undoRedoPerCell:"notebook.undoRedoPerCell",consolidatedOutputButton:"notebook.consolidatedOutputButton",showFoldingControls:"notebook.showFoldingControls",dragAndDropEnabled:"notebook.dragAndDropEnabled",cellEditorOptionsCustomizations:"notebook.editorOptionsCustomizations",consolidatedRunButton:"notebook.consolidatedRunButton",openGettingStarted:"notebook.experimental.openGettingStarted",globalToolbarShowLabel:"notebook.globalToolbarShowLabel",markupFontSize:"notebook.markup.fontSize",interactiveWindowCollapseCodeCells:"interactiveWindow.collapseCellInputCode",outputScrollingDeprecated:"notebook.experimental.outputScrolling",outputScrolling:"notebook.output.scrolling",textOutputLineLimit:"notebook.output.textLineLimit",formatOnSave:"notebook.formatOnSave.enabled",formatOnCellExecution:"notebook.formatOnCellExecution",codeActionsOnSave:"notebook.codeActionsOnSave",outputWordWrap:"notebook.output.wordWrap",outputLineHeightDeprecated:"notebook.outputLineHeight",outputLineHeight:"notebook.output.lineHeight",outputFontSizeDeprecated:"notebook.outputFontSize",outputFontSize:"notebook.output.fontSize",outputFontFamilyDeprecated:"notebook.outputFontFamily",outputFontFamily:"notebook.output.fontFamily",findScope:"notebook.find.scope",logging:"notebook.logging",confirmDeleteRunningCell:"notebook.confirmDeleteRunningCell",remoteSaving:"notebook.experimental.remoteSave"};var c;(function(x){x[x.Left=1]="Left",x[x.Right=2]="Right"})(c||(e.CellStatusbarAlignment=c={}));class _{static{this._prefix="notebook/"}static create(X){return`${_._prefix}${X}`}static parse(X){if(X.startsWith(_._prefix))return X.substring(_._prefix.length)}}e.NotebookWorkingCopyTypeIdentifier=_;function S(x){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(x)}e.isTextStreamMime=S;const k=new TextDecoder;function m(x){const X=[];let K=!1;for(const q of x)(X.length===0||K)&&(X.push(q),K=!0);let pe=L(X);const le=w.VSBuffer.concat(X.map(q=>w.VSBuffer.wrap(q))),re=U(le);return pe=pe||re.byteLength!==le.byteLength,{data:re,didCompression:pe}}e.compressOutputItemStreams=m,e.MOVE_CURSOR_1_LINE_COMMAND=`${String.fromCharCode(27)}[A`;const v=e.MOVE_CURSOR_1_LINE_COMMAND.split("").map(x=>x.charCodeAt(0)),D=10;function L(x){let X=!1;return x.forEach((K,pe)=>{if(pe===0||K.length<e.MOVE_CURSOR_1_LINE_COMMAND.length)return;const le=x[pe-1],re=K.subarray(0,e.MOVE_CURSOR_1_LINE_COMMAND.length);if(re[0]===v[0]&&re[1]===v[1]&&re[2]===v[2]){const q=le.lastIndexOf(D);if(q===-1)return;X=!0,x[pe-1]=le.subarray(0,q),x[pe]=K.subarray(e.MOVE_CURSOR_1_LINE_COMMAND.length)}}),X}function O(x){let X=x;do x=X,X=x.replace(/[^\n]\x08/gm,"");while(X.length<x.length);return x}function H(x){for(x=x.replace(/\r+\n/gm,`
`);x.search(/\r[^$]/g)>-1;){const X=x.match(/^(.*)\r+/m)[1];let K=x.match(/\r+(.*)$/m)[1];K=K+X.slice(K.length,X.length),x=x.replace(/\r+.*$/m,"\r").replace(/^.*\r/m,K)}return x}const N="\b".charCodeAt(0),$="\r".charCodeAt(0);function U(x){return!x.buffer.includes(N)&&!x.buffer.includes($)?x:w.VSBuffer.fromString(H(O(k.decode(x.buffer))))}}),define(ye[7],Ce([1,0,19,8,77,28,97,16,18,2,29,23,30,84,105]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g){"use strict";var C,r,h,o,b,P,T,n,a,l,i,c,_,S,k,m,v,D;Object.defineProperty(e,"__esModule",{value:!0}),e.RelatedInformationType=e.ChatMessage=e.ChatVariableLevel=e.ChatMessageRole=e.InteractiveEditorResponseFeedbackKind=e.InteractiveSessionCopyKind=e.InteractiveSessionVoteDirection=e.InteractiveWindowInput=e.TerminalEditorTabInput=e.NotebookDiffEditorTabInput=e.NotebookEditorTabInput=e.WebviewEditorTabInput=e.CustomEditorTabInput=e.TextMergeTabInput=e.TextDiffTabInput=e.TextTabInput=e.TypeHierarchyItem=e.PortAutoForwardAction=e.WorkspaceTrustState=e.ExternalUriOpenerPriority=e.FunctionCoverage=e.BranchCoverage=e.StatementCoverage=e.FileCoverage=e.CoveredCount=e.TestTag=e.TestMessage=e.TestRunRequest=e.TestRunProfileKind=e.TestResultState=e.PortAttributes=e.LinkedEditingRanges=e.StandardTokenType=e.ExtensionRuntime=e.ExtensionMode=e.TimelineItem=e.NotebookKernelSourceAction=e.NotebookRendererScript=e.NotebookControllerAffinity2=e.NotebookControllerAffinity=e.NotebookCellStatusBarItem=e.NotebookEditorRevealType=e.NotebookCellStatusBarAlignment=e.NotebookCellExecutionState=e.NotebookCellKind=e.NotebookCellOutput=e.NotebookCellOutputItem=e.NotebookData=e.NotebookCellData=e.NotebookRange=e.ColorThemeKind=e.ColorTheme=e.FileDecoration=e.ExtensionKind=e.InputBoxValidationSeverity=e.QuickPickItemKind=e.QuickInputButtons=e.DebugConsoleMode=e.SemanticTokensEdits=e.SemanticTokensEdit=e.SemanticTokens=e.SemanticTokensBuilder=e.SemanticTokensLegend=e.CommentThreadState=e.CommentState=e.CommentMode=e.CommentThreadCollapsibleState=e.FoldingRangeKind=e.FoldingRange=e.FileSystemError=e.FileChangeType=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.InlineCompletionTriggerKind=e.EvaluatableExpression=e.ThreadFocus=e.StackFrameFocus=e.DebugAdapterInlineImplementation=e.DebugAdapterNamedPipeServer=e.DebugAdapterServer=e.DebugAdapterExecutable=e.DataBreakpoint=e.FunctionBreakpoint=e.SourceBreakpoint=e.Breakpoint=e.setBreakpointId=e.RelativePattern=e.ConfigurationTarget=e.ThemeColor=e.ThemeIcon=e.DocumentPasteEdit=e.DocumentDropEdit=e.DataTransfer=e.DataTransferFile=e.InternalFileDataTransferItem=e.InternalDataTransferItem=e.DataTransferItem=e.TreeItemCheckboxState=e.TreeItemCollapsibleState=e.TreeItem=e.ViewBadge=e.ProgressLocation=e.Task=e.CustomExecution=e.TaskScope=e.ShellQuoting=e.ShellExecution=e.ProcessExecution=e.TaskGroup=e.TaskPanelKind=e.TaskRevealKind=e.TerminalProfile=e.TerminalLocation=e.TerminalQuickFixCommand=e.TerminalQuickFixOpener=e.TerminalLink=e.TerminalExitReason=e.SourceControlInputBoxValidationType=e.ColorFormat=e.ColorPresentation=e.ColorInformation=e.Color=e.DocumentLink=e.DecorationRangeBehavior=e.TextDocumentChangeReason=e.TextEditorSelectionChangeKind=e.TextEditorRevealType=e.TextDocumentSaveReason=e.TextEditorLineNumbersStyle=e.asStatusBarItemIdentifier=e.StatusBarAlignment=e.ViewColumn=e.InlineSuggestionList=e.InlineSuggestion=e.CompletionList=e.CompletionItem=e.CompletionItemTag=e.CompletionItemKind=e.CompletionTriggerKind=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.SignatureHelpTriggerKind=e.SignatureHelp=e.SignatureInformation=e.ParameterInformation=e.MarkdownString=e.CodeLens=e.LanguageStatusSeverity=e.CallHierarchyOutgoingCall=e.CallHierarchyIncomingCall=e.CallHierarchyItem=e.SelectionRange=e.NotebookCodeActionKind=e.CodeActionKind=e.CodeAction=e.CodeActionTriggerKind=e.DocumentSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.Hover=e.Diagnostic=e.DiagnosticRelatedInformation=e.Location=e.DiagnosticSeverity=e.DiagnosticTag=e.SnippetString=e.WorkspaceEdit=e.FileEditType=e.SnippetTextEdit=e.NotebookEdit=e.TextEdit=e.EnvironmentVariableMutatorType=e.EndOfLine=e.RemoteAuthorityResolverError=e.ManagedResolvedAuthority=e.ResolvedAuthority=e.Selection=e.Range=e.Position=e.Disposable=e.TerminalQuickFixType=e.TerminalOutputAnchor=void 0;function L(Q){return Object.assign(Q,{apply:function(){const be=arguments.length===1?[]:arguments[1];return Reflect.construct(Q,be,arguments[0].constructor)},call:function(){if(arguments.length===0)return Reflect.construct(Q,[]);{const[be,...Re]=arguments;return Reflect.construct(Q,Re,be.constructor)}}})}var O;(function(Q){Q[Q.Top=0]="Top",Q[Q.Bottom=1]="Bottom"})(O||(e.TerminalOutputAnchor=O={}));var H;(function(Q){Q[Q.TerminalCommand=0]="TerminalCommand",Q[Q.Opener=1]="Opener",Q[Q.Command=3]="Command"})(H||(e.TerminalQuickFixType=H={}));let N=C=class{static from(...W){let be=W;return new C(function(){if(be){for(const Re of be)Re&&typeof Re.dispose=="function"&&Re.dispose();be=void 0}})}#e;constructor(W){this.#e=W}dispose(){typeof this.#e=="function"&&(this.#e(),this.#e=void 0)}};e.Disposable=N,e.Disposable=N=C=je([L],N);let $=r=class{static Min(...W){if(W.length===0)throw new TypeError;let be=W[0];for(let Re=1;Re<W.length;Re++){const Xe=W[Re];Xe.isBefore(be)&&(be=Xe)}return be}static Max(...W){if(W.length===0)throw new TypeError;let be=W[0];for(let Re=1;Re<W.length;Re++){const Xe=W[Re];Xe.isAfter(be)&&(be=Xe)}return be}static isPosition(W){if(!W)return!1;if(W instanceof r)return!0;const{line:be,character:Re}=W;return typeof be=="number"&&typeof Re=="number"}static of(W){if(W instanceof r)return W;if(this.isPosition(W))return new r(W.line,W.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}constructor(W,be){if(W<0)throw(0,M.illegalArgument)("line must be non-negative");if(be<0)throw(0,M.illegalArgument)("character must be non-negative");this._line=W,this._character=be}isBefore(W){return this._line<W._line?!0:W._line<this._line?!1:this._character<W._character}isBeforeOrEqual(W){return this._line<W._line?!0:W._line<this._line?!1:this._character<=W._character}isAfter(W){return!this.isBeforeOrEqual(W)}isAfterOrEqual(W){return!this.isBefore(W)}isEqual(W){return this._line===W._line&&this._character===W._character}compareTo(W){return this._line<W._line?-1:this._line>W.line?1:this._character<W._character?-1:this._character>W._character?1:0}translate(W,be=0){if(W===null||be===null)throw(0,M.illegalArgument)();let Re;return typeof W>"u"?Re=0:typeof W=="number"?Re=W:(Re=typeof W.lineDelta=="number"?W.lineDelta:0,be=typeof W.characterDelta=="number"?W.characterDelta:0),Re===0&&be===0?this:new r(this.line+Re,this.character+be)}with(W,be=this.character){if(W===null||be===null)throw(0,M.illegalArgument)();let Re;return typeof W>"u"?Re=this.line:typeof W=="number"?Re=W:(Re=typeof W.line=="number"?W.line:this.line,be=typeof W.character=="number"?W.character:this.character),Re===this.line&&be===this.character?this:new r(Re,be)}toJSON(){return{line:this.line,character:this.character}}};e.Position=$,e.Position=$=r=je([L],$);let U=h=class{static isRange(W){return W instanceof h?!0:W?$.isPosition(W.start)&&$.isPosition(W.end):!1}static of(W){if(W instanceof h)return W;if(this.isRange(W))return new h(W.start,W.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}constructor(W,be,Re,Xe){let nt,dt;if(typeof W=="number"&&typeof be=="number"&&typeof Re=="number"&&typeof Xe=="number"?(nt=new $(W,be),dt=new $(Re,Xe)):$.isPosition(W)&&$.isPosition(be)&&(nt=$.of(W),dt=$.of(be)),!nt||!dt)throw new Error("Invalid arguments");nt.isBefore(dt)?(this._start=nt,this._end=dt):(this._start=dt,this._end=nt)}contains(W){return h.isRange(W)?this.contains(W.start)&&this.contains(W.end):$.isPosition(W)?!($.of(W).isBefore(this._start)||this._end.isBefore(W)):!1}isEqual(W){return this._start.isEqual(W._start)&&this._end.isEqual(W._end)}intersection(W){const be=$.Max(W.start,this._start),Re=$.Min(W.end,this._end);if(!be.isAfter(Re))return new h(be,Re)}union(W){if(this.contains(W))return this;if(W.contains(this))return W;const be=$.Min(W.start,this._start),Re=$.Max(W.end,this.end);return new h(be,Re)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(W,be=this.end){if(W===null||be===null)throw(0,M.illegalArgument)();let Re;return W?$.isPosition(W)?Re=W:(Re=W.start||this.start,be=W.end||this.end):Re=this.start,Re.isEqual(this._start)&&be.isEqual(this.end)?this:new h(Re,be)}toJSON(){return[this.start,this.end]}};e.Range=U,e.Range=U=h=je([L],U);let x=o=class extends U{static isSelection(W){return W instanceof o?!0:W?U.isRange(W)&&$.isPosition(W.anchor)&&$.isPosition(W.active)&&typeof W.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}constructor(W,be,Re,Xe){let nt,dt;if(typeof W=="number"&&typeof be=="number"&&typeof Re=="number"&&typeof Xe=="number"?(nt=new $(W,be),dt=new $(Re,Xe)):$.isPosition(W)&&$.isPosition(be)&&(nt=$.of(W),dt=$.of(be)),!nt||!dt)throw new Error("Invalid arguments");super(nt,dt),this._anchor=nt,this._active=dt}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};e.Selection=x,e.Selection=x=o=je([L],x);const X=Q=>{if(typeof Q!="string"||Q.length===0||!/^[0-9A-Za-z_\-]+$/.test(Q))throw(0,M.illegalArgument)("connectionToken")};class K{static isResolvedAuthority(W){return W&&typeof W=="object"&&typeof W.host=="string"&&typeof W.port=="number"&&(W.connectionToken===void 0||typeof W.connectionToken=="string")}constructor(W,be,Re){if(typeof W!="string"||W.length===0)throw(0,M.illegalArgument)("host");if(typeof be!="number"||be===0||Math.round(be)!==be)throw(0,M.illegalArgument)("port");typeof Re<"u"&&X(Re),this.host=W,this.port=Math.round(be),this.connectionToken=Re}}e.ResolvedAuthority=K;class pe{static isManagedResolvedAuthority(W){return W&&typeof W=="object"&&typeof W.makeConnection=="function"&&(W.connectionToken===void 0||typeof W.connectionToken=="string")}constructor(W,be){this.makeConnection=W,this.connectionToken=be,typeof be<"u"&&X(be)}}e.ManagedResolvedAuthority=pe;class le extends Error{static NotAvailable(W,be){return new le(W,s.RemoteAuthorityResolverErrorCode.NotAvailable,be)}static TemporarilyNotAvailable(W){return new le(W,s.RemoteAuthorityResolverErrorCode.TemporarilyNotAvailable)}constructor(W,be=s.RemoteAuthorityResolverErrorCode.Unknown,Re){super(W),this._message=W,this._code=be,this._detail=Re,Object.setPrototypeOf(this,le.prototype)}}e.RemoteAuthorityResolverError=le;var re;(function(Q){Q[Q.LF=1]="LF",Q[Q.CRLF=2]="CRLF"})(re||(e.EndOfLine=re={}));var q;(function(Q){Q[Q.Replace=1]="Replace",Q[Q.Append=2]="Append",Q[Q.Prepend=3]="Prepend"})(q||(e.EnvironmentVariableMutatorType=q={}));let oe=b=class{static isTextEdit(W){return W instanceof b?!0:W?U.isRange(W)&&typeof W.newText=="string":!1}static replace(W,be){return new b(W,be)}static insert(W,be){return b.replace(new U(W,W),be)}static delete(W){return b.replace(W,"")}static setEndOfLine(W){const be=new b(new U(new $(0,0),new $(0,0)),"");return be.newEol=W,be}get range(){return this._range}set range(W){if(W&&!U.isRange(W))throw(0,M.illegalArgument)("range");this._range=W}get newText(){return this._newText||""}set newText(W){if(W&&typeof W!="string")throw(0,M.illegalArgument)("newText");this._newText=W}get newEol(){return this._newEol}set newEol(W){if(W&&typeof W!="number")throw(0,M.illegalArgument)("newEol");this._newEol=W}constructor(W,be){this._range=W,this._newText=be}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};e.TextEdit=oe,e.TextEdit=oe=b=je([L],oe);let ve=P=class{static isNotebookCellEdit(W){return W instanceof P?!0:W?Jt.isNotebookRange(W)&&Array.isArray(W.newCells):!1}static replaceCells(W,be){return new P(W,be)}static insertCells(W,be){return new P(new Jt(W,W),be)}static deleteCells(W){return new P(W,[])}static updateCellMetadata(W,be){const Re=new P(new Jt(W,W),[]);return Re.newCellMetadata=be,Re}static updateNotebookMetadata(W){const be=new P(new Jt(0,0),[]);return be.newNotebookMetadata=W,be}constructor(W,be){this.range=W,this.newCells=be}};e.NotebookEdit=ve,e.NotebookEdit=ve=P=je([L],ve);class ce{static isSnippetTextEdit(W){return W instanceof ce?!0:W?U.isRange(W.range)&&B.isSnippetString(W.snippet):!1}static replace(W,be){return new ce(W,be)}static insert(W,be){return ce.replace(new U(W,W),be)}constructor(W,be){this.range=W,this.snippet=be}}e.SnippetTextEdit=ce;var se;(function(Q){Q[Q.File=1]="File",Q[Q.Text=2]="Text",Q[Q.Cell=3]="Cell",Q[Q.CellReplace=5]="CellReplace",Q[Q.Snippet=6]="Snippet"})(se||(e.FileEditType=se={}));let te=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(W,be,Re,Xe){this._edits.push({_type:1,from:W,to:be,options:Re,metadata:Xe})}createFile(W,be,Re){this._edits.push({_type:1,from:void 0,to:W,options:be,metadata:Re})}deleteFile(W,be,Re){this._edits.push({_type:1,from:W,to:void 0,options:be,metadata:Re})}replaceNotebookMetadata(W,be,Re){this._edits.push({_type:3,metadata:Re,uri:W,edit:{editType:5,metadata:be},notebookMetadata:be})}replaceNotebookCells(W,be,Re,Xe){const nt=be.start,dt=be.end;(nt!==dt||Re.length>0)&&this._edits.push({_type:5,uri:W,index:nt,count:dt-nt,cells:Re,metadata:Xe})}replaceNotebookCellMetadata(W,be,Re,Xe){this._edits.push({_type:3,metadata:Xe,uri:W,edit:{editType:3,index:be,metadata:Re}})}replace(W,be,Re,Xe){this._edits.push({_type:2,uri:W,edit:new oe(be,Re),metadata:Xe})}insert(W,be,Re,Xe){this.replace(W,new U(be,be),Re,Xe)}delete(W,be,Re){this.replace(W,be,"",Re)}has(W){return this._edits.some(be=>be._type===2&&be.uri.toString()===W.toString())}set(W,be){if(be)for(const Re of be){if(!Re)continue;let Xe,nt;Array.isArray(Re)?(Xe=Re[0],nt=Re[1]):Xe=Re,ve.isNotebookCellEdit(Xe)?Xe.newCellMetadata?this.replaceNotebookCellMetadata(W,Xe.range.start,Xe.newCellMetadata,nt):Xe.newNotebookMetadata?this.replaceNotebookMetadata(W,Xe.newNotebookMetadata,nt):this.replaceNotebookCells(W,Xe.range,Xe.newCells,nt):ce.isSnippetTextEdit(Xe)?this._edits.push({_type:6,uri:W,range:Xe.range,edit:Xe.snippet,metadata:nt}):this._edits.push({_type:2,uri:W,edit:Xe,metadata:nt})}else{for(let Re=0;Re<this._edits.length;Re++){const Xe=this._edits[Re];switch(Xe._type){case 2:case 6:case 3:case 5:Xe.uri.toString()===W.toString()&&(this._edits[Re]=void 0);break}}(0,w.coalesceInPlace)(this._edits)}}get(W){const be=[];for(const Re of this._edits)Re._type===2&&Re.uri.toString()===W.toString()&&be.push(Re.edit);return be}entries(){const W=new A.ResourceMap;for(const be of this._edits)if(be._type===2){let Re=W.get(be.uri);Re||(Re=[be.uri,[]],W.set(be.uri,Re)),Re[1].push(be.edit)}return[...W.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};e.WorkspaceEdit=te,e.WorkspaceEdit=te=je([L],te);let B=T=class{static isSnippetString(W){return W instanceof T?!0:W?typeof W.value=="string":!1}static _escape(W){return W.replace(/\$|}|\\/g,"\\$&")}constructor(W){this._tabstop=1,this.value=W||""}appendText(W){return this.value+=T._escape(W),this}appendTabstop(W=this._tabstop++){return this.value+="$",this.value+=W,this}appendPlaceholder(W,be=this._tabstop++){if(typeof W=="function"){const Re=new T;Re._tabstop=this._tabstop,W(Re),this._tabstop=Re._tabstop,W=Re.value}else W=T._escape(W);return this.value+="${",this.value+=be,this.value+=":",this.value+=W,this.value+="}",this}appendChoice(W,be=this._tabstop++){const Re=W.map(Xe=>Xe.replace(/\$|}|\\|,/g,"\\$&")).join(",");return this.value+="${",this.value+=be,this.value+="|",this.value+=Re,this.value+="|}",this}appendVariable(W,be){if(typeof be=="function"){const Re=new T;Re._tabstop=this._tabstop,be(Re),this._tabstop=Re._tabstop,be=Re.value}else typeof be=="string"&&(be=be.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=W,be&&(this.value+=":",this.value+=be),this.value+="}",this}};e.SnippetString=B,e.SnippetString=B=T=je([L],B);var G;(function(Q){Q[Q.Unnecessary=1]="Unnecessary",Q[Q.Deprecated=2]="Deprecated"})(G||(e.DiagnosticTag=G={}));var fe;(function(Q){Q[Q.Hint=3]="Hint",Q[Q.Information=2]="Information",Q[Q.Warning=1]="Warning",Q[Q.Error=0]="Error"})(fe||(e.DiagnosticSeverity=fe={}));let _e=n=class{static isLocation(W){return W instanceof n?!0:W?U.isRange(W.range)&&f.URI.isUri(W.uri):!1}constructor(W,be){if(this.uri=W,be)if(U.isRange(be))this.range=U.of(be);else if($.isPosition(be))this.range=new U(be,be);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}};e.Location=_e,e.Location=_e=n=je([L],_e);let Ee=class{static is(W){return W?typeof W.message=="string"&&W.location&&U.isRange(W.location.range)&&f.URI.isUri(W.location.uri):!1}constructor(W,be){this.location=W,this.message=be}static isEqual(W,be){return W===be?!0:!W||!be?!1:W.message===be.message&&W.location.range.isEqual(be.location.range)&&W.location.uri.toString()===be.location.uri.toString()}};e.DiagnosticRelatedInformation=Ee,e.DiagnosticRelatedInformation=Ee=je([L],Ee);let F=class{constructor(W,be,Re=fe.Error){if(!U.isRange(W))throw new TypeError("range must be set");if(!be)throw new TypeError("message must be set");this.range=W,this.message=be,this.severity=Re}toJSON(){return{severity:fe[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(W,be){return W===be?!0:!W||!be?!1:W.message===be.message&&W.severity===be.severity&&W.code===be.code&&W.severity===be.severity&&W.source===be.source&&W.range.isEqual(be.range)&&(0,w.equals)(W.tags,be.tags)&&(0,w.equals)(W.relatedInformation,be.relatedInformation,Ee.isEqual)}};e.Diagnostic=F,e.Diagnostic=F=je([L],F);let J=class{constructor(W,be){if(!W)throw new Error("Illegal argument, contents must be defined");Array.isArray(W)?this.contents=W:this.contents=[W],this.range=be}};e.Hover=J,e.Hover=J=je([L],J);var I;(function(Q){Q[Q.Text=0]="Text",Q[Q.Read=1]="Read",Q[Q.Write=2]="Write"})(I||(e.DocumentHighlightKind=I={}));let V=class{constructor(W,be=I.Text){this.range=W,this.kind=be}toJSON(){return{range:this.range,kind:I[this.kind]}}};e.DocumentHighlight=V,e.DocumentHighlight=V=je([L],V);var j;(function(Q){Q[Q.File=0]="File",Q[Q.Module=1]="Module",Q[Q.Namespace=2]="Namespace",Q[Q.Package=3]="Package",Q[Q.Class=4]="Class",Q[Q.Method=5]="Method",Q[Q.Property=6]="Property",Q[Q.Field=7]="Field",Q[Q.Constructor=8]="Constructor",Q[Q.Enum=9]="Enum",Q[Q.Interface=10]="Interface",Q[Q.Function=11]="Function",Q[Q.Variable=12]="Variable",Q[Q.Constant=13]="Constant",Q[Q.String=14]="String",Q[Q.Number=15]="Number",Q[Q.Boolean=16]="Boolean",Q[Q.Array=17]="Array",Q[Q.Object=18]="Object",Q[Q.Key=19]="Key",Q[Q.Null=20]="Null",Q[Q.EnumMember=21]="EnumMember",Q[Q.Struct=22]="Struct",Q[Q.Event=23]="Event",Q[Q.Operator=24]="Operator",Q[Q.TypeParameter=25]="TypeParameter"})(j||(e.SymbolKind=j={}));var Z;(function(Q){Q[Q.Deprecated=1]="Deprecated"})(Z||(e.SymbolTag=Z={}));let he=a=class{static validate(W){if(!W.name)throw new Error("name must not be falsy")}constructor(W,be,Re,Xe,nt){this.name=W,this.kind=be,this.containerName=nt,typeof Re=="string"&&(this.containerName=Re),Xe instanceof _e?this.location=Xe:Re instanceof U&&(this.location=new _e(Xe,Re)),a.validate(this)}toJSON(){return{name:this.name,kind:j[this.kind],location:this.location,containerName:this.containerName}}};e.SymbolInformation=he,e.SymbolInformation=he=a=je([L],he);let Pe=l=class{static validate(W){if(!W.name)throw new Error("name must not be falsy");if(!W.range.contains(W.selectionRange))throw new Error("selectionRange must be contained in fullRange");W.children?.forEach(l.validate)}constructor(W,be,Re,Xe,nt){this.name=W,this.detail=be,this.kind=Re,this.range=Xe,this.selectionRange=nt,this.children=[],l.validate(this)}};e.DocumentSymbol=Pe,e.DocumentSymbol=Pe=l=je([L],Pe);var z;(function(Q){Q[Q.Invoke=1]="Invoke",Q[Q.Automatic=2]="Automatic"})(z||(e.CodeActionTriggerKind=z={}));let ee=class{constructor(W,be){this.title=W,this.kind=be}};e.CodeAction=ee,e.CodeAction=ee=je([L],ee);let ie=class{static{i=this}static{this.sep="."}constructor(W){this.value=W}append(W){return new i(this.value?this.value+i.sep+W:W)}intersects(W){return this.contains(W)||W.contains(this)}contains(W){return this.value===W.value||W.value.startsWith(this.value+i.sep)}};e.CodeActionKind=ie,e.CodeActionKind=ie=i=je([L],ie);class ue extends ie{constructor(W){super(W),this.value=W}}e.NotebookCodeActionKind=ue,ie.Empty=new ie(""),ie.QuickFix=ie.Empty.append("quickfix"),ie.Refactor=ie.Empty.append("refactor"),ie.RefactorExtract=ie.Refactor.append("extract"),ie.RefactorInline=ie.Refactor.append("inline"),ie.RefactorMove=ie.Refactor.append("move"),ie.RefactorRewrite=ie.Refactor.append("rewrite"),ie.Source=ie.Empty.append("source"),ie.SourceOrganizeImports=ie.Source.append("organizeImports"),ie.SourceFixAll=ie.Source.append("fixAll"),ie.Notebook=ie.Empty.append("notebook");let Y=class{constructor(W,be){if(this.range=W,this.parent=be,be&&!be.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};e.SelectionRange=Y,e.SelectionRange=Y=je([L],Y);class me{constructor(W,be,Re,Xe,nt,dt){this.kind=W,this.name=be,this.detail=Re,this.uri=Xe,this.range=nt,this.selectionRange=dt}}e.CallHierarchyItem=me;class Se{constructor(W,be){this.fromRanges=be,this.from=W}}e.CallHierarchyIncomingCall=Se;class Ue{constructor(W,be){this.fromRanges=be,this.to=W}}e.CallHierarchyOutgoingCall=Ue;var ze;(function(Q){Q[Q.Information=0]="Information",Q[Q.Warning=1]="Warning",Q[Q.Error=2]="Error"})(ze||(e.LanguageStatusSeverity=ze={}));let et=class{constructor(W,be){this.range=W,this.command=be}get isResolved(){return!!this.command}};e.CodeLens=et,e.CodeLens=et=je([L],et);let Ye=c=class{#e;static isMarkdownString(W){return W instanceof c?!0:W&&W.appendCodeblock&&W.appendMarkdown&&W.appendText&&W.value!==void 0}constructor(W,be=!1){this.#e=new d.MarkdownString(W,{supportThemeIcons:be})}get value(){return this.#e.value}set value(W){this.#e.value=W}get isTrusted(){return this.#e.isTrusted}set isTrusted(W){this.#e.isTrusted=W}get supportThemeIcons(){return this.#e.supportThemeIcons}set supportThemeIcons(W){this.#e.supportThemeIcons=W}get supportHtml(){return this.#e.supportHtml}set supportHtml(W){this.#e.supportHtml=W}get baseUri(){return this.#e.baseUri}set baseUri(W){this.#e.baseUri=W}appendText(W){return this.#e.appendText(W),this}appendMarkdown(W){return this.#e.appendMarkdown(W),this}appendCodeblock(W,be){return this.#e.appendCodeblock(be??"",W),this}};e.MarkdownString=Ye,e.MarkdownString=Ye=c=je([L],Ye);let at=class{constructor(W,be){this.label=W,this.documentation=be}};e.ParameterInformation=at,e.ParameterInformation=at=je([L],at);let it=class{constructor(W,be){this.label=W,this.documentation=be,this.parameters=[]}};e.SignatureInformation=it,e.SignatureInformation=it=je([L],it);let rt=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};e.SignatureHelp=rt,e.SignatureHelp=rt=je([L],rt);var Ae;(function(Q){Q[Q.Invoke=1]="Invoke",Q[Q.TriggerCharacter=2]="TriggerCharacter",Q[Q.ContentChange=3]="ContentChange"})(Ae||(e.SignatureHelpTriggerKind=Ae={}));var xe;(function(Q){Q[Q.Type=1]="Type",Q[Q.Parameter=2]="Parameter"})(xe||(e.InlayHintKind=xe={}));let Te=class{constructor(W){this.value=W}};e.InlayHintLabelPart=Te,e.InlayHintLabelPart=Te=je([L],Te);let Ve=class{constructor(W,be,Re){this.position=W,this.label=be,this.kind=Re}};e.InlayHint=Ve,e.InlayHint=Ve=je([L],Ve);var de;(function(Q){Q[Q.Invoke=0]="Invoke",Q[Q.TriggerCharacter=1]="TriggerCharacter",Q[Q.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(de||(e.CompletionTriggerKind=de={}));var ae;(function(Q){Q[Q.Text=0]="Text",Q[Q.Method=1]="Method",Q[Q.Function=2]="Function",Q[Q.Constructor=3]="Constructor",Q[Q.Field=4]="Field",Q[Q.Variable=5]="Variable",Q[Q.Class=6]="Class",Q[Q.Interface=7]="Interface",Q[Q.Module=8]="Module",Q[Q.Property=9]="Property",Q[Q.Unit=10]="Unit",Q[Q.Value=11]="Value",Q[Q.Enum=12]="Enum",Q[Q.Keyword=13]="Keyword",Q[Q.Snippet=14]="Snippet",Q[Q.Color=15]="Color",Q[Q.File=16]="File",Q[Q.Reference=17]="Reference",Q[Q.Folder=18]="Folder",Q[Q.EnumMember=19]="EnumMember",Q[Q.Constant=20]="Constant",Q[Q.Struct=21]="Struct",Q[Q.Event=22]="Event",Q[Q.Operator=23]="Operator",Q[Q.TypeParameter=24]="TypeParameter",Q[Q.User=25]="User",Q[Q.Issue=26]="Issue"})(ae||(e.CompletionItemKind=ae={}));var De;(function(Q){Q[Q.Deprecated=1]="Deprecated"})(De||(e.CompletionItemTag=De={}));let Me=class{constructor(W,be){this.label=W,this.kind=be}toJSON(){return{label:this.label,kind:this.kind&&ae[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};e.CompletionItem=Me,e.CompletionItem=Me=je([L],Me);let qe=class{constructor(W=[],be=!1){this.items=W,this.isIncomplete=be}};e.CompletionList=qe,e.CompletionList=qe=je([L],qe);let Je=class{constructor(W,be,Re){this.insertText=W,this.range=be,this.command=Re}};e.InlineSuggestion=Je,e.InlineSuggestion=Je=je([L],Je);let st=class{constructor(W){this.commands=void 0,this.suppressSuggestions=void 0,this.items=W}};e.InlineSuggestionList=st,e.InlineSuggestionList=st=je([L],st);var ct;(function(Q){Q[Q.Active=-1]="Active",Q[Q.Beside=-2]="Beside",Q[Q.One=1]="One",Q[Q.Two=2]="Two",Q[Q.Three=3]="Three",Q[Q.Four=4]="Four",Q[Q.Five=5]="Five",Q[Q.Six=6]="Six",Q[Q.Seven=7]="Seven",Q[Q.Eight=8]="Eight",Q[Q.Nine=9]="Nine"})(ct||(e.ViewColumn=ct={}));var pt;(function(Q){Q[Q.Left=1]="Left",Q[Q.Right=2]="Right"})(pt||(e.StatusBarAlignment=pt={}));function It(Q,W){return`${E.ExtensionIdentifier.toKey(Q)}.${W}`}e.asStatusBarItemIdentifier=It;var xt;(function(Q){Q[Q.Off=0]="Off",Q[Q.On=1]="On",Q[Q.Relative=2]="Relative"})(xt||(e.TextEditorLineNumbersStyle=xt={}));var zt;(function(Q){Q[Q.Manual=1]="Manual",Q[Q.AfterDelay=2]="AfterDelay",Q[Q.FocusOut=3]="FocusOut"})(zt||(e.TextDocumentSaveReason=zt={}));var yt;(function(Q){Q[Q.Default=0]="Default",Q[Q.InCenter=1]="InCenter",Q[Q.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",Q[Q.AtTop=3]="AtTop"})(yt||(e.TextEditorRevealType=yt={}));var Lt;(function(Q){Q[Q.Keyboard=1]="Keyboard",Q[Q.Mouse=2]="Mouse",Q[Q.Command=3]="Command"})(Lt||(e.TextEditorSelectionChangeKind=Lt={}));var Mt;(function(Q){Q[Q.Undo=1]="Undo",Q[Q.Redo=2]="Redo"})(Mt||(e.TextDocumentChangeReason=Mt={}));var Wt;(function(Q){Q[Q.OpenOpen=0]="OpenOpen",Q[Q.ClosedClosed=1]="ClosedClosed",Q[Q.OpenClosed=2]="OpenClosed",Q[Q.ClosedOpen=3]="ClosedOpen"})(Wt||(e.DecorationRangeBehavior=Wt={})),function(Q){function W(be){switch(be){case"keyboard":return Q.Keyboard;case"mouse":return Q.Mouse;case"api":return Q.Command}}Q.fromValue=W}(Lt||(e.TextEditorSelectionChangeKind=Lt={}));let Tt=class{constructor(W,be){if(be&&!f.URI.isUri(be))throw(0,M.illegalArgument)("target");if(!U.isRange(W)||W.isEmpty)throw(0,M.illegalArgument)("range");this.range=W,this.target=be}};e.DocumentLink=Tt,e.DocumentLink=Tt=je([L],Tt);let Rt=class{constructor(W,be,Re,Xe){this.red=W,this.green=be,this.blue=Re,this.alpha=Xe}};e.Color=Rt,e.Color=Rt=je([L],Rt);let Ft=class{constructor(W,be){if(be&&!(be instanceof Rt))throw(0,M.illegalArgument)("color");if(!U.isRange(W)||W.isEmpty)throw(0,M.illegalArgument)("range");this.range=W,this.color=be}};e.ColorInformation=Ft,e.ColorInformation=Ft=je([L],Ft);let Ut=class{constructor(W){if(!W||typeof W!="string")throw(0,M.illegalArgument)("label");this.label=W}};e.ColorPresentation=Ut,e.ColorPresentation=Ut=je([L],Ut);var $t;(function(Q){Q[Q.RGB=0]="RGB",Q[Q.HEX=1]="HEX",Q[Q.HSL=2]="HSL"})($t||(e.ColorFormat=$t={}));var Bt;(function(Q){Q[Q.Error=0]="Error",Q[Q.Warning=1]="Warning",Q[Q.Information=2]="Information"})(Bt||(e.SourceControlInputBoxValidationType=Bt={}));var ht;(function(Q){Q[Q.Unknown=0]="Unknown",Q[Q.Shutdown=1]="Shutdown",Q[Q.Process=2]="Process",Q[Q.User=3]="User",Q[Q.Extension=4]="Extension"})(ht||(e.TerminalExitReason=ht={}));class ut{constructor(W,be,Re){if(this.startIndex=W,this.length=be,this.tooltip=Re,typeof W!="number"||W<0)throw(0,M.illegalArgument)("startIndex");if(typeof be!="number"||be<1)throw(0,M.illegalArgument)("length");if(Re!==void 0&&typeof Re!="string")throw(0,M.illegalArgument)("tooltip")}}e.TerminalLink=ut;class Vt{constructor(W){this.uri=W}}e.TerminalQuickFixOpener=Vt;class Ne{constructor(W){this.terminalCommand=W}}e.TerminalQuickFixCommand=Ne;var Ge;(function(Q){Q[Q.Panel=1]="Panel",Q[Q.Editor=2]="Editor"})(Ge||(e.TerminalLocation=Ge={}));class tt{constructor(W){if(this.options=W,typeof W!="object")throw(0,M.illegalArgument)("options")}}e.TerminalProfile=tt;var vt;(function(Q){Q[Q.Always=1]="Always",Q[Q.Silent=2]="Silent",Q[Q.Never=3]="Never"})(vt||(e.TaskRevealKind=vt={}));var Pt;(function(Q){Q[Q.Shared=1]="Shared",Q[Q.Dedicated=2]="Dedicated",Q[Q.New=3]="New"})(Pt||(e.TaskPanelKind=Pt={}));let St=class{static{_=this}static{this.Clean=new _("clean","Clean")}static{this.Build=new _("build","Build")}static{this.Rebuild=new _("rebuild","Rebuild")}static{this.Test=new _("test","Test")}static from(W){switch(W){case"clean":return _.Clean;case"build":return _.Build;case"rebuild":return _.Rebuild;case"test":return _.Test;default:return}}constructor(W,be){if(this.label=be,typeof W!="string"||typeof be!="string")throw(0,M.illegalArgument)("name");this._id=W}get id(){return this._id}};e.TaskGroup=St,e.TaskGroup=St=_=je([L],St);function Ke(Q){let W="";for(let be=0;be<Q.length;be++)W+=Q[be].replace(/,/g,",,")+",";return W}let Le=class{constructor(W,be,Re){if(typeof W!="string")throw(0,M.illegalArgument)("process");this._args=[],this._process=W,be!==void 0&&(Array.isArray(be)?(this._args=be,this._options=Re):this._options=be)}get process(){return this._process}set process(W){if(typeof W!="string")throw(0,M.illegalArgument)("process");this._process=W}get args(){return this._args}set args(W){Array.isArray(W)||(W=[]),this._args=W}get options(){return this._options}set options(W){this._options=W}computeId(){const W=[];if(W.push("process"),this._process!==void 0&&W.push(this._process),this._args&&this._args.length>0)for(const be of this._args)W.push(be);return Ke(W)}};e.ProcessExecution=Le,e.ProcessExecution=Le=je([L],Le);let Fe=class{constructor(W,be,Re){if(this._args=[],Array.isArray(be)){if(!W)throw(0,M.illegalArgument)("command can't be undefined or null");if(typeof W!="string"&&typeof W.value!="string")throw(0,M.illegalArgument)("command");this._command=W,this._args=be,this._options=Re}else{if(typeof W!="string")throw(0,M.illegalArgument)("commandLine");this._commandLine=W,this._options=be}}get commandLine(){return this._commandLine}set commandLine(W){if(typeof W!="string")throw(0,M.illegalArgument)("commandLine");this._commandLine=W}get command(){return this._command?this._command:""}set command(W){if(typeof W!="string"&&typeof W.value!="string")throw(0,M.illegalArgument)("command");this._command=W}get args(){return this._args}set args(W){this._args=W||[]}get options(){return this._options}set options(W){this._options=W}computeId(){const W=[];if(W.push("shell"),this._commandLine!==void 0&&W.push(this._commandLine),this._command!==void 0&&W.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const be of this._args)W.push(typeof be=="string"?be:be.value);return Ke(W)}};e.ShellExecution=Fe,e.ShellExecution=Fe=je([L],Fe);var ke;(function(Q){Q[Q.Escape=1]="Escape",Q[Q.Strong=2]="Strong",Q[Q.Weak=3]="Weak"})(ke||(e.ShellQuoting=ke={}));var ne;(function(Q){Q[Q.Global=1]="Global",Q[Q.Workspace=2]="Workspace"})(ne||(e.TaskScope=ne={}));class Oe{constructor(W){this._callback=W}computeId(){return"customExecution"+(0,y.generateUuid)()}set callback(W){this._callback=W}get callback(){return this._callback}}e.CustomExecution=Oe;let We=class{static{S=this}static{this.ExtensionCallbackType="customExecution"}static{this.ProcessType="process"}static{this.ShellType="shell"}static{this.EmptyType="$empty"}constructor(W,be,Re,Xe,nt,dt){this.__deprecated=!1,this._definition=this.definition=W;let gt;typeof be=="string"?(this._name=this.name=be,this._source=this.source=Re,this.execution=Xe,gt=nt,this.__deprecated=!0):be===ne.Global||be===ne.Workspace?(this.target=be,this._name=this.name=Re,this._source=this.source=Xe,this.execution=nt,gt=dt):(this.target=be,this._name=this.name=Re,this._source=this.source=Xe,this.execution=nt,gt=dt),typeof gt=="string"?(this._problemMatchers=[gt],this._hasDefinedMatchers=!0):Array.isArray(gt)?(this._problemMatchers=gt,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(W){this.__id=W}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof Le?this._definition={type:S.ProcessType,id:this._execution.computeId()}:this._execution instanceof Fe?this._definition={type:S.ShellType,id:this._execution.computeId()}:this._execution instanceof Oe?this._definition={type:S.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:S.EmptyType,id:(0,y.generateUuid)()}}get definition(){return this._definition}set definition(W){if(W==null)throw(0,M.illegalArgument)("Kind can't be undefined or null");this.clear(),this._definition=W}get scope(){return this._scope}set target(W){this.clear(),this._scope=W}get name(){return this._name}set name(W){if(typeof W!="string")throw(0,M.illegalArgument)("name");this.clear(),this._name=W}get execution(){return this._execution}set execution(W){W===null&&(W=void 0),this.clear(),this._execution=W;const be=this._definition.type;(S.EmptyType===be||S.ProcessType===be||S.ShellType===be||S.ExtensionCallbackType===be)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(W){if(Array.isArray(W))this.clear(),this._problemMatchers=W,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(W){W!==!0&&W!==!1&&(W=!1),this.clear(),this._isBackground=W}get source(){return this._source}set source(W){if(typeof W!="string"||W.length===0)throw(0,M.illegalArgument)("source must be a string of length > 0");this.clear(),this._source=W}get group(){return this._group}set group(W){W===null&&(W=void 0),this.clear(),this._group=W}get detail(){return this._detail}set detail(W){W===null&&(W=void 0),this._detail=W}get presentationOptions(){return this._presentationOptions}set presentationOptions(W){W==null&&(W=Object.create(null)),this.clear(),this._presentationOptions=W}get runOptions(){return this._runOptions}set runOptions(W){W==null&&(W=Object.create(null)),this.clear(),this._runOptions=W}};e.Task=We,e.Task=We=S=je([L],We);var Ze;(function(Q){Q[Q.SourceControl=1]="SourceControl",Q[Q.Window=10]="Window",Q[Q.Notification=15]="Notification"})(Ze||(e.ProgressLocation=Ze={}));var Qe;(function(Q){function W(be){const Re=be;return(0,p.isNumber)(Re.value)?Re.tooltip&&!(0,p.isString)(Re.tooltip)?(console.log("INVALID view badge, invalid tooltip",Re.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",Re.value),!1)}Q.isViewBadge=W})(Qe||(e.ViewBadge=Qe={}));let ot=k=class{static isTreeItem(W,be){const Re=W;if(Re.checkboxState!==void 0){const Xe=(0,p.isNumber)(Re.checkboxState)?Re.checkboxState:(0,p.isObject)(Re.checkboxState)&&(0,p.isNumber)(Re.checkboxState.state)?Re.checkboxState.state:void 0,nt=!(0,p.isNumber)(Re.checkboxState)&&(0,p.isObject)(Re.checkboxState)?Re.checkboxState.tooltip:void 0;if(Xe===void 0||Xe!==Ct.Checked&&Xe!==Ct.Unchecked||nt!==void 0&&!(0,p.isString)(nt))return console.log("INVALID tree item, invalid checkboxState",Re.checkboxState),!1}if(W instanceof k)return!0;if(Re.label!==void 0&&!(0,p.isString)(Re.label)&&!Re.label?.label)return console.log("INVALID tree item, invalid label",Re.label),!1;if(Re.id!==void 0&&!(0,p.isString)(Re.id))return console.log("INVALID tree item, invalid id",Re.id),!1;if(Re.iconPath!==void 0&&!(0,p.isString)(Re.iconPath)&&!f.URI.isUri(Re.iconPath)&&(!Re.iconPath||!(0,p.isString)(Re.iconPath.id))){const Xe=Re.iconPath;if(!Xe||!(0,p.isString)(Xe.light)&&!f.URI.isUri(Xe.light)&&!(0,p.isString)(Xe.dark)&&!f.URI.isUri(Xe.dark))return console.log("INVALID tree item, invalid iconPath",Re.iconPath),!1}return Re.description!==void 0&&!(0,p.isString)(Re.description)&&typeof Re.description!="boolean"?(console.log("INVALID tree item, invalid description",Re.description),!1):Re.resourceUri!==void 0&&!f.URI.isUri(Re.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",Re.resourceUri),!1):Re.tooltip!==void 0&&!(0,p.isString)(Re.tooltip)&&!(Re.tooltip instanceof Ye)?(console.log("INVALID tree item, invalid tooltip",Re.tooltip),!1):Re.command!==void 0&&!Re.command.command?(console.log("INVALID tree item, invalid command",Re.command),!1):Re.collapsibleState!==void 0&&Re.collapsibleState<bt.None&&Re.collapsibleState>bt.Expanded?(console.log("INVALID tree item, invalid collapsibleState",Re.collapsibleState),!1):Re.contextValue!==void 0&&!(0,p.isString)(Re.contextValue)?(console.log("INVALID tree item, invalid contextValue",Re.contextValue),!1):Re.accessibilityInformation!==void 0&&!Re.accessibilityInformation?.label?(console.log("INVALID tree item, invalid accessibilityInformation",Re.accessibilityInformation),!1):!0}constructor(W,be=bt.None){this.collapsibleState=be,f.URI.isUri(W)?this.resourceUri=W:this.label=W}};e.TreeItem=ot,e.TreeItem=ot=k=je([L],ot);var bt;(function(Q){Q[Q.None=0]="None",Q[Q.Collapsed=1]="Collapsed",Q[Q.Expanded=2]="Expanded"})(bt||(e.TreeItemCollapsibleState=bt={}));var Ct;(function(Q){Q[Q.Unchecked=0]="Unchecked",Q[Q.Checked=1]="Checked"})(Ct||(e.TreeItemCheckboxState=Ct={}));let _t=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(W){this.value=W}};e.DataTransferItem=_t,e.DataTransferItem=_t=je([L],_t);class ft extends _t{}e.InternalDataTransferItem=ft;class wt extends ft{#e;constructor(W){super(""),this.#e=W}asFile(){return this.#e}}e.InternalFileDataTransferItem=wt;class qi{constructor(W,be,Re,Xe){this.name=W,this.uri=be,this._itemId=Re,this._getData=Xe}data(){return this._getData()}}e.DataTransferFile=qi;let jt=class{#e=new Map;constructor(W){for(const[be,Re]of W??[]){const Xe=this.#e.get(this.#t(be));Xe?Xe.push(Re):this.#e.set(this.#t(be),[Re])}}get(W){return this.#e.get(this.#t(W))?.[0]}set(W,be){this.#e.set(this.#t(W),[be])}forEach(W,be){for(const[Re,Xe]of this.#e)for(const nt of Xe)W.call(be,nt,Re,this)}*[Symbol.iterator](){for(const[W,be]of this.#e)for(const Re of be)yield[W,Re]}#t(W){return W.toLowerCase()}};e.DataTransfer=jt,e.DataTransfer=jt=je([L],jt);let Si=class{constructor(W){this.insertText=W}};e.DocumentDropEdit=Si,e.DocumentDropEdit=Si=je([L],Si);let ri=class{constructor(W,be){this.label=be,this.insertText=W}};e.DocumentPasteEdit=ri,e.DocumentPasteEdit=ri=je([L],ri);let qt=class{constructor(W,be){this.id=W,this.color=be}static isThemeIcon(W){return typeof W.id!="string"?(console.log("INVALID ThemeIcon, invalid id",W.id),!1):!0}};e.ThemeIcon=qt,e.ThemeIcon=qt=je([L],qt),qt.File=new qt("file"),qt.Folder=new qt("folder");let At=class{constructor(W){this.id=W}};e.ThemeColor=At,e.ThemeColor=At=je([L],At);var Gi;(function(Q){Q[Q.Global=1]="Global",Q[Q.Workspace=2]="Workspace",Q[Q.WorkspaceFolder=3]="WorkspaceFolder"})(Gi||(e.ConfigurationTarget=Gi={}));let _i=class{get base(){return this._base}set base(W){this._base=W,this._baseUri=f.URI.file(W)}get baseUri(){return this._baseUri}set baseUri(W){this._baseUri=W,this._base=W.fsPath}constructor(W,be){if(typeof W!="string"&&(!W||!f.URI.isUri(W)&&!f.URI.isUri(W.uri)))throw(0,M.illegalArgument)("base");if(typeof be!="string")throw(0,M.illegalArgument)("pattern");typeof W=="string"?this.baseUri=f.URI.file(W):f.URI.isUri(W)?this.baseUri=W:this.baseUri=W.uri,this.pattern=be}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};e.RelativePattern=_i,e.RelativePattern=_i=je([L],_i);const kt=new WeakMap;function Ki(Q,W){kt.set(Q,W)}e.setBreakpointId=Ki;let ei=class{constructor(W,be,Re,Xe){this.enabled=typeof W=="boolean"?W:!0,typeof be=="string"&&(this.condition=be),typeof Re=="string"&&(this.hitCondition=Re),typeof Xe=="string"&&(this.logMessage=Xe)}get id(){return this._id||(this._id=kt.get(this)??(0,y.generateUuid)()),this._id}};e.Breakpoint=ei,e.Breakpoint=ei=je([L],ei);let si=class extends ei{constructor(W,be,Re,Xe,nt){if(super(be,Re,Xe,nt),W===null)throw(0,M.illegalArgument)("location");this.location=W}};e.SourceBreakpoint=si,e.SourceBreakpoint=si=je([L],si);let yi=class extends ei{constructor(W,be,Re,Xe,nt){super(be,Re,Xe,nt),this.functionName=W}};e.FunctionBreakpoint=yi,e.FunctionBreakpoint=yi=je([L],yi);let Ci=class extends ei{constructor(W,be,Re,Xe,nt,dt,gt){if(super(Xe,nt,dt,gt),!be)throw(0,M.illegalArgument)("dataId");this.label=W,this.dataId=be,this.canPersist=Re}};e.DataBreakpoint=Ci,e.DataBreakpoint=Ci=je([L],Ci);let Nt=class{constructor(W,be,Re){this.command=W,this.args=be||[],this.options=Re}};e.DebugAdapterExecutable=Nt,e.DebugAdapterExecutable=Nt=je([L],Nt);let mi=class{constructor(W,be){this.port=W,this.host=be}};e.DebugAdapterServer=mi,e.DebugAdapterServer=mi=je([L],mi);let Di=class{constructor(W){this.path=W}};e.DebugAdapterNamedPipeServer=Di,e.DebugAdapterNamedPipeServer=Di=je([L],Di);let oi=class{constructor(W){this.implementation=W}};e.DebugAdapterInlineImplementation=oi,e.DebugAdapterInlineImplementation=oi=je([L],oi);let ai=class{constructor(W,be,Re){this.session=W,this.threadId=be,this.frameId=Re}};e.StackFrameFocus=ai,e.StackFrameFocus=ai=je([L],ai);let mt=class{constructor(W,be){this.session=W,this.threadId=be}};e.ThreadFocus=mt,e.ThreadFocus=mt=je([L],mt);let Ii=class{constructor(W,be){this.range=W,this.expression=be}};e.EvaluatableExpression=Ii,e.EvaluatableExpression=Ii=je([L],Ii);var Yt;(function(Q){Q[Q.Invoke=0]="Invoke",Q[Q.Automatic=1]="Automatic"})(Yt||(e.InlineCompletionTriggerKind=Yt={}));let ti=class{constructor(W,be){this.range=W,this.text=be}};e.InlineValueText=ti,e.InlineValueText=ti=je([L],ti);let gi=class{constructor(W,be,Re=!0){this.range=W,this.variableName=be,this.caseSensitiveLookup=Re}};e.InlineValueVariableLookup=gi,e.InlineValueVariableLookup=gi=je([L],gi);let Pi=class{constructor(W,be){this.range=W,this.expression=be}};e.InlineValueEvaluatableExpression=Pi,e.InlineValueEvaluatableExpression=Pi=je([L],Pi);let ki=class{constructor(W,be){this.frameId=W,this.stoppedLocation=be}};e.InlineValueContext=ki,e.InlineValueContext=ki=je([L],ki);var Qi;(function(Q){Q[Q.Changed=1]="Changed",Q[Q.Created=2]="Created",Q[Q.Deleted=3]="Deleted"})(Qi||(e.FileChangeType=Qi={}));let pi=m=class extends Error{static FileExists(W){return new m(W,t.FileSystemProviderErrorCode.FileExists,m.FileExists)}static FileNotFound(W){return new m(W,t.FileSystemProviderErrorCode.FileNotFound,m.FileNotFound)}static FileNotADirectory(W){return new m(W,t.FileSystemProviderErrorCode.FileNotADirectory,m.FileNotADirectory)}static FileIsADirectory(W){return new m(W,t.FileSystemProviderErrorCode.FileIsADirectory,m.FileIsADirectory)}static NoPermissions(W){return new m(W,t.FileSystemProviderErrorCode.NoPermissions,m.NoPermissions)}static Unavailable(W){return new m(W,t.FileSystemProviderErrorCode.Unavailable,m.Unavailable)}constructor(W,be=t.FileSystemProviderErrorCode.Unknown,Re){super(f.URI.isUri(W)?W.toString(!0):W),this.code=Re?.name??"Unknown",(0,t.markAsFileSystemProviderError)(this,be),Object.setPrototypeOf(this,m.prototype),typeof Error.captureStackTrace=="function"&&typeof Re=="function"&&Error.captureStackTrace(this,Re)}};e.FileSystemError=pi,e.FileSystemError=pi=m=je([L],pi);let Ai=class{constructor(W,be,Re){this.start=W,this.end=be,this.kind=Re}};e.FoldingRange=Ai,e.FoldingRange=Ai=je([L],Ai);var Ti;(function(Q){Q[Q.Comment=1]="Comment",Q[Q.Imports=2]="Imports",Q[Q.Region=3]="Region"})(Ti||(e.FoldingRangeKind=Ti={}));var li;(function(Q){Q[Q.Collapsed=0]="Collapsed",Q[Q.Expanded=1]="Expanded"})(li||(e.CommentThreadCollapsibleState=li={}));var Xi;(function(Q){Q[Q.Editing=0]="Editing",Q[Q.Preview=1]="Preview"})(Xi||(e.CommentMode=Xi={}));var vi;(function(Q){Q[Q.Published=0]="Published",Q[Q.Draft=1]="Draft"})(vi||(e.CommentState=vi={}));var Ei;(function(Q){Q[Q.Unresolved=0]="Unresolved",Q[Q.Resolved=1]="Resolved"})(Ei||(e.CommentThreadState=Ei={}));class on{constructor(W,be=[]){this.tokenTypes=W,this.tokenModifiers=be}}e.SemanticTokensLegend=on;function an(Q){return typeof Q>"u"||(0,p.isStringArray)(Q)}class ii{constructor(W){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,W){this._hasLegend=!0;for(let be=0,Re=W.tokenTypes.length;be<Re;be++)this._tokenTypeStrToInt.set(W.tokenTypes[be],be);for(let be=0,Re=W.tokenModifiers.length;be<Re;be++)this._tokenModifierStrToInt.set(W.tokenModifiers[be],be)}}push(W,be,Re,Xe,nt){if(typeof W=="number"&&typeof be=="number"&&typeof Re=="number"&&typeof Xe=="number"&&(typeof nt=="number"||typeof nt>"u"))return typeof nt>"u"&&(nt=0),this._pushEncoded(W,be,Re,Xe,nt);if(U.isRange(W)&&typeof be=="string"&&an(Re))return this._push(W,be,Re);throw(0,M.illegalArgument)()}_push(W,be,Re){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(W.start.line!==W.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(be))throw new Error("`tokenType` is not in the provided legend");const Xe=W.start.line,nt=W.start.character,dt=W.end.character-W.start.character,gt=this._tokenTypeStrToInt.get(be);let Ht=0;if(Re)for(const Kt of Re){if(!this._tokenModifierStrToInt.has(Kt))throw new Error("`tokenModifier` is not in the provided legend");const Xt=this._tokenModifierStrToInt.get(Kt);Ht|=1<<Xt>>>0}this._pushEncoded(Xe,nt,dt,gt,Ht)}_pushEncoded(W,be,Re,Xe,nt){if(this._dataIsSortedAndDeltaEncoded&&(W<this._prevLine||W===this._prevLine&&be<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const Ht=this._data.length/5|0;let Kt=0,Xt=0;for(let Zt=0;Zt<Ht;Zt++){let ni=this._data[5*Zt],Vi=this._data[5*Zt+1];ni===0?(ni=Kt,Vi+=Xt):ni+=Kt,this._data[5*Zt]=ni,this._data[5*Zt+1]=Vi,Kt=ni,Xt=Vi}}let dt=W,gt=be;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(dt-=this._prevLine,dt===0&&(gt-=this._prevChar)),this._data[this._dataLen++]=dt,this._data[this._dataLen++]=gt,this._data[this._dataLen++]=Re,this._data[this._dataLen++]=Xe,this._data[this._dataLen++]=nt,this._prevLine=W,this._prevChar=be}static _sortAndDeltaEncode(W){const be=[],Re=W.length/5|0;for(let gt=0;gt<Re;gt++)be[gt]=gt;be.sort((gt,Ht)=>{const Kt=W[5*gt],Xt=W[5*Ht];if(Kt===Xt){const Zt=W[5*gt+1],ni=W[5*Ht+1];return Zt-ni}return Kt-Xt});const Xe=new Uint32Array(W.length);let nt=0,dt=0;for(let gt=0;gt<Re;gt++){const Ht=5*be[gt],Kt=W[Ht+0],Xt=W[Ht+1],Zt=W[Ht+2],ni=W[Ht+3],Vi=W[Ht+4],Sn=Kt-nt,Rn=Sn===0?Xt-dt:Xt,ji=5*gt;Xe[ji+0]=Sn,Xe[ji+1]=Rn,Xe[ji+2]=Zt,Xe[ji+3]=ni,Xe[ji+4]=Vi,nt=Kt,dt=Xt}return Xe}build(W){return this._dataIsSortedAndDeltaEncoded?new Ri(new Uint32Array(this._data),W):new Ri(ii._sortAndDeltaEncode(this._data),W)}}e.SemanticTokensBuilder=ii;class Ri{constructor(W,be){this.resultId=be,this.data=W}}e.SemanticTokens=Ri;class ln{constructor(W,be,Re){this.start=W,this.deleteCount=be,this.data=Re}}e.SemanticTokensEdit=ln;class cn{constructor(W,be){this.resultId=be,this.edits=W}}e.SemanticTokensEdits=cn;var wi;(function(Q){Q[Q.Separate=0]="Separate",Q[Q.MergeWithParent=1]="MergeWithParent"})(wi||(e.DebugConsoleMode=wi={}));let Li=class{static{this.Back={iconPath:new qt("arrow-left")}}constructor(){}};e.QuickInputButtons=Li,e.QuickInputButtons=Li=je([L],Li);var Yi;(function(Q){Q[Q.Separator=-1]="Separator",Q[Q.Default=0]="Default"})(Yi||(e.QuickPickItemKind=Yi={}));var ci;(function(Q){Q[Q.Info=1]="Info",Q[Q.Warning=2]="Warning",Q[Q.Error=3]="Error"})(ci||(e.InputBoxValidationSeverity=ci={}));var Mi;(function(Q){Q[Q.UI=1]="UI",Q[Q.Workspace=2]="Workspace"})(Mi||(e.ExtensionKind=Mi={}));class un{static validate(W){if(typeof W.badge=="string"){let be=(0,u.nextCharLength)(W.badge,0);if(be<W.badge.length&&(be+=(0,u.nextCharLength)(W.badge,be)),W.badge.length>be)throw new Error("The 'badge'-property must be undefined or a short character")}else if(W.badge&&!qt.isThemeIcon(W.badge))throw new Error("The 'badge'-property is not a valid ThemeIcon");if(!W.color&&!W.badge&&!W.tooltip)throw new Error("The decoration is empty");return!0}constructor(W,be,Re){this.badge=W,this.tooltip=be,this.color=Re}}e.FileDecoration=un;let Fi=class{constructor(W){this.kind=W}};e.ColorTheme=Fi,e.ColorTheme=Fi=je([L],Fi);var Ni;(function(Q){Q[Q.Light=1]="Light",Q[Q.Dark=2]="Dark",Q[Q.HighContrast=3]="HighContrast",Q[Q.HighContrastLight=4]="HighContrastLight"})(Ni||(e.ColorThemeKind=Ni={}));class Jt{static isNotebookRange(W){return W instanceof Jt?!0:W?typeof W.start=="number"&&typeof W.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}constructor(W,be){if(W<0)throw(0,M.illegalArgument)("start must be positive");if(be<0)throw(0,M.illegalArgument)("end must be positive");W<=be?(this._start=W,this._end=be):(this._start=be,this._end=W)}with(W){let be=this._start,Re=this._end;return W.start!==void 0&&(be=W.start),W.end!==void 0&&(Re=W.end),be===this._start&&Re===this._end?this:new Jt(be,Re)}}e.NotebookRange=Jt;class bi{static validate(W){if(typeof W.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof W.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof W.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(W){return Array.isArray(W)&&W.every(be=>bi.isNotebookCellData(be))}static isNotebookCellData(W){return!0}constructor(W,be,Re,Xe,nt,dt,gt){this.kind=W,this.value=be,this.languageId=Re,this.mime=Xe,this.outputs=nt??[],this.metadata=dt,this.executionSummary=gt,bi.validate(this)}}e.NotebookCellData=bi;class dn{constructor(W){this.cells=W}}e.NotebookData=dn;class Gt{static isNotebookCellOutputItem(W){return W instanceof Gt?!0:W?typeof W.mime=="string"&&W.data instanceof Uint8Array:!1}static error(W){const be={name:W.name,message:W.message,stack:W.stack};return Gt.json(be,"application/vnd.code.notebook.error")}static stdout(W){return Gt.text(W,"application/vnd.code.notebook.stdout")}static stderr(W){return Gt.text(W,"application/vnd.code.notebook.stderr")}static bytes(W,be="application/octet-stream"){return new Gt(W,be)}static#e=new TextEncoder;static text(W,be=R.Mimes.text){const Re=Gt.#e.encode(String(W));return new Gt(Re,be)}static json(W,be="text/x-json"){const Re=JSON.stringify(W,void 0,"	");return Gt.text(Re,be)}constructor(W,be){this.data=W,this.mime=be;const Re=(0,R.normalizeMimeType)(be,!0);if(!Re)throw new Error(`INVALID mime type: ${be}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=Re}}e.NotebookCellOutputItem=Gt;class ui{static isNotebookCellOutput(W){return W instanceof ui?!0:!W||typeof W!="object"?!1:typeof W.id=="string"&&Array.isArray(W.items)}static ensureUniqueMimeTypes(W,be=!1){const Re=new Set,Xe=new Set;for(let nt=0;nt<W.length;nt++){const dt=W[nt],gt=(0,R.normalizeMimeType)(dt.mime);if(!Re.has(gt)||(0,g.isTextStreamMime)(gt)){Re.add(gt);continue}Xe.add(nt),be&&console.warn(`DUPLICATED mime type '${dt.mime}' will be dropped`)}return Xe.size===0?W:W.filter((nt,dt)=>!Xe.has(dt))}constructor(W,be,Re){this.items=ui.ensureUniqueMimeTypes(W,!0),typeof be=="string"?(this.id=be,this.metadata=Re):(this.id=(0,y.generateUuid)(),this.metadata=be??Re)}}e.NotebookCellOutput=ui;var Oi;(function(Q){Q[Q.Markup=1]="Markup",Q[Q.Code=2]="Code"})(Oi||(e.NotebookCellKind=Oi={}));var $e;(function(Q){Q[Q.Idle=1]="Idle",Q[Q.Pending=2]="Pending",Q[Q.Executing=3]="Executing"})($e||(e.NotebookCellExecutionState=$e={}));var Qt;(function(Q){Q[Q.Left=1]="Left",Q[Q.Right=2]="Right"})(Qt||(e.NotebookCellStatusBarAlignment=Qt={}));var hi;(function(Q){Q[Q.Default=0]="Default",Q[Q.InCenter=1]="InCenter",Q[Q.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",Q[Q.AtTop=3]="AtTop"})(hi||(e.NotebookEditorRevealType=hi={}));class hn{constructor(W,be){this.text=W,this.alignment=be}}e.NotebookCellStatusBarItem=hn;var Et;(function(Q){Q[Q.Default=1]="Default",Q[Q.Preferred=2]="Preferred"})(Et||(e.NotebookControllerAffinity=Et={}));var Ji;(function(Q){Q[Q.Default=1]="Default",Q[Q.Preferred=2]="Preferred",Q[Q.Hidden=-1]="Hidden"})(Ji||(e.NotebookControllerAffinity2=Ji={}));class fn{constructor(W,be=[]){this.uri=W,this.provides=(0,w.asArray)(be)}}e.NotebookRendererScript=fn;class Zi{constructor(W){this.label=W}}e.NotebookKernelSourceAction=Zi;let xi=class{constructor(W,be){this.label=W,this.timestamp=be}};e.TimelineItem=xi,e.TimelineItem=xi=je([L],xi);var fi;(function(Q){Q[Q.Production=1]="Production",Q[Q.Development=2]="Development",Q[Q.Test=3]="Test"})(fi||(e.ExtensionMode=fi={}));var en;(function(Q){Q[Q.Node=1]="Node",Q[Q.Webworker=2]="Webworker"})(en||(e.ExtensionRuntime=en={}));var tn;(function(Q){Q[Q.Other=0]="Other",Q[Q.Comment=1]="Comment",Q[Q.String=2]="String",Q[Q.RegEx=3]="RegEx"})(tn||(e.StandardTokenType=tn={}));class mn{constructor(W,be){this.ranges=W,this.wordPattern=be}}e.LinkedEditingRanges=mn;class nn{constructor(W){this._autoForwardAction=W}get autoForwardAction(){return this._autoForwardAction}}e.PortAttributes=nn;var rn;(function(Q){Q[Q.Queued=1]="Queued",Q[Q.Running=2]="Running",Q[Q.Passed=3]="Passed",Q[Q.Failed=4]="Failed",Q[Q.Skipped=5]="Skipped",Q[Q.Errored=6]="Errored"})(rn||(e.TestResultState=rn={}));var sn;(function(Q){Q[Q.Run=1]="Run",Q[Q.Debug=2]="Debug",Q[Q.Coverage=3]="Coverage"})(sn||(e.TestRunProfileKind=sn={}));let Ui=class{constructor(W=void 0,be=void 0,Re=void 0,Xe=!1){this.include=W,this.exclude=be,this.profile=Re,this.continuous=Xe}};e.TestRunRequest=Ui,e.TestRunRequest=Ui=je([L],Ui);let $i=v=class{static diff(W,be,Re){const Xe=new v(W);return Xe.expectedOutput=be,Xe.actualOutput=Re,Xe}constructor(W){this.message=W}};e.TestMessage=$i,e.TestMessage=$i=v=je([L],$i);let Bi=class{constructor(W){this.id=W}};e.TestTag=Bi,e.TestTag=Bi=je([L],Bi);let di=class{constructor(W,be){this.covered=W,this.total=be}};e.CoveredCount=di,e.CoveredCount=di=je([L],di);let zi=D=class{static fromDetails(W,be){const Re=new di(0,0),Xe=new di(0,0),nt=new di(0,0);for(const gt of be)if("branches"in gt){Re.total+=1,Re.covered+=gt.executionCount>0?1:0;for(const Ht of gt.branches)Xe.total+=1,Xe.covered+=Ht.executionCount>0?1:0}else nt.total+=1,nt.covered+=gt.executionCount>0?1:0;const dt=new D(W,Re,Xe.total>0?Xe:void 0,nt.total>0?nt:void 0);return dt.detailedCoverage=be,dt}constructor(W,be,Re,Xe){this.uri=W,this.statementCoverage=be,this.branchCoverage=Re,this.functionCoverage=Xe}};e.FileCoverage=zi,e.FileCoverage=zi=D=je([L],zi);let Hi=class{constructor(W,be,Re=[]){this.executionCount=W,this.location=be,this.branches=Re}};e.StatementCoverage=Hi,e.StatementCoverage=Hi=je([L],Hi);let Wi=class{constructor(W,be){this.executionCount=W,this.location=be}};e.BranchCoverage=Wi,e.BranchCoverage=Wi=je([L],Wi);let we=class{constructor(W,be){this.executionCount=W,this.location=be}};e.FunctionCoverage=we,e.FunctionCoverage=we=je([L],we);var Ie;(function(Q){Q[Q.None=0]="None",Q[Q.Option=1]="Option",Q[Q.Default=2]="Default",Q[Q.Preferred=3]="Preferred"})(Ie||(e.ExternalUriOpenerPriority=Ie={}));var Be;(function(Q){Q[Q.Untrusted=0]="Untrusted",Q[Q.Trusted=1]="Trusted",Q[Q.Unspecified=2]="Unspecified"})(Be||(e.WorkspaceTrustState=Be={}));var lt;(function(Q){Q[Q.Notify=1]="Notify",Q[Q.OpenBrowser=2]="OpenBrowser",Q[Q.OpenPreview=3]="OpenPreview",Q[Q.Silent=4]="Silent",Q[Q.Ignore=5]="Ignore",Q[Q.OpenBrowserOnce=6]="OpenBrowserOnce"})(lt||(e.PortAutoForwardAction=lt={}));class Dt{constructor(W,be,Re,Xe,nt,dt){this.kind=W,this.name=be,this.detail=Re,this.uri=Xe,this.range=nt,this.selectionRange=dt}}e.TypeHierarchyItem=Dt;class Ot{constructor(W){this.uri=W}}e.TextTabInput=Ot;class _n{constructor(W,be){this.original=W,this.modified=be}}e.TextDiffTabInput=_n;class yn{constructor(W,be,Re,Xe){this.base=W,this.input1=be,this.input2=Re,this.result=Xe}}e.TextMergeTabInput=yn;class Cn{constructor(W,be){this.uri=W,this.viewType=be}}e.CustomEditorTabInput=Cn;class Dn{constructor(W){this.viewType=W}}e.WebviewEditorTabInput=Dn;class In{constructor(W,be){this.uri=W,this.notebookType=be}}e.NotebookEditorTabInput=In;class Pn{constructor(W,be,Re){this.original=W,this.modified=be,this.notebookType=Re}}e.NotebookDiffEditorTabInput=Pn;class kn{constructor(){}}e.TerminalEditorTabInput=kn;class An{constructor(W,be){this.uri=W,this.inputBoxUri=be}}e.InteractiveWindowInput=An;var gn;(function(Q){Q[Q.Up=1]="Up",Q[Q.Down=2]="Down"})(gn||(e.InteractiveSessionVoteDirection=gn={}));var pn;(function(Q){Q[Q.Action=1]="Action",Q[Q.Toolbar=2]="Toolbar"})(pn||(e.InteractiveSessionCopyKind=pn={}));var vn;(function(Q){Q[Q.Unhelpful=0]="Unhelpful",Q[Q.Helpful=1]="Helpful",Q[Q.Undone=2]="Undone",Q[Q.Accepted=3]="Accepted"})(vn||(e.InteractiveEditorResponseFeedbackKind=vn={}));var En;(function(Q){Q[Q.System=0]="System",Q[Q.User=1]="User",Q[Q.Assistant=2]="Assistant",Q[Q.Function=3]="Function"})(En||(e.ChatMessageRole=En={}));var wn;(function(Q){Q[Q.Short=1]="Short",Q[Q.Medium=2]="Medium",Q[Q.Full=3]="Full"})(wn||(e.ChatVariableLevel=wn={}));class Tn{constructor(W,be){this.role=W,this.content=be}}e.ChatMessage=Tn;var bn;(function(Q){Q[Q.SymbolInformation=1]="SymbolInformation",Q[Q.CommandInformation=2]="CommandInformation",Q[Q.SearchInformation=3]="SearchInformation",Q[Q.SettingInformation=4]="SettingInformation"})(bn||(e.RelatedInformationType=bn={}))}),define(ye[46],Ce([1,0,7]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.env=e.executionPlan=e.designers=e.TextType=e.ButtonType=e.SqlAssessmentResultItemKind=e.SqlAssessmentTargetType=e.TabOrientation=e.NotebookChangeKind=e.ActionOnCellCheckboxCheck=e.ColumnType=e.SchemaObjectType=e.SchemaCompareEndpointType=e.SchemaDifferenceType=e.SchemaUpdateAction=e.ConnectionProfile=e.NotebookEditOperationType=e.CellRange=e.FutureMessageType=e.SqlThemeIcon=e.TreeItem=e.NodeFilterOperator=e.NodeFilterPropertyDataType=e.AzureResource=e.TreeComponentItem=e.DatabaseEngineEdition=e.Orientation=e.CardType=e.DeclarativeDataType=e.DataProviderType=e.StatusIndicator=e.MessageLevel=e.ComponentEventType=e.ProfilingSessionType=e.StepCompletionAction=e.AgentSubSystem=e.ColumnSizingMode=e.ModelViewAction=e.ModelComponentTypes=e.FrequencyRelativeIntervals=e.FrequencySubDayTypes=e.FrequencyTypes=e.AlertType=e.JobExecutionStatus=e.JobCompletionActionCondition=e.NotifyMethods=e.WeekDays=e.ScriptOperation=e.TaskExecutionMode=e.TaskStatus=e.ExtensionNodeType=e.EditRowState=e.MetadataType=e.ConnectionOptionSpecialType=e.ServiceOptionType=void 0;var M;(function(I){I.string="string",I.multistring="multistring",I.password="password",I.number="number",I.category="category",I.boolean="boolean",I.object="object"})(M||(e.ServiceOptionType=M={}));var d;(function(I){I.connectionName="connectionName",I.serverName="serverName",I.databaseName="databaseName",I.authType="authType",I.userName="userName",I.password="password",I.appName="appName"})(d||(e.ConnectionOptionSpecialType=d={}));var A;(function(I){I[I.Table=0]="Table",I[I.View=1]="View",I[I.SProc=2]="SProc",I[I.Function=3]="Function"})(A||(e.MetadataType=A={}));var R;(function(I){I[I.clean=0]="clean",I[I.dirtyInsert=1]="dirtyInsert",I[I.dirtyDelete=2]="dirtyDelete",I[I.dirtyUpdate=3]="dirtyUpdate"})(R||(e.EditRowState=R={}));var u;(function(I){I.Server="Server",I.Database="Database"})(u||(e.ExtensionNodeType=u={}));var p;(function(I){I[I.NotStarted=0]="NotStarted",I[I.InProgress=1]="InProgress",I[I.Succeeded=2]="Succeeded",I[I.SucceededWithWarning=3]="SucceededWithWarning",I[I.Failed=4]="Failed",I[I.Canceled=5]="Canceled",I[I.Canceling=6]="Canceling"})(p||(e.TaskStatus=p={}));var f;(function(I){I[I.execute=0]="execute",I[I.script=1]="script",I[I.executeAndScript=2]="executeAndScript"})(f||(e.TaskExecutionMode=f={}));var y;(function(I){I[I.Select=0]="Select",I[I.Create=1]="Create",I[I.Insert=2]="Insert",I[I.Update=3]="Update",I[I.Delete=4]="Delete",I[I.Execute=5]="Execute",I[I.Alter=6]="Alter"})(y||(e.ScriptOperation=y={}));var E;(function(I){I[I.sunday=1]="sunday",I[I.monday=2]="monday",I[I.tuesday=4]="tuesday",I[I.wednesday=8]="wednesday",I[I.thursday=16]="thursday",I[I.friday=32]="friday",I[I.weekDays=62]="weekDays",I[I.saturday=64]="saturday",I[I.weekEnds=65]="weekEnds",I[I.everyDay=127]="everyDay"})(E||(e.WeekDays=E={}));var t;(function(I){I[I.none=0]="none",I[I.notifyEmail=1]="notifyEmail",I[I.pager=2]="pager",I[I.netSend=4]="netSend",I[I.notifyAll=7]="notifyAll"})(t||(e.NotifyMethods=t={}));var s;(function(I){I[I.Never=0]="Never",I[I.OnSuccess=1]="OnSuccess",I[I.OnFailure=2]="OnFailure",I[I.Always=3]="Always"})(s||(e.JobCompletionActionCondition=s={}));var g;(function(I){I[I.Executing=1]="Executing",I[I.WaitingForWorkerThread=2]="WaitingForWorkerThread",I[I.BetweenRetries=3]="BetweenRetries",I[I.Idle=4]="Idle",I[I.Suspended=5]="Suspended",I[I.WaitingForStepToFinish=6]="WaitingForStepToFinish",I[I.PerformingCompletionAction=7]="PerformingCompletionAction"})(g||(e.JobExecutionStatus=g={}));var C;(function(I){I[I.sqlServerEvent=1]="sqlServerEvent",I[I.sqlServerPerformanceCondition=2]="sqlServerPerformanceCondition",I[I.nonSqlServerEvent=3]="nonSqlServerEvent",I[I.wmiEvent=4]="wmiEvent"})(C||(e.AlertType=C={}));var r;(function(I){I[I.Unknown=0]="Unknown",I[I.OneTime=2]="OneTime",I[I.Daily=4]="Daily",I[I.Weekly=8]="Weekly",I[I.Monthly=16]="Monthly",I[I.MonthlyRelative=32]="MonthlyRelative",I[I.AutoStart=64]="AutoStart",I[I.OnIdle=128]="OnIdle"})(r||(e.FrequencyTypes=r={}));var h;(function(I){I[I.Unknown=0]="Unknown",I[I.Once=1]="Once",I[I.Second=2]="Second",I[I.Minute=4]="Minute",I[I.Hour=8]="Hour"})(h||(e.FrequencySubDayTypes=h={}));var o;(function(I){I[I.First=1]="First",I[I.Second=2]="Second",I[I.Third=4]="Third",I[I.Fourth=8]="Fourth",I[I.Last=16]="Last"})(o||(e.FrequencyRelativeIntervals=o={}));var b;(function(I){I[I.NavContainer=0]="NavContainer",I[I.DivContainer=1]="DivContainer",I[I.FlexContainer=2]="FlexContainer",I[I.SplitViewContainer=3]="SplitViewContainer",I[I.Card=4]="Card",I[I.InputBox=5]="InputBox",I[I.DropDown=6]="DropDown",I[I.DeclarativeTable=7]="DeclarativeTable",I[I.ListBox=8]="ListBox",I[I.Button=9]="Button",I[I.CheckBox=10]="CheckBox",I[I.RadioButton=11]="RadioButton",I[I.WebView=12]="WebView",I[I.Text=13]="Text",I[I.Table=14]="Table",I[I.DashboardWidget=15]="DashboardWidget",I[I.DashboardWebview=16]="DashboardWebview",I[I.Form=17]="Form",I[I.Group=18]="Group",I[I.Toolbar=19]="Toolbar",I[I.LoadingComponent=20]="LoadingComponent",I[I.TreeComponent=21]="TreeComponent",I[I.FileBrowserTree=22]="FileBrowserTree",I[I.Editor=23]="Editor",I[I.DiffEditor=24]="DiffEditor",I[I.Hyperlink=25]="Hyperlink",I[I.Image=26]="Image",I[I.RadioCardGroup=27]="RadioCardGroup",I[I.ListView=28]="ListView",I[I.TabbedPanel=29]="TabbedPanel",I[I.Separator=30]="Separator",I[I.PropertiesContainer=31]="PropertiesContainer",I[I.InfoBox=32]="InfoBox",I[I.Slider=33]="Slider",I[I.ExecutionPlan=34]="ExecutionPlan",I[I.Chart=35]="Chart"})(b||(e.ModelComponentTypes=b={}));var P;(function(I){I.SelectTab="selectTab",I.AppendData="appendData",I.Filter="filter",I.SetActiveCell="setActiveCell"})(P||(e.ModelViewAction=P={}));var T;(function(I){I[I.ForceFit=0]="ForceFit",I[I.AutoFit=1]="AutoFit",I[I.DataFit=2]="DataFit"})(T||(e.ColumnSizingMode=T={}));var n;(function(I){I[I.TransactSql=1]="TransactSql",I[I.ActiveScripting=2]="ActiveScripting",I[I.CmdExec=3]="CmdExec",I[I.Snapshot=4]="Snapshot",I[I.LogReader=5]="LogReader",I[I.Distribution=6]="Distribution",I[I.Merge=7]="Merge",I[I.QueueReader=8]="QueueReader",I[I.AnalysisQuery=9]="AnalysisQuery",I[I.AnalysisCommands=10]="AnalysisCommands",I[I.Ssis=11]="Ssis",I[I.PowerShell=12]="PowerShell"})(n||(e.AgentSubSystem=n={}));var a;(function(I){I[I.QuitWithSuccess=1]="QuitWithSuccess",I[I.QuitWithFailure=2]="QuitWithFailure",I[I.GoToNextStep=3]="GoToNextStep",I[I.GoToStep=4]="GoToStep"})(a||(e.StepCompletionAction=a={}));var l;(function(I){I[I.RemoteSession=0]="RemoteSession",I[I.LocalFile=1]="LocalFile"})(l||(e.ProfilingSessionType=l={}));var i;(function(I){I[I.PropertiesChanged=0]="PropertiesChanged",I[I.onDidChange=1]="onDidChange",I[I.onDidClick=2]="onDidClick",I[I.validityChanged=3]="validityChanged",I[I.onMessage=4]="onMessage",I[I.onSelectedRowChanged=5]="onSelectedRowChanged",I[I.onComponentCreated=6]="onComponentCreated",I[I.onCellAction=7]="onCellAction",I[I.onEnterKeyPressed=8]="onEnterKeyPressed",I[I.onInput=9]="onInput",I[I.onComponentLoaded=10]="onComponentLoaded",I[I.onChildClick=11]="onChildClick"})(i||(e.ComponentEventType=i={}));var c;(function(I){I[I.Error=0]="Error",I[I.Warning=1]="Warning",I[I.Information=2]="Information"})(c||(e.MessageLevel=c={}));var _;(function(I){I[I.None=0]="None",I[I.Ok=1]="Ok",I[I.Warning=2]="Warning",I[I.Error=3]="Error"})(_||(e.StatusIndicator=_={}));var S;(function(I){I.ConnectionProvider="ConnectionProvider",I.BackupProvider="BackupProvider",I.RestoreProvider="RestoreProvider",I.ScriptingProvider="ScriptingProvider",I.ObjectExplorerProvider="ObjectExplorerProvider",I.TaskServicesProvider="TaskServicesProvider",I.FileBrowserProvider="FileBrowserProvider",I.ProfilerProvider="ProfilerProvider",I.MetadataProvider="MetadataProvider",I.QueryProvider="QueryProvider",I.AdminServicesProvider="AdminServicesProvider",I.AgentServicesProvider="AgentServicesProvider",I.CapabilitiesProvider="CapabilitiesProvider",I.ObjectExplorerNodeProvider="ObjectExplorerNodeProvider",I.SerializationProvider="SerializationProvider",I.IconProvider="IconProvider",I.SqlAssessmentServicesProvider="SqlAssessmentServicesProvider",I.DataGridProvider="DataGridProvider",I.TableDesignerProvider="TableDesignerProvider",I.ExecutionPlanProvider="ExecutionPlanProvider",I.ServerContextualizationProvider="ServerContextualizationProvider"})(S||(e.DataProviderType=S={}));var k;(function(I){I.string="string",I.category="category",I.boolean="boolean",I.editableCategory="editableCategory",I.component="component",I.menu="menu"})(k||(e.DeclarativeDataType=k={}));var m;(function(I){I.VerticalButton="VerticalButton",I.Details="Details",I.ListItem="ListItem",I.Image="Image"})(m||(e.CardType=m={}));var v;(function(I){I.Horizontal="horizontal",I.Vertical="vertical"})(v||(e.Orientation=v={}));var D;(function(I){I[I.Unknown=0]="Unknown",I[I.Personal=1]="Personal",I[I.Standard=2]="Standard",I[I.Enterprise=3]="Enterprise",I[I.Express=4]="Express",I[I.SqlDatabase=5]="SqlDatabase",I[I.SqlDataWarehouse=6]="SqlDataWarehouse",I[I.SqlStretchDatabase=7]="SqlStretchDatabase",I[I.SqlManagedInstance=8]="SqlManagedInstance",I[I.SqlOnDemand=11]="SqlOnDemand",I[I.SqlDbFabric=12]="SqlDbFabric"})(D||(e.DatabaseEngineEdition=D={}));class L extends w.TreeItem{}e.TreeComponentItem=L;var O;(function(I){I[I.ResourceManagement=0]="ResourceManagement",I[I.Sql=1]="Sql",I[I.OssRdbms=2]="OssRdbms",I[I.AzureKeyVault=3]="AzureKeyVault",I[I.MicrosoftResourceManagement=5]="MicrosoftResourceManagement",I[I.AzureDevOps=6]="AzureDevOps",I[I.MsGraph=7]="MsGraph",I[I.AzureLogAnalytics=8]="AzureLogAnalytics",I[I.AzureStorage=9]="AzureStorage",I[I.AzureKusto=10]="AzureKusto",I[I.PowerBi=11]="PowerBi",I[I.Custom=12]="Custom"})(O||(e.AzureResource=O={}));var H;(function(I){I[I.String=0]="String",I[I.Number=1]="Number",I[I.Boolean=2]="Boolean",I[I.Date=3]="Date",I[I.Choice=4]="Choice"})(H||(e.NodeFilterPropertyDataType=H={}));var N;(function(I){I[I.Equals=0]="Equals",I[I.NotEquals=1]="NotEquals",I[I.LessThan=2]="LessThan",I[I.LessThanOrEquals=3]="LessThanOrEquals",I[I.GreaterThan=4]="GreaterThan",I[I.GreaterThanOrEquals=5]="GreaterThanOrEquals",I[I.Between=6]="Between",I[I.NotBetween=7]="NotBetween",I[I.Contains=8]="Contains",I[I.NotContains=9]="NotContains",I[I.StartsWith=10]="StartsWith",I[I.NotStartsWith=11]="NotStartsWith",I[I.EndsWith=12]="EndsWith",I[I.NotEndsWith=13]="NotEndsWith"})(N||(e.NodeFilterOperator=N={}));class $ extends w.TreeItem{}e.TreeItem=$;class U{static{this.Folder=new U("Folder")}static{this.Root=new U("root")}static{this.Database=new U("Database")}static{this.Server=new U("Server")}static{this.ScalarValuedFunction=new U("ScalarValuedFunction")}static{this.TableValuedFunction=new U("TableValuedFunction")}static{this.AggregateFunction=new U("AggregateFunction")}static{this.FileGroup=new U("FileGroup")}static{this.StoredProcedure=new U("StoredProcedure")}static{this.UserDefinedTableType=new U("UserDefinedTableType")}static{this.View=new U("View")}static{this.Table=new U("Table")}static{this.HistoryTable=new U("HistoryTable")}static{this.ServerLevelLinkedServerLogin=new U("ServerLevelLinkedServerLogin")}static{this.ServerLevelServerAudit=new U("ServerLevelServerAudit")}static{this.ServerLevelCryptographicProvider=new U("ServerLevelCryptographicProvider")}static{this.ServerLevelCredential=new U("ServerLevelCredential")}static{this.ServerLevelServerRole=new U("ServerLevelServerRole")}static{this.ServerLevelLogin=new U("ServerLevelLogin")}static{this.ServerLevelServerAuditSpecification=new U("ServerLevelServerAuditSpecification")}static{this.ServerLevelServerTrigger=new U("ServerLevelServerTrigger")}static{this.ServerLevelLinkedServer=new U("ServerLevelLinkedServer")}static{this.ServerLevelEndpoint=new U("ServerLevelEndpoint")}static{this.Synonym=new U("Synonym")}static{this.DatabaseTrigger=new U("DatabaseTrigger")}static{this.Assembly=new U("Assembly")}static{this.MessageType=new U("MessageType")}static{this.Contract=new U("Contract")}static{this.Queue=new U("Queue")}static{this.Service=new U("Service")}static{this.Route=new U("Route")}static{this.DatabaseAndQueueEventNotification=new U("DatabaseAndQueueEventNotification")}static{this.RemoteServiceBinding=new U("RemoteServiceBinding")}static{this.BrokerPriority=new U("BrokerPriority")}static{this.FullTextCatalog=new U("FullTextCatalog")}static{this.FullTextStopList=new U("FullTextStopList")}static{this.SqlLogFile=new U("SqlLogFile")}static{this.PartitionFunction=new U("PartitionFunction")}static{this.PartitionScheme=new U("PartitionScheme")}static{this.SearchPropertyList=new U("SearchPropertyList")}static{this.User=new U("User")}static{this.Schema=new U("Schema")}static{this.AsymmetricKey=new U("AsymmetricKey")}static{this.Certificate=new U("Certificate")}static{this.SymmetricKey=new U("SymmetricKey")}static{this.DatabaseEncryptionKey=new U("DatabaseEncryptionKey")}static{this.MasterKey=new U("MasterKey")}static{this.DatabaseAuditSpecification=new U("DatabaseAuditSpecification")}static{this.Column=new U("Column")}static{this.Key=new U("Key")}static{this.Constraint=new U("Constraint")}static{this.Trigger=new U("Trigger")}static{this.Index=new U("Index")}static{this.Statistic=new U("Statistic")}static{this.UserDefinedDataType=new U("UserDefinedDataType")}static{this.UserDefinedType=new U("UserDefinedType")}static{this.XmlSchemaCollection=new U("XmlSchemaCollection")}static{this.SystemExactNumeric=new U("SystemExactNumeric")}static{this.SystemApproximateNumeric=new U("SystemApproximateNumeric")}static{this.SystemDateAndTime=new U("SystemDateAndTime")}static{this.SystemCharacterString=new U("SystemCharacterString")}static{this.SystemUnicodeCharacterString=new U("SystemUnicodeCharacterString")}static{this.SystemBinaryString=new U("SystemBinaryString")}static{this.SystemOtherDataType=new U("SystemOtherDataType")}static{this.SystemClrDataType=new U("SystemClrDataType")}static{this.SystemSpatialDataType=new U("SystemSpatialDataType")}static{this.UserDefinedTableTypeColumn=new U("UserDefinedTableTypeColumn")}static{this.UserDefinedTableTypeKey=new U("UserDefinedTableTypeKey")}static{this.UserDefinedTableTypeConstraint=new U("UserDefinedTableTypeConstraint")}static{this.StoredProcedureParameter=new U("StoredProcedureParameter")}static{this.TableValuedFunctionParameter=new U("TableValuedFunctionParameter")}static{this.ScalarValuedFunctionParameter=new U("ScalarValuedFunctionParameter")}static{this.AggregateFunctionParameter=new U("AggregateFunctionParameter")}static{this.DatabaseRole=new U("DatabaseRole")}static{this.ApplicationRole=new U("ApplicationRole")}static{this.FileGroupFile=new U("FileGroupFile")}static{this.SystemMessageType=new U("SystemMessageType")}static{this.SystemContract=new U("SystemContract")}static{this.SystemService=new U("SystemService")}static{this.SystemQueue=new U("SystemQueue")}static{this.Sequence=new U("Sequence")}static{this.SecurityPolicy=new U("SecurityPolicy")}static{this.DatabaseScopedCredential=new U("DatabaseScopedCredential")}static{this.ExternalResource=new U("ExternalResource")}static{this.ExternalDataSource=new U("ExternalDataSource")}static{this.ExternalFileFormat=new U("ExternalFileFormat")}static{this.ExternalTable=new U("ExternalTable")}static{this.ColumnMasterKey=new U("ColumnMasterKey")}static{this.ColumnEncryptionKey=new U("ColumnEncryptionKey")}static{this.GraphEdge=new U("GraphEdge")}static{this.GraphNode=new U("GraphNode")}constructor(V){this.id=V}}e.SqlThemeIcon=U;var x;(function(I){I[I.Reply=0]="Reply",I[I.StdIn=1]="StdIn",I[I.IOPub=2]="IOPub"})(x||(e.FutureMessageType=x={}));class X{get start(){return this._start}get end(){return this._end}constructor(V,j){if(typeof V!="number"||typeof j!="number"||V<0||j<0)throw new Error("Invalid arguments");V<=j?(this._start=V,this._end=j):(this._start=j,this._end=V)}}e.CellRange=X;var K;(function(I){I[I.InsertCell=0]="InsertCell",I[I.DeleteCell=1]="DeleteCell",I[I.ReplaceCells=2]="ReplaceCells",I[I.UpdateCell=3]="UpdateCell",I[I.UpdateCellOutput=4]="UpdateCellOutput"})(K||(e.NotebookEditOperationType=K={}));class pe{constructor(){this.options={}}get providerId(){return this.options.providerId}set providerId(V){this.options.providerId=V}get connectionId(){return this.options.connectionId}set connectionId(V){this.options.connectionId=V}get connectionName(){return this.options.connectionName}set connectionName(V){this.options.connectionName=V}get serverName(){return this.options.serverName}set serverName(V){this.options.serverName=V}get databaseName(){return this.options.databaseName}set databaseName(V){this.options.databaseName=V}get userName(){return this.options.userName}set userName(V){this.options.userName=V}get password(){return this.options.password}set password(V){this.options.password=V}get authenticationType(){return this.options.authenticationType}set authenticationType(V){this.options.authenticationType=V}get savePassword(){return this.options.savePassword}set savePassword(V){this.options.savePassword=V}get groupFullName(){return this.options.groupFullName}set groupFullName(V){this.options.groupFullName=V}get groupId(){return this.options.groupId}set groupId(V){this.options.groupId=V}get saveProfile(){return this.options.groupId}set saveProfile(V){this.options.groupId=V}get azureTenantId(){return this.options.azureTenantId}set azureTenantId(V){this.options.azureTenantId=V}get azureAccount(){return this.options.azureAccount}set azureAccount(V){this.options.azureAccount=V}static createFrom(V){let j=new pe;return j.options=V,j}}e.ConnectionProfile=pe;var le;(function(I){I[I.Delete=0]="Delete",I[I.Change=1]="Change",I[I.Add=2]="Add"})(le||(e.SchemaUpdateAction=le={}));var re;(function(I){I[I.Object=0]="Object",I[I.Property=1]="Property"})(re||(e.SchemaDifferenceType=re={}));var q;(function(I){I[I.Database=0]="Database",I[I.Dacpac=1]="Dacpac"})(q||(e.SchemaCompareEndpointType=q={}));var oe;(function(I){I[I.Aggregates=0]="Aggregates",I[I.ApplicationRoles=1]="ApplicationRoles",I[I.Assemblies=2]="Assemblies",I[I.AssemblyFiles=3]="AssemblyFiles",I[I.AsymmetricKeys=4]="AsymmetricKeys",I[I.BrokerPriorities=5]="BrokerPriorities",I[I.Certificates=6]="Certificates",I[I.ColumnEncryptionKeys=7]="ColumnEncryptionKeys",I[I.ColumnMasterKeys=8]="ColumnMasterKeys",I[I.Contracts=9]="Contracts",I[I.DatabaseOptions=10]="DatabaseOptions",I[I.DatabaseRoles=11]="DatabaseRoles",I[I.DatabaseTriggers=12]="DatabaseTriggers",I[I.Defaults=13]="Defaults",I[I.ExtendedProperties=14]="ExtendedProperties",I[I.ExternalDataSources=15]="ExternalDataSources",I[I.ExternalFileFormats=16]="ExternalFileFormats",I[I.ExternalTables=17]="ExternalTables",I[I.Filegroups=18]="Filegroups",I[I.FileTables=19]="FileTables",I[I.FullTextCatalogs=20]="FullTextCatalogs",I[I.FullTextStoplists=21]="FullTextStoplists",I[I.MessageTypes=22]="MessageTypes",I[I.PartitionFunctions=23]="PartitionFunctions",I[I.PartitionSchemes=24]="PartitionSchemes",I[I.Permissions=25]="Permissions",I[I.Queues=26]="Queues",I[I.RemoteServiceBindings=27]="RemoteServiceBindings",I[I.RoleMembership=28]="RoleMembership",I[I.Rules=29]="Rules",I[I.ScalarValuedFunctions=30]="ScalarValuedFunctions",I[I.SearchPropertyLists=31]="SearchPropertyLists",I[I.SecurityPolicies=32]="SecurityPolicies",I[I.Sequences=33]="Sequences",I[I.Services=34]="Services",I[I.Signatures=35]="Signatures",I[I.StoredProcedures=36]="StoredProcedures",I[I.SymmetricKeys=37]="SymmetricKeys",I[I.Synonyms=38]="Synonyms",I[I.Tables=39]="Tables",I[I.TableValuedFunctions=40]="TableValuedFunctions",I[I.UserDefinedDataTypes=41]="UserDefinedDataTypes",I[I.UserDefinedTableTypes=42]="UserDefinedTableTypes",I[I.ClrUserDefinedTypes=43]="ClrUserDefinedTypes",I[I.Users=44]="Users",I[I.Views=45]="Views",I[I.XmlSchemaCollections=46]="XmlSchemaCollections",I[I.Audits=47]="Audits",I[I.Credentials=48]="Credentials",I[I.CryptographicProviders=49]="CryptographicProviders",I[I.DatabaseAuditSpecifications=50]="DatabaseAuditSpecifications",I[I.DatabaseEncryptionKeys=51]="DatabaseEncryptionKeys",I[I.DatabaseScopedCredentials=52]="DatabaseScopedCredentials",I[I.Endpoints=53]="Endpoints",I[I.ErrorMessages=54]="ErrorMessages",I[I.EventNotifications=55]="EventNotifications",I[I.EventSessions=56]="EventSessions",I[I.LinkedServerLogins=57]="LinkedServerLogins",I[I.LinkedServers=58]="LinkedServers",I[I.Logins=59]="Logins",I[I.MasterKeys=60]="MasterKeys",I[I.Routes=61]="Routes",I[I.ServerAuditSpecifications=62]="ServerAuditSpecifications",I[I.ServerRoleMembership=63]="ServerRoleMembership",I[I.ServerRoles=64]="ServerRoles",I[I.ServerTriggers=65]="ServerTriggers"})(oe||(e.SchemaObjectType=oe={}));var ve;(function(I){I[I.text=0]="text",I[I.checkBox=1]="checkBox",I[I.button=2]="button",I[I.icon=3]="icon",I[I.hyperlink=4]="hyperlink",I[I.contextMenu=5]="contextMenu"})(ve||(e.ColumnType=ve={}));var ce;(function(I){I[I.selectRow=0]="selectRow",I[I.customAction=1]="customAction"})(ce||(e.ActionOnCellCheckboxCheck=ce={}));var se;(function(I){I[I.ContentUpdated=0]="ContentUpdated",I[I.MetadataUpdated=1]="MetadataUpdated",I[I.Save=2]="Save",I[I.CellExecuted=3]="CellExecuted"})(se||(e.NotebookChangeKind=se={}));var te;(function(I){I.Vertical="vertical",I.Horizontal="horizontal"})(te||(e.TabOrientation=te={}));var B;(function(I){I[I.Server=1]="Server",I[I.Database=2]="Database"})(B||(e.SqlAssessmentTargetType=B={}));var G;(function(I){I[I.RealResult=0]="RealResult",I[I.Warning=1]="Warning",I[I.Error=2]="Error"})(G||(e.SqlAssessmentResultItemKind=G={}));var fe;(function(I){I.File="File",I.Normal="Normal",I.Informational="Informational"})(fe||(e.ButtonType=fe={}));var _e;(function(I){I.Normal="Normal",I.Error="Error",I.UnorderedList="UnorderedList",I.OrderedList="OrderedList"})(_e||(e.TextType=_e={}));var Ee;(function(I){let V;(function(Y){Y.Schema="schema",Y.Name="name",Y.Description="description",Y.Columns="columns",Y.Script="script",Y.ForeignKeys="foreignKeys",Y.CheckConstraints="checkConstraints",Y.Indexes="indexes",Y.PrimaryKey="primaryKey",Y.PrimaryKeyName="primaryKeyName",Y.PrimaryKeyDescription="primaryKeyDescription",Y.PrimaryKeyColumns="primaryKeyColumns"})(V=I.TableProperty||(I.TableProperty={}));let j;(function(Y){Y.Name="name",Y.Description="description",Y.AdvancedType="advancedType",Y.Type="type",Y.AllowNulls="allowNulls",Y.DefaultValue="defaultValue",Y.Length="length",Y.IsPrimaryKey="isPrimaryKey",Y.Precision="precision",Y.Scale="scale"})(j=I.TableColumnProperty||(I.TableColumnProperty={}));let Z;(function(Y){Y.Name="name",Y.Description="description",Y.ForeignTable="foreignTable",Y.OnDeleteAction="onDeleteAction",Y.OnUpdateAction="onUpdateAction",Y.Columns="columns"})(Z=I.TableForeignKeyProperty||(I.TableForeignKeyProperty={}));let he;(function(Y){Y.Column="column",Y.ForeignColumn="foreignColumn"})(he=I.ForeignKeyColumnMappingProperty||(I.ForeignKeyColumnMappingProperty={}));let Pe;(function(Y){Y.Name="name",Y.Description="description",Y.Expression="expression"})(Pe=I.TableCheckConstraintProperty||(I.TableCheckConstraintProperty={}));let z;(function(Y){Y.Name="name",Y.Description="description",Y.Columns="columns"})(z=I.TableIndexProperty||(I.TableIndexProperty={}));let ee;(function(Y){Y.Column="column"})(ee=I.TableIndexColumnSpecificationProperty||(I.TableIndexColumnSpecificationProperty={}));let ie;(function(Y){Y[Y.Add=0]="Add",Y[Y.Remove=1]="Remove",Y[Y.Update=2]="Update",Y[Y.Move=3]="Move"})(ie=I.DesignerEditType||(I.DesignerEditType={}));let ue;(function(Y){Y.Basic="Basic",Y.Temporal="Temporal",Y.GraphEdge="GraphEdge",Y.GraphNode="GraphNode"})(ue=I.TableIcon||(I.TableIcon={}))})(Ee||(e.designers=Ee={}));var F;(function(I){let V;(function(he){he[he.Warning=0]="Warning",he[he.CriticalWarning=1]="CriticalWarning",he[he.Parallelism=2]="Parallelism"})(V=I.BadgeType||(I.BadgeType={}));let j;(function(he){he[he.Number=0]="Number",he[he.String=1]="String",he[he.Boolean=2]="Boolean",he[he.Nested=3]="Nested"})(j=I.ExecutionPlanGraphElementPropertyDataType||(I.ExecutionPlanGraphElementPropertyDataType={}));let Z;(function(he){he[he.LowerNumber=0]="LowerNumber",he[he.HigherNumber=1]="HigherNumber",he[he.True=2]="True",he[he.False=3]="False",he[he.None=4]="None"})(Z=I.ExecutionPlanGraphElementPropertyBetterValue||(I.ExecutionPlanGraphElementPropertyBetterValue={}))})(F||(e.executionPlan=F={}));var J;(function(I){let V;(function(j){j.stable="stable",j.insider="insider",j.dev="dev"})(V=I.AppQuality||(I.AppQuality={}))})(J||(e.env=J={}))}),define(ye[270],Ce([1,0,42,15,46]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookDocumentData=void 0;class A{constructor(u,p,f,y,E){this._proxy=u,this._uri=p,this._providerId=f,this._isDirty=y,this._cells=E,this._isDisposed=!1}dispose(){(0,w.ok)(!this._isDisposed),this._isDisposed=!0,this._isDirty=!1}get document(){if(!this._document){const u=this;this._document={get uri(){return u._uri},get fileName(){return u._uri.fsPath},get isUntitled(){return u._uri.scheme===M.Schemas.untitled},get providerId(){return u._providerId},get isClosed(){return u._isDisposed},get isDirty(){return u._isDirty},get cells(){return u._cells},get kernelSpec(){return u._kernelSpec},save(){return u._save()},setTrusted(p){u._setTrusted(p)},validateCellRange(p){return u._validateRange(p)}}}return Object.freeze(this._document)}_save(){return this._isDisposed?Promise.reject(new Error("Document has been closed")):this._proxy.$trySaveDocument(this._uri)}_setTrusted(u){return this._isDisposed?Promise.reject(new Error("Document has been closed")):this._proxy.$trySetTrusted(this._uri,u)}onModelChanged(u){u&&(this._isDirty=u.isDirty,this._cells=u.cells,this._providerId=u.providerId,this._kernelSpec=u.kernelSpec)}_validateRange(u){if(!(u instanceof d.CellRange))throw new Error("Invalid argument");let p=this._validateIndex(u.start),f=this._validateIndex(u.end);return p===u.start&&f===u.end?u:new d.CellRange(p,f)}_validateIndex(u){if(typeof u!="number")throw new Error("Invalid argument");return u<0?u=0:this._cells.length>0&&u>this._cells.length&&(u=this._cells.length),u}}e.ExtHostNotebookDocumentData=A}),define(ye[271],Ce([1,0,42,8,46,245]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookEditor=e.NotebookEditorEdit=void 0;function R(f){return{start:f.start,end:f.end}}class u{constructor(y,E){this._document=y,this._documentVersionId=0,this._collectedEdits=[],this._undoStopBefore=E?E.undoStopBefore:!0,this._undoStopAfter=E?E.undoStopAfter:!1}finalize(){return{documentVersionId:this._documentVersionId,edits:this._collectedEdits,undoStopBefore:this._undoStopBefore,undoStopAfter:this._undoStopAfter}}replace(y,E){let t=this.getAsRange(y);this._pushEdit(2,t,E)}getAsRange(y){let E=null;if(typeof y=="number")E=new d.CellRange(y,y+1);else if(y instanceof d.CellRange)E=y;else throw new Error("Unrecognized location");return E}setTrusted(y){this._document.setTrusted(y)}insertCell(y,E,t){E==null&&(E=this._document.cells.length),t&&(y.metadata?y.metadata.tags?y.metadata.tags.find(s=>s===A.HideInputTag)||y.metadata.tags.push(A.HideInputTag):y.metadata.tags=[A.HideInputTag]:y.metadata={tags:[A.HideInputTag]}),this._pushEdit(0,new d.CellRange(E,E),y)}deleteCell(y){let E=null;if(typeof y=="number")E=new d.CellRange(y,y+1);else throw new Error("Unrecognized index");this._pushEdit(1,E,null)}updateCell(y,E,t){this._pushEdit(3,new d.CellRange(y,y+1),E,t)}updateCellOutput(y,E,t){this._pushEdit(4,new d.CellRange(y,y+1),E,t)}_pushEdit(y,E,t,s){let g=this._document.validateCellRange(E);this._collectedEdits.push({type:y,range:g,cell:t,append:s})}}e.NotebookEditorEdit=u;class p{constructor(y,E,t,s){this._proxy=y,this._id=E,this._documentData=t,this._viewColumn=s,this._disposed=!1}dispose(){(0,w.ok)(!this._disposed),this._disposed=!0}get document(){return this._documentData.document}set document(y){throw(0,M.readonly)("document")}get viewColumn(){return this._viewColumn}set viewColumn(y){throw(0,M.readonly)("viewColumn")}get id(){return this._id}runCell(y){let E=y?y.uri:void 0;return this._proxy.$runCell(this._id,E)}runAllCells(y,E){let t=y?y.uri:void 0,s=E?E.uri:void 0;return this._proxy.$runAllCells(this._id,t,s)}clearOutput(y){let E=y?y.uri:void 0;return this._proxy.$clearOutput(this._id,E)}clearAllOutputs(){return this._proxy.$clearAllOutputs(this._id)}changeKernel(y){return this._proxy.$changeKernel(this._id,y)}edit(y,E){if(this._disposed)return Promise.reject(new Error("NotebookEditor#edit not possible on closed editors"));let t=new u(this._documentData.document,E);return y(t),this._applyEdit(t)}_applyEdit(y){let E=y.finalize();if(E.edits.length===0)return Promise.resolve(!0);let t=E.edits.map(g=>g.range);t.sort((g,C)=>g.end===C.end?g.start-C.start:g.end-C.end);for(let g=0,C=t.length-1;g<C;g++){const r=t[g].end;if(t[g+1].start<r)return Promise.reject(new Error("Overlapping ranges are not allowed!"))}let s=E.edits.map(g=>({type:g.type,range:R(g.range),cell:g.cell,append:g.append}));return this._proxy.$tryApplyEdits(this._id,E.documentVersionId,s,{undoStopBefore:E.undoStopBefore,undoStopAfter:E.undoStopAfter})}}e.ExtHostNotebookEditor=p}),define(ye[140],Ce([1,0,42,15,16,173,122,7,19]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDocumentLine=e.ExtHostDocumentData=e.setWordDefinitionFor=void 0;const f=new Map;function y(g,C){C?f.set(g,C):f.delete(g)}e.setWordDefinitionFor=y;function E(g){return f.get(g)}class t extends A.MirrorTextModel{constructor(C,r,h,o,b,P,T,n){super(r,h,o,b),this._proxy=C,this._languageId=P,this._isDirty=T,this.notebook=n,this._isDisposed=!1}dispose(){(0,w.ok)(!this._isDisposed),this._isDisposed=!0,this._isDirty=!1}equalLines(C){return(0,p.equals)(this._lines,C)}get document(){if(!this._document){const C=this;this._document={get uri(){return C._uri},get fileName(){return C._uri.fsPath},get isUntitled(){return C._uri.scheme===M.Schemas.untitled},get languageId(){return C._languageId},get version(){return C._versionId},get isClosed(){return C._isDisposed},get isDirty(){return C._isDirty},get notebook(){return C.notebook},save(){return C._save()},getText(r){return r?C._getTextInRange(r):C.getText()},get eol(){return C._eol===`
`?u.EndOfLine.LF:u.EndOfLine.CRLF},get lineCount(){return C._lines.length},lineAt(r){return C._lineAt(r)},offsetAt(r){return C._offsetAt(r)},positionAt(r){return C._positionAt(r)},validateRange(r){return C._validateRange(r)},validatePosition(r){return C._validatePosition(r)},getWordRangeAtPosition(r,h){return C._getWordRangeAtPosition(r,h)}}}return Object.freeze(this._document)}_acceptLanguageId(C){(0,w.ok)(!this._isDisposed),this._languageId=C}_acceptIsDirty(C){(0,w.ok)(!this._isDisposed),this._isDirty=C}_save(){return this._isDisposed?Promise.reject(new Error("Document has been closed")):this._proxy.$trySaveDocument(this._uri)}_getTextInRange(C){const r=this._validateRange(C);if(r.isEmpty)return"";if(r.isSingleLine)return this._lines[r.start.line].substring(r.start.character,r.end.character);const h=this._eol,o=r.start.line,b=r.end.line,P=[];P.push(this._lines[o].substring(r.start.character));for(let T=o+1;T<b;T++)P.push(this._lines[T]);return P.push(this._lines[b].substring(0,r.end.character)),P.join(h)}_lineAt(C){let r;if(C instanceof u.Position?r=C.line:typeof C=="number"&&(r=C),typeof r!="number"||r<0||r>=this._lines.length||Math.floor(r)!==r)throw new Error("Illegal value for `line`");return new s(r,this._lines[r],r===this._lines.length-1)}_offsetAt(C){return C=this._validatePosition(C),this._ensureLineStarts(),this._lineStarts.getPrefixSum(C.line-1)+C.character}_positionAt(C){C=Math.floor(C),C=Math.max(0,C),this._ensureLineStarts();const r=this._lineStarts.getIndexOf(C),h=this._lines[r.index].length;return new u.Position(r.index,Math.min(r.remainder,h))}_validateRange(C){if(!(C instanceof u.Range))throw new Error("Invalid argument");const r=this._validatePosition(C.start),h=this._validatePosition(C.end);return r===C.start&&h===C.end?C:new u.Range(r.line,r.character,h.line,h.character)}_validatePosition(C){if(!(C instanceof u.Position))throw new Error("Invalid argument");if(this._lines.length===0)return C.with(0,0);let{line:r,character:h}=C,o=!1;if(r<0)r=0,h=0,o=!0;else if(r>=this._lines.length)r=this._lines.length-1,h=this._lines[r].length,o=!0;else{const b=this._lines[r].length;h<0?(h=0,o=!0):h>b&&(h=b,o=!0)}return o?new u.Position(r,h):C}_getWordRangeAtPosition(C,r){const h=this._validatePosition(C);if(!r)r=E(this._languageId);else if((0,d.regExpLeadsToEndlessLoop)(r))throw new Error(`[getWordRangeAtPosition]: ignoring custom regexp '${r.source}' because it matches the empty string.`);const o=(0,R.getWordAtText)(h.character+1,(0,R.ensureValidWordDefinition)(r),this._lines[h.line],0);if(o)return new u.Range(h.line,o.startColumn-1,h.line,o.endColumn-1)}}e.ExtHostDocumentData=t;class s{constructor(C,r,h){this._line=C,this._text=r,this._isLastLine=h}get lineNumber(){return this._line}get text(){return this._text}get range(){return new u.Range(this._line,0,this._line,this._text.length)}get rangeIncludingLineBreak(){return this._isLastLine?this.range:new u.Range(this._line,0,this._line+1,0)}get firstNonWhitespaceCharacterIndex(){return/^(\s*)/.exec(this._text)[1].length}get isEmptyOrWhitespace(){return this.firstNonWhitespaceCharacterIndex===this._text.length}}e.ExtHostDocumentLine=s}),define(ye[272],Ce([1,0,7,20,4]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTheming=void 0;let A=class{constructor(u){this._actual=new w.ColorTheme(w.ColorThemeKind.Dark),this._onDidChangeActiveColorTheme=new d.Emitter}get activeColorTheme(){return this._actual}$onColorThemeChange(u){let p;switch(u){case"light":p=w.ColorThemeKind.Light;break;case"hcDark":p=w.ColorThemeKind.HighContrast;break;case"hcLight":p=w.ColorThemeKind.HighContrastLight;break;default:p=w.ColorThemeKind.Dark}this._actual=new w.ColorTheme(p),this._onDidChangeActiveColorTheme.fire(this._actual)}get onDidChangeActiveColorTheme(){return this._onDidChangeActiveColorTheme.event}};e.ExtHostTheming=A,e.ExtHostTheming=A=je([He(0,M.IExtHostRpcService)],A)}),define(ye[273],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INotebookExecutionService=e.CellExecutionUpdateType=void 0;var M;(function(d){d[d.Output=1]="Output",d[d.OutputItems=2]="OutputItems",d[d.ExecutionState=3]="ExecutionState"})(M||(e.CellExecutionUpdateType=M={})),e.INotebookExecutionService=(0,w.createDecorator)("INotebookExecutionService")}),define(ye[63],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestId=e.TestPosition=e.TestIdPathParts=void 0;var w;(function(A){A.Delimiter="\0"})(w||(e.TestIdPathParts=w={}));var M;(function(A){A[A.IsSame=0]="IsSame",A[A.Disconnected=1]="Disconnected",A[A.IsChild=2]="IsChild",A[A.IsParent=3]="IsParent"})(M||(e.TestPosition=M={}));class d{static fromExtHostTestItem(R,u,p=R.parent){if(R._isRoot)return new d([u]);const f=[R.id];for(let y=p;y&&y.id!==u;y=y.parent)f.push(y.id);return f.push(u),new d(f.reverse())}static isRoot(R){return!R.includes("\0")}static root(R){const u=R.indexOf("\0");return u===-1?R:R.slice(0,u)}static fromString(R){return new d(R.split("\0"))}static join(R,u){return new d([...R.path,u])}static joinToString(R,u){return R.toString()+"\0"+u}static parentId(R){const u=R.lastIndexOf("\0");return u===-1?void 0:R.slice(0,u)}static localId(R){const u=R.lastIndexOf("\0");return u===-1?R:R.slice(u+1)}static isChild(R,u){return u.startsWith(R)&&u[R.length]==="\0"}static compare(R,u){return R===u?0:d.isChild(R,u)?2:d.isChild(u,R)?3:1}constructor(R,u=R.length){if(this.path=R,this.viewEnd=u,R.length===0||u<1)throw new Error("cannot create test with empty path")}get rootId(){return new d(this.path,1)}get parentId(){return this.viewEnd>1?new d(this.path,this.viewEnd-1):void 0}get localId(){return this.path[this.viewEnd-1]}get controllerId(){return this.path[0]}get isRoot(){return this.viewEnd===1}*idsFromRoot(){for(let R=1;R<=this.viewEnd;R++)yield new d(this.path,R)}*idsToRoot(){for(let R=this.viewEnd;R>0;R--)yield new d(this.path,R)}compare(R){if(typeof R=="string")return d.compare(this.toString(),R);for(let u=0;u<R.viewEnd&&u<this.viewEnd;u++)if(R.path[u]!==this.path[u])return 1;return R.viewEnd>this.viewEnd?2:R.viewEnd<this.viewEnd?3:0}toJSON(){return this.toString()}toString(){if(!this.stringifed){this.stringifed=this.path[0];for(let R=1;R<this.viewEnd;R++)this.stringifed+="\0",this.stringifed+=this.path[R]}return this.stringifed}}e.TestId=d}),define(ye[87],Ce([1,0,2,37,63]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractIncrementalTestCollection=e.TestsDiffOp=e.TestDiffOpType=e.DetailType=e.TestResultItem=e.applyTestItemUpdate=e.ITestItemUpdate=e.InternalTestItem=e.TestItemExpandState=e.ITestItem=e.denamespaceTestTag=e.namespaceTestTag=e.ITestTaskState=e.ITestMessage=e.ITestOutputMessage=e.getMarkId=e.ITestErrorMessage=e.TestMessageType=e.IRichLocation=e.isStartControllerTests=e.testRunProfileBitsetList=e.TestRunProfileBitset=e.ExtTestRunProfileKind=e.TestResultState=void 0;var A;(function(k){k[k.Unset=0]="Unset",k[k.Queued=1]="Queued",k[k.Running=2]="Running",k[k.Passed=3]="Passed",k[k.Failed=4]="Failed",k[k.Skipped=5]="Skipped",k[k.Errored=6]="Errored"})(A||(e.TestResultState=A={}));var R;(function(k){k[k.Run=1]="Run",k[k.Debug=2]="Debug",k[k.Coverage=3]="Coverage"})(R||(e.ExtTestRunProfileKind=R={}));var u;(function(k){k[k.Run=2]="Run",k[k.Debug=4]="Debug",k[k.Coverage=8]="Coverage",k[k.HasNonDefaultProfile=16]="HasNonDefaultProfile",k[k.HasConfigurable=32]="HasConfigurable",k[k.SupportsContinuousRun=64]="SupportsContinuousRun"})(u||(e.TestRunProfileBitset=u={})),e.testRunProfileBitsetList=[2,4,8,16,32,64];const p=k=>"runId"in k;e.isStartControllerTests=p;var f;(function(k){k.serialize=m=>({range:m.range.toJSON(),uri:m.uri.toJSON()}),k.deserialize=m=>({range:M.Range.lift(m.range),uri:w.URI.revive(m.uri)})})(f||(e.IRichLocation=f={}));var y;(function(k){k[k.Error=0]="Error",k[k.Output=1]="Output"})(y||(e.TestMessageType=y={}));var E;(function(k){k.serialize=m=>({message:m.message,type:0,expected:m.expected,actual:m.actual,contextValue:m.contextValue,location:m.location&&f.serialize(m.location)}),k.deserialize=m=>({message:m.message,type:0,expected:m.expected,actual:m.actual,contextValue:m.contextValue,location:m.location&&f.deserialize(m.location)})})(E||(e.ITestErrorMessage=E={}));const t=(k,m)=>`${m?"s":"e"}${k}`;e.getMarkId=t;var s;(function(k){k.serialize=m=>({message:m.message,type:1,offset:m.offset,length:m.length,location:m.location&&f.serialize(m.location)}),k.deserialize=m=>({message:m.message,type:1,offset:m.offset,length:m.length,location:m.location&&f.deserialize(m.location)})})(s||(e.ITestOutputMessage=s={}));var g;(function(k){k.serialize=m=>m.type===0?E.serialize(m):s.serialize(m),k.deserialize=m=>m.type===0?E.deserialize(m):s.deserialize(m)})(g||(e.ITestMessage=g={}));var C;(function(k){k.serializeWithoutMessages=m=>({state:m.state,duration:m.duration,messages:[]}),k.serialize=m=>({state:m.state,duration:m.duration,messages:m.messages.map(g.serialize)}),k.deserialize=m=>({state:m.state,duration:m.duration,messages:m.messages.map(g.deserialize)})})(C||(e.ITestTaskState=C={}));const r="\0",h=(k,m)=>k+r+m;e.namespaceTestTag=h;const o=k=>{const m=k.indexOf(r);return{ctrlId:k.slice(0,m),tagId:k.slice(m+1)}};e.denamespaceTestTag=o;var b;(function(k){k.serialize=m=>({extId:m.extId,label:m.label,tags:m.tags,busy:m.busy,uri:m.uri?.toJSON(),range:m.range?.toJSON()||null,description:m.description,error:m.error,sortText:m.sortText}),k.deserialize=m=>({extId:m.extId,label:m.label,tags:m.tags,busy:m.busy,uri:m.uri?w.URI.revive(m.uri):void 0,range:m.range?M.Range.lift(m.range):null,description:m.description,error:m.error,sortText:m.sortText})})(b||(e.ITestItem=b={}));var P;(function(k){k[k.NotExpandable=0]="NotExpandable",k[k.Expandable=1]="Expandable",k[k.BusyExpanding=2]="BusyExpanding",k[k.Expanded=3]="Expanded"})(P||(e.TestItemExpandState=P={}));var T;(function(k){k.serialize=m=>({expand:m.expand,item:b.serialize(m.item)}),k.deserialize=m=>({controllerId:d.TestId.root(m.item.extId),expand:m.expand,item:b.deserialize(m.item)})})(T||(e.InternalTestItem=T={}));var n;(function(k){k.serialize=m=>{let v;return m.item&&(v={},m.item.label!==void 0&&(v.label=m.item.label),m.item.tags!==void 0&&(v.tags=m.item.tags),m.item.busy!==void 0&&(v.busy=m.item.busy),m.item.uri!==void 0&&(v.uri=m.item.uri?.toJSON()),m.item.range!==void 0&&(v.range=m.item.range?.toJSON()),m.item.description!==void 0&&(v.description=m.item.description),m.item.error!==void 0&&(v.error=m.item.error),m.item.sortText!==void 0&&(v.sortText=m.item.sortText)),{extId:m.extId,expand:m.expand,item:v}},k.deserialize=m=>{let v;return m.item&&(v={},m.item.label!==void 0&&(v.label=m.item.label),m.item.tags!==void 0&&(v.tags=m.item.tags),m.item.busy!==void 0&&(v.busy=m.item.busy),m.item.range!==void 0&&(v.range=m.item.range?M.Range.lift(m.item.range):null),m.item.description!==void 0&&(v.description=m.item.description),m.item.error!==void 0&&(v.error=m.item.error),m.item.sortText!==void 0&&(v.sortText=m.item.sortText)),{extId:m.extId,expand:m.expand,item:v}}})(n||(e.ITestItemUpdate=n={}));const a=(k,m)=>{m.expand!==void 0&&(k.expand=m.expand),m.item!==void 0&&(k.item=k.item?Object.assign(k.item,m.item):m.item)};e.applyTestItemUpdate=a;var l;(function(k){k.serializeWithoutMessages=m=>({...T.serialize(m),ownComputedState:m.ownComputedState,computedState:m.computedState,tasks:m.tasks.map(C.serializeWithoutMessages)}),k.serialize=m=>({...T.serialize(m),ownComputedState:m.ownComputedState,computedState:m.computedState,tasks:m.tasks.map(C.serialize)}),k.deserialize=m=>({...T.deserialize(m),ownComputedState:m.ownComputedState,computedState:m.computedState,tasks:m.tasks.map(C.deserialize),retired:!0})})(l||(e.TestResultItem=l={}));var i;(function(k){k[k.Function=0]="Function",k[k.Statement=1]="Statement"})(i||(e.DetailType=i={}));var c;(function(k){k[k.Add=0]="Add",k[k.Update=1]="Update",k[k.DocumentSynced=2]="DocumentSynced",k[k.Remove=3]="Remove",k[k.IncrementPendingExtHosts=4]="IncrementPendingExtHosts",k[k.Retire=5]="Retire",k[k.AddTag=6]="AddTag",k[k.RemoveTag=7]="RemoveTag"})(c||(e.TestDiffOpType=c={}));var _;(function(k){k.deserialize=m=>m.op===0?{op:m.op,item:T.deserialize(m.item)}:m.op===1?{op:m.op,item:n.deserialize(m.item)}:m.op===2?{op:m.op,uri:w.URI.revive(m.uri),docv:m.docv}:m,k.serialize=m=>m.op===0?{op:m.op,item:T.serialize(m.item)}:m.op===1?{op:m.op,item:n.serialize(m.item)}:m})(_||(e.TestsDiffOp=_={}));class S{constructor(){this._tags=new Map,this.items=new Map,this.roots=new Set,this.busyControllerCount=0,this.pendingRootCount=0,this.tags=this._tags}apply(m){const v=this.createChangeCollector();for(const D of m)switch(D.op){case 0:this.add(T.deserialize(D.item),v);break;case 1:this.update(n.deserialize(D.item),v);break;case 3:this.remove(D.itemId,v);break;case 5:this.retireTest(D.itemId);break;case 4:this.updatePendingRoots(D.amount);break;case 6:this._tags.set(D.tag.id,D.tag);break;case 7:this._tags.delete(D.id);break}v.complete?.()}add(m,v){const D=d.TestId.parentId(m.item.extId)?.toString();let L;if(!D)L=this.createItem(m),this.roots.add(L),this.items.set(m.item.extId,L);else if(this.items.has(D)){const O=this.items.get(D);O.children.add(m.item.extId),L=this.createItem(m,O),this.items.set(m.item.extId,L)}else{console.error(`Test with unknown parent ID: ${JSON.stringify(m)}`);return}return v.add?.(L),m.expand===2&&this.busyControllerCount++,L}update(m,v){const D=this.items.get(m.extId);if(D)return m.expand!==void 0&&(D.expand===2&&this.busyControllerCount--,m.expand===2&&this.busyControllerCount++),(0,e.applyTestItemUpdate)(D,m),v.update?.(D),D}remove(m,v){const D=this.items.get(m);if(!D)return;const L=d.TestId.parentId(D.item.extId)?.toString();L?this.items.get(L).children.delete(D.item.extId):this.roots.delete(D);const O=[[m]];for(;O.length;)for(const H of O.pop()){const N=this.items.get(H);N&&(O.push(N.children),this.items.delete(H),v.remove?.(N,N!==D),N.expand===2&&this.busyControllerCount--)}}retireTest(m){}updatePendingRoots(m){this.pendingRootCount+=m}createChangeCollector(){return{}}}e.AbstractIncrementalTestCollection=S}),define(ye[106],Ce([1,0,13,4,5,42,87,63]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTestItemChildren=e.MixedTestItemController=e.InvalidTestItemError=e.DuplicateTestItemError=e.TestItemCollection=e.TestItemEventOp=void 0;var p;(function(o){o[o.Upsert=0]="Upsert",o[o.SetTags=1]="SetTags",o[o.UpdateCanResolveChildren=2]="UpdateCanResolveChildren",o[o.RemoveChild=3]="RemoveChild",o[o.SetProp=4]="SetProp",o[o.Bulk=5]="Bulk",o[o.DocumentSynced=6]="DocumentSynced"})(p||(e.TestItemEventOp=p={}));const f=(o,b)=>o===b,E=Object.entries({range:(o,b)=>o===b?!0:!o||!b?!1:o.equalsRange(b),busy:f,label:f,description:f,error:f,sortText:f,tags:(o,b)=>!(o.length!==b.length||o.some(P=>!b.includes(P)))}),t=(o,b)=>{let P;for(const[T,n]of E)n(o[T],b[T])||(P?P[T]=b[T]:P={[T]:b[T]});return P};class s extends d.Disposable{get root(){return this.options.root}constructor(b){super(),this.options=b,this.debounceSendDiff=this._register(new w.RunOnceScheduler(()=>this.flushDiff(),200)),this.diffOpEmitter=this._register(new M.Emitter),this.tree=new Map,this.tags=new Map,this.diff=[],this.onDidGenerateDiff=this.diffOpEmitter.event,this.root.canResolveChildren=!0,this.upsertItem(this.root,void 0)}set resolveHandler(b){this._resolveHandler=b;for(const P of this.tree.values())this.updateExpandability(P)}get resolveHandler(){return this._resolveHandler}collectDiff(){const b=this.diff;return this.diff=[],b}pushDiff(b){switch(b.op){case 2:{for(const P of this.diff)if(P.op===2&&P.uri===b.uri){P.docv=b.docv;return}break}case 1:{const P=this.diff[this.diff.length-1];if(P){if(P.op===1&&P.item.extId===b.item.extId){(0,R.applyTestItemUpdate)(P.item,b.item);return}if(P.op===0&&P.item.item.extId===b.item.extId){(0,R.applyTestItemUpdate)(P.item,b.item);return}}break}}this.diff.push(b),this.debounceSendDiff.isScheduled()||this.debounceSendDiff.schedule()}expand(b,P){const T=this.tree.get(b);if(T){if((T.expandLevels===void 0||P>T.expandLevels)&&(T.expandLevels=P),T.expand===1){const n=this.resolveChildren(T);return n.isOpen()?this.expandChildren(T,P-1):n.wait().then(()=>this.expandChildren(T,P-1))}else if(T.expand===3)return T.resolveBarrier?.isOpen()===!1?T.resolveBarrier.wait().then(()=>this.expandChildren(T,P-1)):this.expandChildren(T,P-1)}}dispose(){for(const b of this.tree.values())this.options.getApiFor(b.actual).listener=void 0;this.tree.clear(),this.diff=[],super.dispose()}onTestItemEvent(b,P){switch(P.op){case 3:this.removeItem(u.TestId.joinToString(b.fullId,P.id));break;case 0:this.upsertItem(P.item,b);break;case 5:for(const T of P.ops)this.onTestItemEvent(b,T);break;case 1:this.diffTagRefs(P.new,P.old,b.fullId.toString());break;case 2:this.updateExpandability(b);break;case 4:this.pushDiff({op:1,item:{extId:b.fullId.toString(),item:P.update}});break;case 6:this.documentSynced(b.actual.uri);break;default:(0,A.assertNever)(P)}}documentSynced(b){b&&this.pushDiff({op:2,uri:b,docv:this.options.getDocumentVersion(b)})}upsertItem(b,P){const T=u.TestId.fromExtHostTestItem(b,this.root.id,P?.actual),n=this.options.getApiFor(b);n.parent&&n.parent!==P?.actual&&this.options.getChildren(n.parent).delete(b.id);let a=this.tree.get(T.toString());if(!a){a={fullId:T,actual:b,expandLevels:P?.expandLevels?P.expandLevels-1:void 0,expand:0},b.tags.forEach(this.incrementTagRefs,this),this.tree.set(a.fullId.toString(),a),this.setItemParent(b,P),this.pushDiff({op:0,item:{controllerId:this.options.controllerId,expand:a.expand,item:this.options.toITestItem(b)}}),this.connectItemAndChildren(b,a,P);return}if(a.actual===b){this.connectItem(b,a,P);return}if(a.actual.uri?.toString()!==b.uri?.toString())return this.removeItem(T.toString()),this.upsertItem(b,P);const l=this.options.getChildren(a.actual),i=a.actual,c=t(this.options.toITestItem(i),this.options.toITestItem(b));this.options.getApiFor(i).listener=void 0,a.actual=b,a.expand=0,c&&(c.hasOwnProperty("tags")&&(this.diffTagRefs(b.tags,i.tags,T.toString()),delete c.tags),this.onTestItemEvent(a,{op:4,update:c})),this.connectItemAndChildren(b,a,P);for(const[_,S]of l)this.options.getChildren(b).get(S.id)||this.removeItem(u.TestId.joinToString(T,S.id));this.documentSynced(a.actual.uri)}diffTagRefs(b,P,T){const n=new Set(P.map(a=>a.id));for(const a of b)n.delete(a.id)||this.incrementTagRefs(a);this.pushDiff({op:1,item:{extId:T,item:{tags:b.map(a=>(0,R.namespaceTestTag)(this.options.controllerId,a.id))}}}),n.forEach(this.decrementTagRefs,this)}incrementTagRefs(b){const P=this.tags.get(b.id);P?P.refCount++:(this.tags.set(b.id,{refCount:1}),this.pushDiff({op:6,tag:{id:(0,R.namespaceTestTag)(this.options.controllerId,b.id)}}))}decrementTagRefs(b){const P=this.tags.get(b);P&&!--P.refCount&&(this.tags.delete(b),this.pushDiff({op:7,id:(0,R.namespaceTestTag)(this.options.controllerId,b)}))}setItemParent(b,P){this.options.getApiFor(b).parent=P&&P.actual!==this.root?P.actual:void 0}connectItem(b,P,T){this.setItemParent(b,T);const n=this.options.getApiFor(b);n.parent=T?.actual,n.listener=a=>this.onTestItemEvent(P,a),this.updateExpandability(P)}connectItemAndChildren(b,P,T){this.connectItem(b,P,T);for(const[n,a]of this.options.getChildren(b))this.upsertItem(a,P)}updateExpandability(b){let P;this._resolveHandler?b.resolveBarrier?P=b.resolveBarrier.isOpen()?3:2:P=b.actual.canResolveChildren?1:0:P=0,P!==b.expand&&(b.expand=P,this.pushDiff({op:1,item:{extId:b.fullId.toString(),expand:P}}),P===1&&b.expandLevels!==void 0&&this.resolveChildren(b))}expandChildren(b,P){if(P<0)return;const T=[];for(const[n,a]of this.options.getChildren(b.actual)){const l=this.expand(u.TestId.joinToString(b.fullId,a.id),P);(0,w.isThenable)(l)&&T.push(l)}if(T.length)return Promise.all(T).then(()=>{})}resolveChildren(b){if(b.resolveBarrier)return b.resolveBarrier;if(!this._resolveHandler){const a=new w.Barrier;return a.open(),a}b.expand=2,this.pushExpandStateUpdate(b);const P=b.resolveBarrier=new w.Barrier,T=a=>{console.error(`Unhandled error in resolveHandler of test controller "${this.options.controllerId}"`,a)};let n;try{n=this._resolveHandler(b.actual===this.root?void 0:b.actual)}catch(a){T(a)}return(0,w.isThenable)(n)?n.catch(T).then(()=>{P.open(),this.updateExpandability(b)}):(P.open(),this.updateExpandability(b)),b.resolveBarrier}pushExpandStateUpdate(b){this.pushDiff({op:1,item:{extId:b.fullId.toString(),expand:b.expand}})}removeItem(b){const P=this.tree.get(b);if(!P)throw new Error("attempting to remove non-existent child");this.pushDiff({op:3,itemId:b});const T=[P];for(;T.length;){const n=T.pop();if(n){this.options.getApiFor(n.actual).listener=void 0;for(const a of n.actual.tags)this.decrementTagRefs(a.id);this.tree.delete(n.fullId.toString());for(const[a,l]of this.options.getChildren(n.actual))T.push(this.tree.get(u.TestId.joinToString(n.fullId,l.id)))}}}flushDiff(){const b=this.collectDiff();b.length&&this.diffOpEmitter.fire(b)}}e.TestItemCollection=s;class g extends Error{constructor(b){super(`Attempted to insert a duplicate test item ID ${b}`)}}e.DuplicateTestItemError=g;class C extends Error{constructor(b){super(`TestItem with ID "${b}" is invalid. Make sure to create it from the createTestItem method.`)}}e.InvalidTestItemError=C;class r extends Error{constructor(b,P,T){super(`TestItem with ID "${b}" is from controller "${P}" and cannot be added as a child of an item from controller "${T}".`)}}e.MixedTestItemController=r;const h=(o,b,P)=>{let T=new Map;return{get size(){return T.size},forEach(n,a){for(const l of T.values())n.call(a,l,this)},[Symbol.iterator](){return T.entries()},replace(n){const a=new Map,l=new Set(T.keys()),i={op:5,ops:[]};for(const c of n){if(!(c instanceof P))throw new C(c.id);const _=b(c).controllerId;if(_!==o.controllerId)throw new r(c.id,_,o.controllerId);if(a.has(c.id))throw new g(c.id);a.set(c.id,c),l.delete(c.id),i.ops.push({op:0,item:c})}for(const c of l.keys())i.ops.push({op:3,id:c});o.listener?.(i),T=a},add(n){if(!(n instanceof P))throw new C(n.id);T.set(n.id,n),o.listener?.({op:0,item:n})},delete(n){T.delete(n)&&o.listener?.({op:3,id:n})},get(n){return T.get(n)},toJSON(){return Array.from(T.values())}}};e.createTestItemChildren=h}),define(ye[141],Ce([1,0,106]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPrivateApiFor=e.createPrivateApiFor=void 0;const M=new WeakMap,d=(R,u)=>{const p={controllerId:u};return M.set(R,p),p};e.createPrivateApiFor=d;const A=R=>{const u=M.get(R);if(!u)throw new w.InvalidTestItemError(R?.id||"<unknown>");return u};e.getPrivateApiFor=A}),define(ye[107],Ce([1,0,15,2]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeAuthority=e.asWebviewUri=e.webviewGenericCspSource=e.webviewRootResourceAuthority=e.webviewResourceBaseHost=void 0,e.webviewResourceBaseHost="vscode-cdn.net",e.webviewRootResourceAuthority=`vscode-resource.${e.webviewResourceBaseHost}`,e.webviewGenericCspSource=`'self' https://*.${e.webviewResourceBaseHost}`;function d(u,p){return u.scheme===w.Schemas.http||u.scheme===w.Schemas.https?u:(p&&p.authority&&p.isRemote&&u.scheme===w.Schemas.file&&(u=M.URI.from({scheme:w.Schemas.vscodeRemote,authority:p.authority,path:u.path})),M.URI.from({scheme:w.Schemas.https,authority:`${u.scheme}+${A(u.authority)}.${e.webviewRootResourceAuthority}`,path:u.path,fragment:u.fragment,query:u.query}))}e.asWebviewUri=d;function A(u){return u.replace(/./g,p=>{const f=p.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57?p:"-"+f.toString(16).padStart(4,"0")})}function R(u){return u.replace(/-([0-9a-f]{4})/g,(p,f)=>String.fromCharCode(parseInt(f,16)))}e.decodeAuthority=R}),define(ye[274],Ce([1,0,4,5,107]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostEditorInsets=void 0;class A{constructor(u,p,f){this._proxy=u,this._editors=p,this._remoteInfo=f,this._handlePool=0,this._disposables=new M.DisposableStore,this._insets=new Map,this._disposables.add(p.onDidChangeVisibleTextEditors(()=>{const y=p.getVisibleTextEditors();for(const E of this._insets.values())y.indexOf(E.editor)<0&&E.inset.dispose()}))}dispose(){this._insets.forEach(u=>u.inset.dispose()),this._disposables.dispose()}createWebviewEditorInset(u,p,f,y,E){let t;for(const b of this._editors.getVisibleTextEditors(!0))if(b.value===u){t=b;break}if(!t)throw new Error("not a visible editor");const s=this,g=this._handlePool++,C=new w.Emitter,r=new w.Emitter,h=new class{constructor(){this._html="",this._options=Object.create(null)}asWebviewUri(b){return(0,d.asWebviewUri)(b,s._remoteInfo)}get cspSource(){return d.webviewGenericCspSource}set options(b){this._options=b,s._proxy.$setOptions(g,b)}get options(){return this._options}set html(b){this._html=b,s._proxy.$setHtml(g,b)}get html(){return this._html}get onDidReceiveMessage(){return C.event}postMessage(b){return s._proxy.$postMessage(g,b)}},o=new class{constructor(){this.editor=u,this.line=p,this.height=f,this.webview=h,this.onDidDispose=r.event}dispose(){s._insets.has(g)&&(s._insets.delete(g),s._proxy.$disposeEditorInset(g),r.fire(),r.dispose(),C.dispose())}};return this._proxy.$createEditorInset(g,t.id,t.value.document.uri,p+1,f,y||{},E.identifier,E.extensionLocation),this._insets.set(g,{editor:u,inset:o,onDidReceiveMessage:C}),o}$onDidDispose(u){const p=this._insets.get(u);p&&p.inset.dispose()}$onDidReceiveMessage(u,p){this._insets.get(u)?.onDidReceiveMessage.fire(p)}}e.ExtHostEditorInsets=A}),define(ye[275],Ce([1,0,6]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VariableError=e.VariableKind=e.IConfigurationResolverService=void 0,e.IConfigurationResolverService=(0,w.createDecorator)("configurationResolverService");var M;(function(A){A.Unknown="unknown",A.Env="env",A.Config="config",A.Command="command",A.Input="input",A.ExtensionInstallFolder="extensionInstallFolder",A.WorkspaceFolder="workspaceFolder",A.Cwd="cwd",A.WorkspaceFolderBasename="workspaceFolderBasename",A.UserHome="userHome",A.LineNumber="lineNumber",A.SelectedText="selectedText",A.File="file",A.FileWorkspaceFolder="fileWorkspaceFolder",A.RelativeFile="relativeFile",A.RelativeFileDirname="relativeFileDirname",A.FileDirname="fileDirname",A.FileExtname="fileExtname",A.FileBasename="fileBasename",A.FileBasenameNoExtension="fileBasenameNoExtension",A.FileDirnameBasename="fileDirnameBasename",A.ExecPath="execPath",A.ExecInstallFolder="execInstallFolder",A.PathSeparator="pathSeparator"})(M||(e.VariableKind=M={}));class d extends Error{constructor(R,u){super(u),this.variable=R}}e.VariableError=d}),define(ye[276],Ce([1,0,17,44,18,24,14,127,226,275,16]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractVariableResolverService=void 0;class E{static{this.VARIABLE_LHS="${"}static{this.VARIABLE_REGEXP=/\$\{(.*?)\}/g}constructor(s,g,C,r){this._contributedVariables=new Map,this._context=s,this._labelService=g,this._userHomePromise=C,r&&(this._envVariablesPromise=r.then(h=>this.prepareEnv(h)))}prepareEnv(s){if(R.isWindows){const g=Object.create(null);return Object.keys(s).forEach(C=>{g[C.toLowerCase()]=s[C]}),g}return s}resolveWithEnvironment(s,g,C){return this.recursiveResolve({env:this.prepareEnv(s),userHome:void 0},g?g.uri:void 0,C)}async resolveAsync(s,g){const C={env:await this._envVariablesPromise,userHome:await this._userHomePromise};return this.recursiveResolve(C,s?s.uri:void 0,g)}async resolveAnyBase(s,g,C,r){const h=A.deepClone(g);R.isWindows&&h.windows?Object.keys(h.windows).forEach(b=>h[b]=h.windows[b]):R.isMacintosh&&h.osx?Object.keys(h.osx).forEach(b=>h[b]=h.osx[b]):R.isLinux&&h.linux&&Object.keys(h.linux).forEach(b=>h[b]=h.linux[b]),delete h.windows,delete h.osx,delete h.linux;const o={env:await this._envVariablesPromise,userHome:await this._userHomePromise};return this.recursiveResolve(o,s?s.uri:void 0,h,C,r)}async resolveAnyAsync(s,g,C){return this.resolveAnyBase(s,g,C)}async resolveAnyMap(s,g,C){const r=new Map;return{newConfig:await this.resolveAnyBase(s,g,C,r),resolvedVariables:r}}resolveWithInteractionReplace(s,g,C,r){throw new Error("resolveWithInteractionReplace not implemented.")}resolveWithInteraction(s,g,C,r){throw new Error("resolveWithInteraction not implemented.")}contributeVariable(s,g){if(this._contributedVariables.has(s))throw new Error("Variable "+s+" is contributed twice.");this._contributedVariables.set(s,g)}async recursiveResolve(s,g,C,r,h){if(d.isString(C))return this.resolveString(s,g,C,r,h);if(Array.isArray(C))return Promise.all(C.map(o=>this.recursiveResolve(s,g,o,r,h)));if(d.isObject(C)){const o=Object.create(null),b=await Promise.all(Object.keys(C).map(async P=>[await this.resolveString(s,g,P,r,h),await this.recursiveResolve(s,g,C[P],r,h)]));for(const[P,T]of b)o[P]=T;return o}return C}resolveString(s,g,C,r,h){return(0,y.replaceAsync)(C,E.VARIABLE_REGEXP,async(o,b)=>{if(b.includes(E.VARIABLE_LHS))return o;let P=await this.evaluateSingleVariable(s,o,b,g,r);return h?.set(b,P),P!==o&&d.isString(P)&&P.match(E.VARIABLE_REGEXP)&&(P=await this.resolveString(s,g,P,r,h)),P})}fsPath(s){return this._labelService?this._labelService.getUriLabel(s,{noPrefix:!0}):s.fsPath}async evaluateSingleVariable(s,g,C,r,h){let o;const b=C.split(":");b.length>1&&(C=b[0],o=b[1]);const P=a=>{const l=this._context.getFilePath();if(l)return(0,u.normalizeDriveLetter)(l);throw new f.VariableError(a,(0,p.localize)(0,null,g))},T=a=>{const l=P(a);if(this._context.getWorkspaceFolderPathForFile){const i=this._context.getWorkspaceFolderPathForFile();if(i)return(0,u.normalizeDriveLetter)(i)}throw new f.VariableError(a,(0,p.localize)(1,null,g,w.basename(l)))},n=a=>{if(o){const l=this._context.getFolderUri(o);if(l)return l;throw new f.VariableError(a,(0,p.localize)(2,null,g,o))}if(r)return r;throw this._context.getWorkspaceFolderCount()>1?new f.VariableError(a,(0,p.localize)(3,null,g)):new f.VariableError(a,(0,p.localize)(4,null,g))};switch(C){case"env":if(o){if(s.env){const a=s.env[R.isWindows?o.toLowerCase():o];if(d.isString(a))return a}return""}throw new f.VariableError(f.VariableKind.Env,(0,p.localize)(5,null,g));case"config":if(o){const a=this._context.getConfigurationValue(r,o);if(d.isUndefinedOrNull(a))throw new f.VariableError(f.VariableKind.Config,(0,p.localize)(6,null,g,o));if(d.isObject(a))throw new f.VariableError(f.VariableKind.Config,(0,p.localize)(7,null,g,o));return a}throw new f.VariableError(f.VariableKind.Config,(0,p.localize)(8,null,g));case"command":return this.resolveFromMap(f.VariableKind.Command,g,o,h,"command");case"input":return this.resolveFromMap(f.VariableKind.Input,g,o,h,"input");case"extensionInstallFolder":if(o){const a=await this._context.getExtension(o);if(!a)throw new f.VariableError(f.VariableKind.ExtensionInstallFolder,(0,p.localize)(9,null,g,o));return this.fsPath(a.extensionLocation)}throw new f.VariableError(f.VariableKind.ExtensionInstallFolder,(0,p.localize)(10,null,g));default:switch(C){case"workspaceRoot":case"workspaceFolder":return(0,u.normalizeDriveLetter)(this.fsPath(n(f.VariableKind.WorkspaceFolder)));case"cwd":return r||o?(0,u.normalizeDriveLetter)(this.fsPath(n(f.VariableKind.Cwd))):M.cwd();case"workspaceRootFolderName":case"workspaceFolderBasename":return(0,u.normalizeDriveLetter)(w.basename(this.fsPath(n(f.VariableKind.WorkspaceFolderBasename))));case"userHome":{if(s.userHome)return s.userHome;throw new f.VariableError(f.VariableKind.UserHome,(0,p.localize)(11,null,g))}case"lineNumber":{const a=this._context.getLineNumber();if(a)return a;throw new f.VariableError(f.VariableKind.LineNumber,(0,p.localize)(12,null,g))}case"selectedText":{const a=this._context.getSelectedText();if(a)return a;throw new f.VariableError(f.VariableKind.SelectedText,(0,p.localize)(13,null,g))}case"file":return P(f.VariableKind.File);case"fileWorkspaceFolder":return T(f.VariableKind.FileWorkspaceFolder);case"relativeFile":return r||o?w.relative(this.fsPath(n(f.VariableKind.RelativeFile)),P(f.VariableKind.RelativeFile)):P(f.VariableKind.RelativeFile);case"relativeFileDirname":{const a=w.dirname(P(f.VariableKind.RelativeFileDirname));if(r||o){const l=w.relative(this.fsPath(n(f.VariableKind.RelativeFileDirname)),a);return l.length===0?".":l}return a}case"fileDirname":return w.dirname(P(f.VariableKind.FileDirname));case"fileExtname":return w.extname(P(f.VariableKind.FileExtname));case"fileBasename":return w.basename(P(f.VariableKind.FileBasename));case"fileBasenameNoExtension":{const a=w.basename(P(f.VariableKind.FileBasenameNoExtension));return a.slice(0,a.length-w.extname(a).length)}case"fileDirnameBasename":return w.basename(w.dirname(P(f.VariableKind.FileDirnameBasename)));case"execPath":{const a=this._context.getExecPath();return a||g}case"execInstallFolder":{const a=this._context.getAppRoot();return a||g}case"pathSeparator":return w.sep;default:try{const a=o?`${C}:${o}`:C;return this.resolveFromMap(f.VariableKind.Unknown,g,a,h,void 0)}catch{return g}}}}resolveFromMap(s,g,C,r,h){if(C&&r){const o=h===void 0?r[C]:r[h+":"+C];if(typeof o=="string")return o;throw new f.VariableError(s,(0,p.localize)(14,null,g))}return g}}e.AbstractVariableResolverService=E}),define(ye[142],Ce([1,0,6,139]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferredSideBySideGroupDirection=e.isEditorGroup=e.OpenEditorContext=e.GroupsOrder=e.isEditorReplacement=e.MergeGroupMode=e.GroupsArrangement=e.GroupLocation=e.GroupOrientation=e.GroupDirection=e.IEditorGroupsService=void 0,e.IEditorGroupsService=(0,w.createDecorator)("editorGroupsService");var d;(function(g){g[g.UP=0]="UP",g[g.DOWN=1]="DOWN",g[g.LEFT=2]="LEFT",g[g.RIGHT=3]="RIGHT"})(d||(e.GroupDirection=d={}));var A;(function(g){g[g.HORIZONTAL=0]="HORIZONTAL",g[g.VERTICAL=1]="VERTICAL"})(A||(e.GroupOrientation=A={}));var R;(function(g){g[g.FIRST=0]="FIRST",g[g.LAST=1]="LAST",g[g.NEXT=2]="NEXT",g[g.PREVIOUS=3]="PREVIOUS"})(R||(e.GroupLocation=R={}));var u;(function(g){g[g.MAXIMIZE=0]="MAXIMIZE",g[g.EVEN=1]="EVEN",g[g.TOGGLE=2]="TOGGLE"})(u||(e.GroupsArrangement=u={}));var p;(function(g){g[g.COPY_EDITORS=0]="COPY_EDITORS",g[g.MOVE_EDITORS=1]="MOVE_EDITORS"})(p||(e.MergeGroupMode=p={}));function f(g){const C=g;return(0,M.isEditorInput)(C?.editor)&&(0,M.isEditorInput)(C?.replacement)}e.isEditorReplacement=f;var y;(function(g){g[g.CREATION_TIME=0]="CREATION_TIME",g[g.MOST_RECENTLY_ACTIVE=1]="MOST_RECENTLY_ACTIVE",g[g.GRID_APPEARANCE=2]="GRID_APPEARANCE"})(y||(e.GroupsOrder=y={}));var E;(function(g){g[g.NEW_EDITOR=1]="NEW_EDITOR",g[g.MOVE_EDITOR=2]="MOVE_EDITOR",g[g.COPY_EDITOR=3]="COPY_EDITOR"})(E||(e.OpenEditorContext=E={}));function t(g){const C=g;return!!C&&typeof C.id=="number"&&Array.isArray(C.editors)}e.isEditorGroup=t;function s(g){return g.getValue("workbench.editor.openSideBySideDirection")==="down"?1:3}e.preferredSideBySideGroupDirection=s}),define(ye[277],Ce([1,0,6,142]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPreferredGroup=e.SIDE_GROUP=e.ACTIVE_GROUP=e.IEditorService=void 0,e.IEditorService=(0,w.createDecorator)("editorService"),e.ACTIVE_GROUP=-1,e.SIDE_GROUP=-2;function d(A){const R=A;return typeof A=="number"||(0,M.isEditorGroup)(R)}e.isPreferredGroup=d}),define(ye[11],Ce([1,0,19,21,164,69,77,28,159,76,97,24,18,2,37,81,133,141,139,105,63,87,277,7]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalQuickFix=e.ChatVariableLevel=e.ChatVariable=e.ChatMessageRole=e.ChatMessage=e.ChatFollowup=e.ChatReplyFollowup=e.DataTransfer=e.DataTransferItem=e.ViewBadge=e.TypeHierarchyItem=e.CodeActionTriggerKind=e.TestCoverage=e.TestResults=e.TestItem=e.TestTag=e.TestMessage=e.NotebookRendererScript=e.NotebookDocumentContentOptions=e.NotebookKernelSourceAction=e.NotebookStatusBarItem=e.NotebookExclusiveDocumentPattern=e.NotebookCellOutput=e.NotebookCellOutputItem=e.NotebookCellData=e.NotebookData=e.NotebookCellKind=e.NotebookCellExecutionState=e.NotebookCellExecutionSummary=e.NotebookRange=e.MappedEditsContext=e.LanguageSelector=e.GlobPattern=e.TextEditorOpenOptions=e.FoldingRangeKind=e.FoldingRange=e.ProgressLocation=e.EndOfLine=e.TextEditorLineNumbersStyle=e.TextDocumentSaveReason=e.SelectionRange=e.Color=e.ColorPresentation=e.DocumentLink=e.InlayHintKind=e.InlayHintLabelPart=e.InlayHint=e.SignatureHelp=e.SignatureInformation=e.ParameterInformation=e.CompletionItem=e.CompletionItemKind=e.CompletionItemTag=e.CompletionContext=e.CompletionTriggerKind=e.DocumentHighlight=e.InlineValueContext=e.InlineValue=e.EvaluatableExpression=e.Hover=e.DefinitionLink=e.location=e.CallHierarchyOutgoingCall=e.CallHierarchyIncomingCall=e.CallHierarchyItem=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolTag=e.SymbolKind=e.WorkspaceEdit=e.TextEdit=e.DecorationRenderOptions=e.DecorationRangeBehavior=e.ThemableDecorationRenderOptions=e.ThemableDecorationAttachmentRenderOptions=e.pathOrURIToURI=e.fromRangeOrRangeWithMessage=e.MarkdownString=e.isDecorationOptionsArr=e.ViewColumn=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.Diagnostic=e.DiagnosticTag=e.DocumentSelector=e.Position=e.TokenType=e.Range=e.Selection=void 0;var l;(function(Le){function Fe(ne){const{selectionStartLineNumber:Oe,selectionStartColumn:We,positionLineNumber:Ze,positionColumn:Qe}=ne,ot=new a.Position(Oe-1,We-1),bt=new a.Position(Ze-1,Qe-1);return new a.Selection(ot,bt)}Le.to=Fe;function ke(ne){const{anchor:Oe,active:We}=ne;return{selectionStartLineNumber:Oe.line+1,selectionStartColumn:Oe.character+1,positionLineNumber:We.line+1,positionColumn:We.character+1}}Le.from=ke})(l||(e.Selection=l={}));var i;(function(Le){function Fe(ne){if(!ne)return;const{start:Oe,end:We}=ne;return{startLineNumber:Oe.line+1,startColumn:Oe.character+1,endLineNumber:We.line+1,endColumn:We.character+1}}Le.from=Fe;function ke(ne){if(!ne)return;const{startLineNumber:Oe,startColumn:We,endLineNumber:Ze,endColumn:Qe}=ne;return new a.Range(Oe-1,We-1,Ze-1,Qe-1)}Le.to=ke})(i||(e.Range=i={}));var c;(function(Le){function Fe(ke){switch(ke){case 1:return a.StandardTokenType.Comment;case 0:return a.StandardTokenType.Other;case 3:return a.StandardTokenType.RegEx;case 2:return a.StandardTokenType.String}}Le.to=Fe})(c||(e.TokenType=c={}));var _;(function(Le){function Fe(ne){return new a.Position(ne.lineNumber-1,ne.column-1)}Le.to=Fe;function ke(ne){return{lineNumber:ne.line+1,column:ne.character+1}}Le.from=ke})(_||(e.Position=_={}));var S;(function(Le){function Fe(Oe,We,Ze){return(0,w.coalesce)((0,w.asArray)(Oe).map(Qe=>ke(Qe,We,Ze)))}Le.from=Fe;function ke(Oe,We,Ze){if(typeof Oe=="string")return{$serialized:!0,language:Oe,isBuiltin:Ze?.isBuiltin};if(Oe)return{$serialized:!0,language:Oe.language,scheme:ne(Oe.scheme,We),pattern:Ve.from(Oe.pattern)??void 0,exclusive:Oe.exclusive,notebookType:Oe.notebookType,isBuiltin:Ze?.isBuiltin}}function ne(Oe,We){return We&&typeof Oe=="string"?We.transformOutgoingScheme(Oe):Oe}})(S||(e.DocumentSelector=S={}));var k;(function(Le){function Fe(ne){switch(ne){case a.DiagnosticTag.Unnecessary:return 1;case a.DiagnosticTag.Deprecated:return 2}}Le.from=Fe;function ke(ne){switch(ne){case 1:return a.DiagnosticTag.Unnecessary;case 2:return a.DiagnosticTag.Deprecated;default:return}}Le.to=ke})(k||(e.DiagnosticTag=k={}));var m;(function(Le){function Fe(ne){let Oe;return ne.code&&((0,t.isString)(ne.code)||(0,t.isNumber)(ne.code)?Oe=String(ne.code):Oe={value:String(ne.code.value),target:ne.code.target}),{...i.from(ne.range),message:ne.message,source:ne.source,code:Oe,severity:D.from(ne.severity),relatedInformation:ne.relatedInformation&&ne.relatedInformation.map(v.from),tags:Array.isArray(ne.tags)?(0,w.coalesce)(ne.tags.map(k.from)):void 0}}Le.from=Fe;function ke(ne){const Oe=new a.Diagnostic(i.to(ne),ne.message,D.to(ne.severity));return Oe.source=ne.source,Oe.code=(0,t.isString)(ne.code)?ne.code:ne.code?.value,Oe.relatedInformation=ne.relatedInformation&&ne.relatedInformation.map(v.to),Oe.tags=ne.tags&&(0,w.coalesce)(ne.tags.map(k.to)),Oe}Le.to=ke})(m||(e.Diagnostic=m={}));var v;(function(Le){function Fe(ne){return{...i.from(ne.location.range),message:ne.message,resource:ne.location.uri}}Le.from=Fe;function ke(ne){return new a.DiagnosticRelatedInformation(new a.Location(ne.resource,i.to(ne)),ne.message)}Le.to=ke})(v||(e.DiagnosticRelatedInformation=v={}));var D;(function(Le){function Fe(ne){switch(ne){case a.DiagnosticSeverity.Error:return r.MarkerSeverity.Error;case a.DiagnosticSeverity.Warning:return r.MarkerSeverity.Warning;case a.DiagnosticSeverity.Information:return r.MarkerSeverity.Info;case a.DiagnosticSeverity.Hint:return r.MarkerSeverity.Hint}return r.MarkerSeverity.Error}Le.from=Fe;function ke(ne){switch(ne){case r.MarkerSeverity.Info:return a.DiagnosticSeverity.Information;case r.MarkerSeverity.Warning:return a.DiagnosticSeverity.Warning;case r.MarkerSeverity.Error:return a.DiagnosticSeverity.Error;case r.MarkerSeverity.Hint:return a.DiagnosticSeverity.Hint;default:return a.DiagnosticSeverity.Error}}Le.to=ke})(D||(e.DiagnosticSeverity=D={}));var L;(function(Le){function Fe(ne){return typeof ne=="number"&&ne>=a.ViewColumn.One?ne-1:ne===a.ViewColumn.Beside?n.SIDE_GROUP:n.ACTIVE_GROUP}Le.from=Fe;function ke(ne){if(typeof ne=="number"&&ne>=0)return ne+1;throw new Error("invalid 'EditorGroupColumn'")}Le.to=ke})(L||(e.ViewColumn=L={}));function O(Le){return typeof Le.range<"u"}function H(Le){return Le.length===0?!0:!!O(Le[0])}e.isDecorationOptionsArr=H;var N;(function(Le){function Fe(Qe){return Qe.map(Le.from)}Le.fromMany=Fe;function ke(Qe){return Qe&&typeof Qe=="object"&&typeof Qe.language=="string"&&typeof Qe.value=="string"}function ne(Qe){let ot;if(ke(Qe)){const{language:ft,value:wt}=Qe;ot={value:"```"+ft+`
`+wt+"\n```\n"}}else a.MarkdownString.isMarkdownString(Qe)?ot={value:Qe.value,isTrusted:Qe.isTrusted,supportThemeIcons:Qe.supportThemeIcons,supportHtml:Qe.supportHtml,baseUri:Qe.baseUri}:typeof Qe=="string"?ot={value:Qe}:ot={value:""};const bt=Object.create(null);ot.uris=bt;const Ct=ft=>{try{let wt=s.URI.parse(ft,!0);wt=wt.with({query:Oe(wt.query,bt)}),bt[ft]=wt}catch{}return""},_t=new p.marked.Renderer;return _t.link=Ct,_t.image=ft=>typeof ft=="string"?Ct(R.parseHrefAndDimensions(ft).href):"",(0,p.marked)(ot.value,{renderer:_t}),ot}Le.from=ne;function Oe(Qe,ot){if(!Qe)return Qe;let bt;try{bt=(0,f.parse)(Qe)}catch{}if(!bt)return Qe;let Ct=!1;return bt=(0,E.cloneAndChange)(bt,_t=>{if(s.URI.isUri(_t)){const ft=`__uri_${Math.random().toString(16).slice(2,8)}`;return ot[ft]=_t,Ct=!0,ft}else return}),Ct?JSON.stringify(bt):Qe}function We(Qe){const ot=new a.MarkdownString(Qe.value,Qe.supportThemeIcons);return ot.isTrusted=Qe.isTrusted,ot.supportHtml=Qe.supportHtml,ot.baseUri=Qe.baseUri?s.URI.from(Qe.baseUri):void 0,ot}Le.to=We;function Ze(Qe){if(Qe)return typeof Qe=="string"?Qe:Le.from(Qe)}Le.fromStrict=Ze})(N||(e.MarkdownString=N={}));function $(Le){return H(Le)?Le.map(Fe=>({range:i.from(Fe.range),hoverMessage:Array.isArray(Fe.hoverMessage)?N.fromMany(Fe.hoverMessage):Fe.hoverMessage?N.from(Fe.hoverMessage):void 0,renderOptions:Fe.renderOptions})):Le.map(Fe=>({range:i.from(Fe)}))}e.fromRangeOrRangeWithMessage=$;function U(Le){return typeof Le>"u"?Le:typeof Le=="string"?s.URI.file(Le):Le}e.pathOrURIToURI=U;var x;(function(Le){function Fe(ke){return typeof ke>"u"?ke:{contentText:ke.contentText,contentIconPath:ke.contentIconPath?U(ke.contentIconPath):void 0,border:ke.border,borderColor:ke.borderColor,fontStyle:ke.fontStyle,fontWeight:ke.fontWeight,textDecoration:ke.textDecoration,color:ke.color,backgroundColor:ke.backgroundColor,margin:ke.margin,width:ke.width,height:ke.height}}Le.from=Fe})(x||(e.ThemableDecorationAttachmentRenderOptions=x={}));var X;(function(Le){function Fe(ke){return typeof ke>"u"?ke:{backgroundColor:ke.backgroundColor,outline:ke.outline,outlineColor:ke.outlineColor,outlineStyle:ke.outlineStyle,outlineWidth:ke.outlineWidth,border:ke.border,borderColor:ke.borderColor,borderRadius:ke.borderRadius,borderSpacing:ke.borderSpacing,borderStyle:ke.borderStyle,borderWidth:ke.borderWidth,fontStyle:ke.fontStyle,fontWeight:ke.fontWeight,textDecoration:ke.textDecoration,cursor:ke.cursor,color:ke.color,opacity:ke.opacity,letterSpacing:ke.letterSpacing,gutterIconPath:ke.gutterIconPath?U(ke.gutterIconPath):void 0,gutterIconSize:ke.gutterIconSize,overviewRulerColor:ke.overviewRulerColor,before:ke.before?x.from(ke.before):void 0,after:ke.after?x.from(ke.after):void 0}}Le.from=Fe})(X||(e.ThemableDecorationRenderOptions=X={}));var K;(function(Le){function Fe(ke){if(typeof ke>"u")return ke;switch(ke){case a.DecorationRangeBehavior.OpenOpen:return 0;case a.DecorationRangeBehavior.ClosedClosed:return 1;case a.DecorationRangeBehavior.OpenClosed:return 2;case a.DecorationRangeBehavior.ClosedOpen:return 3}}Le.from=Fe})(K||(e.DecorationRangeBehavior=K={}));var pe;(function(Le){function Fe(ke){return{isWholeLine:ke.isWholeLine,rangeBehavior:ke.rangeBehavior?K.from(ke.rangeBehavior):void 0,overviewRulerLane:ke.overviewRulerLane,light:ke.light?X.from(ke.light):void 0,dark:ke.dark?X.from(ke.dark):void 0,backgroundColor:ke.backgroundColor,outline:ke.outline,outlineColor:ke.outlineColor,outlineStyle:ke.outlineStyle,outlineWidth:ke.outlineWidth,border:ke.border,borderColor:ke.borderColor,borderRadius:ke.borderRadius,borderSpacing:ke.borderSpacing,borderStyle:ke.borderStyle,borderWidth:ke.borderWidth,fontStyle:ke.fontStyle,fontWeight:ke.fontWeight,textDecoration:ke.textDecoration,cursor:ke.cursor,color:ke.color,opacity:ke.opacity,letterSpacing:ke.letterSpacing,gutterIconPath:ke.gutterIconPath?U(ke.gutterIconPath):void 0,gutterIconSize:ke.gutterIconSize,overviewRulerColor:ke.overviewRulerColor,before:ke.before?x.from(ke.before):void 0,after:ke.after?x.from(ke.after):void 0}}Le.from=Fe})(pe||(e.DecorationRenderOptions=pe={}));var le;(function(Le){function Fe(ne){return{text:ne.newText,eol:ne.newEol&&it.from(ne.newEol),range:i.from(ne.range)}}Le.from=Fe;function ke(ne){const Oe=new a.TextEdit(i.to(ne.range),ne.text);return Oe.newEol=typeof ne.eol>"u"?void 0:it.to(ne.eol),Oe}Le.to=ke})(le||(e.TextEdit=le={}));var re;(function(Le){function Fe(ne,Oe){const We={edits:[]};if(ne instanceof a.WorkspaceEdit){const Ze=new u.ResourceSet;for(const Qe of ne._allEntries())Qe._type===1&&s.URI.isUri(Qe.to)&&Qe.from===void 0&&Ze.add(Qe.to);for(const Qe of ne._allEntries())if(Qe._type===1){let ot;Qe.options?.contents&&(ArrayBuffer.isView(Qe.options.contents)?ot={type:"base64",value:(0,M.encodeBase64)(M.VSBuffer.wrap(Qe.options.contents))}:ot={type:"dataTransferItem",id:Qe.options.contents._itemId}),We.edits.push({oldResource:Qe.from,newResource:Qe.to,options:{...Qe.options,contents:ot},metadata:Qe.metadata})}else Qe._type===2?We.edits.push({resource:Qe.uri,textEdit:le.from(Qe.edit),versionId:Ze.has(Qe.uri)?void 0:Oe?.getTextDocumentVersion(Qe.uri),metadata:Qe.metadata}):Qe._type===6?We.edits.push({resource:Qe.uri,textEdit:{range:i.from(Qe.range),text:Qe.edit.value,insertAsSnippet:!0},versionId:Ze.has(Qe.uri)?void 0:Oe?.getTextDocumentVersion(Qe.uri),metadata:Qe.metadata}):Qe._type===3?We.edits.push({metadata:Qe.metadata,resource:Qe.uri,cellEdit:Qe.edit,notebookMetadata:Qe.notebookMetadata,notebookVersionId:Oe?.getNotebookDocumentVersion(Qe.uri)}):Qe._type===5&&We.edits.push({metadata:Qe.metadata,resource:Qe.uri,notebookVersionId:Oe?.getNotebookDocumentVersion(Qe.uri),cellEdit:{editType:1,index:Qe.index,count:Qe.count,cells:Qe.cells.map(ct.from)}})}return We}Le.from=Fe;function ke(ne){const Oe=new a.WorkspaceEdit,We=new u.ResourceMap;for(const Ze of ne.edits)if(Ze.textEdit){const Qe=Ze,ot=s.URI.revive(Qe.resource),bt=i.to(Qe.textEdit.range),Ct=Qe.textEdit.text,_t=Qe.textEdit.insertAsSnippet;let ft;_t?ft=a.SnippetTextEdit.replace(bt,new a.SnippetString(Ct)):ft=a.TextEdit.replace(bt,Ct);const wt=We.get(ot);wt?wt.push(ft):We.set(ot,[ft])}else Oe.renameFile(s.URI.revive(Ze.oldResource),s.URI.revive(Ze.newResource),Ze.options);for(const[Ze,Qe]of We)Oe.set(Ze,Qe);return Oe}Le.to=ke})(re||(e.WorkspaceEdit=re={}));var q;(function(Le){const Fe=Object.create(null);Fe[a.SymbolKind.File]=0,Fe[a.SymbolKind.Module]=1,Fe[a.SymbolKind.Namespace]=2,Fe[a.SymbolKind.Package]=3,Fe[a.SymbolKind.Class]=4,Fe[a.SymbolKind.Method]=5,Fe[a.SymbolKind.Property]=6,Fe[a.SymbolKind.Field]=7,Fe[a.SymbolKind.Constructor]=8,Fe[a.SymbolKind.Enum]=9,Fe[a.SymbolKind.Interface]=10,Fe[a.SymbolKind.Function]=11,Fe[a.SymbolKind.Variable]=12,Fe[a.SymbolKind.Constant]=13,Fe[a.SymbolKind.String]=14,Fe[a.SymbolKind.Number]=15,Fe[a.SymbolKind.Boolean]=16,Fe[a.SymbolKind.Array]=17,Fe[a.SymbolKind.Object]=18,Fe[a.SymbolKind.Key]=19,Fe[a.SymbolKind.Null]=20,Fe[a.SymbolKind.EnumMember]=21,Fe[a.SymbolKind.Struct]=22,Fe[a.SymbolKind.Event]=23,Fe[a.SymbolKind.Operator]=24,Fe[a.SymbolKind.TypeParameter]=25;function ke(Oe){return typeof Fe[Oe]=="number"?Fe[Oe]:6}Le.from=ke;function ne(Oe){for(const We in Fe)if(Fe[We]===Oe)return Number(We);return a.SymbolKind.Property}Le.to=ne})(q||(e.SymbolKind=q={}));var oe;(function(Le){function Fe(ne){switch(ne){case a.SymbolTag.Deprecated:return 1}}Le.from=Fe;function ke(ne){switch(ne){case 1:return a.SymbolTag.Deprecated}}Le.to=ke})(oe||(e.SymbolTag=oe={}));var ve;(function(Le){function Fe(ne){return{name:ne.name,kind:q.from(ne.kind),tags:ne.tags&&ne.tags.map(oe.from),containerName:ne.containerName,location:G.from(ne.location)}}Le.from=Fe;function ke(ne){const Oe=new a.SymbolInformation(ne.name,q.to(ne.kind),ne.containerName,G.to(ne.location));return Oe.tags=ne.tags&&ne.tags.map(oe.to),Oe}Le.to=ke})(ve||(e.WorkspaceSymbol=ve={}));var ce;(function(Le){function Fe(ne){const Oe={name:ne.name||"!!MISSING: name!!",detail:ne.detail,range:i.from(ne.range),selectionRange:i.from(ne.selectionRange),kind:q.from(ne.kind),tags:ne.tags?.map(oe.from)??[]};return ne.children&&(Oe.children=ne.children.map(Fe)),Oe}Le.from=Fe;function ke(ne){const Oe=new a.DocumentSymbol(ne.name,ne.detail,q.to(ne.kind),i.to(ne.range),i.to(ne.selectionRange));return(0,w.isNonEmptyArray)(ne.tags)&&(Oe.tags=ne.tags.map(oe.to)),ne.children&&(Oe.children=ne.children.map(ke)),Oe}Le.to=ke})(ce||(e.DocumentSymbol=ce={}));var se;(function(Le){function Fe(ne){const Oe=new a.CallHierarchyItem(q.to(ne.kind),ne.name,ne.detail||"",s.URI.revive(ne.uri),i.to(ne.range),i.to(ne.selectionRange));return Oe._sessionId=ne._sessionId,Oe._itemId=ne._itemId,Oe}Le.to=Fe;function ke(ne,Oe,We){if(Oe=Oe??ne._sessionId,We=We??ne._itemId,Oe===void 0||We===void 0)throw new Error("invalid item");return{_sessionId:Oe,_itemId:We,name:ne.name,detail:ne.detail,kind:q.from(ne.kind),uri:ne.uri,range:i.from(ne.range),selectionRange:i.from(ne.selectionRange),tags:ne.tags?.map(oe.from)}}Le.from=ke})(se||(e.CallHierarchyItem=se={}));var te;(function(Le){function Fe(ke){return new a.CallHierarchyIncomingCall(se.to(ke.from),ke.fromRanges.map(ne=>i.to(ne)))}Le.to=Fe})(te||(e.CallHierarchyIncomingCall=te={}));var B;(function(Le){function Fe(ke){return new a.CallHierarchyOutgoingCall(se.to(ke.to),ke.fromRanges.map(ne=>i.to(ne)))}Le.to=Fe})(B||(e.CallHierarchyOutgoingCall=B={}));var G;(function(Le){function Fe(ne){return{range:ne.range&&i.from(ne.range),uri:ne.uri}}Le.from=Fe;function ke(ne){return new a.Location(s.URI.revive(ne.uri),i.to(ne.range))}Le.to=ke})(G||(e.location=G={}));var fe;(function(Le){function Fe(ne){const Oe=ne,We=ne;return{originSelectionRange:Oe.originSelectionRange?i.from(Oe.originSelectionRange):void 0,uri:Oe.targetUri?Oe.targetUri:We.uri,range:i.from(Oe.targetRange?Oe.targetRange:We.range),targetSelectionRange:Oe.targetSelectionRange?i.from(Oe.targetSelectionRange):void 0}}Le.from=Fe;function ke(ne){return{targetUri:s.URI.revive(ne.uri),targetRange:i.to(ne.range),targetSelectionRange:ne.targetSelectionRange?i.to(ne.targetSelectionRange):void 0,originSelectionRange:ne.originSelectionRange?i.to(ne.originSelectionRange):void 0}}Le.to=ke})(fe||(e.DefinitionLink=fe={}));var _e;(function(Le){function Fe(ne){return{range:i.from(ne.range),contents:N.fromMany(ne.contents)}}Le.from=Fe;function ke(ne){return new a.Hover(ne.contents.map(N.to),i.to(ne.range))}Le.to=ke})(_e||(e.Hover=_e={}));var Ee;(function(Le){function Fe(ne){return{range:i.from(ne.range),expression:ne.expression}}Le.from=Fe;function ke(ne){return new a.EvaluatableExpression(i.to(ne.range),ne.expression)}Le.to=ke})(Ee||(e.EvaluatableExpression=Ee={}));var F;(function(Le){function Fe(ne){if(ne instanceof a.InlineValueText)return{type:"text",range:i.from(ne.range),text:ne.text};if(ne instanceof a.InlineValueVariableLookup)return{type:"variable",range:i.from(ne.range),variableName:ne.variableName,caseSensitiveLookup:ne.caseSensitiveLookup};if(ne instanceof a.InlineValueEvaluatableExpression)return{type:"expression",range:i.from(ne.range),expression:ne.expression};throw new Error("Unknown 'InlineValue' type")}Le.from=Fe;function ke(ne){switch(ne.type){case"text":return{range:i.to(ne.range),text:ne.text};case"variable":return{range:i.to(ne.range),variableName:ne.variableName,caseSensitiveLookup:ne.caseSensitiveLookup};case"expression":return{range:i.to(ne.range),expression:ne.expression}}}Le.to=ke})(F||(e.InlineValue=F={}));var J;(function(Le){function Fe(ne){return{frameId:ne.frameId,stoppedLocation:i.from(ne.stoppedLocation)}}Le.from=Fe;function ke(ne){return new a.InlineValueContext(ne.frameId,i.to(ne.stoppedLocation))}Le.to=ke})(J||(e.InlineValueContext=J={}));var I;(function(Le){function Fe(ne){return{range:i.from(ne.range),kind:ne.kind}}Le.from=Fe;function ke(ne){return new a.DocumentHighlight(i.to(ne.range),ne.kind)}Le.to=ke})(I||(e.DocumentHighlight=I={}));var V;(function(Le){function Fe(ke){switch(ke){case 1:return a.CompletionTriggerKind.TriggerCharacter;case 2:return a.CompletionTriggerKind.TriggerForIncompleteCompletions;case 0:default:return a.CompletionTriggerKind.Invoke}}Le.to=Fe})(V||(e.CompletionTriggerKind=V={}));var j;(function(Le){function Fe(ke){return{triggerKind:V.to(ke.triggerKind),triggerCharacter:ke.triggerCharacter}}Le.to=Fe})(j||(e.CompletionContext=j={}));var Z;(function(Le){function Fe(ne){switch(ne){case a.CompletionItemTag.Deprecated:return 1}}Le.from=Fe;function ke(ne){switch(ne){case 1:return a.CompletionItemTag.Deprecated}}Le.to=ke})(Z||(e.CompletionItemTag=Z={}));var he;(function(Le){const Fe=new Map([[a.CompletionItemKind.Method,0],[a.CompletionItemKind.Function,1],[a.CompletionItemKind.Constructor,2],[a.CompletionItemKind.Field,3],[a.CompletionItemKind.Variable,4],[a.CompletionItemKind.Class,5],[a.CompletionItemKind.Interface,7],[a.CompletionItemKind.Struct,6],[a.CompletionItemKind.Module,8],[a.CompletionItemKind.Property,9],[a.CompletionItemKind.Unit,12],[a.CompletionItemKind.Value,13],[a.CompletionItemKind.Constant,14],[a.CompletionItemKind.Enum,15],[a.CompletionItemKind.EnumMember,16],[a.CompletionItemKind.Keyword,17],[a.CompletionItemKind.Snippet,27],[a.CompletionItemKind.Text,18],[a.CompletionItemKind.Color,19],[a.CompletionItemKind.File,20],[a.CompletionItemKind.Reference,21],[a.CompletionItemKind.Folder,23],[a.CompletionItemKind.Event,10],[a.CompletionItemKind.Operator,11],[a.CompletionItemKind.TypeParameter,24],[a.CompletionItemKind.Issue,26],[a.CompletionItemKind.User,25]]);function ke(We){return Fe.get(We)??9}Le.from=ke;const ne=new Map([[0,a.CompletionItemKind.Method],[1,a.CompletionItemKind.Function],[2,a.CompletionItemKind.Constructor],[3,a.CompletionItemKind.Field],[4,a.CompletionItemKind.Variable],[5,a.CompletionItemKind.Class],[7,a.CompletionItemKind.Interface],[6,a.CompletionItemKind.Struct],[8,a.CompletionItemKind.Module],[9,a.CompletionItemKind.Property],[12,a.CompletionItemKind.Unit],[13,a.CompletionItemKind.Value],[14,a.CompletionItemKind.Constant],[15,a.CompletionItemKind.Enum],[16,a.CompletionItemKind.EnumMember],[17,a.CompletionItemKind.Keyword],[27,a.CompletionItemKind.Snippet],[18,a.CompletionItemKind.Text],[19,a.CompletionItemKind.Color],[20,a.CompletionItemKind.File],[21,a.CompletionItemKind.Reference],[23,a.CompletionItemKind.Folder],[10,a.CompletionItemKind.Event],[11,a.CompletionItemKind.Operator],[24,a.CompletionItemKind.TypeParameter],[25,a.CompletionItemKind.User],[26,a.CompletionItemKind.Issue]]);function Oe(We){return ne.get(We)??a.CompletionItemKind.Property}Le.to=Oe})(he||(e.CompletionItemKind=he={}));var Pe;(function(Le){function Fe(ke,ne){const Oe=new a.CompletionItem(ke.label);return Oe.insertText=ke.insertText,Oe.kind=he.to(ke.kind),Oe.tags=ke.tags?.map(Z.to),Oe.detail=ke.detail,Oe.documentation=R.isMarkdownString(ke.documentation)?N.to(ke.documentation):ke.documentation,Oe.sortText=ke.sortText,Oe.filterText=ke.filterText,Oe.preselect=ke.preselect,Oe.commitCharacters=ke.commitCharacters,g.Range.isIRange(ke.range)?Oe.range=i.to(ke.range):typeof ke.range=="object"&&(Oe.range={inserting:i.to(ke.range.insert),replacing:i.to(ke.range.replace)}),Oe.keepWhitespace=typeof ke.insertTextRules>"u"?!1:!!(ke.insertTextRules&1),typeof ke.insertTextRules<"u"&&ke.insertTextRules&4?Oe.insertText=new a.SnippetString(ke.insertText):(Oe.insertText=ke.insertText,Oe.textEdit=Oe.range instanceof a.Range?new a.TextEdit(Oe.range,Oe.insertText):void 0),ke.additionalTextEdits&&ke.additionalTextEdits.length>0&&(Oe.additionalTextEdits=ke.additionalTextEdits.map(We=>le.to(We))),Oe.command=ne&&ke.command?ne.fromInternal(ke.command):void 0,Oe}Le.to=Fe})(Pe||(e.CompletionItem=Pe={}));var z;(function(Le){function Fe(ne){if(typeof ne.label!="string"&&!Array.isArray(ne.label))throw new TypeError("Invalid label");return{label:ne.label,documentation:N.fromStrict(ne.documentation)}}Le.from=Fe;function ke(ne){return{label:ne.label,documentation:R.isMarkdownString(ne.documentation)?N.to(ne.documentation):ne.documentation}}Le.to=ke})(z||(e.ParameterInformation=z={}));var ee;(function(Le){function Fe(ne){return{label:ne.label,documentation:N.fromStrict(ne.documentation),parameters:Array.isArray(ne.parameters)?ne.parameters.map(z.from):[],activeParameter:ne.activeParameter}}Le.from=Fe;function ke(ne){return{label:ne.label,documentation:R.isMarkdownString(ne.documentation)?N.to(ne.documentation):ne.documentation,parameters:Array.isArray(ne.parameters)?ne.parameters.map(z.to):[],activeParameter:ne.activeParameter}}Le.to=ke})(ee||(e.SignatureInformation=ee={}));var ie;(function(Le){function Fe(ne){return{activeSignature:ne.activeSignature,activeParameter:ne.activeParameter,signatures:Array.isArray(ne.signatures)?ne.signatures.map(ee.from):[]}}Le.from=Fe;function ke(ne){return{activeSignature:ne.activeSignature,activeParameter:ne.activeParameter,signatures:Array.isArray(ne.signatures)?ne.signatures.map(ee.to):[]}}Le.to=ke})(ie||(e.SignatureHelp=ie={}));var ue;(function(Le){function Fe(ke,ne){const Oe=new a.InlayHint(_.to(ne.position),typeof ne.label=="string"?ne.label:ne.label.map(Y.to.bind(void 0,ke)),ne.kind&&me.to(ne.kind));return Oe.textEdits=ne.textEdits&&ne.textEdits.map(le.to),Oe.tooltip=R.isMarkdownString(ne.tooltip)?N.to(ne.tooltip):ne.tooltip,Oe.paddingLeft=ne.paddingLeft,Oe.paddingRight=ne.paddingRight,Oe}Le.to=Fe})(ue||(e.InlayHint=ue={}));var Y;(function(Le){function Fe(ke,ne){const Oe=new a.InlayHintLabelPart(ne.label);return Oe.tooltip=R.isMarkdownString(ne.tooltip)?N.to(ne.tooltip):ne.tooltip,C.Command.is(ne.command)&&(Oe.command=ke.fromInternal(ne.command)),ne.location&&(Oe.location=G.to(ne.location)),Oe}Le.to=Fe})(Y||(e.InlayHintLabelPart=Y={}));var me;(function(Le){function Fe(ne){return ne}Le.from=Fe;function ke(ne){return ne}Le.to=ke})(me||(e.InlayHintKind=me={}));var Se;(function(Le){function Fe(ne){return{range:i.from(ne.range),url:ne.target,tooltip:ne.tooltip}}Le.from=Fe;function ke(ne){let Oe;if(ne.url)try{Oe=typeof ne.url=="string"?s.URI.parse(ne.url,!0):s.URI.revive(ne.url)}catch{}return new a.DocumentLink(i.to(ne.range),Oe)}Le.to=ke})(Se||(e.DocumentLink=Se={}));var Ue;(function(Le){function Fe(ne){const Oe=new a.ColorPresentation(ne.label);return ne.textEdit&&(Oe.textEdit=le.to(ne.textEdit)),ne.additionalTextEdits&&(Oe.additionalTextEdits=ne.additionalTextEdits.map(We=>le.to(We))),Oe}Le.to=Fe;function ke(ne){return{label:ne.label,textEdit:ne.textEdit?le.from(ne.textEdit):void 0,additionalTextEdits:ne.additionalTextEdits?ne.additionalTextEdits.map(Oe=>le.from(Oe)):void 0}}Le.from=ke})(Ue||(e.ColorPresentation=Ue={}));var ze;(function(Le){function Fe(ne){return new a.Color(ne[0],ne[1],ne[2],ne[3])}Le.to=Fe;function ke(ne){return[ne.red,ne.green,ne.blue,ne.alpha]}Le.from=ke})(ze||(e.Color=ze={}));var et;(function(Le){function Fe(ne){return{range:i.from(ne.range)}}Le.from=Fe;function ke(ne){return new a.SelectionRange(i.to(ne.range))}Le.to=ke})(et||(e.SelectionRange=et={}));var Ye;(function(Le){function Fe(ke){switch(ke){case 2:return a.TextDocumentSaveReason.AfterDelay;case 1:return a.TextDocumentSaveReason.Manual;case 3:case 4:return a.TextDocumentSaveReason.FocusOut}}Le.to=Fe})(Ye||(e.TextDocumentSaveReason=Ye={}));var at;(function(Le){function Fe(ne){switch(ne){case a.TextEditorLineNumbersStyle.Off:return 0;case a.TextEditorLineNumbersStyle.Relative:return 2;case a.TextEditorLineNumbersStyle.On:default:return 1}}Le.from=Fe;function ke(ne){switch(ne){case 0:return a.TextEditorLineNumbersStyle.Off;case 2:return a.TextEditorLineNumbersStyle.Relative;case 1:default:return a.TextEditorLineNumbersStyle.On}}Le.to=ke})(at||(e.TextEditorLineNumbersStyle=at={}));var it;(function(Le){function Fe(ne){if(ne===a.EndOfLine.CRLF)return 1;if(ne===a.EndOfLine.LF)return 0}Le.from=Fe;function ke(ne){if(ne===1)return a.EndOfLine.CRLF;if(ne===0)return a.EndOfLine.LF}Le.to=ke})(it||(e.EndOfLine=it={}));var rt;(function(Le){function Fe(ke){if(typeof ke=="object")return ke.viewId;switch(ke){case a.ProgressLocation.SourceControl:return 3;case a.ProgressLocation.Window:return 10;case a.ProgressLocation.Notification:return 15}throw new Error("Unknown 'ProgressLocation'")}Le.from=Fe})(rt||(e.ProgressLocation=rt={}));var Ae;(function(Le){function Fe(ne){const Oe={start:ne.start+1,end:ne.end+1};return ne.kind&&(Oe.kind=xe.from(ne.kind)),Oe}Le.from=Fe;function ke(ne){const Oe={start:ne.start-1,end:ne.end-1};return ne.kind&&(Oe.kind=xe.to(ne.kind)),Oe}Le.to=ke})(Ae||(e.FoldingRange=Ae={}));var xe;(function(Le){function Fe(ne){if(ne)switch(ne){case a.FoldingRangeKind.Comment:return C.FoldingRangeKind.Comment;case a.FoldingRangeKind.Imports:return C.FoldingRangeKind.Imports;case a.FoldingRangeKind.Region:return C.FoldingRangeKind.Region}}Le.from=Fe;function ke(ne){if(ne)switch(ne.value){case C.FoldingRangeKind.Comment.value:return a.FoldingRangeKind.Comment;case C.FoldingRangeKind.Imports.value:return a.FoldingRangeKind.Imports;case C.FoldingRangeKind.Region.value:return a.FoldingRangeKind.Region}}Le.to=ke})(xe||(e.FoldingRangeKind=xe={}));var Te;(function(Le){function Fe(ke){if(ke)return{pinned:typeof ke.preview=="boolean"?!ke.preview:void 0,inactive:ke.background,preserveFocus:ke.preserveFocus,selection:typeof ke.selection=="object"?i.from(ke.selection):void 0,override:typeof ke.override=="boolean"?o.DEFAULT_EDITOR_ASSOCIATION.id:void 0}}Le.from=Fe})(Te||(e.TextEditorOpenOptions=Te={}));var Ve;(function(Le){function Fe(We){return We instanceof a.RelativePattern?We.toJSON():typeof We=="string"?We:ke(We)||ne(We)?new a.RelativePattern(We.baseUri??We.base,We.pattern).toJSON():We}Le.from=Fe;function ke(We){const Ze=We;return Ze?s.URI.isUri(Ze.baseUri)&&typeof Ze.pattern=="string":!1}function ne(We){const Ze=We;return Ze?typeof Ze.base=="string"&&typeof Ze.pattern=="string":!1}function Oe(We){return typeof We=="string"?We:new a.RelativePattern(s.URI.revive(We.baseUri),We.pattern)}Le.to=Oe})(Ve||(e.GlobPattern=Ve={}));var de;(function(Le){function Fe(ke){if(ke){if(Array.isArray(ke))return ke.map(Fe);if(typeof ke=="string")return ke;{const ne=ke;return{language:ne.language,scheme:ne.scheme,pattern:Ve.from(ne.pattern),exclusive:ne.exclusive,notebookType:ne.notebookType}}}else return}Le.from=Fe})(de||(e.LanguageSelector=de={}));var ae;(function(Le){function Fe(ne){return!!ne&&typeof ne=="object"&&"selections"in ne&&Array.isArray(ne.selections)&&ne.selections.every(Oe=>Oe instanceof a.Selection)&&"related"in ne&&Array.isArray(ne.related)&&ne.related.every(Oe=>Oe&&typeof Oe=="object"&&s.URI.isUri(Oe.uri)&&Oe.range instanceof a.Range)}Le.is=Fe;function ke(ne){return{selections:ne.selections.map(Oe=>l.from(Oe)),related:ne.related.map(Oe=>({uri:s.URI.from(Oe.uri),range:i.from(Oe.range)}))}}Le.from=ke})(ae||(e.MappedEditsContext=ae={}));var De;(function(Le){function Fe(ne){return{start:ne.start,end:ne.end}}Le.from=Fe;function ke(ne){return new a.NotebookRange(ne.start,ne.end)}Le.to=ke})(De||(e.NotebookRange=De={}));var Me;(function(Le){function Fe(ne){return{timing:typeof ne.runStartTime=="number"&&typeof ne.runEndTime=="number"?{startTime:ne.runStartTime,endTime:ne.runEndTime}:void 0,executionOrder:ne.executionOrder,success:ne.lastRunSuccess}}Le.to=Fe;function ke(ne){return{lastRunSuccess:ne.success,runStartTime:ne.timing?.startTime,runEndTime:ne.timing?.endTime,executionOrder:ne.executionOrder}}Le.from=ke})(Me||(e.NotebookCellExecutionSummary=Me={}));var qe;(function(Le){function Fe(ke){if(ke===b.NotebookCellExecutionState.Unconfirmed)return a.NotebookCellExecutionState.Pending;if(ke===b.NotebookCellExecutionState.Pending)return;if(ke===b.NotebookCellExecutionState.Executing)return a.NotebookCellExecutionState.Executing;throw new Error(`Unknown state: ${ke}`)}Le.to=Fe})(qe||(e.NotebookCellExecutionState=qe={}));var Je;(function(Le){function Fe(ne){switch(ne){case a.NotebookCellKind.Markup:return b.CellKind.Markup;case a.NotebookCellKind.Code:default:return b.CellKind.Code}}Le.from=Fe;function ke(ne){switch(ne){case b.CellKind.Markup:return a.NotebookCellKind.Markup;case b.CellKind.Code:default:return a.NotebookCellKind.Code}}Le.to=ke})(Je||(e.NotebookCellKind=Je={}));var st;(function(Le){function Fe(ne){const Oe={metadata:ne.metadata??Object.create(null),cells:[]};for(const We of ne.cells)a.NotebookCellData.validate(We),Oe.cells.push(ct.from(We));return Oe}Le.from=Fe;function ke(ne){const Oe=new a.NotebookData(ne.cells.map(ct.to));return(0,t.isEmptyObject)(ne.metadata)||(Oe.metadata=ne.metadata),Oe}Le.to=ke})(st||(e.NotebookData=st={}));var ct;(function(Le){function Fe(ne){return{cellKind:Je.from(ne.kind),language:ne.languageId,mime:ne.mime,source:ne.value,metadata:ne.metadata,internalMetadata:Me.from(ne.executionSummary??{}),outputs:ne.outputs?ne.outputs.map(It.from):[]}}Le.from=Fe;function ke(ne){return new a.NotebookCellData(Je.to(ne.cellKind),ne.source,ne.language,ne.mime,ne.outputs?ne.outputs.map(It.to):void 0,ne.metadata,ne.internalMetadata?Me.to(ne.internalMetadata):void 0)}Le.to=ke})(ct||(e.NotebookCellData=ct={}));var pt;(function(Le){function Fe(ne){return{mime:ne.mime,valueBytes:M.VSBuffer.wrap(ne.data)}}Le.from=Fe;function ke(ne){return new a.NotebookCellOutputItem(ne.valueBytes.buffer,ne.mime)}Le.to=ke})(pt||(e.NotebookCellOutputItem=pt={}));var It;(function(Le){function Fe(ne){return{outputId:ne.id,items:ne.items.map(pt.from),metadata:ne.metadata}}Le.from=Fe;function ke(ne){const Oe=ne.items.map(pt.to);return new a.NotebookCellOutput(Oe,ne.outputId,ne.metadata)}Le.to=ke})(It||(e.NotebookCellOutput=It={}));var xt;(function(Le){function Fe(Oe){return ne(Oe)?{include:Ve.from(Oe.include)??void 0,exclude:Ve.from(Oe.exclude)??void 0}:Ve.from(Oe)??void 0}Le.from=Fe;function ke(Oe){return ne(Oe)?{include:Ve.to(Oe.include),exclude:Ve.to(Oe.exclude)}:Ve.to(Oe)}Le.to=ke;function ne(Oe){const We=Oe;return We?!(0,t.isUndefinedOrNull)(We.include)&&!(0,t.isUndefinedOrNull)(We.exclude):!1}})(xt||(e.NotebookExclusiveDocumentPattern=xt={}));var zt;(function(Le){function Fe(ke,ne,Oe){const We=typeof ke.command=="string"?{title:"",command:ke.command}:ke.command;return{alignment:ke.alignment===a.NotebookCellStatusBarAlignment.Left?1:2,command:ne.toInternal(We,Oe),text:ke.text,tooltip:ke.tooltip,accessibilityInformation:ke.accessibilityInformation,priority:ke.priority}}Le.from=Fe})(zt||(e.NotebookStatusBarItem=zt={}));var yt;(function(Le){function Fe(ke,ne,Oe){const We=typeof ke.command=="string"?{title:"",command:ke.command}:ke.command;return{command:ne.toInternal(We,Oe),label:ke.label,description:ke.description,detail:ke.detail,documentation:ke.documentation}}Le.from=Fe})(yt||(e.NotebookKernelSourceAction=yt={}));var Lt;(function(Le){function Fe(ke){return{transientOutputs:ke?.transientOutputs??!1,transientCellMetadata:ke?.transientCellMetadata??{},transientDocumentMetadata:ke?.transientDocumentMetadata??{},cellContentMetadata:ke?.cellContentMetadata??{}}}Le.from=Fe})(Lt||(e.NotebookDocumentContentOptions=Lt={}));var Mt;(function(Le){function Fe(ne){return{uri:ne.uri,provides:ne.provides}}Le.from=Fe;function ke(ne){return new a.NotebookRendererScript(s.URI.revive(ne.uri),ne.provides)}Le.to=ke})(Mt||(e.NotebookRendererScript=Mt={}));var Wt;(function(Le){function Fe(ne){return{message:N.fromStrict(ne.message)||"",type:0,expected:ne.expectedOutput,actual:ne.actualOutput,contextValue:ne.contextValue,location:ne.location&&{range:i.from(ne.location.range),uri:ne.location.uri}}}Le.from=Fe;function ke(ne){const Oe=new a.TestMessage(typeof ne.message=="string"?ne.message:N.to(ne.message));return Oe.actualOutput=ne.actual,Oe.expectedOutput=ne.expected,Oe.contextValue=ne.contextValue,Oe.location=ne.location?G.to(ne.location):void 0,Oe}Le.to=ke})(Wt||(e.TestMessage=Wt={}));var Tt;(function(Le){Le.namespace=T.namespaceTestTag,Le.denamespace=T.denamespaceTestTag})(Tt||(e.TestTag=Tt={}));var Rt;(function(Le){function Fe(ne){const Oe=(0,h.getPrivateApiFor)(ne).controllerId;return{extId:P.TestId.fromExtHostTestItem(ne,Oe).toString(),label:ne.label,uri:s.URI.revive(ne.uri),busy:ne.busy,tags:ne.tags.map(We=>Tt.namespace(Oe,We.id)),range:g.Range.lift(i.from(ne.range)),description:ne.description||null,sortText:ne.sortText||null,error:ne.error&&N.fromStrict(ne.error)||null}}Le.from=Fe;function ke(ne){return{parent:void 0,error:void 0,id:P.TestId.fromString(ne.extId).localId,label:ne.label,uri:s.URI.revive(ne.uri),tags:(ne.tags||[]).map(Oe=>{const{tagId:We}=Tt.denamespace(Oe);return new a.TestTag(We)}),children:{add:()=>{},delete:()=>{},forEach:()=>{},*[Symbol.iterator](){},get:()=>{},replace:()=>{},size:0},range:i.to(ne.range||void 0),canResolveChildren:!1,busy:ne.busy,description:ne.description||void 0,sortText:ne.sortText||void 0}}Le.toPlain=ke})(Rt||(e.TestItem=Rt={})),function(Le){function Fe(ne){return{id:ne.id}}Le.from=Fe;function ke(ne){return new a.TestTag(ne.id)}Le.to=ke}(Tt||(e.TestTag=Tt={}));var Ft;(function(Le){const Fe=(ne,Oe)=>{const We=[];for(const[Qe,ot]of Oe)P.TestId.compare(ot.item.extId,Qe)===2&&(Oe.delete(Qe),We.push(ot));const Ze={...Rt.toPlain(ne.item),parent:void 0,taskStates:ne.tasks.map(Qe=>({state:Qe.state,duration:Qe.duration,messages:Qe.messages.filter(ot=>ot.type===0).map(Wt.to)})),children:We.map(Qe=>Fe(Qe,Oe))};for(const Qe of Ze.children)Qe.parent=Ze;return Ze};function ke(ne){const Oe=[],We=new Map;for(const Ze of ne.items){We.set(Ze.item.extId,Ze);const Qe=P.TestId.root(Ze.item.extId);ne.request.targets.some(ot=>ot.controllerId===Qe&&ot.testIds.includes(Ze.item.extId))&&Oe.push(Ze)}return{completedAt:ne.completedAt,results:Oe.map(Ze=>Fe(Ze,We))}}Le.to=ke})(Ft||(e.TestResults=Ft={}));var Ut;(function(Le){function Fe(We){return{covered:We.covered,total:We.covered}}function ke(We){return"line"in We?_.from(We):i.from(We)}function ne(We){return"branches"in We?{count:We.executionCount,location:ke(We.location),type:1,branches:We.branches.length?We.branches.map(Ze=>({count:Ze.executionCount,location:Ze.location&&ke(Ze.location)})):void 0}:{type:0,count:We.executionCount,location:ke(We.location)}}Le.fromDetailed=ne;function Oe(We){return{uri:We.uri,statement:Fe(We.statementCoverage),branch:We.branchCoverage&&Fe(We.branchCoverage),function:We.functionCoverage&&Fe(We.functionCoverage),details:We.detailedCoverage?.map(ne)}}Le.fromFile=Oe})(Ut||(e.TestCoverage=Ut={}));var $t;(function(Le){function Fe(ke){switch(ke){case 1:return a.CodeActionTriggerKind.Invoke;case 2:return a.CodeActionTriggerKind.Automatic}}Le.to=Fe})($t||(e.CodeActionTriggerKind=$t={}));var Bt;(function(Le){function Fe(ne){const Oe=new a.TypeHierarchyItem(q.to(ne.kind),ne.name,ne.detail||"",s.URI.revive(ne.uri),i.to(ne.range),i.to(ne.selectionRange));return Oe._sessionId=ne._sessionId,Oe._itemId=ne._itemId,Oe}Le.to=Fe;function ke(ne,Oe,We){if(Oe=Oe??ne._sessionId,We=We??ne._itemId,Oe===void 0||We===void 0)throw new Error("invalid item");return{_sessionId:Oe,_itemId:We,kind:q.from(ne.kind),name:ne.name,detail:ne.detail??"",uri:ne.uri,range:i.from(ne.range),selectionRange:i.from(ne.selectionRange),tags:ne.tags?.map(oe.from)}}Le.from=ke})(Bt||(e.TypeHierarchyItem=Bt={}));var ht;(function(Le){function Fe(ke){if(ke)return{value:ke.value,tooltip:ke.tooltip}}Le.from=Fe})(ht||(e.ViewBadge=ht={}));var ut;(function(Le){function Fe(We,Ze,Qe){const ot=Ze.fileData;return ot?new a.InternalFileDataTransferItem(new a.DataTransferFile(ot.name,s.URI.revive(ot.uri),ot.id,(0,A.once)(()=>Qe(ot.id)))):We===y.Mimes.uriList&&Ze.uriListData?new a.InternalDataTransferItem(Oe(Ze.uriListData)):new a.InternalDataTransferItem(Ze.asString)}Le.to=Fe;async function ke(We,Ze){const Qe=await Ze.asString();if(We===y.Mimes.uriList)return{asString:Qe,fileData:void 0,uriListData:ne(Qe)};const ot=Ze.asFile();return{asString:Qe,fileData:ot?{name:ot.name,uri:ot.uri,id:ot._itemId??ot.id}:void 0}}Le.from=ke;function ne(We){return d.UriList.split(We).map(Ze=>{if(Ze.startsWith("#"))return Ze;try{return s.URI.parse(Ze)}catch{}return Ze})}function Oe(We){return d.UriList.create(We.map(Ze=>typeof Ze=="string"?Ze:s.URI.revive(Ze)))}})(ut||(e.DataTransferItem=ut={}));var Vt;(function(Le){function Fe(ne,Oe){const We=ne.items.map(([Ze,Qe])=>[Ze,ut.to(Ze,Qe,Oe)]);return new a.DataTransfer(We)}Le.toDataTransfer=Fe;async function ke(ne){const Oe={items:[]},We=[];for(const[Ze,Qe]of ne)We.push((async()=>{Oe.items.push([Ze,await ut.from(Ze,Qe)])})());return await Promise.all(We),Oe}Le.from=ke})(Vt||(e.DataTransfer=Vt={}));var Ne;(function(Le){function Fe(ne){return{message:ne.message,metadata:ne.metadata,title:ne.title,tooltip:ne.tooltip}}Le.to=Fe;function ke(ne){return{kind:"reply",message:ne.message,metadata:ne.metadata,title:ne.title,tooltip:ne.tooltip}}Le.from=ke})(Ne||(e.ChatReplyFollowup=Ne={}));var Ge;(function(Le){function Fe(ke){return typeof ke=="string"?{title:ke,message:ke,kind:"reply"}:"commandId"in ke?{kind:"command",title:ke.title??"",commandId:ke.commandId??"",when:ke.when??"",args:ke.args}:Ne.from(ke)}Le.from=Fe})(Ge||(e.ChatFollowup=Ge={}));var tt;(function(Le){function Fe(ne){const Oe=new a.ChatMessage(vt.to(ne.role),ne.content);return Oe.name=ne.name,Oe}Le.to=Fe;function ke(ne){return{role:vt.from(ne.role),content:ne.content,name:ne.name}}Le.from=ke})(tt||(e.ChatMessage=tt={}));var vt;(function(Le){function Fe(ne){switch(ne){case 0:return a.ChatMessageRole.System;case 1:return a.ChatMessageRole.User;case 2:return a.ChatMessageRole.Assistant;case 3:return a.ChatMessageRole.Function}}Le.to=Fe;function ke(ne){switch(ne){case a.ChatMessageRole.System:return 0;case a.ChatMessageRole.Assistant:return 2;case a.ChatMessageRole.Function:return 3;case a.ChatMessageRole.User:default:return 1}}Le.from=ke})(vt||(e.ChatMessageRole=vt={}));var Pt;(function(Le){function Fe(ne){return{level:St.to(ne.level),value:ne.value,description:ne.description}}Le.to=Fe;function ke(ne){return{level:St.from(ne.level),value:ne.value,description:ne.description}}Le.from=ke})(Pt||(e.ChatVariable=Pt={}));var St;(function(Le){function Fe(ne){switch(ne){case"short":return a.ChatVariableLevel.Short;case"medium":return a.ChatVariableLevel.Medium;case"full":default:return a.ChatVariableLevel.Full}}Le.to=Fe;function ke(ne){switch(ne){case a.ChatVariableLevel.Short:return"short";case a.ChatVariableLevel.Medium:return"medium";case a.ChatVariableLevel.Full:default:return"full"}}Le.from=ke})(St||(e.ChatVariableLevel=St={}));var Ke;(function(Le){function Fe(ke,ne,Oe){return"terminalCommand"in ke?{terminalCommand:ke.terminalCommand}:"uri"in ke?{uri:ke.uri}:ne.toInternal(ke,Oe)}Le.from=Fe})(Ke||(e.TerminalQuickFix=Ke={}))}),define(ye[278],Ce([1,0,11]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryInfo=void 0;var M;(function(d){function A(R){if(R)return{messages:R.messages,batchRanges:R.batchRanges.map(u=>w.Range.to(u))}}d.to=A})(M||(e.QueryInfo=M={}))}),define(ye[279],Ce([1,0,2,8,7,11,70]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDocumentSaveParticipant=void 0;class u{constructor(f,y,E,t={timeout:1500,errors:3}){this._logService=f,this._documents=y,this._mainThreadBulkEdits=E,this._thresholds=t,this._callbacks=new R.LinkedList,this._badListeners=new WeakMap}dispose(){this._callbacks.clear()}getOnWillSaveTextDocumentEvent(f){return(y,E,t)=>{const g={dispose:this._callbacks.push([y,E,f])};return Array.isArray(t)&&t.push(g),g}}async $participateInSave(f,y){const E=w.URI.revive(f);let t=!1;const s=setTimeout(()=>t=!0,this._thresholds.timeout),g=[];try{for(const C of[...this._callbacks]){if(t)break;const r=this._documents.getDocument(E),h=await this._deliverEventAsyncAndBlameBadListeners(C,{document:r,reason:A.TextDocumentSaveReason.to(y)});g.push(h)}}finally{clearTimeout(s)}return g}_deliverEventAsyncAndBlameBadListeners([f,y,E],t){const s=this._badListeners.get(f);return typeof s=="number"&&s>this._thresholds.errors?Promise.resolve(!1):this._deliverEventAsync(E,f,y,t).then(()=>!0,g=>{if(this._logService.error(`onWillSaveTextDocument-listener from extension '${E.identifier.value}' threw ERROR`),this._logService.error(g),!(g instanceof Error)||g.message!=="concurrent_edits"){const C=this._badListeners.get(f);this._badListeners.set(f,C?C+1:1),typeof C=="number"&&C>this._thresholds.errors&&this._logService.info(`onWillSaveTextDocument-listener from extension '${E.identifier.value}' will now be IGNORED because of timeouts and/or errors`)}return!1})}_deliverEventAsync(f,y,E,t){const s=[],g=Date.now(),{document:C,reason:r}=t,{version:h}=C,o=Object.freeze({document:C,reason:r,waitUntil(b){if(Object.isFrozen(s))throw(0,M.illegalState)("waitUntil can not be called async");s.push(Promise.resolve(b))}});try{y.apply(E,[o])}catch(b){return Promise.reject(b)}return Object.freeze(s),new Promise((b,P)=>{const T=setTimeout(()=>P(new Error("timeout")),this._thresholds.timeout);return Promise.all(s).then(n=>{this._logService.debug(`onWillSaveTextDocument-listener from extension '${f.identifier.value}' finished after ${Date.now()-g}ms`),clearTimeout(T),b(n)}).catch(n=>{clearTimeout(T),P(n)})}).then(b=>{const P={edits:[]};for(const T of b)if(Array.isArray(T)&&T.every(n=>n instanceof d.TextEdit))for(const{newText:n,newEol:a,range:l}of T)P.edits.push({resource:C.uri,versionId:void 0,textEdit:{range:l&&A.Range.from(l),text:n,eol:a&&A.EndOfLine.from(a)}});if(P.edits.length!==0)return h===C.version?this._mainThreadBulkEdits.$tryApplyWorkspaceEdit(P):Promise.reject(new Error("concurrent_edits"))})}}e.ExtHostDocumentSaveParticipant=u}),define(ye[280],Ce([1,0,15,2,11,7,105]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookDocument=e.ExtHostCell=void 0;class u{constructor(E,t,s,g){this.start=E,this.deletedCount=t,this.deletedItems=s,this.items=g}asApiEvent(){return{range:new A.NotebookRange(this.start,this.start+this.deletedCount),addedCells:this.items.map(E=>E.apiCell),removedCells:this.deletedItems}}}class p{static asModelAddData(E,t){return{EOL:t.eol,lines:t.source,languageId:t.language,uri:t.uri,isDirty:!1,versionId:1,notebook:E}}constructor(E,t,s){this.notebook=E,this._extHostDocument=t,this._cellData=s,this.handle=s.handle,this.uri=M.URI.revive(s.uri),this.cellKind=s.cellKind,this._outputs=s.outputs.map(d.NotebookCellOutput.to),this._internalMetadata=s.internalMetadata??{},this._metadata=Object.freeze(s.metadata??{}),this._previousResult=Object.freeze(d.NotebookCellExecutionSummary.to(s.internalMetadata??{}))}get internalMetadata(){return this._internalMetadata}get apiCell(){if(!this._apiCell){const E=this,t=this._extHostDocument.getDocument(this.uri);if(!t)throw new Error(`MISSING extHostDocument for notebook cell: ${this.uri}`);const s={get index(){return E.notebook.getCellIndex(E)},notebook:E.notebook.apiNotebook,kind:d.NotebookCellKind.to(this._cellData.cellKind),document:t.document,get mime(){return E._mime},set mime(g){E._mime=g},get outputs(){return E._outputs.slice(0)},get metadata(){return E._metadata},get executionSummary(){return E._previousResult}};this._apiCell=Object.freeze(s)}return this._apiCell}setOutputs(E){this._outputs=E.map(d.NotebookCellOutput.to)}setOutputItems(E,t,s){const g=s.map(d.NotebookCellOutputItem.to),C=this._outputs.find(r=>r.id===E);if(C&&(t||(C.items.length=0),C.items.push(...g),C.items.length>1&&C.items.every(r=>R.isTextStreamMime(r.mime)))){const r=new Map,h=[];C.items.forEach(o=>{let b;r.has(o.mime)?b=r.get(o.mime):(b=[],r.set(o.mime,b),h.push(o.mime)),b.push(o.data)}),C.items.length=0,h.forEach(o=>{const b=R.compressOutputItemStreams(r.get(o));C.items.push({mime:o,data:b.data.buffer})})}}setMetadata(E){this._metadata=Object.freeze(E)}setInternalMetadata(E){this._internalMetadata=E,this._previousResult=Object.freeze(d.NotebookCellExecutionSummary.to(E))}setMime(E){}}e.ExtHostCell=p;class f{static{this._handlePool=0}constructor(E,t,s,g,C){this._proxy=E,this._textDocumentsAndEditors=t,this._textDocuments=s,this.uri=g,this.handle=f._handlePool++,this._cells=[],this._versionId=0,this._isDirty=!1,this._disposed=!1,this._notebookType=C.viewType,this._metadata=Object.freeze(C.metadata??Object.create(null)),this._spliceNotebookCells([[0,0,C.cells]],!0,void 0),this._versionId=C.versionId}dispose(){this._disposed=!0}get versionId(){return this._versionId}get apiNotebook(){if(!this._notebook){const E=this,t={get uri(){return E.uri},get version(){return E._versionId},get notebookType(){return E._notebookType},get isDirty(){return E._isDirty},get isUntitled(){return E.uri.scheme===w.Schemas.untitled},get isClosed(){return E._disposed},get metadata(){return E._metadata},get cellCount(){return E._cells.length},cellAt(s){return s=E._validateIndex(s),E._cells[s].apiCell},getCells(s){return(s?E._getCells(s):E._cells).map(C=>C.apiCell)},save(){return E._save()}};this._notebook=Object.freeze(t)}return this._notebook}acceptDocumentPropertiesChanged(E){E.metadata&&(this._metadata=Object.freeze({...this._metadata,...E.metadata}))}acceptDirty(E){this._isDirty=E}acceptModelChanged(E,t,s){this._versionId=E.versionId,this._isDirty=t,this.acceptDocumentPropertiesChanged({metadata:s});const g={notebook:this.apiNotebook,metadata:s,cellChanges:[],contentChanges:[]},C=[];for(const h of E.rawEvents)h.kind===R.NotebookCellsChangeType.ModelChange?this._spliceNotebookCells(h.changes,!1,g.contentChanges):h.kind===R.NotebookCellsChangeType.Move?this._moveCells(h.index,h.length,h.newIdx,g.contentChanges):h.kind===R.NotebookCellsChangeType.Output?(this._setCellOutputs(h.index,h.outputs),C.push({cell:this._cells[h.index].apiCell,outputs:this._cells[h.index].apiCell.outputs})):h.kind===R.NotebookCellsChangeType.OutputItem?(this._setCellOutputItems(h.index,h.outputId,h.append,h.outputItems),C.push({cell:this._cells[h.index].apiCell,outputs:this._cells[h.index].apiCell.outputs})):h.kind===R.NotebookCellsChangeType.ChangeCellLanguage?(this._changeCellLanguage(h.index,h.language),C.push({cell:this._cells[h.index].apiCell,document:this._cells[h.index].apiCell.document})):h.kind===R.NotebookCellsChangeType.ChangeCellContent?C.push({cell:this._cells[h.index].apiCell,document:this._cells[h.index].apiCell.document}):h.kind===R.NotebookCellsChangeType.ChangeCellMime?this._changeCellMime(h.index,h.mime):h.kind===R.NotebookCellsChangeType.ChangeCellMetadata?(this._changeCellMetadata(h.index,h.metadata),C.push({cell:this._cells[h.index].apiCell,metadata:this._cells[h.index].apiCell.metadata})):h.kind===R.NotebookCellsChangeType.ChangeCellInternalMetadata&&(this._changeCellInternalMetadata(h.index,h.internalMetadata),C.push({cell:this._cells[h.index].apiCell,executionSummary:this._cells[h.index].apiCell.executionSummary}));const r=new Map;for(let h=0;h<C.length;h++){const o=C[h],b=r.get(o.cell);if(b===void 0){const P=g.cellChanges.push({document:void 0,executionSummary:void 0,metadata:void 0,outputs:void 0,...o});r.set(o.cell,P-1)}else g.cellChanges[b]={...g.cellChanges[b],...o}}return Object.freeze(g),Object.freeze(g.cellChanges),Object.freeze(g.contentChanges),g}_validateIndex(E){return E=E|0,E<0?0:E>=this._cells.length?this._cells.length-1:E}_validateRange(E){let t=E.start|0,s=E.end|0;return t<0&&(t=0),s>this._cells.length&&(s=this._cells.length),E.with({start:t,end:s})}_getCells(E){E=this._validateRange(E);const t=[];for(let s=E.start;s<E.end;s++)t.push(this._cells[s]);return t}async _save(){return this._disposed?Promise.reject(new Error("Notebook has been closed")):this._proxy.$trySaveNotebook(this.uri)}_spliceNotebookCells(E,t,s){if(this._disposed)return;const g=[],C=[],r=[];if(E.reverse().forEach(h=>{const b=h[2].map(n=>{const a=new p(this,this._textDocumentsAndEditors,n);return t||C.push(p.asModelAddData(this.apiNotebook,n)),a}),P=new u(h[0],h[1],[],b),T=this._cells.splice(h[0],h[1],...b);for(const n of T)r.push(n.uri),P.deletedItems.push(n.apiCell);g.push(P)}),this._textDocumentsAndEditors.acceptDocumentsAndEditorsDelta({addedDocuments:C,removedDocuments:r}),s)for(const h of g)s.push(h.asApiEvent())}_moveCells(E,t,s,g){const C=this._cells.splice(E,t);this._cells.splice(s,0,...C);const r=[new u(E,t,C.map(h=>h.apiCell),[]),new u(s,0,[],C)];for(const h of r)g.push(h.asApiEvent())}_setCellOutputs(E,t){this._cells[E].setOutputs(t)}_setCellOutputItems(E,t,s,g){this._cells[E].setOutputItems(t,s,g)}_changeCellLanguage(E,t){const s=this._cells[E];s.apiCell.document.languageId!==t&&this._textDocuments.$acceptModelLanguageChanged(s.uri,t)}_changeCellMime(E,t){const s=this._cells[E];s.apiCell.mime=t}_changeCellMetadata(E,t){this._cells[E].setMetadata(t)}_changeCellInternalMetadata(E,t){this._cells[E].setInternalMetadata(t)}getCellFromApiCell(E){return this._cells.find(t=>t.apiCell===E)}getCellFromIndex(E){return this._cells[E]}getCell(E){return this._cells.find(t=>t.handle===E)}getCellIndex(E){return this._cells.indexOf(E)}}e.ExtHostNotebookDocument=f}),define(ye[281],Ce([1,0,4,2,11,7]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookDocumentSaveParticipant=void 0;class R{constructor(p,f,y,E={timeout:1500,errors:3}){this._logService=p,this._notebooksAndEditors=f,this._mainThreadBulkEdits=y,this._thresholds=E,this._onWillSaveNotebookDocumentEvent=new w.AsyncEmitter}dispose(){}getOnWillSaveNotebookDocumentEvent(p){return(f,y,E)=>{const t=function(g){f.call(y,g)};return t.extension=p,this._onWillSaveNotebookDocumentEvent.event(t,void 0,E)}}async $participateInSave(p,f,y){const E=M.URI.revive(p),t=this._notebooksAndEditors.getNotebookDocument(E);if(!t)throw new Error("Unable to resolve notebook document");const s=[];if(await this._onWillSaveNotebookDocumentEvent.fireAsync({notebook:t.apiNotebook,reason:d.TextDocumentSaveReason.to(f)},y,async(C,r)=>{const h=Date.now(),o=await await Promise.resolve(C);Date.now()-h>this._thresholds.timeout&&this._logService.warn("onWillSaveNotebookDocument-listener from extension",r.extension.identifier),!y.isCancellationRequested&&o&&(o instanceof A.WorkspaceEdit?s.push(o):this._logService.warn("onWillSaveNotebookDocument-listener from extension",r.extension.identifier,"ignored due to invalid data"))}),y.isCancellationRequested)return!1;if(s.length===0)return!0;const g={edits:[]};for(const C of s){const{edits:r}=d.WorkspaceEdit.from(C);g.edits=g.edits.concat(r)}return this._mainThreadBulkEdits.$tryApplyWorkspaceEdit(g)}}e.ExtHostNotebookDocumentSaveParticipant=R}),define(ye[143],Ce([1,0,8,11,7]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookEditor=void 0;class A{static{this.apiEditorsToExtHost=new WeakMap}constructor(u,p,f,y,E,t){this.id=u,this._proxy=p,this.notebookData=f,this._selections=[],this._visibleRanges=[],this._visible=!1,this._selections=E,this._visibleRanges=y,this._viewColumn=t}get apiEditor(){if(!this._editor){const u=this;this._editor={get notebook(){return u.notebookData.apiNotebook},get selection(){return u._selections[0]},set selection(p){this.selections=[p]},get selections(){return u._selections},set selections(p){if(!Array.isArray(p)||!p.every(d.NotebookRange.isNotebookRange))throw(0,w.illegalArgument)("selections");u._selections=p,u._trySetSelections(p)},get visibleRanges(){return u._visibleRanges},revealRange(p,f){u._proxy.$tryRevealRange(u.id,M.NotebookRange.from(p),f??d.NotebookEditorRevealType.Default)},get viewColumn(){return u._viewColumn}},A.apiEditorsToExtHost.set(this._editor,this)}return this._editor}get visible(){return this._visible}_acceptVisibility(u){this._visible=u}_acceptVisibleRanges(u){this._visibleRanges=u}_acceptSelections(u){this._selections=u}_trySetSelections(u){this._proxy.$trySetSelections(this.id,u.map(M.NotebookRange.from))}_acceptViewColumn(u){this._viewColumn=u}}e.ExtHostNotebookEditor=A}),define(ye[282],Ce([1,0,8,4,12,11]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookEditors=void 0;let R=class{constructor(p,f){this._logService=p,this._notebooksAndEditors=f,this._onDidChangeNotebookEditorSelection=new M.Emitter({onListenerError:w.onUnexpectedExternalError}),this._onDidChangeNotebookEditorVisibleRanges=new M.Emitter({onListenerError:w.onUnexpectedExternalError}),this.onDidChangeNotebookEditorSelection=this._onDidChangeNotebookEditorSelection.event,this.onDidChangeNotebookEditorVisibleRanges=this._onDidChangeNotebookEditorVisibleRanges.event}$acceptEditorPropertiesChanged(p,f){this._logService.debug("ExtHostNotebook#$acceptEditorPropertiesChanged",p,f);const y=this._notebooksAndEditors.getEditorById(p);f.visibleRanges&&y._acceptVisibleRanges(f.visibleRanges.ranges.map(A.NotebookRange.to)),f.selections&&y._acceptSelections(f.selections.selections.map(A.NotebookRange.to)),f.visibleRanges&&this._onDidChangeNotebookEditorVisibleRanges.fire({notebookEditor:y.apiEditor,visibleRanges:y.apiEditor.visibleRanges}),f.selections&&this._onDidChangeNotebookEditorSelection.fire(Object.freeze({notebookEditor:y.apiEditor,selections:y.apiEditor.selections}))}$acceptEditorViewColumns(p){for(const f in p)this._notebooksAndEditors.getEditorById(f)._acceptViewColumn(A.ViewColumn.to(p[f]))}};e.ExtHostNotebookEditors=R,e.ExtHostNotebookEditors=R=je([He(0,d.ILogService)],R)}),define(ye[283],Ce([1,0,11,83,214,22,68,8]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostProgress=void 0;class p{constructor(t){this._handles=0,this._mapHandleToCancellationSource=new Map,this._proxy=t}async withProgress(t,s,g){const C=this._handles++,{title:r,location:h,cancellable:o}=s,b={label:(0,d.localize)(0,null,t.displayName||t.name),id:t.identifier.value};return this._proxy.$startProgress(C,{location:w.ProgressLocation.from(h),title:r,source:b,cancellable:o},t.isUnderDevelopment?void 0:t.identifier.value).catch(u.onUnexpectedExternalError),this._withProgress(C,g,!!o)}_withProgress(t,s,g){let C;g&&(C=new A.CancellationTokenSource,this._mapHandleToCancellationSource.set(t,C));const r=o=>{this._proxy.$progressEnd(o),this._mapHandleToCancellationSource.delete(o),C?.dispose()};let h;try{h=s(new y(this._proxy,t),g&&C?C.token:A.CancellationToken.None)}catch(o){throw r(t),o}return h.then(o=>r(t),o=>r(t)),h}$acceptProgressCanceled(t){const s=this._mapHandleToCancellationSource.get(t);s&&(s.cancel(),this._mapHandleToCancellationSource.delete(t))}}e.ExtHostProgress=p;function f(E,t){return E.message=t.message,typeof t.increment=="number"&&(typeof E.increment=="number"?E.increment+=t.increment:E.increment=t.increment),E}class y extends M.Progress{constructor(t,s){super(g=>this.throttledReport(g)),this._proxy=t,this._handle=s}throttledReport(t){this._proxy.$progressReport(this._handle,t)}}je([(0,R.throttle)(100,(E,t)=>f(E,t),()=>Object.create(null))],y.prototype,"throttledReport",null)}),define(ye[144],Ce([1,0,37,141,63,106,87,11,2]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTestItemCollection=e.TestItemRootImpl=e.TestItemImpl=e.toItemFromContext=void 0;const f=(b,P,T,n)=>{let a=P;return{enumerable:!0,configurable:!1,get(){return a},set(l){if(!T(a,l)){const i=a;a=l,b.listener?.(n(l,i))}}}},y=(b,P)=>b===P,E={range:(b,P)=>b===P?!0:!b||!P?!1:b.isEqual(P),label:y,description:y,sortText:y,busy:y,error:y,canResolveChildren:y,tags:(b,P)=>!(b.length!==P.length||b.some(T=>!P.find(n=>T.id===n.id)))},t=b=>P=>({op:4,update:b(P)}),s=(b,P)=>({range:(()=>{let T;const n=t(a=>({range:w.Range.lift(u.Range.from(a))}));return{enumerable:!0,configurable:!1,get(){return T},set(a){b.listener?.({op:6}),E.range(T,a)||(T=a,b.listener?.(n(a)))}}})(),label:f(b,P,E.label,t(T=>({label:T}))),description:f(b,void 0,E.description,t(T=>({description:T}))),sortText:f(b,void 0,E.sortText,t(T=>({sortText:T}))),canResolveChildren:f(b,!1,E.canResolveChildren,T=>({op:2,state:T})),busy:f(b,!1,E.busy,t(T=>({busy:T}))),error:f(b,void 0,E.error,t(T=>({error:u.MarkdownString.fromStrict(T)||null}))),tags:f(b,[],E.tags,(T,n)=>({op:1,new:T.map(u.TestTag.from),old:n.map(u.TestTag.from)}))}),g=b=>{const P=d.TestId.fromString(b.extId),T=new r(P.controllerId,P.localId,b.label,p.URI.revive(b.uri)||void 0);return T.range=u.Range.to(b.range||void 0),T.description=b.description||void 0,T.sortText=b.sortText||void 0,T.tags=b.tags.map(n=>u.TestTag.to({id:(0,R.denamespaceTestTag)(n).tagId})),T},C=b=>{let P;for(const T of b.tests){const n=g(T.item);(0,M.getPrivateApiFor)(n).parent=P,P=n}return P};e.toItemFromContext=C;class r{constructor(P,T,n,a){if(T.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(T)} symbol`);const l=(0,M.createPrivateApiFor)(this,P);Object.defineProperties(this,{id:{value:T,enumerable:!0,writable:!1},uri:{value:a,enumerable:!0,writable:!1},parent:{enumerable:!1,get(){return l.parent instanceof h?void 0:l.parent}},children:{value:(0,A.createTestItemChildren)(l,M.getPrivateApiFor,r),enumerable:!0,writable:!1},...s(l,n)})}}e.TestItemImpl=r;class h extends r{constructor(P,T){super(P,P,T,void 0),this._isRoot=!0}}e.TestItemRootImpl=h;class o extends A.TestItemCollection{constructor(P,T,n){super({controllerId:P,getDocumentVersion:a=>a&&n.getDocument(a)?.version,getApiFor:M.getPrivateApiFor,getChildren:a=>a.children,root:new h(P,T),toITestItem:u.TestItem.from})}}e.ExtHostTestItemCollection=o}),define(ye[145],Ce([1,0,42,8,117,11,7]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTextEditor=e.ExtHostTextEditorOptions=e.TextEditorDecorationType=void 0;class u{static{this._Keys=new d.IdGenerator("TextEditorDecorationType")}constructor(t,s,g){const C=u._Keys.nextId();t.$registerTextEditorDecorationType(s.identifier,C,A.DecorationRenderOptions.from(g)),this.value=Object.freeze({key:C,dispose(){t.$removeTextEditorDecorationType(C)}})}}e.TextEditorDecorationType=u;class p{constructor(t,s){this._collectedEdits=[],this._setEndOfLine=void 0,this._finalized=!1,this._document=t,this._documentVersionId=t.version,this._undoStopBefore=s.undoStopBefore,this._undoStopAfter=s.undoStopAfter}finalize(){return this._finalized=!0,{documentVersionId:this._documentVersionId,edits:this._collectedEdits,setEndOfLine:this._setEndOfLine,undoStopBefore:this._undoStopBefore,undoStopAfter:this._undoStopAfter}}_throwIfFinalized(){if(this._finalized)throw new Error("Edit is only valid while callback runs")}replace(t,s){this._throwIfFinalized();let g=null;if(t instanceof R.Position)g=new R.Range(t,t);else if(t instanceof R.Range)g=t;else throw new Error("Unrecognized location");this._pushEdit(g,s,!1)}insert(t,s){this._throwIfFinalized(),this._pushEdit(new R.Range(t,t),s,!0)}delete(t){this._throwIfFinalized();let s=null;if(t instanceof R.Range)s=t;else throw new Error("Unrecognized location");this._pushEdit(s,null,!0)}_pushEdit(t,s,g){const C=this._document.validateRange(t);this._collectedEdits.push({range:C,text:s,forceMoveMarkers:g})}setEndOfLine(t){if(this._throwIfFinalized(),t!==R.EndOfLine.LF&&t!==R.EndOfLine.CRLF)throw(0,M.illegalArgument)("endOfLine");this._setEndOfLine=t}}class f{constructor(t,s,g,C){this._proxy=t,this._id=s,this._accept(g),this._logService=C;const r=this;this.value={get tabSize(){return r._tabSize},set tabSize(h){r._setTabSize(h)},get indentSize(){return r._indentSize},set indentSize(h){r._setIndentSize(h)},get insertSpaces(){return r._insertSpaces},set insertSpaces(h){r._setInsertSpaces(h)},get cursorStyle(){return r._cursorStyle},set cursorStyle(h){r._setCursorStyle(h)},get lineNumbers(){return r._lineNumbers},set lineNumbers(h){r._setLineNumbers(h)}}}_accept(t){this._tabSize=t.tabSize,this._indentSize=t.indentSize,this._insertSpaces=t.insertSpaces,this._cursorStyle=t.cursorStyle,this._lineNumbers=A.TextEditorLineNumbersStyle.to(t.lineNumbers)}_validateTabSize(t){if(t==="auto")return"auto";if(typeof t=="number"){const s=Math.floor(t);return s>0?s:null}if(typeof t=="string"){const s=parseInt(t,10);return isNaN(s)?null:s>0?s:null}return null}_setTabSize(t){const s=this._validateTabSize(t);if(s!==null){if(typeof s=="number"){if(this._tabSize===s)return;this._tabSize=s}this._warnOnError("setTabSize",this._proxy.$trySetOptions(this._id,{tabSize:s}))}}_validateIndentSize(t){if(t==="tabSize")return"tabSize";if(typeof t=="number"){const s=Math.floor(t);return s>0?s:null}if(typeof t=="string"){const s=parseInt(t,10);return isNaN(s)?null:s>0?s:null}return null}_setIndentSize(t){const s=this._validateIndentSize(t);if(s!==null){if(typeof s=="number"){if(this._indentSize===s)return;this._indentSize=s}this._warnOnError("setIndentSize",this._proxy.$trySetOptions(this._id,{indentSize:s}))}}_validateInsertSpaces(t){return t==="auto"?"auto":t==="false"?!1:!!t}_setInsertSpaces(t){const s=this._validateInsertSpaces(t);if(typeof s=="boolean"){if(this._insertSpaces===s)return;this._insertSpaces=s}this._warnOnError("setInsertSpaces",this._proxy.$trySetOptions(this._id,{insertSpaces:s}))}_setCursorStyle(t){this._cursorStyle!==t&&(this._cursorStyle=t,this._warnOnError("setCursorStyle",this._proxy.$trySetOptions(this._id,{cursorStyle:t})))}_setLineNumbers(t){this._lineNumbers!==t&&(this._lineNumbers=t,this._warnOnError("setLineNumbers",this._proxy.$trySetOptions(this._id,{lineNumbers:A.TextEditorLineNumbersStyle.from(t)})))}assign(t){const s={};let g=!1;if(typeof t.tabSize<"u"){const C=this._validateTabSize(t.tabSize);C==="auto"?(g=!0,s.tabSize=C):typeof C=="number"&&this._tabSize!==C&&(this._tabSize=C,g=!0,s.tabSize=C)}if(typeof t.indentSize<"u"){const C=this._validateIndentSize(t.indentSize);C==="tabSize"?(g=!0,s.indentSize=C):typeof C=="number"&&this._indentSize!==C&&(this._indentSize=C,g=!0,s.indentSize=C)}if(typeof t.insertSpaces<"u"){const C=this._validateInsertSpaces(t.insertSpaces);C==="auto"?(g=!0,s.insertSpaces=C):this._insertSpaces!==C&&(this._insertSpaces=C,g=!0,s.insertSpaces=C)}typeof t.cursorStyle<"u"&&this._cursorStyle!==t.cursorStyle&&(this._cursorStyle=t.cursorStyle,g=!0,s.cursorStyle=t.cursorStyle),typeof t.lineNumbers<"u"&&this._lineNumbers!==t.lineNumbers&&(this._lineNumbers=t.lineNumbers,g=!0,s.lineNumbers=A.TextEditorLineNumbersStyle.from(t.lineNumbers)),g&&this._warnOnError("setOptions",this._proxy.$trySetOptions(this._id,s))}_warnOnError(t,s){s.catch(g=>{this._logService.warn(`ExtHostTextEditorOptions '${t}' failed:'`),this._logService.warn(g)})}}e.ExtHostTextEditorOptions=f;class y{constructor(t,s,g,C,r,h,o,b){this.id=t,this._proxy=s,this._logService=g,this._disposed=!1,this._hasDecorationsForKey=new Set,this._selections=r,this._options=new f(this._proxy,this.id,h,g),this._visibleRanges=o,this._viewColumn=b;const P=this;this.value=Object.freeze({get document(){return C.value},set document(T){throw(0,M.readonly)("document")},get selection(){return P._selections&&P._selections[0]},set selection(T){if(!(T instanceof R.Selection))throw(0,M.illegalArgument)("selection");P._selections=[T],P._trySetSelection()},get selections(){return P._selections},set selections(T){if(!Array.isArray(T)||T.some(n=>!(n instanceof R.Selection)))throw(0,M.illegalArgument)("selections");P._selections=T,P._trySetSelection()},get visibleRanges(){return P._visibleRanges},set visibleRanges(T){throw(0,M.readonly)("visibleRanges")},get options(){return P._options.value},set options(T){P._disposed||P._options.assign(T)},get viewColumn(){return P._viewColumn},set viewColumn(T){throw(0,M.readonly)("viewColumn")},edit(T,n={undoStopBefore:!0,undoStopAfter:!0}){if(P._disposed)return Promise.reject(new Error("TextEditor#edit not possible on closed editors"));const a=new p(C.value,n);return T(a),P._applyEdit(a)},insertSnippet(T,n,a={undoStopBefore:!0,undoStopAfter:!0}){if(P._disposed)return Promise.reject(new Error("TextEditor#insertSnippet not possible on closed editors"));let l;if(!n||Array.isArray(n)&&n.length===0)l=P._selections.map(i=>A.Range.from(i));else if(n instanceof R.Position){const{lineNumber:i,column:c}=A.Position.from(n);l=[{startLineNumber:i,startColumn:c,endLineNumber:i,endColumn:c}]}else if(n instanceof R.Range)l=[A.Range.from(n)];else{l=[];for(const i of n)if(i instanceof R.Range)l.push(A.Range.from(i));else{const{lineNumber:c,column:_}=A.Position.from(i);l.push({startLineNumber:c,startColumn:_,endLineNumber:c,endColumn:_})}}return s.$tryInsertSnippet(t,C.value.version,T.value,l,a)},setDecorations(T,n){const a=n.length===0;a&&!P._hasDecorationsForKey.has(T.key)||(a?P._hasDecorationsForKey.delete(T.key):P._hasDecorationsForKey.add(T.key),P._runOnProxy(()=>{if(A.isDecorationOptionsArr(n))return s.$trySetDecorations(t,T.key,A.fromRangeOrRangeWithMessage(n));{const l=new Array(4*n.length);for(let i=0,c=n.length;i<c;i++){const _=n[i];l[4*i]=_.start.line+1,l[4*i+1]=_.start.character+1,l[4*i+2]=_.end.line+1,l[4*i+3]=_.end.character+1}return s.$trySetDecorationsFast(t,T.key,l)}}))},revealRange(T,n){P._runOnProxy(()=>s.$tryRevealRange(t,A.Range.from(T),n||R.TextEditorRevealType.Default))},show(T){s.$tryShowEditor(t,A.ViewColumn.from(T))},hide(){s.$tryHideEditor(t)}})}dispose(){(0,w.ok)(!this._disposed),this._disposed=!0}_acceptOptions(t){(0,w.ok)(!this._disposed),this._options._accept(t)}_acceptVisibleRanges(t){(0,w.ok)(!this._disposed),this._visibleRanges=t}_acceptViewColumn(t){(0,w.ok)(!this._disposed),this._viewColumn=t}_acceptSelections(t){(0,w.ok)(!this._disposed),this._selections=t}async _trySetSelection(){const t=this._selections.map(A.Selection.from);return await this._runOnProxy(()=>this._proxy.$trySetSelections(this.id,t)),this.value}_applyEdit(t){const s=t.finalize();if(s.edits.length===0&&!s.setEndOfLine)return Promise.resolve(!0);const g=s.edits.map(r=>r.range);g.sort((r,h)=>r.end.line===h.end.line?r.end.character===h.end.character?r.start.line===h.start.line?r.start.character-h.start.character:r.start.line-h.start.line:r.end.character-h.end.character:r.end.line-h.end.line);for(let r=0,h=g.length-1;r<h;r++){const o=g[r].end;if(g[r+1].start.isBefore(o))return Promise.reject(new Error("Overlapping ranges are not allowed!"))}const C=s.edits.map(r=>({range:A.Range.from(r.range),text:r.text,forceMoveMarkers:r.forceMoveMarkers}));return this._proxy.$tryApplyEdits(this.id,s.documentVersionId,C,{setEndOfLine:typeof s.setEndOfLine=="number"?A.EndOfLine.from(s.setEndOfLine):void 0,undoStopBefore:s.undoStopBefore,undoStopAfter:s.undoStopAfter})}_runOnProxy(t){return this._disposed?(this._logService.warn("TextEditor is closed/disposed"),Promise.resolve(void 0)):t().then(()=>this,s=>(s instanceof Error&&s.name==="DISPOSED"||this._logService.warn(s),null))}}e.ExtHostTextEditor=y}),define(ye[284],Ce([1,0,6,233]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWorkbenchEnvironmentService=void 0,e.IWorkbenchEnvironmentService=(0,w.refineServiceDecorator)(M.IEnvironmentService)}),define(ye[146],Ce([1,0,23,4,17,5]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionDescriptionRegistryLock=e.LockableExtensionDescriptionRegistry=e.basicActivationEventsReader=e.ExtensionDescriptionRegistry=e.DeltaExtensionsResult=void 0;class R{constructor(r){this.removedDueToLooping=r}}e.DeltaExtensionsResult=R;class u{static isHostExtension(r,h,o){if(h.getExtensionDescription(r))return!1;const b=o.getExtensionDescription(r);return b?!!((b.main||b.browser)&&b.api==="none"):!1}constructor(r,h){this._activationEventsReader=r,this._onDidChange=new M.Emitter,this.onDidChange=this._onDidChange.event,this._extensionDescriptions=h,this._initialize()}_initialize(){this._extensionDescriptions.sort(s),this._extensionsMap=new w.ExtensionIdentifierMap,this._extensionsArr=[],this._activationMap=new Map;for(const r of this._extensionDescriptions){if(this._extensionsMap.has(r.identifier)){console.error("Extension `"+r.identifier.value+"` is already registered");continue}this._extensionsMap.set(r.identifier,r),this._extensionsArr.push(r);const h=this._activationEventsReader.readActivationEvents(r);if(Array.isArray(h))for(let o of h)o==="onUri"&&(o=`onUri:${w.ExtensionIdentifier.toKey(r.identifier)}`),this._activationMap.has(o)||this._activationMap.set(o,[]),this._activationMap.get(o).push(r)}}set(r){this._extensionDescriptions=r,this._initialize(),this._onDidChange.fire(void 0)}deltaExtensions(r,h){this._extensionDescriptions=g(this._extensionDescriptions,h),this._extensionDescriptions=this._extensionDescriptions.concat(r);const o=u._findLoopingExtensions(this._extensionDescriptions);return this._extensionDescriptions=g(this._extensionDescriptions,o.map(b=>b.identifier)),this._initialize(),this._onDidChange.fire(void 0),new R(o)}static _findLoopingExtensions(r){const h=new class{constructor(){this._arcs=new Map,this._nodesSet=new Set,this._nodesArr=[]}addNode(n){this._nodesSet.has(n)||(this._nodesSet.add(n),this._nodesArr.push(n))}addArc(n,a){this.addNode(n),this.addNode(a),this._arcs.has(n)?this._arcs.get(n).push(a):this._arcs.set(n,[a])}getArcs(n){return this._arcs.has(n)?this._arcs.get(n):[]}hasOnlyGoodArcs(n,a){const l=h.getArcs(n);for(let i=0;i<l.length;i++)if(!a.has(l[i]))return!1;return!0}getNodes(){return this._nodesArr}},o=new w.ExtensionIdentifierMap;for(const n of r)if(o.set(n.identifier,n),n.extensionDependencies)for(const a of n.extensionDependencies)h.addArc(w.ExtensionIdentifier.toKey(n.identifier),w.ExtensionIdentifier.toKey(a));const b=new Set;h.getNodes().filter(n=>h.getArcs(n).length===0).forEach(n=>b.add(n));const P=h.getNodes().filter(n=>!b.has(n));let T;do{T=!1;for(let n=0;n<P.length;n++){const a=P[n];h.hasOnlyGoodArcs(a,b)&&(P.splice(n,1),n--,b.add(a),T=!0)}}while(T);return P.map(n=>o.get(n))}containsActivationEvent(r){return this._activationMap.has(r)}containsExtension(r){return this._extensionsMap.has(r)}getExtensionDescriptionsForActivationEvent(r){const h=this._activationMap.get(r);return h?h.slice(0):[]}getAllExtensionDescriptions(){return this._extensionsArr.slice(0)}getExtensionDescription(r){const h=this._extensionsMap.get(r);return h||void 0}getExtensionDescriptionByUUID(r){for(const h of this._extensionsArr)if(h.uuid===r)return h}getExtensionDescriptionByIdOrUUID(r,h){return this.getExtensionDescription(r)??(h?this.getExtensionDescriptionByUUID(h):void 0)}}e.ExtensionDescriptionRegistry=u,e.basicActivationEventsReader={readActivationEvents:C=>C.activationEvents};class p{constructor(r){this._lock=new E,this._actual=new u(r,[])}async acquireLock(r){const h=await this._lock.acquire(r);return new f(this,h)}deltaExtensions(r,h,o){if(!r.isAcquiredFor(this))throw new Error("Lock is not held");return this._actual.deltaExtensions(h,o)}containsActivationEvent(r){return this._actual.containsActivationEvent(r)}containsExtension(r){return this._actual.containsExtension(r)}getExtensionDescriptionsForActivationEvent(r){return this._actual.getExtensionDescriptionsForActivationEvent(r)}getAllExtensionDescriptions(){return this._actual.getAllExtensionDescriptions()}getExtensionDescription(r){return this._actual.getExtensionDescription(r)}getExtensionDescriptionByUUID(r){return this._actual.getExtensionDescriptionByUUID(r)}getExtensionDescriptionByIdOrUUID(r,h){return this._actual.getExtensionDescriptionByIdOrUUID(r,h)}}e.LockableExtensionDescriptionRegistry=p;class f extends A.Disposable{constructor(r,h){super(),this._registry=r,this._isDisposed=!1,this._register(h)}isAcquiredFor(r){return!this._isDisposed&&this._registry===r}}e.ExtensionDescriptionRegistryLock=f;class y{constructor(r){this.name=r,this.promise=new Promise((h,o)=>{this._resolve=h})}resolve(r){this._resolve(r)}}class E{constructor(){this._pendingCustomers=[],this._isLocked=!1}async acquire(r){const h=new y(r);return this._pendingCustomers.push(h),this._advance(),h.promise}_advance(){if(this._isLocked||this._pendingCustomers.length===0)return;const r=this._pendingCustomers.shift();this._isLocked=!0;let h=!0;const o=setTimeout(()=>{h&&console.warn(`The customer named ${r.name} has been holding on to the lock for 30s. This might be a problem.`)},30*1e3),b=()=>{h&&(clearTimeout(o),h=!1,this._isLocked=!1,this._advance())};r.resolve((0,A.toDisposable)(b))}}var t;(function(C){C[C.Builtin=0]="Builtin",C[C.User=1]="User",C[C.Dev=2]="Dev"})(t||(t={}));function s(C,r){const h=C.isBuiltin?0:C.isUnderDevelopment?2:1,o=r.isBuiltin?0:r.isUnderDevelopment?2:1;if(h!==o)return h-o;const b=d.posix.basename(C.extensionLocation.path),P=d.posix.basename(r.extensionLocation.path);return b<P?-1:b>P?1:0}function g(C,r){const h=new w.ExtensionIdentifierSet(r);return C.filter(o=>!h.has(o.identifier))}}),define(ye[285],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readExtHostConnection=e.writeExtHostConnection=e.MessagePortExtHostConnection=e.SocketExtHostConnection=e.IPCExtHostConnection=e.ExtHostConnectionType=void 0;var w;(function(y){y[y.IPC=1]="IPC",y[y.Socket=2]="Socket",y[y.MessagePort=3]="MessagePort"})(w||(e.ExtHostConnectionType=w={}));class M{static{this.ENV_KEY="VSCODE_EXTHOST_IPC_HOOK"}constructor(E){this.pipeName=E,this.type=1}serialize(E){E[M.ENV_KEY]=this.pipeName}}e.IPCExtHostConnection=M;class d{constructor(){this.type=2}static{this.ENV_KEY="VSCODE_EXTHOST_WILL_SEND_SOCKET"}serialize(E){E[d.ENV_KEY]="1"}}e.SocketExtHostConnection=d;class A{constructor(){this.type=3}static{this.ENV_KEY="VSCODE_WILL_SEND_MESSAGE_PORT"}serialize(E){E[A.ENV_KEY]="1"}}e.MessagePortExtHostConnection=A;function R(y){delete y[M.ENV_KEY],delete y[d.ENV_KEY],delete y[A.ENV_KEY]}function u(y,E){R(E),y.serialize(E)}e.writeExtHostConnection=u;function p(y){if(y[M.ENV_KEY])return f(y,new M(y[M.ENV_KEY]));if(y[d.ENV_KEY])return f(y,new d);if(y[A.ENV_KEY])return f(y,new A);throw new Error("No connection information defined in environment!")}e.readExtHostConnection=p;function f(y,E){return R(y),E}}),define(ye[108],Ce([1,0,21]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeLogMarkers=e.isMessageOfType=e.createMessageOfType=e.MessageType=e.ExtensionHostExitCode=e.UIKind=void 0;var M;(function(f){f[f.Desktop=1]="Desktop",f[f.Web=2]="Web"})(M||(e.UIKind=M={}));var d;(function(f){f[f.VersionMismatch=55]="VersionMismatch",f[f.UnexpectedError=81]="UnexpectedError"})(d||(e.ExtensionHostExitCode=d={}));var A;(function(f){f[f.Initialized=0]="Initialized",f[f.Ready=1]="Ready",f[f.Terminate=2]="Terminate"})(A||(e.MessageType=A={}));function R(f){const y=w.VSBuffer.alloc(1);switch(f){case 0:y.writeUInt8(1,0);break;case 1:y.writeUInt8(2,0);break;case 2:y.writeUInt8(3,0);break}return y}e.createMessageOfType=R;function u(f,y){if(f.byteLength!==1)return!1;switch(f.readUInt8(0)){case 1:return y===0;case 2:return y===1;case 3:return y===2;default:return!1}}e.isMessageOfType=u;var p;(function(f){f.Start="START_NATIVE_LOG",f.End="END_NATIVE_LOG"})(p||(e.NativeLogMarkers=p={}))}),define(ye[88],Ce([1,0,6,4,12,26,108,61,85,24,2,5,216]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostTelemetry=e.isNewAppInstall=e.ExtHostTelemetryLogger=e.ExtHostTelemetry=void 0;let s=class extends E.Disposable{constructor(h,o){super(),this.initData=h,this.loggerService=o,this._onDidChangeTelemetryEnabled=this._register(new M.Emitter),this.onDidChangeTelemetryEnabled=this._onDidChangeTelemetryEnabled.event,this._onDidChangeTelemetryConfiguration=this._register(new M.Emitter),this.onDidChangeTelemetryConfiguration=this._onDidChangeTelemetryConfiguration.event,this._productConfig={usage:!0,error:!0},this._level=0,this._telemetryIsSupported=!1,this._inLoggingOnlyMode=!1,this._telemetryLoggers=new Map,this.extHostTelemetryLogFile=y.URI.revive(this.initData.environment.extensionTelemetryLogResource),this._inLoggingOnlyMode=this.initData.environment.isExtensionTelemetryLoggingOnly,this._outputLogger=o.createLogger(this.extHostTelemetryLogFile,{id:p.extensionTelemetryLogChannelId,name:(0,t.localize)(0,null,this._inLoggingOnlyMode?" (Not Sent)":""),hidden:!0}),this._register(o.onDidChangeLogLevel(b=>{(0,d.isLogLevel)(b)&&this.updateLoggerVisibility()})),this._outputLogger.info("Below are logs for extension telemetry events sent to the telemetry output channel API once the log level is set to trace."),this._outputLogger.info("===========================================================")}updateLoggerVisibility(){this.loggerService.setVisibility(this.extHostTelemetryLogFile,this._telemetryIsSupported&&this.loggerService.getLogLevel()===d.LogLevel.Trace)}getTelemetryConfiguration(){return this._level===3}getTelemetryDetails(){return{isCrashEnabled:this._level>=1,isErrorsEnabled:this._productConfig.error?this._level>=2:!1,isUsageEnabled:this._productConfig.usage?this._level>=3:!1}}instantiateLogger(h,o,b){const P=this.getTelemetryDetails(),T=new g(o,b,h,this._outputLogger,this._inLoggingOnlyMode,this.getBuiltInCommonProperties(h),{isUsageEnabled:P.isUsageEnabled,isErrorsEnabled:P.isErrorsEnabled}),n=this._telemetryLoggers.get(h.identifier.value)??[];return this._telemetryLoggers.set(h.identifier.value,[...n,T]),T.apiTelemetryLogger}$initializeTelemetryLevel(h,o,b){this._level=h,this._telemetryIsSupported=o,this._productConfig=b??{usage:!0,error:!0},this.updateLoggerVisibility()}getBuiltInCommonProperties(h){const o=Object.create(null);switch(o["common.extname"]=`${h.publisher}.${h.name}`,o["common.extversion"]=h.version,o["common.vscodemachineid"]=this.initData.telemetryInfo.machineId,o["common.vscodesessionid"]=this.initData.telemetryInfo.sessionId,o["common.vscodeversion"]=this.initData.version,o["common.isnewappinstall"]=C(this.initData.telemetryInfo.firstSessionDate),o["common.product"]=this.initData.environment.appHost,this.initData.uiKind){case R.UIKind.Web:o["common.uikind"]="web";break;case R.UIKind.Desktop:o["common.uikind"]="desktop";break;default:o["common.uikind"]="unknown"}return o["common.remotename"]=(0,u.getRemoteName)((0,p.cleanRemoteAuthority)(this.initData.remote.authority)),o}$onDidChangeTelemetryLevel(h){this._oldTelemetryEnablement=this.getTelemetryConfiguration(),this._level=h;const o=this.getTelemetryDetails();this._telemetryLoggers.forEach((b,P)=>{const T=b.filter(n=>!n.isDisposed);T.length===0?this._telemetryLoggers.delete(P):this._telemetryLoggers.set(P,T)}),this._telemetryLoggers.forEach(b=>{for(const P of b)P.updateTelemetryEnablements(o.isUsageEnabled,o.isErrorsEnabled)}),this._oldTelemetryEnablement!==this.getTelemetryConfiguration()&&this._onDidChangeTelemetryEnabled.fire(this.getTelemetryConfiguration()),this._onDidChangeTelemetryConfiguration.fire(this.getTelemetryDetails()),this.updateLoggerVisibility()}onExtensionError(h,o){const P=this._telemetryLoggers.get(h.value)?.filter(n=>!n.isDisposed);if(!P)return this._telemetryLoggers.delete(h.value),!1;let T=!1;for(const n of P)n.ignoreUnhandledExtHostErrors||(n.logError(o),T=!0);return T}};e.ExtHostTelemetry=s,e.ExtHostTelemetry=s=je([He(0,A.IExtHostInitDataService),He(1,d.ILoggerService)],s);class g{static validateSender(h){if(typeof h!="object")throw new TypeError("TelemetrySender argument is invalid");if(typeof h.sendEventData!="function")throw new TypeError("TelemetrySender.sendEventData must be a function");if(typeof h.sendErrorData!="function")throw new TypeError("TelemetrySender.sendErrorData must be a function");if(typeof h.flush<"u"&&typeof h.flush!="function")throw new TypeError("TelemetrySender.flush must be a function or undefined")}constructor(h,o,b,P,T,n,a){this._extension=b,this._logger=P,this._inLoggingOnlyMode=T,this._commonProperties=n,this._onDidChangeEnableStates=new M.Emitter,this.ignoreUnhandledExtHostErrors=o?.ignoreUnhandledErrors??!1,this._ignoreBuiltinCommonProperties=o?.ignoreBuiltInCommonProperties??!1,this._additionalCommonProperties=o?.additionalCommonProperties,this._sender=h,this._telemetryEnablements={isUsageEnabled:a.isUsageEnabled,isErrorsEnabled:a.isErrorsEnabled}}updateTelemetryEnablements(h,o){this._apiObject&&(this._telemetryEnablements={isUsageEnabled:h,isErrorsEnabled:o},this._onDidChangeEnableStates.fire(this._apiObject))}mixInCommonPropsAndCleanData(h){let o="properties"in h?h.properties??{}:h;return o=(0,p.cleanData)(o,[]),this._additionalCommonProperties&&(o=(0,f.mixin)(o,this._additionalCommonProperties)),this._ignoreBuiltinCommonProperties||(o=(0,f.mixin)(o,this._commonProperties)),"properties"in h?h.properties=o:h=o,h}logEvent(h,o){this._sender&&(this._extension.publisher==="vscode"?h=this._extension.name+"/"+h:h=this._extension.identifier.value+"/"+h,o=this.mixInCommonPropsAndCleanData(o||{}),this._inLoggingOnlyMode||this._sender?.sendEventData(h,o),this._logger.trace(h,o))}logUsage(h,o){this._telemetryEnablements.isUsageEnabled&&this.logEvent(h,o)}logError(h,o){if(!(!this._telemetryEnablements.isErrorsEnabled||!this._sender))if(typeof h=="string")this.logEvent(h,o);else{const b={name:h.name,message:h.message,stack:h.stack,cause:h.cause},P=(0,p.cleanData)(b,[]),T=new Error(P.message,{cause:P.cause});T.stack=P.stack,T.name=P.name,o=this.mixInCommonPropsAndCleanData(o||{}),this._inLoggingOnlyMode||this._sender.sendErrorData(T,o),this._logger.trace("exception",o)}}get apiTelemetryLogger(){if(!this._apiObject){const h=this,o={logUsage:h.logUsage.bind(h),get isUsageEnabled(){return h._telemetryEnablements.isUsageEnabled},get isErrorsEnabled(){return h._telemetryEnablements.isErrorsEnabled},logError:h.logError.bind(h),dispose:h.dispose.bind(h),onDidChangeEnableStates:h._onDidChangeEnableStates.event.bind(h)};this._apiObject=Object.freeze(o)}return this._apiObject}get isDisposed(){return!this._sender}dispose(){if(this._sender?.flush){let h=this._sender;this._sender=void 0,Promise.resolve(h.flush()).then(h=void 0),this._apiObject=void 0}else this._sender=void 0}}e.ExtHostTelemetryLogger=g;function C(r){const h=Date.now()-new Date(r).getTime();return isNaN(h)?!1:h<1e3*60*60*24}e.isNewAppInstall=C,e.IExtHostTelemetry=(0,w.createDecorator)("IExtHostTelemetry")}),define(ye[27],Ce([1,0,4,2,254,138,23,6]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullExtensionService=e.toExtensionDescription=e.toExtension=e.ActivationKind=e.ExtensionPointContribution=e.ActivationTimes=e.checkProposedApiEnabled=e.isProposedApiEnabled=e.ExtensionHostExtensions=e.ExtensionHostStartup=e.MissingExtensionDependency=e.IExtensionService=e.webWorkerExtHostConfig=e.nullExtensionDescription=void 0,e.nullExtensionDescription=Object.freeze({identifier:new R.ExtensionIdentifier("nullExtensionDescription"),name:"Null Extension Description",version:"0.0.0",publisher:"vscode",engines:{vscode:""},extensionLocation:M.URI.parse("void:location"),isBuiltin:!1,targetPlatform:"undefined",isUserBuiltin:!1,isUnderDevelopment:!1}),e.webWorkerExtHostConfig="extensions.webWorker",e.IExtensionService=(0,u.createDecorator)("extensionService");class p{constructor(T){this.dependency=T}}e.MissingExtensionDependency=p;var f;(function(P){P[P.EagerAutoStart=1]="EagerAutoStart",P[P.EagerManualStart=2]="EagerManualStart",P[P.Lazy=3]="Lazy"})(f||(e.ExtensionHostStartup=f={}));class y{constructor(){this._allExtensions=[],this._myExtensions=[]}toDelta(){return{toRemove:[],toAdd:this._allExtensions,addActivationEvents:A.ImplicitActivationEvents.createActivationEventsMap(this._allExtensions),myToRemove:[],myToAdd:this._myExtensions}}set(T,n){const a=[],l=[],i=[],c=[],_=E(this._allExtensions),S=E(T),k=(O,H)=>O.extensionLocation.toString()===H.extensionLocation.toString()||O.isBuiltin===H.isBuiltin||O.isUserBuiltin===H.isUserBuiltin||O.isUnderDevelopment===H.isUnderDevelopment;for(const O of this._allExtensions){const H=S.get(O.identifier);if(!H){a.push(O.identifier),_.delete(O.identifier);continue}if(!k(O,H)){a.push(O.identifier),_.delete(O.identifier);continue}}for(const O of T){const H=_.get(O.identifier);if(!H){l.push(O);continue}if(!k(H,O)){a.push(H.identifier),_.delete(H.identifier);continue}}const m=new R.ExtensionIdentifierSet(this._myExtensions),v=new R.ExtensionIdentifierSet(n);for(const O of this._myExtensions)v.has(O)||i.push(O);for(const O of n)m.has(O)||c.push(O);const D=A.ImplicitActivationEvents.createActivationEventsMap(l),L={toRemove:a,toAdd:l,addActivationEvents:D,myToRemove:i,myToAdd:c};return this.delta(L),L}delta(T){const{toRemove:n,toAdd:a,myToRemove:l,myToAdd:i}=T,c=new R.ExtensionIdentifierSet(n),_=new R.ExtensionIdentifierSet(l);for(let S=0;S<this._allExtensions.length;S++)c.has(this._allExtensions[S].identifier)&&(this._allExtensions.splice(S,1),S--);for(let S=0;S<this._myExtensions.length;S++)_.has(this._myExtensions[S])&&(this._myExtensions.splice(S,1),S--);for(const S of a)this._allExtensions.push(S);for(const S of i)this._myExtensions.push(S)}containsExtension(T){for(const n of this._myExtensions)if(R.ExtensionIdentifier.equals(n,T))return!0;return!1}}e.ExtensionHostExtensions=y;function E(P){const T=new R.ExtensionIdentifierMap;for(const n of P)T.set(n.identifier,n);return T}function t(P,T){return P.enabledApiProposals?P.enabledApiProposals.includes(T):!1}e.isProposedApiEnabled=t;function s(P,T){if(!t(P,T))throw new Error(`Extension '${P.identifier.value}' CANNOT use API proposal: ${T}.
Its package.json#enabledApiProposals-property declares: ${P.enabledApiProposals?.join(", ")??"[]"} but NOT ${T}.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ${P.identifier.value}`)}e.checkProposedApiEnabled=s;class g{constructor(T,n,a,l){this.codeLoadingTime=T,this.activateCallTime=n,this.activateResolvedTime=a,this.activationReason=l}}e.ActivationTimes=g;class C{constructor(T,n){this.description=T,this.value=n}}e.ExtensionPointContribution=C;var r;(function(P){P[P.Normal=0]="Normal",P[P.Immediate=1]="Immediate"})(r||(e.ActivationKind=r={}));function h(P){return{type:P.isBuiltin?0:1,isBuiltin:P.isBuiltin||P.isUserBuiltin,identifier:{id:(0,d.getGalleryExtensionId)(P.publisher,P.name),uuid:P.uuid},manifest:P,location:P.extensionLocation,targetPlatform:P.targetPlatform,validations:[],isValid:!0}}e.toExtension=h;function o(P,T){return{identifier:new R.ExtensionIdentifier((0,d.getExtensionId)(P.manifest.publisher,P.manifest.name)),isBuiltin:P.type===0,isUserBuiltin:P.type===1&&P.isBuiltin,isUnderDevelopment:!!T,extensionLocation:P.location,...P.manifest,uuid:P.identifier.uuid,targetPlatform:P.targetPlatform}}e.toExtensionDescription=o;class b{constructor(){this.onDidRegisterExtensions=w.Event.None,this.onDidChangeExtensionsStatus=w.Event.None,this.onDidChangeExtensions=w.Event.None,this.onWillActivateByEvent=w.Event.None,this.onDidChangeResponsiveChange=w.Event.None,this.onWillStop=w.Event.None,this.extensions=[]}activateByEvent(T){return Promise.resolve(void 0)}activationEventIsDone(T){return!1}whenInstalledExtensionsRegistered(){return Promise.resolve(!0)}getExtension(){return Promise.resolve(void 0)}readExtensionPointContributions(T){return Promise.resolve(Object.create(null))}getExtensionsStatus(){return Object.create(null)}getInspectPorts(T,n){return Promise.resolve([])}stopExtensionHosts(){}async startExtensionHosts(){}async setRemoteEnvironment(T){}canAddExtension(){return!1}canRemoveExtension(){return!1}}e.NullExtensionService=b}),define(ye[286],Ce([1,0,27,23]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AzdataNodeModuleFactory=void 0;class d{constructor(R,u,p){this._apiFactory=R,this._extensionPaths=u,this._logService=p,this.nodeModuleName="azdata",this._extApiImpl=new Map}load(R,u){const p=this._extensionPaths.findSubstr(u);if(p){let f=this._extApiImpl.get(M.ExtensionIdentifier.toKey(p.identifier));return f||(f=this._apiFactory(p),this._extApiImpl.set(M.ExtensionIdentifier.toKey(p.identifier),f)),f}if(!this._defaultApiImpl){let f="";this._extensionPaths.forEach((y,E)=>f+=`	${E} -> ${y.identifier.value}
`),this._logService.warn(`Could not identify extension for 'azdata' require call from ${u.fsPath}. These are the extension path mappings: 
${f}`),this._defaultApiImpl=this._apiFactory(w.nullExtensionDescription)}return this._defaultApiImpl}}e.AzdataNodeModuleFactory=d}),define(ye[287],Ce([1,0,8,146,23,27,12,13]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsActivator=e.HostExtension=e.EmptyExtension=e.ActivatedExtension=e.ExtensionActivationTimesBuilder=e.ExtensionActivationTimes=void 0;class p{static{this.NONE=new p(!1,-1,-1,-1)}constructor(h,o,b,P){this.startup=h,this.codeLoadingTime=o,this.activateCallTime=b,this.activateResolvedTime=P}}e.ExtensionActivationTimes=p;class f{constructor(h){this._startup=h,this._codeLoadingStart=-1,this._codeLoadingStop=-1,this._activateCallStart=-1,this._activateCallStop=-1,this._activateResolveStart=-1,this._activateResolveStop=-1}_delta(h,o){return h===-1||o===-1?-1:o-h}build(){return new p(this._startup,this._delta(this._codeLoadingStart,this._codeLoadingStop),this._delta(this._activateCallStart,this._activateCallStop),this._delta(this._activateResolveStart,this._activateResolveStop))}codeLoadingStart(){this._codeLoadingStart=Date.now()}codeLoadingStop(){this._codeLoadingStop=Date.now()}activateCallStart(){this._activateCallStart=Date.now()}activateCallStop(){this._activateCallStop=Date.now()}activateResolveStart(){this._activateResolveStart=Date.now()}activateResolveStop(){this._activateResolveStop=Date.now()}}e.ExtensionActivationTimesBuilder=f;class y{constructor(h,o,b,P,T,n){this.activationFailed=h,this.activationFailedError=o,this.activationTimes=b,this.module=P,this.exports=T,this.subscriptions=n}}e.ActivatedExtension=y;class E extends y{constructor(h){super(!1,null,h,{activate:void 0,deactivate:void 0},void 0,[])}}e.EmptyExtension=E;class t extends y{constructor(){super(!1,null,p.NONE,{activate:void 0,deactivate:void 0},void 0,[])}}e.HostExtension=t;class s extends y{constructor(h){super(!0,h,p.NONE,{activate:void 0,deactivate:void 0},void 0,[])}}let g=class{constructor(h,o,b,P){this._logService=P,this._registry=h,this._globalRegistry=o,this._host=b,this._operations=new d.ExtensionIdentifierMap,this._alreadyActivatedEvents=Object.create(null)}dispose(){for(const[h,o]of this._operations)o.dispose()}async waitForActivatingExtensions(){const h=[];for(const[o,b]of this._operations)h.push(b.wait());await Promise.all(h)}isActivated(h){const o=this._operations.get(h);return!!(o&&o.value)}getActivatedExtension(h){const o=this._operations.get(h);if(!o||!o.value)throw new Error(`Extension '${h.value}' is not known or not activated`);return o.value}async activateByEvent(h,o){if(this._alreadyActivatedEvents[h])return;const b=this._registry.getExtensionDescriptionsForActivationEvent(h);await this._activateExtensions(b.map(P=>({id:P.identifier,reason:{startup:o,extensionId:P.identifier,activationEvent:h}}))),this._alreadyActivatedEvents[h]=!0}activateById(h,o){const b=this._registry.getExtensionDescription(h);if(!b)throw new Error(`Extension '${h}' is not known`);return this._activateExtensions([{id:b.identifier,reason:o}])}async _activateExtensions(h){const o=h.filter(b=>!this.isActivated(b.id)).map(b=>this._handleActivationRequest(b));await Promise.all(o.map(b=>b.wait()))}_handleActivationRequest(h){if(this._operations.has(h.id))return this._operations.get(h.id);if(this._isHostExtension(h.id))return this._createAndSaveOperation(h,null,[],null);const o=this._registry.getExtensionDescription(h.id);if(!o){const T=new Error(`Cannot activate unknown extension '${h.id.value}'`),n=this._createAndSaveOperation(h,null,[],new s(T));return this._host.onExtensionActivationError(h.id,T,new A.MissingExtensionDependency(h.id.value)),n}const b=[],P=typeof o.extensionDependencies>"u"?[]:o.extensionDependencies;for(const T of P){if(this._isResolvedExtension(T))continue;const n=this._operations.get(T);if(n){b.push(n);continue}if(this._isHostExtension(T)){b.push(this._handleActivationRequest({id:this._globalRegistry.getExtensionDescription(T).identifier,reason:h.reason}));continue}const a=this._registry.getExtensionDescription(T);if(a){if(!a.main&&!a.browser)continue;b.push(this._handleActivationRequest({id:a.identifier,reason:h.reason}));continue}const l=o.displayName||o.identifier.value,i=new Error(`Cannot activate the '${l}' extension because it depends on unknown extension '${T}'`),c=this._createAndSaveOperation(h,o.displayName,[],new s(i));return this._host.onExtensionActivationError(o.identifier,i,new A.MissingExtensionDependency(T)),c}return this._createAndSaveOperation(h,o.displayName,b,null)}_createAndSaveOperation(h,o,b,P){const T=new C(h.id,o,h.reason,b,P,this._host,this._logService);return this._operations.set(h.id,T),T}_isHostExtension(h){return M.ExtensionDescriptionRegistry.isHostExtension(h,this._registry,this._globalRegistry)}_isResolvedExtension(h){const o=this._globalRegistry.getExtensionDescription(h);return o?!o.main&&!o.browser:!1}};e.ExtensionsActivator=g,e.ExtensionsActivator=g=je([He(3,R.ILogService)],g);let C=class{get value(){return this._value}get friendlyName(){return this._displayName||this._id.value}constructor(h,o,b,P,T,n,a){this._id=h,this._displayName=o,this._reason=b,this._deps=P,this._value=T,this._host=n,this._logService=a,this._barrier=new u.Barrier,this._isDisposed=!1,this._initialize()}dispose(){this._isDisposed=!0}wait(){return this._barrier.wait()}async _initialize(){await this._waitForDepsThenActivate(),this._barrier.open()}async _waitForDepsThenActivate(){if(!this._value){for(;this._deps.length>0;){for(let h=0;h<this._deps.length;h++){const o=this._deps[h];if(o.value&&!o.value.activationFailed){this._deps.splice(h,1),h--;continue}if(o.value&&o.value.activationFailed){const b=new Error(`Cannot activate the '${this.friendlyName}' extension because its dependency '${o.friendlyName}' failed to activate`);b.detail=o.value.activationFailedError,this._value=new s(b),this._host.onExtensionActivationError(this._id,b,null);return}}this._deps.length>0&&await Promise.race(this._deps.map(h=>h.wait()))}await this._activate()}}async _activate(){try{this._value=await this._host.actualActivateExtension(this._id,this._reason)}catch(h){const o=new Error;if(h&&h.name&&(o.name=h.name),h&&h.message?o.message=`Activating extension '${this._id.value}' failed: ${h.message}.`:o.message=`Activating extension '${this._id.value}' failed: ${h}.`,h&&h.stack&&(o.stack=h.stack),this._value=new s(o),this._isDisposed&&w.isCancellationError(h))return;this._host.onExtensionActivationError(this._id,o,null),this._logService.error(`Activating extension ${this._id.value} failed due to an error:`),this._logService.error(h)}}};C=je([He(6,R.ILogService)],C)}),define(ye[147],Ce([1,0,218,7,25,2,4,5,268,13,7,18,19,11,77,22,175,27]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTreeView=e.ExtHostTreeViews=void 0;function o(T,n){if((0,E.isString)(T))return{label:T};if(T&&typeof T=="object"&&typeof T.label=="string"){let a;return Array.isArray(T.highlights)&&(a=T.highlights.filter(l=>l.length===2&&typeof l[0]=="number"&&typeof l[1]=="number"),a=a.length?a:void 0),{label:T.label,highlights:a}}}class b{constructor(n,a,l){this._proxy=n,this.commands=a,this.logService=l,this.treeViews=new Map,this.treeDragAndDropService=new r.TreeViewsDnDService;function i(c){return c&&c.$treeViewId&&(c.$treeItemHandle||c.$selectedTreeItems||c.$focusedTreeItem)&&!c.$treeItem?.payload}a.registerArgumentProcessor({processArgument:c=>i(c)?this.convertArgument(c):Array.isArray(c)&&c.length>0?c.map(_=>i(_)?this.convertArgument(_):_):c})}$setSelection(n,a){const l=this.treeViews.get(n);if(!l)throw new p.NoTreeViewError(n);l.setSelection(a)}$setFocus(n,a){const l=this.treeViews.get(n);if(!l)throw new p.NoTreeViewError(n);l.setFocus(a)}registerTreeDataProvider(n,a,l){const i=this.createTreeView(n,{treeDataProvider:a},l);return{dispose:()=>i.dispose()}}createTreeView(n,a,l){if(!a||!a.treeDataProvider)throw new Error("Options with treeDataProvider is mandatory");const i=a.dragAndDropController?.dropMimeTypes??[],c=a.dragAndDropController?.dragMimeTypes??[],_=!!a.dragAndDropController?.handleDrag,S=!!a.dragAndDropController?.handleDrop,k=this.createExtHostTreeView(n,a,l),m={showCollapseAll:!!a.showCollapseAll,canSelectMany:!!a.canSelectMany,dropMimeTypes:i,dragMimeTypes:c,hasHandleDrag:_,hasHandleDrop:S,manuallyManageCheckboxes:!!a.manageCheckboxStateManually},v=this._proxy.$registerTreeViewDataProvider(n,m);return{get onDidCollapseElement(){return k.onDidCollapseElement},get onDidExpandElement(){return k.onDidExpandElement},get selection(){return k.selectedElements},get onDidChangeSelection(){return k.onDidChangeSelection},get activeItem(){return(0,h.checkProposedApiEnabled)(l,"treeViewActiveItem"),k.focusedElement},get onDidChangeActiveItem(){return(0,h.checkProposedApiEnabled)(l,"treeViewActiveItem"),k.onDidChangeActiveItem},get visible(){return k.visible},get onDidChangeVisibility(){return k.onDidChangeVisibility},get onDidChangeCheckboxState(){return k.onDidChangeCheckboxState},get message(){return k.message},set message(L){(0,g.isMarkdownString)(L)&&(0,h.checkProposedApiEnabled)(l,"treeViewMarkdownMessage"),k.message=L},get title(){return k.title},set title(L){k.title=L},get description(){return k.description},set description(L){k.description=L},get badge(){return k.badge},set badge(L){L!==void 0&&y.ViewBadge.isViewBadge(L)?k.badge={value:Math.floor(Math.abs(L.value)),tooltip:L.tooltip}:L===void 0&&(k.badge=void 0)},reveal:(L,O)=>k.reveal(L,O),dispose:async()=>{await v,this.treeViews.delete(n),k.dispose()}}}$getChildren(n,a){const l=this.treeViews.get(n);return l?l.getChildren(a):Promise.reject(new p.NoTreeViewError(n))}async $handleDrop(n,a,l,i,c,_,S,k){const m=this.treeViews.get(n);if(!m)return Promise.reject(new p.NoTreeViewError(n));const v=s.DataTransfer.toDataTransfer(l,async D=>(await this._proxy.$resolveDropFileData(n,a,D)).buffer);return S===n&&k&&await this.addAdditionalTransferItems(v,m,k,c,_),m.onDrop(v,i,c)}async addAdditionalTransferItems(n,a,l,i,c){const _=this.treeDragAndDropService.removeDragOperationTransfer(c);if(_)(await _)?.forEach((S,k)=>{S&&n.set(k,S)});else if(c&&a.handleDrag){const S=a.handleDrag(l,n,i);this.treeDragAndDropService.addDragOperationTransfer(c,S),await S}return n}async $handleDrag(n,a,l,i){const c=this.treeViews.get(n);if(!c)return Promise.reject(new p.NoTreeViewError(n));const _=await this.addAdditionalTransferItems(new M.DataTransfer,c,a,i,l);if(!(!_||i.isCancellationRequested))return s.DataTransfer.from(_)}async $hasResolve(n){const a=this.treeViews.get(n);if(!a)throw new p.NoTreeViewError(n);return a.hasResolve}$resolve(n,a,l){const i=this.treeViews.get(n);if(!i)throw new p.NoTreeViewError(n);return i.resolveTreeItem(a,l)}$setExpanded(n,a,l){const i=this.treeViews.get(n);if(!i)throw new p.NoTreeViewError(n);i.setExpanded(a,l)}$setSelectionAndFocus(n,a,l){const i=this.treeViews.get(n);if(!i)throw new p.NoTreeViewError(n);i.setSelectionAndFocus(a,l)}$setVisible(n,a){const l=this.treeViews.get(n);if(!l){if(!a)return;throw new p.NoTreeViewError(n)}l.setVisible(a)}$changeCheckboxState(n,a){const l=this.treeViews.get(n);if(!l)throw new p.NoTreeViewError(n);l.setCheckboxState(a)}createExtHostTreeView(n,a,l){const i=new P(n,a,this._proxy,this.commands.converter,this.logService,l);return this.treeViews.set(n,i),i}convertArgument(n){const a=this.treeViews.get(n.$treeViewId);return a&&"$treeItemHandle"in n?a.getExtensionElement(n.$treeItemHandle):a&&"$focusedTreeItem"in n&&n.$focusedTreeItem?a.focusedElement:null}}e.ExtHostTreeViews=b;class P extends u.Disposable{static{this.LABEL_HANDLE_PREFIX="0"}static{this.ID_HANDLE_PREFIX="1"}get visible(){return this._visible}get selectedElements(){return this._selectedHandles.map(n=>this.getExtensionElement(n)).filter(n=>!(0,E.isUndefinedOrNull)(n))}get focusedElement(){return this._focusedHandle?this.getExtensionElement(this._focusedHandle):void 0}constructor(n,a,l,i,c,_){if(super(),this.viewId=n,this.proxy=l,this.commands=i,this.logService=c,this.extension=_,this.roots=void 0,this.elements=new Map,this.nodes=new Map,this._visible=!1,this._selectedHandles=[],this._focusedHandle=void 0,this._onDidExpandElement=this._register(new R.Emitter),this.onDidExpandElement=this._onDidExpandElement.event,this._onDidCollapseElement=this._register(new R.Emitter),this.onDidCollapseElement=this._onDidCollapseElement.event,this._onDidChangeSelection=this._register(new R.Emitter),this.onDidChangeSelection=this._onDidChangeSelection.event,this._onDidChangeActiveItem=this._register(new R.Emitter),this.onDidChangeActiveItem=this._onDidChangeActiveItem.event,this._onDidChangeVisibility=this._register(new R.Emitter),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._onDidChangeCheckboxState=this._register(new R.Emitter),this.onDidChangeCheckboxState=this._onDidChangeCheckboxState.event,this._onDidChangeData=this._register(new R.Emitter),this.refreshPromise=Promise.resolve(),this.refreshQueue=Promise.resolve(),this._message="",this._title="",this._refreshCancellationSource=new C.CancellationTokenSource,_.contributes&&_.contributes.views)for(const O in _.contributes.views)for(const H of _.contributes.views[O])H.id===n&&(this._title=H.name);this.dataProvider=a.treeDataProvider,this.dndController=a.dragAndDropController;const S=a.dragAndDropController?.dropMimeTypes??[],k=a.dragAndDropController?.dragMimeTypes??[],m=!!a.dragAndDropController?.handleDrag,v=!!a.dragAndDropController?.handleDrop;this.proxy&&this.proxy.$registerTreeViewDataProvider(n,{showCollapseAll:!!a.showCollapseAll,canSelectMany:!!a.canSelectMany,dropMimeTypes:S,dragMimeTypes:k,hasHandleDrag:m,hasHandleDrop:v,manuallyManageCheckboxes:a.manageCheckboxStateManually}),this.dndController=a.dragAndDropController,this.dataProvider.onDidChangeTreeData&&this._register(this.dataProvider.onDidChangeTreeData(O=>this._onDidChangeData.fire({message:!1,element:O})));let D,L;this._register(R.Event.debounce(this._onDidChangeData.event,(O,H)=>(O||(O={message:!1,elements:[]}),H.element!==!1&&(D||(D=new Promise(N=>L=N),this.refreshPromise=this.refreshPromise.then(()=>D)),Array.isArray(H.element)?O.elements.push(...H.element):O.elements.push(H.element)),H.message&&(O.message=!0),O),200,!0)(({message:O,elements:H})=>{H.length&&(this.refreshQueue=this.refreshQueue.then(()=>{const N=L;return D=null,this.refresh(H).then(()=>N())})),O&&this.proxy.$setMessage(this.viewId,s.MarkdownString.fromStrict(this._message)??"")}))}async getChildren(n){const a=n?this.getExtensionElement(n):void 0;if(n&&!a)return this.logService.error(`No tree item with id '${n}' found.`),Promise.resolve([]);let l=this.getChildrenNodes(n);return l||(l=await this.fetchChildrenNodes(a)),l?l.map(i=>i.item):void 0}getExtensionElement(n){return this.elements.get(n)}reveal(n,a){a=a||{select:!0,focus:!1};const l=(0,E.isUndefinedOrNull)(a.select)?!0:a.select,i=(0,E.isUndefinedOrNull)(a.focus)?!1:a.focus,c=(0,E.isUndefinedOrNull)(a.expand)?!1:a.expand;return typeof this.dataProvider.getParent!="function"?Promise.reject(new Error("Required registered TreeDataProvider to implement 'getParent' method to access 'reveal' method")):n?this.refreshPromise.then(()=>this.resolveUnknownParentChain(n)).then(_=>this.resolveTreeNode(n,_[_.length-1]).then(S=>this.proxy.$reveal(this.viewId,{item:S.item,parentChain:_.map(k=>k.item)},{select:l,focus:i,expand:c})),_=>this.logService.error(_)):this.proxy.$reveal(this.viewId,void 0,{select:l,focus:i,expand:c})}get message(){return this._message}set message(n){this._message=n,this._onDidChangeData.fire({message:!0,element:!1})}get title(){return this._title}set title(n){this._title=n,this.proxy.$setTitle(this.viewId,n,this._description)}get description(){return this._description}set description(n){this._description=n,this.proxy.$setTitle(this.viewId,this._title,n)}get badge(){return this._badge}set badge(n){this._badge?.value===n?.value&&this._badge?.tooltip===n?.tooltip||(this._badge=s.ViewBadge.from(n),this.proxy.$setBadge(this.viewId,n))}setExpanded(n,a){const l=this.getExtensionElement(n);l&&(a?this._onDidExpandElement.fire(Object.freeze({element:l})):this._onDidCollapseElement.fire(Object.freeze({element:l})))}setSelection(n){(0,t.equals)(this._selectedHandles,n)||(this._selectedHandles=n,this._onDidChangeSelection.fire(Object.freeze({selection:this.selectedElements})))}setFocus(n){this._focusedHandle=n}setSelectionAndFocus(n,a){const l=!(0,t.equals)(this._selectedHandles,n);this._selectedHandles=n;const i=this._focusedHandle!==a;this._focusedHandle=a,l&&this._onDidChangeSelection.fire(Object.freeze({selection:this.selectedElements})),i&&this._onDidChangeActiveItem.fire(Object.freeze({activeItem:this.focusedElement}))}setVisible(n){n!==this._visible&&(this._visible=n,this._onDidChangeVisibility.fire(Object.freeze({visible:this._visible})))}async setCheckboxState(n){const a=(await Promise.all(n.map(async l=>{const i=this.getExtensionElement(l.treeItemHandle);return i?{extensionItem:i,treeItem:await this.dataProvider.getTreeItem(i),newState:l.newState?y.TreeItemCheckboxState.Checked:y.TreeItemCheckboxState.Unchecked}:Promise.resolve(void 0)}))).filter(l=>l!==void 0);a.forEach(l=>{l.treeItem.checkboxState=l.newState?y.TreeItemCheckboxState.Checked:y.TreeItemCheckboxState.Unchecked}),this._onDidChangeCheckboxState.fire({items:a.map(l=>[l.extensionItem,l.newState])})}async handleDrag(n,a,l){const i=[];for(const c of n){const _=this.getExtensionElement(c);_&&i.push(_)}if(!(!this.dndController?.handleDrag||i.length===0))return await this.dndController.handleDrag(i,a,l),a}get hasHandleDrag(){return!!this.dndController?.handleDrag}async onDrop(n,a,l){const i=a?this.getExtensionElement(a):void 0;if(!(!i&&a||!this.dndController?.handleDrop))return(0,f.asPromise)(()=>this.dndController?.handleDrop?this.dndController.handleDrop(i,n,l):void 0)}get hasResolve(){return!!this.dataProvider.resolveTreeItem}async resolveTreeItem(n,a){if(!this.dataProvider.resolveTreeItem)return;const l=this.elements.get(n);if(l){const i=this.nodes.get(l);if(i){const c=await this.dataProvider.resolveTreeItem(i.extensionItem,l,a)??i.extensionItem;return this.validateTreeItem(c),i.item.tooltip=this.getTooltip(c.tooltip),i.item.command=this.getCommand(i.disposableStore,c.command),i.item}}}resolveUnknownParentChain(n){return this.resolveParent(n).then(a=>a?this.resolveUnknownParentChain(a).then(l=>this.resolveTreeNode(a,l[l.length-1]).then(i=>(l.push(i),l))):Promise.resolve([]))}resolveParent(n){const a=this.nodes.get(n);return a?Promise.resolve(a.parent?this.elements.get(a.parent.item.handle):void 0):(0,f.asPromise)(()=>this.dataProvider.getParent(n))}resolveTreeNode(n,a){const l=this.nodes.get(n);return l?Promise.resolve(l):(0,f.asPromise)(()=>this.dataProvider.getTreeItem(n)).then(i=>this.createHandle(n,i,a,!0)).then(i=>this.getChildren(a?a.item.handle:void 0).then(()=>{const c=this.getExtensionElement(i);if(c){const _=this.nodes.get(c);if(_)return Promise.resolve(_)}throw new Error(`Cannot resolve tree item for element ${i} from extension ${this.extension.identifier.value}`)}))}getChildrenNodes(n){if(n){let a;if(typeof n=="string"){const l=this.getExtensionElement(n);a=l?this.nodes.get(l):void 0}else a=n;return a&&a.children||void 0}return this.roots}async fetchChildrenNodes(n){this.clearChildren(n);const a=new C.CancellationTokenSource(this._refreshCancellationSource.token);try{const l=n?this.nodes.get(n):void 0,i=await this.dataProvider.getChildren(n);if(a.token.isCancellationRequested)return;const c=await Promise.all((0,t.coalesce)(i||[]).map(async _=>{const S=await this.dataProvider.getTreeItem(_);return S&&!a.token.isCancellationRequested?this.createAndRegisterTreeNode(_,S,l):null}));return a.token.isCancellationRequested?void 0:(0,t.coalesce)(c)}finally{a.dispose()}}refresh(n){if(n.some(l=>!l))return this._refreshCancellationSource.dispose(!0),this._refreshCancellationSource=new C.CancellationTokenSource,this.clearAll(),this.proxy.$refresh(this.viewId);{const l=this.getHandlesToRefresh(n);if(l.length)return this.refreshHandles(l)}return Promise.resolve(void 0)}getHandlesToRefresh(n){const a=new Set,l=n.map(c=>this.nodes.get(c));for(const c of l)if(c&&!a.has(c.item.handle)){let _=c;for(;_&&_.parent&&l.findIndex(S=>_&&_.parent&&S&&S.item.handle===_.parent.item.handle)===-1;){const S=this.elements.get(_.parent.item.handle);_=S?this.nodes.get(S):void 0}_&&!_.parent&&a.add(c.item.handle)}const i=[];return a.forEach(c=>{const _=this.elements.get(c);if(_){const S=this.nodes.get(_);S&&(!S.parent||!a.has(S.parent.item.handle))&&i.push(c)}}),i}refreshHandles(n){const a={};return Promise.all(n.map(l=>this.refreshNode(l).then(i=>{i&&(a[l]=i.item)}))).then(()=>Object.keys(a).length?this.proxy.$refresh(this.viewId,a):void 0)}refreshNode(n){const a=this.getExtensionElement(n);if(a){const l=this.nodes.get(a);if(l)return this.clearChildren(a),(0,f.asPromise)(()=>this.dataProvider.getTreeItem(a)).then(i=>{if(i){const c=this.createTreeNode(a,i,l.parent);return this.updateNodeCache(a,c,l,l.parent),l.dispose(),c}return null})}return Promise.resolve(null)}createAndRegisterTreeNode(n,a,l){const i=this.createTreeNode(n,a,l);if(a.id&&this.elements.has(i.item.handle))throw new Error((0,w.localize)(0,null,a.id));return this.addNodeToCache(n,i),this.addNodeToParentCache(i,l),i}getTooltip(n){return y.MarkdownString.isMarkdownString(n)?s.MarkdownString.from(n):n}getCommand(n,a){return a?{...this.commands.toInternal(a,n),originalId:a.command}:void 0}getCheckbox(n){if(n.checkboxState===void 0)return;let a,l,i;return typeof n.checkboxState=="number"?a=n.checkboxState:(a=n.checkboxState.state,l=n.checkboxState.tooltip,i=n.checkboxState.accessibilityInformation),{isChecked:a===y.TreeItemCheckboxState.Checked,tooltip:l,accessibilityInformation:i}}validateTreeItem(n){if(!y.TreeItem.isTreeItem(n,this.extension))throw new Error(`Extension ${this.extension.identifier.value} has provided an invalid tree item.`)}createTreeNode(n,a,l){this.validateTreeItem(a);const i=new u.DisposableStore,c=this.createHandle(n,a,l),_=this.getLightIconPath(a);return{item:{handle:c,parentHandle:l?l.item.handle:void 0,label:o(a.label,this.extension),description:a.description,resourceUri:a.resourceUri,tooltip:this.getTooltip(a.tooltip),command:this.getCommand(i,a.command),contextValue:a.contextValue,icon:_,iconDark:this.getDarkIconPath(a)||_,themeIcon:this.getThemeIcon(a),collapsibleState:(0,E.isUndefinedOrNull)(a.collapsibleState)?y.TreeItemCollapsibleState.None:a.collapsibleState,accessibilityInformation:a.accessibilityInformation,checkbox:this.getCheckbox(a),payload:a.payload,childProvider:a.childProvider,type:a.type},extensionItem:a,parent:l,children:void 0,disposableStore:i,dispose(){i.dispose()}}}getThemeIcon(n){return n.iconPath instanceof y.ThemeIcon?n.iconPath:void 0}createHandle(n,{id:a,label:l,resourceUri:i},c,_){if(a)return`${P.ID_HANDLE_PREFIX}/${a}`;const S=o(l,this.extension),k=c?c.item.handle:P.LABEL_HANDLE_PREFIX;let m=S?S.label:i?(0,d.basename)(i):"";m=m.indexOf("/")!==-1?m.replace("/","//"):m;const v=this.nodes.has(n)?this.nodes.get(n).item.handle:void 0,D=this.getChildrenNodes(c)||[];let L,O=0;do{if(L=`${k}/${O}:${m}`,_||!this.elements.has(L)||v===L)break;O++}while(O<=D.length);return L}getLightIconPath(n){if(n.iconPath&&!(n.iconPath instanceof y.ThemeIcon))return typeof n.iconPath=="string"||A.URI.isUri(n.iconPath)?this.getIconPath(n.iconPath):this.getIconPath(n.iconPath.light)}getDarkIconPath(n){if(n.iconPath&&!(n.iconPath instanceof y.ThemeIcon)&&n.iconPath.dark)return this.getIconPath(n.iconPath.dark)}getIconPath(n){return A.URI.isUri(n)?n:A.URI.file(n)}addNodeToCache(n,a){this.elements.set(a.item.handle,n),this.nodes.set(n,a)}updateNodeInCache(n){const a=this.elements.get(n.item.handle);a&&this.nodes.set(a,n)}updateNodeCache(n,a,l,i){this.elements.delete(a.item.handle),this.nodes.delete(n),a.item.handle!==l.item.handle&&this.elements.delete(l.item.handle),this.addNodeToCache(n,a);const c=this.getChildrenNodes(i)||[],_=c.filter(S=>S.item.handle===l.item.handle)[0];_&&c.splice(c.indexOf(_),1,a)}addNodeToParentCache(n,a){a?(a.children||(a.children=[]),a.children.push(n),this.updateNodeInCache(a)):(this.roots||(this.roots=[]),this.roots.push(n))}clearChildren(n){if(n){const a=this.nodes.get(n);if(a){if(a.children)for(const l of a.children){const i=this.elements.get(l.item.handle);i&&this.clear(i)}a.children=void 0}}else this.clearAll()}clear(n){const a=this.nodes.get(n);if(a){if(a.children)for(const l of a.children){const i=this.elements.get(l.item.handle);i&&this.clear(i)}this.nodes.delete(n),this.elements.delete(a.item.handle),a.dispose()}}clearAll(){this.roots=void 0,this.elements.clear(),this.nodes.forEach(n=>n.dispose()),this.nodes.clear()}dispose(){this._refreshCancellationSource.dispose(),this.clearAll(),this.proxy.$disposeTree(this.viewId)}}e.ExtHostTreeView=P}),define(ye[288],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.allApiProposals=void 0,e.allApiProposals=Object.freeze({aiRelatedInformation:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts",authGetSessions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authGetSessions.d.ts",authSession:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authSession.d.ts",canonicalUriProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts",chat:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chat.d.ts",chatProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatProvider.d.ts",chatRequestAccess:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatRequestAccess.d.ts",chatSlashCommands:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatSlashCommands.d.ts",chatVariables:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatVariables.d.ts",codiconDecoration:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts",commentsDraftState:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentsDraftState.d.ts",contribCommentEditorActionsMenu:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts",contribCommentPeekContext:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts",contribCommentThreadAdditionalMenu:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts",contribEditSessions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditSessions.d.ts",contribEditorContentMenu:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts",contribLabelFormatterWorkspaceTooltip:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts",contribMenuBarHome:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts",contribMergeEditorMenus:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts",contribNotebookStaticPreloads:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts",contribRemoteHelp:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts",contribShareMenu:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribShareMenu.d.ts",contribStatusBarItems:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts",contribViewsRemote:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsRemote.d.ts",contribViewsWelcome:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts",customEditorMove:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.customEditorMove.d.ts",debugFocus:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.debugFocus.d.ts",diffCommand:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffCommand.d.ts",diffContentOptions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffContentOptions.d.ts",documentFiltersExclusive:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts",documentPaste:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.documentPaste.d.ts",dropMetadata:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.dropMetadata.d.ts",editSessionIdentityProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts",editorInsets:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorInsets.d.ts",envShellEvent:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.envShellEvent.d.ts",extensionRuntime:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionRuntime.d.ts",extensionsAny:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionsAny.d.ts",externalUriOpener:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.externalUriOpener.d.ts",fileComments:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileComments.d.ts",fileSearchProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProvider.d.ts",findTextInFiles:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFiles.d.ts",fsChunks:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fsChunks.d.ts",handleIssueUri:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.handleIssueUri.d.ts",idToken:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.idToken.d.ts",indentSize:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.indentSize.d.ts",inlineCompletionsAdditions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts",interactive:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactive.d.ts",interactiveUserActions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactiveUserActions.d.ts",interactiveWindow:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts",ipc:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.ipc.d.ts",languageConfigurationAutoClosingPairs:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageConfigurationAutoClosingPairs.d.ts",mappedEditsProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts",notebookCellExecutionState:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts",notebookCodeActions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCodeActions.d.ts",notebookControllerAffinityHidden:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts",notebookDeprecated:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookDeprecated.d.ts",notebookExecution:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookExecution.d.ts",notebookKernelSource:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookKernelSource.d.ts",notebookLiveShare:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookLiveShare.d.ts",notebookMessaging:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMessaging.d.ts",notebookMime:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMime.d.ts",portsAttributes:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.portsAttributes.d.ts",profileContentHandlers:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.profileContentHandlers.d.ts",quickDiffProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts",quickPickItemTooltip:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts",quickPickSortByLabel:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts",readonlyMessage:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.readonlyMessage.d.ts",resolvers:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.resolvers.d.ts",saveEditor:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.saveEditor.d.ts",scmActionButton:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmActionButton.d.ts",scmSelectedProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts",scmTextDocument:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmTextDocument.d.ts",scmValidation:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmValidation.d.ts",shareProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.shareProvider.d.ts",showLocal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.showLocal.d.ts",tabInputTextMerge:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts",taskPresentationGroup:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts",telemetry:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.telemetry.d.ts",terminalContextMenu:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalContextMenu.d.ts",terminalDataWriteEvent:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts",terminalDimensions:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDimensions.d.ts",terminalExecuteCommandEvent:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts",terminalQuickFixProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts",terminalSelection:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalSelection.d.ts",testCoverage:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testCoverage.d.ts",testMessageContextValue:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testMessageContextValue.d.ts",testObserver:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testObserver.d.ts",textDocumentNotebook:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textDocumentNotebook.d.ts",textSearchProvider:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts",timeline:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.timeline.d.ts",tokenInformation:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tokenInformation.d.ts",treeViewActiveItem:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts",treeViewMarkdownMessage:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts",treeViewReveal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewReveal.d.ts",tunnelFactory:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnelFactory.d.ts",tunnels:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnels.d.ts",windowActivity:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.windowActivity.d.ts",workspaceTrust:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.workspaceTrust.d.ts"})}),define(ye[289],Ce([1,0,227,8,43,132,102,38,23,288,136,138]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsRegistry=e.ExtensionsRegistryImpl=e.schema=e.ExtensionPoint=e.ExtensionPointUserDelta=e.ExtensionMessageCollector=void 0;const t=u.Registry.as(R.Extensions.JSONContribution);class s{constructor(T,n,a){this._messageHandler=T,this._extension=n,this._extensionPointId=a}_msg(T,n){this._messageHandler({type:T,message:n,extensionId:this._extension.identifier,extensionPointId:this._extensionPointId})}error(T){this._msg(d.default.Error,T)}warn(T){this._msg(d.default.Warning,T)}info(T){this._msg(d.default.Info,T)}}e.ExtensionMessageCollector=s;class g{static _toSet(T){const n=new p.ExtensionIdentifierSet;for(let a=0,l=T.length;a<l;a++)n.add(T[a].description.identifier);return n}static compute(T,n){if(!T||!T.length)return new g(n,[]);if(!n||!n.length)return new g([],T);const a=this._toSet(T),l=this._toSet(n),i=n.filter(_=>!a.has(_.description.identifier)),c=T.filter(_=>!l.has(_.description.identifier));return new g(i,c)}constructor(T,n){this.added=T,this.removed=n}}e.ExtensionPointUserDelta=g;class C{constructor(T,n){this.name=T,this.defaultExtensionKind=n,this._handler=null,this._users=null,this._delta=null}setHandler(T){if(this._handler!==null)throw new Error("Handler already set!");this._handler=T,this._handle()}acceptUsers(T){this._delta=g.compute(this._users,T),this._users=T,this._handle()}_handle(){if(!(this._handler===null||this._users===null||this._delta===null))try{this._handler(this._users,this._delta)}catch(T){(0,M.onUnexpectedError)(T)}}}e.ExtensionPoint=C;const r={type:"string",enum:["ui","workspace"],enumDescriptions:[w.localize(0,null),w.localize(1,null)]},h="vscode://schemas/vscode-extensions";e.schema={properties:{engines:{type:"object",description:w.localize(2,null),properties:{vscode:{type:"string",description:w.localize(3,null),default:"^1.22.0"}}},publisher:{description:w.localize(4,null),type:"string"},displayName:{description:w.localize(5,null),type:"string"},categories:{description:w.localize(6,null),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:p.EXTENSION_CATEGORIES},{type:"string",const:"Languages",deprecationMessage:w.localize(7,null)}]}},galleryBanner:{type:"object",description:w.localize(8,null),properties:{color:{description:w.localize(9,null),type:"string"},theme:{description:w.localize(10,null),type:"string",enum:["dark","light"]}}},contributes:{description:w.localize(11,null),type:"object",properties:{},default:{}},preview:{type:"boolean",description:w.localize(12,null)},enableProposedApi:{type:"boolean",deprecationMessage:w.localize(13,null)},enabledApiProposals:{markdownDescription:w.localize(14,null),type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(f.allApiProposals),markdownEnumDescriptions:Object.values(f.allApiProposals)}},api:{markdownDescription:w.localize(15,null),type:"string",enum:["none"],enumDescriptions:[w.localize(16,null)]},activationEvents:{description:w.localize(17,null),type:"array",items:{type:"string",defaultSnippets:[{label:"onWebviewPanel",description:w.localize(18,null),body:"onWebviewPanel:viewType"},{label:"onLanguage",description:w.localize(19,null),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:w.localize(20,null),body:"onCommand:${2:commandId}"},{label:"onDebug",description:w.localize(21,null),body:"onDebug"},{label:"onDebugInitialConfigurations",description:w.localize(22,null),body:"onDebugInitialConfigurations"},{label:"onDebugDynamicConfigurations",description:w.localize(23,null),body:"onDebugDynamicConfigurations"},{label:"onDebugResolve",description:w.localize(24,null),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:w.localize(25,null),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:w.localize(26,null),body:"workspaceContains:${4:filePattern}"},{label:"onStartupFinished",description:w.localize(27,null),body:"onStartupFinished"},{label:"onTaskType",description:w.localize(28,null),body:"onTaskType:${1:taskType}"},{label:"onFileSystem",description:w.localize(29,null),body:"onFileSystem:${1:scheme}"},{label:"onEditSession",description:w.localize(30,null),body:"onEditSession:${1:scheme}"},{label:"onSearch",description:w.localize(31,null),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:w.localize(32,null)},{label:"onUri",body:"onUri",description:w.localize(33,null)},{label:"onOpenExternalUri",body:"onOpenExternalUri",description:w.localize(34,null)},{label:"onCustomEditor",body:"onCustomEditor:${9:viewType}",description:w.localize(35,null)},{label:"onNotebook",body:"onNotebook:${1:type}",description:w.localize(36,null)},{label:"onAuthenticationRequest",body:"onAuthenticationRequest:${11:authenticationProviderId}",description:w.localize(37,null)},{label:"onRenderer",description:w.localize(38,null),body:"onRenderer:${11:rendererId}"},{label:"onTerminalProfile",body:"onTerminalProfile:${1:terminalId}",description:w.localize(39,null)},{label:"onTerminalQuickFixRequest",body:"onTerminalQuickFixRequest:${1:quickFixId}",description:w.localize(40,null)},{label:"onWalkthrough",body:"onWalkthrough:${1:walkthroughID}",description:w.localize(41,null)},{label:"*",description:w.localize(42,null),body:"*"}]}},badges:{type:"array",description:w.localize(43,null),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:w.localize(44,null)},href:{type:"string",description:w.localize(45,null)},description:{type:"string",description:w.localize(46,null)}}}},markdown:{type:"string",description:w.localize(47,null),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:w.localize(48,null),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:w.localize(49,null),type:"array",uniqueItems:!0,items:{type:"string",pattern:A.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:w.localize(50,null),type:"array",uniqueItems:!0,items:{type:"string",pattern:A.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:w.localize(51,null),type:"array",items:r,default:["workspace"],defaultSnippets:[{body:["ui"],description:w.localize(52,null)},{body:["workspace"],description:w.localize(53,null)},{body:["ui","workspace"],description:w.localize(54,null)},{body:["workspace","ui"],description:w.localize(55,null)},{body:[],description:w.localize(56,null)}]},capabilities:{description:w.localize(57,null),type:"object",properties:{virtualWorkspaces:{description:w.localize(58,null),type:["boolean","object"],defaultSnippets:[{label:"limited",body:{supported:"${1:limited}",description:"${2}"}},{label:"false",body:{supported:!1,description:"${2}"}}],default:(!0).valueOf,properties:{supported:{markdownDescription:w.localize(59,null),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[w.localize(60,null),w.localize(61,null),w.localize(62,null)]},description:{type:"string",markdownDescription:w.localize(63,null)}}},untrustedWorkspaces:{description:w.localize(64,null),type:"object",required:["supported"],defaultSnippets:[{body:{supported:"${1:limited}",description:"${2}"}}],properties:{supported:{markdownDescription:w.localize(65,null),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[w.localize(66,null),w.localize(67,null),w.localize(68,null)]},restrictedConfigurations:{description:w.localize(69,null),type:"array",items:{type:"string"}},description:{type:"string",markdownDescription:w.localize(70,null)}}}}},sponsor:{description:w.localize(71,null),type:"object",defaultSnippets:[{body:{url:"${1:https:}"}}],properties:{url:{description:w.localize(72,null),type:"string"}}},scripts:{type:"object",properties:{"vscode:prepublish":{description:w.localize(73,null),type:"string"},"vscode:uninstall":{description:w.localize(74,null),type:"string"}}},icon:{type:"string",description:w.localize(75,null)},l10n:{type:"string",description:w.localize(76,null)},pricing:{type:"string",markdownDescription:w.localize(77,null),enum:["Free","Trial"],default:"Free"}}};class o{constructor(){this._extensionPoints=new Map}registerExtensionPoint(T){if(this._extensionPoints.has(T.extensionPoint))throw new Error("Duplicate extension point: "+T.extensionPoint);const n=new C(T.extensionPoint,T.defaultExtensionKind);return this._extensionPoints.set(T.extensionPoint,n),T.activationEventsGenerator&&E.ImplicitActivationEvents.register(T.extensionPoint,T.activationEventsGenerator),e.schema.properties.contributes.properties[T.extensionPoint]=T.jsonSchema,t.registerSchema(h,e.schema),n}getExtensionPoints(){return Array.from(this._extensionPoints.values())}}e.ExtensionsRegistryImpl=o;const b={ExtensionsRegistry:"ExtensionsRegistry"};u.Registry.add(b.ExtensionsRegistry,new o),e.ExtensionsRegistry=u.Registry.as(b.ExtensionsRegistry),t.registerSchema(h,e.schema),t.registerSchema(y.productSchemaId,{properties:{extensionEnabledApiProposals:{description:w.localize(78,null),type:"object",properties:{},additionalProperties:{anyOf:[{type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(f.allApiProposals),markdownEnumDescriptions:Object.values(f.allApiProposals)}}]}}}})}),define(ye[290],Ce([1,0,224,18,24,289,45,4]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TaskDefinitionRegistry=void 0;const p={type:"object",additionalProperties:!1,properties:{type:{type:"string",description:w.localize(0,null)},required:{type:"array",items:{type:"string"}},properties:{type:"object",description:w.localize(1,null),additionalProperties:{$ref:"http://json-schema.org/draft-07/schema#"}},when:{type:"string",markdownDescription:w.localize(2,null),default:""}}};var f;(function(t){function s(g,C,r){if(!g)return;const h=M.isString(g.type)?g.type:void 0;if(!h||h.length===0){r.error(w.localize(3,null));return}const o=[];if(Array.isArray(g.required))for(const b of g.required)M.isString(b)&&o.push(b);return{extensionId:C.value,taskType:h,required:o,properties:g.properties?d.deepClone(g.properties):{},when:g.when?R.ContextKeyExpr.deserialize(g.when):void 0}}t.from=s})(f||(f={}));const y=A.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"taskDefinitions",activationEventsGenerator:(t,s)=>{for(const g of t)g.type&&s.push(`onTaskType:${g.type}`)},jsonSchema:{description:w.localize(4,null),type:"array",items:p}});class E{constructor(){this._onDefinitionsChanged=new u.Emitter,this.onDefinitionsChanged=this._onDefinitionsChanged.event,this.taskTypes=Object.create(null),this.readyPromise=new Promise((s,g)=>{y.setHandler((C,r)=>{this._schema=void 0;try{for(const h of r.removed){const o=h.value;for(const b of o)this.taskTypes&&b.type&&this.taskTypes[b.type]&&delete this.taskTypes[b.type]}for(const h of r.added){const o=h.value;for(const b of o){const P=f.from(b,h.description.identifier,h.collector);P&&(this.taskTypes[P.taskType]=P)}}(r.removed.length>0||r.added.length>0)&&this._onDefinitionsChanged.fire()}catch{}s(void 0)})})}onReady(){return this.readyPromise}get(s){return this.taskTypes[s]}all(){return Object.keys(this.taskTypes).map(s=>this.taskTypes[s])}getJsonSchema(){if(this._schema===void 0){const s=[];for(const g of this.all()){const C={type:"object",additionalProperties:!1};g.required.length>0&&(C.required=g.required.slice(0)),g.properties!==void 0?C.properties=d.deepClone(g.properties):C.properties=Object.create(null),C.properties.type={type:"string",enum:[g.taskType]},s.push(C)}this._schema={oneOf:s}}return this._schema}}e.TaskDefinitionRegistry=new E}),define(ye[291],Ce([1,0,225,18,25,24,45,290]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TaskDefinition=e.TasksSchemaProperties=e.TaskSettingId=e.KeyedTaskIdentifier=e.TaskEvent=e.TaskRunSource=e.TaskRunType=e.TaskEventKind=e.TaskSorter=e.JsonSchemaVersion=e.ExecutionEngine=e.InMemoryTask=e.ContributedTask=e.ConfiguringTask=e.CustomTask=e.CommonTask=e.RunOptions=e.RunOnOptions=e.DependsOrder=e.TaskSourceKind=e.TaskScope=e.TaskGroup=e.CommandString=e.RuntimeType=e.PresentationOptions=e.PanelKind=e.RevealProblemKind=e.RevealKind=e.CommandOptions=e.CUSTOMIZED_TASK_TYPE=e.ShellQuoting=e.TASKS_CATEGORY=e.TASK_RUNNING_STATE=e.USER_TASKS_GROUP_KEY=void 0,e.USER_TASKS_GROUP_KEY="settings",e.TASK_RUNNING_STATE=new R.RawContextKey("taskRunning",!1,w.localize(0,null)),e.TASKS_CATEGORY={value:w.localize(1,null),original:"Tasks"};var p;(function(U){U[U.Escape=1]="Escape",U[U.Strong=2]="Strong",U[U.Weak=3]="Weak"})(p||(e.ShellQuoting=p={})),e.CUSTOMIZED_TASK_TYPE="$customized",function(U){function x(X){if(!X)return U.Strong;switch(X.toLowerCase()){case"escape":return U.Escape;case"strong":return U.Strong;case"weak":return U.Weak;default:return U.Strong}}U.from=x}(p||(e.ShellQuoting=p={}));var f;(function(U){U.defaults={cwd:"${workspaceFolder}"}})(f||(e.CommandOptions=f={}));var y;(function(U){U[U.Always=1]="Always",U[U.Silent=2]="Silent",U[U.Never=3]="Never"})(y||(e.RevealKind=y={})),function(U){function x(X){switch(X.toLowerCase()){case"always":return U.Always;case"silent":return U.Silent;case"never":return U.Never;default:return U.Always}}U.fromString=x}(y||(e.RevealKind=y={}));var E;(function(U){U[U.Never=1]="Never",U[U.OnProblem=2]="OnProblem",U[U.Always=3]="Always"})(E||(e.RevealProblemKind=E={})),function(U){function x(X){switch(X.toLowerCase()){case"always":return U.Always;case"never":return U.Never;case"onproblem":return U.OnProblem;default:return U.OnProblem}}U.fromString=x}(E||(e.RevealProblemKind=E={}));var t;(function(U){U[U.Shared=1]="Shared",U[U.Dedicated=2]="Dedicated",U[U.New=3]="New"})(t||(e.PanelKind=t={})),function(U){function x(X){switch(X.toLowerCase()){case"shared":return U.Shared;case"dedicated":return U.Dedicated;case"new":return U.New;default:return U.Shared}}U.fromString=x}(t||(e.PanelKind=t={}));var s;(function(U){U.defaults={echo:!0,reveal:y.Always,revealProblems:E.Never,focus:!1,panel:t.Shared,showReuseMessage:!0,clear:!1}})(s||(e.PresentationOptions=s={}));var g;(function(U){U[U.Shell=1]="Shell",U[U.Process=2]="Process",U[U.CustomExecution=3]="CustomExecution"})(g||(e.RuntimeType=g={})),function(U){function x(K){switch(K.toLowerCase()){case"shell":return U.Shell;case"process":return U.Process;case"customExecution":return U.CustomExecution;default:return U.Process}}U.fromString=x;function X(K){switch(K){case U.Shell:return"shell";case U.Process:return"process";case U.CustomExecution:return"customExecution";default:return"process"}}U.toString=X}(g||(e.RuntimeType=g={}));var C;(function(U){function x(X){return M.isString(X)?X:X.value}U.value=x})(C||(e.CommandString=C={}));var r;(function(U){U.Clean={_id:"clean",isDefault:!1},U.Build={_id:"build",isDefault:!1},U.Rebuild={_id:"rebuild",isDefault:!1},U.Test={_id:"test",isDefault:!1};function x(K){return K===U.Clean._id||K===U.Build._id||K===U.Rebuild._id||K===U.Test._id}U.is=x;function X(K){if(K!==void 0)return M.isString(K)?x(K)?{_id:K,isDefault:!1}:void 0:K}U.from=X})(r||(e.TaskGroup=r={}));var h;(function(U){U[U.Global=1]="Global",U[U.Workspace=2]="Workspace",U[U.Folder=3]="Folder"})(h||(e.TaskScope=h={}));var o;(function(U){U.Workspace="workspace",U.Extension="extension",U.InMemory="inMemory",U.WorkspaceFile="workspaceFile",U.User="user";function x(X){switch(X){case U.User:return 2;case U.WorkspaceFile:return 5;default:return 6}}U.toConfigurationTarget=x})(o||(e.TaskSourceKind=o={}));var b;(function(U){U.parallel="parallel",U.sequence="sequence"})(b||(e.DependsOrder=b={}));var P;(function(U){U[U.default=1]="default",U[U.folderOpen=2]="folderOpen"})(P||(e.RunOnOptions=P={}));var T;(function(U){U.defaults={reevaluateOnRerun:!0,runOn:P.default,instanceLimit:1}})(T||(e.RunOptions=T={}));class n{constructor(x,X,K,pe,le,re){this._label="",this._id=x,X&&(this._label=X),K&&(this.type=K),this.runOptions=pe,this.configurationProperties=le,this._source=re}getDefinition(x){}getMapKey(){return this._id}getRecentlyUsedKey(){}getCommonTaskId(){const x={folder:this.getFolderId(),id:this._id};return JSON.stringify(x)}clone(){return this.fromObject(Object.assign({},this))}getWorkspaceFolder(){}getWorkspaceFileName(){}getTelemetryKind(){return"unknown"}matches(x,X=!1){if(x===void 0)return!1;if(M.isString(x))return x===this._label||x===this.configurationProperties.identifier||X&&x===this._id;const K=this.getDefinition(!0);return K!==void 0&&K._key===x._key}getQualifiedLabel(){const x=this.getWorkspaceFolder();return x?`${this._label} (${x.name})`:this._label}getTaskExecution(){return{id:this._id,task:this}}addTaskLoadMessages(x){this._taskLoadMessages===void 0&&(this._taskLoadMessages=[]),x&&(this._taskLoadMessages=this._taskLoadMessages.concat(x))}get taskLoadMessages(){return this._taskLoadMessages}}e.CommonTask=n;class a extends n{constructor(x,X,K,pe,le,re,q,oe){super(x,K,void 0,q,oe,X),this.command={},this._source=X,this.hasDefinedMatchers=re,le&&(this.command=le)}clone(){return new a(this._id,this._source,this._label,this.type,this.command,this.hasDefinedMatchers,this.runOptions,this.configurationProperties)}customizes(){if(this._source&&this._source.customizes)return this._source.customizes}getDefinition(x=!1){if(x&&this._source.customizes!==void 0)return this._source.customizes;{let X;switch(this.command?this.command.runtime:void 0){case g.Shell:X="shell";break;case g.Process:X="process";break;case g.CustomExecution:X="customExecution";break;case void 0:X="$composite";break;default:throw new Error("Unexpected task runtime")}return{type:X,_key:this._id,id:this._id}}}static is(x){return x instanceof a}getMapKey(){const x=this._source.config.workspaceFolder;return x?`${x.uri.toString()}|${this._id}|${this.instance}`:`${this._id}|${this.instance}`}getFolderId(){return this._source.kind===o.User?e.USER_TASKS_GROUP_KEY:this._source.config.workspaceFolder?.uri.toString()}getCommonTaskId(){return this._source.customizes?super.getCommonTaskId():this.getRecentlyUsedKey()??super.getCommonTaskId()}getRecentlyUsedKey(){const x=this.getFolderId();if(!x)return;let X=this.configurationProperties.identifier;this._source.kind!==o.Workspace&&(X+=this._source.kind);const K={type:e.CUSTOMIZED_TASK_TYPE,folder:x,id:X};return JSON.stringify(K)}getWorkspaceFolder(){return this._source.config.workspaceFolder}getWorkspaceFileName(){return this._source.config.workspace&&this._source.config.workspace.configuration?d.basename(this._source.config.workspace.configuration):void 0}getTelemetryKind(){return this._source.customizes?"workspace>extension":"workspace"}fromObject(x){return new a(x._id,x._source,x._label,x.type,x.command,x.hasDefinedMatchers,x.runOptions,x.configurationProperties)}}e.CustomTask=a;class l extends n{constructor(x,X,K,pe,le,re,q){super(x,K,pe,re,q,X),this._source=X,this.configures=le}static is(x){return x instanceof l}fromObject(x){return x}getDefinition(){return this.configures}getWorkspaceFileName(){return this._source.config.workspace&&this._source.config.workspace.configuration?d.basename(this._source.config.workspace.configuration):void 0}getWorkspaceFolder(){return this._source.config.workspaceFolder}getFolderId(){return this._source.kind===o.User?e.USER_TASKS_GROUP_KEY:this._source.config.workspaceFolder?.uri.toString()}getRecentlyUsedKey(){const x=this.getFolderId();if(!x)return;let X=this.configurationProperties.identifier;this._source.kind!==o.Workspace&&(X+=this._source.kind);const K={type:e.CUSTOMIZED_TASK_TYPE,folder:x,id:X};return JSON.stringify(K)}}e.ConfiguringTask=l;class i extends n{constructor(x,X,K,pe,le,re,q,oe,ve){super(x,K,pe,oe,ve,X),this.defines=le,this.hasDefinedMatchers=q,this.command=re,this.icon=ve.icon,this.hide=ve.hide}clone(){return new i(this._id,this._source,this._label,this.type,this.defines,this.command,this.hasDefinedMatchers,this.runOptions,this.configurationProperties)}getDefinition(){return this.defines}static is(x){return x instanceof i}getMapKey(){const x=this._source.workspaceFolder;return x?`${this._source.scope.toString()}|${x.uri.toString()}|${this._id}|${this.instance}`:`${this._source.scope.toString()}|${this._id}|${this.instance}`}getFolderId(){if(this._source.scope===3&&this._source.workspaceFolder)return this._source.workspaceFolder.uri.toString()}getRecentlyUsedKey(){const x={type:"contributed",scope:this._source.scope,id:this._id};return x.folder=this.getFolderId(),JSON.stringify(x)}getWorkspaceFolder(){return this._source.workspaceFolder}getTelemetryKind(){return"extension"}fromObject(x){return new i(x._id,x._source,x._label,x.type,x.defines,x.command,x.hasDefinedMatchers,x.runOptions,x.configurationProperties)}}e.ContributedTask=i;class c extends n{constructor(x,X,K,pe,le,re){super(x,K,pe,le,re,X),this._source=X}clone(){return new c(this._id,this._source,this._label,this.type,this.runOptions,this.configurationProperties)}static is(x){return x instanceof c}getTelemetryKind(){return"composite"}getMapKey(){return`${this._id}|${this.instance}`}getFolderId(){}fromObject(x){return new c(x._id,x._source,x._label,x.type,x.runOptions,x.configurationProperties)}}e.InMemoryTask=c;var _;(function(U){U[U.Process=1]="Process",U[U.Terminal=2]="Terminal"})(_||(e.ExecutionEngine=_={})),function(U){U._default=U.Terminal}(_||(e.ExecutionEngine=_={}));var S;(function(U){U[U.V0_1_0=1]="V0_1_0",U[U.V2_0_0=2]="V2_0_0"})(S||(e.JsonSchemaVersion=S={}));class k{constructor(x){this._order=new Map;for(let X=0;X<x.length;X++)this._order.set(x[X].uri.toString(),X)}compare(x,X){const K=x.getWorkspaceFolder(),pe=X.getWorkspaceFolder();if(K&&pe){let le=this._order.get(K.uri.toString());le=le===void 0?0:le+1;let re=this._order.get(pe.uri.toString());return re=re===void 0?0:re+1,le===re?x._label.localeCompare(X._label):le-re}else return!K&&pe?-1:K&&!pe?1:0}}e.TaskSorter=k;var m;(function(U){U.DependsOnStarted="dependsOnStarted",U.AcquiredInput="acquiredInput",U.Start="start",U.ProcessStarted="processStarted",U.Active="active",U.Inactive="inactive",U.Changed="changed",U.Terminated="terminated",U.ProcessEnded="processEnded",U.End="end"})(m||(e.TaskEventKind=m={}));var v;(function(U){U.SingleRun="singleRun",U.Background="background"})(v||(e.TaskRunType=v={}));var D;(function(U){U[U.System=0]="System",U[U.User=1]="User",U[U.FolderOpen=2]="FolderOpen",U[U.ConfigurationChange=3]="ConfigurationChange",U[U.Reconnect=4]="Reconnect"})(D||(e.TaskRunSource=D={}));var L;(function(U){function x(X,K,pe,le){if(K){const re={kind:X,taskId:K._id,taskName:K.configurationProperties.name,runType:K.configurationProperties.isBackground?"background":"singleRun",group:K.configurationProperties.group,processId:void 0,exitCode:void 0,terminalId:pe,__task:K};return X==="start"?re.resolvedVariables=le:X==="processStarted"?re.processId=le:X==="processEnded"&&(re.exitCode=le),Object.freeze(re)}else return Object.freeze({kind:"changed"})}U.create=x})(L||(e.TaskEvent=L={}));var O;(function(U){function x(K){const pe=Object.keys(K).sort();let le="";for(const re of pe){let q=K[re];q instanceof Object?q=x(q):typeof q=="string"&&(q=q.replace(/,/g,",,")),le+=re+","+q+","}return le}function X(K){const le={_key:x(K),type:K.taskType};return Object.assign(le,K),le}U.create=X})(O||(e.KeyedTaskIdentifier=O={}));var H;(function(U){U.AutoDetect="task.autoDetect",U.SaveBeforeRun="task.saveBeforeRun",U.ShowDecorations="task.showDecorations",U.ProblemMatchersNeverPrompt="task.problemMatchers.neverPrompt",U.SlowProviderWarning="task.slowProviderWarning",U.QuickOpenHistory="task.quickOpen.history",U.QuickOpenDetail="task.quickOpen.detail",U.QuickOpenSkip="task.quickOpen.skip",U.QuickOpenShowAll="task.quickOpen.showAll",U.AllowAutomaticTasks="task.allowAutomaticTasks",U.Reconnection="task.reconnection"})(H||(e.TaskSettingId=H={}));var N;(function(U){U.Tasks="tasks",U.SuppressTaskName="tasks.suppressTaskName",U.Windows="tasks.windows",U.Osx="tasks.osx",U.Linux="tasks.linux",U.ShowOutput="tasks.showOutput",U.IsShellCommand="tasks.isShellCommand",U.ServiceTestSetting="tasks.service.testSetting"})(N||(e.TasksSchemaProperties=N={}));var $;(function(U){function x(X,K){const pe=u.TaskDefinitionRegistry.get(X.type);if(pe===void 0){const oe=A.deepClone(X);return delete oe._key,O.create(oe)}const le=Object.create(null);le.type=pe.taskType;const re=new Set;pe.required.forEach(oe=>re.add(oe));const q=pe.properties;for(const oe of Object.keys(q)){const ve=X[oe];if(ve!=null)le[oe]=ve;else if(re.has(oe)){const ce=q[oe];if(ce.default!==void 0)le[oe]=A.deepClone(ce.default);else switch(ce.type){case"boolean":le[oe]=!1;break;case"number":case"integer":le[oe]=0;break;case"string":le[oe]="";break;default:K.error(w.localize(2,null,JSON.stringify(X,void 0,0),oe));return}}}return O.create(le)}U.createTaskIdentifier=x})($||(e.TaskDefinition=$={}))}),define(ye[292],Ce([1,0,8]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanceledLazyPromise=e.LazyPromise=void 0;class M{constructor(){this._actual=null,this._actualOk=null,this._actualErr=null,this._hasValue=!1,this._value=null,this._hasErr=!1,this._err=null}get[Symbol.toStringTag](){return this.toString()}_ensureActual(){return this._actual||(this._actual=new Promise((R,u)=>{this._actualOk=R,this._actualErr=u,this._hasValue&&this._actualOk(this._value),this._hasErr&&this._actualErr(this._err)})),this._actual}resolveOk(R){this._hasValue||this._hasErr||(this._hasValue=!0,this._value=R,this._actual&&this._actualOk(R))}resolveErr(R){this._hasValue||this._hasErr||(this._hasErr=!0,this._err=R,this._actual?this._actualErr(R):(0,w.onUnexpectedError)(R))}then(R,u){return this._ensureActual().then(R,u)}catch(R){return this._ensureActual().then(void 0,R)}finally(R){return this._ensureActual().finally(R)}}e.LazyPromise=M;class d extends M{constructor(){super(),this._hasErr=!0,this._err=new w.CancellationError}}e.CanceledLazyPromise=d}),define(ye[64],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SerializableObjectWithBuffers=e.getStringIdentifierForProxy=e.createProxyIdentifier=e.ProxyIdentifier=void 0;class w{static{this.count=0}constructor(p){this._proxyIdentifierBrand=void 0,this.sid=p,this.nid=++w.count}}e.ProxyIdentifier=w;const M=[];function d(u){const p=new w(u);return M[p.nid]=p,p}e.createProxyIdentifier=d;function A(u){return M[u].sid}e.getStringIdentifierForProxy=A;class R{constructor(p){this.value=p}}e.SerializableObjectWithBuffers=R}),define(ye[3],Ce([1,0,64]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SqlExtHostContext=e.SqlMainContext=e.ExtHostContext=e.MainContext=e.ExtHostTestingResource=e.ISuggestResultDtoField=e.ISuggestDataDtoField=e.IdObject=e.CandidatePortSource=e.NotebookEditorRevealType=e.CellOutputKind=e.WebviewMessageArrayBufferViewType=e.WebviewEditorCapabilities=e.TabModelOperationKind=e.TabInputKind=e.TextEditorRevealType=void 0;var M;(function(C){C[C.Default=0]="Default",C[C.InCenter=1]="InCenter",C[C.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",C[C.AtTop=3]="AtTop"})(M||(e.TextEditorRevealType=M={}));var d;(function(C){C[C.UnknownInput=0]="UnknownInput",C[C.TextInput=1]="TextInput",C[C.TextDiffInput=2]="TextDiffInput",C[C.TextMergeInput=3]="TextMergeInput",C[C.NotebookInput=4]="NotebookInput",C[C.NotebookDiffInput=5]="NotebookDiffInput",C[C.CustomEditorInput=6]="CustomEditorInput",C[C.WebviewEditorInput=7]="WebviewEditorInput",C[C.TerminalEditorInput=8]="TerminalEditorInput",C[C.InteractiveEditorInput=9]="InteractiveEditorInput"})(d||(e.TabInputKind=d={}));var A;(function(C){C[C.TAB_OPEN=0]="TAB_OPEN",C[C.TAB_CLOSE=1]="TAB_CLOSE",C[C.TAB_UPDATE=2]="TAB_UPDATE",C[C.TAB_MOVE=3]="TAB_MOVE"})(A||(e.TabModelOperationKind=A={}));var R;(function(C){C[C.Editable=0]="Editable",C[C.SupportsHotExit=1]="SupportsHotExit"})(R||(e.WebviewEditorCapabilities=R={}));var u;(function(C){C[C.Int8Array=1]="Int8Array",C[C.Uint8Array=2]="Uint8Array",C[C.Uint8ClampedArray=3]="Uint8ClampedArray",C[C.Int16Array=4]="Int16Array",C[C.Uint16Array=5]="Uint16Array",C[C.Int32Array=6]="Int32Array",C[C.Uint32Array=7]="Uint32Array",C[C.Float32Array=8]="Float32Array",C[C.Float64Array=9]="Float64Array",C[C.BigInt64Array=10]="BigInt64Array",C[C.BigUint64Array=11]="BigUint64Array"})(u||(e.WebviewMessageArrayBufferViewType=u={}));var p;(function(C){C[C.Text=1]="Text",C[C.Error=2]="Error",C[C.Rich=3]="Rich"})(p||(e.CellOutputKind=p={}));var f;(function(C){C[C.Default=0]="Default",C[C.InCenter=1]="InCenter",C[C.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",C[C.AtTop=3]="AtTop"})(f||(e.NotebookEditorRevealType=f={}));var y;(function(C){C[C.None=0]="None",C[C.Process=1]="Process",C[C.Output=2]="Output"})(y||(e.CandidatePortSource=y={}));class E{static{this._n=0}static mixin(r){return r._id=E._n++,r}}e.IdObject=E;var t;(function(C){C.label="a",C.kind="b",C.detail="c",C.documentation="d",C.sortText="e",C.filterText="f",C.preselect="g",C.insertText="h",C.insertTextRules="i",C.range="j",C.commitCharacters="k",C.additionalTextEdits="l",C.kindModifier="m",C.commandIdent="n",C.commandId="o",C.commandArguments="p"})(t||(e.ISuggestDataDtoField=t={}));var s;(function(C){C.defaultRanges="a",C.completions="b",C.isIncomplete="c",C.duration="d"})(s||(e.ISuggestResultDtoField=s={}));var g;(function(C){C[C.Workspace=0]="Workspace",C[C.TextDocument=1]="TextDocument"})(g||(e.ExtHostTestingResource=g={})),e.MainContext={MainThreadAuthentication:(0,w.createProxyIdentifier)("MainThreadAuthentication"),MainThreadBulkEdits:(0,w.createProxyIdentifier)("MainThreadBulkEdits"),MainThreadChatProvider:(0,w.createProxyIdentifier)("MainThreadChatProvider"),MainThreadChatSlashCommands:(0,w.createProxyIdentifier)("MainThreadChatSlashCommands"),MainThreadChatVariables:(0,w.createProxyIdentifier)("MainThreadChatVariables"),MainThreadClipboard:(0,w.createProxyIdentifier)("MainThreadClipboard"),MainThreadCommands:(0,w.createProxyIdentifier)("MainThreadCommands"),MainThreadComments:(0,w.createProxyIdentifier)("MainThreadComments"),MainThreadConfiguration:(0,w.createProxyIdentifier)("MainThreadConfiguration"),MainThreadConsole:(0,w.createProxyIdentifier)("MainThreadConsole"),MainThreadDebugService:(0,w.createProxyIdentifier)("MainThreadDebugService"),MainThreadDecorations:(0,w.createProxyIdentifier)("MainThreadDecorations"),MainThreadDiagnostics:(0,w.createProxyIdentifier)("MainThreadDiagnostics"),MainThreadDialogs:(0,w.createProxyIdentifier)("MainThreadDiaglogs"),MainThreadDocuments:(0,w.createProxyIdentifier)("MainThreadDocuments"),MainThreadDocumentContentProviders:(0,w.createProxyIdentifier)("MainThreadDocumentContentProviders"),MainThreadTextEditors:(0,w.createProxyIdentifier)("MainThreadTextEditors"),MainThreadEditorInsets:(0,w.createProxyIdentifier)("MainThreadEditorInsets"),MainThreadEditorTabs:(0,w.createProxyIdentifier)("MainThreadEditorTabs"),MainThreadErrors:(0,w.createProxyIdentifier)("MainThreadErrors"),MainThreadTreeViews:(0,w.createProxyIdentifier)("MainThreadTreeViews"),MainThreadDownloadService:(0,w.createProxyIdentifier)("MainThreadDownloadService"),MainThreadKeytar:(0,w.createProxyIdentifier)("MainThreadKeytar"),MainThreadLanguageFeatures:(0,w.createProxyIdentifier)("MainThreadLanguageFeatures"),MainThreadLanguages:(0,w.createProxyIdentifier)("MainThreadLanguages"),MainThreadLogger:(0,w.createProxyIdentifier)("MainThreadLogger"),MainThreadMessageService:(0,w.createProxyIdentifier)("MainThreadMessageService"),MainThreadOutputService:(0,w.createProxyIdentifier)("MainThreadOutputService"),MainThreadProgress:(0,w.createProxyIdentifier)("MainThreadProgress"),MainThreadQuickDiff:(0,w.createProxyIdentifier)("MainThreadQuickDiff"),MainThreadQuickOpen:(0,w.createProxyIdentifier)("MainThreadQuickOpen"),MainThreadStatusBar:(0,w.createProxyIdentifier)("MainThreadStatusBar"),MainThreadSecretState:(0,w.createProxyIdentifier)("MainThreadSecretState"),MainThreadStorage:(0,w.createProxyIdentifier)("MainThreadStorage"),MainThreadTelemetry:(0,w.createProxyIdentifier)("MainThreadTelemetry"),MainThreadTerminalService:(0,w.createProxyIdentifier)("MainThreadTerminalService"),MainThreadWebviews:(0,w.createProxyIdentifier)("MainThreadWebviews"),MainThreadWebviewPanels:(0,w.createProxyIdentifier)("MainThreadWebviewPanels"),MainThreadWebviewViews:(0,w.createProxyIdentifier)("MainThreadWebviewViews"),MainThreadCustomEditors:(0,w.createProxyIdentifier)("MainThreadCustomEditors"),MainThreadUrls:(0,w.createProxyIdentifier)("MainThreadUrls"),MainThreadUriOpeners:(0,w.createProxyIdentifier)("MainThreadUriOpeners"),MainThreadProfileContentHandlers:(0,w.createProxyIdentifier)("MainThreadProfileContentHandlers"),MainThreadWorkspace:(0,w.createProxyIdentifier)("MainThreadWorkspace"),MainThreadFileSystem:(0,w.createProxyIdentifier)("MainThreadFileSystem"),MainThreadExtensionService:(0,w.createProxyIdentifier)("MainThreadExtensionService"),MainThreadSCM:(0,w.createProxyIdentifier)("MainThreadSCM"),MainThreadSearch:(0,w.createProxyIdentifier)("MainThreadSearch"),MainThreadShare:(0,w.createProxyIdentifier)("MainThreadShare"),MainThreadTask:(0,w.createProxyIdentifier)("MainThreadTask"),MainThreadWindow:(0,w.createProxyIdentifier)("MainThreadWindow"),MainThreadLabelService:(0,w.createProxyIdentifier)("MainThreadLabelService"),MainThreadNotebook:(0,w.createProxyIdentifier)("MainThreadNotebook"),MainThreadNotebookDocuments:(0,w.createProxyIdentifier)("MainThreadNotebookDocumentsShape"),MainThreadNotebookEditors:(0,w.createProxyIdentifier)("MainThreadNotebookEditorsShape"),MainThreadNotebookKernels:(0,w.createProxyIdentifier)("MainThreadNotebookKernels"),MainThreadNotebookRenderers:(0,w.createProxyIdentifier)("MainThreadNotebookRenderers"),MainThreadInteractive:(0,w.createProxyIdentifier)("MainThreadInteractive"),MainThreadChat:(0,w.createProxyIdentifier)("MainThreadChat"),MainThreadInlineChat:(0,w.createProxyIdentifier)("MainThreadInlineChatShape"),MainThreadTheming:(0,w.createProxyIdentifier)("MainThreadTheming"),MainThreadTunnelService:(0,w.createProxyIdentifier)("MainThreadTunnelService"),MainThreadManagedSockets:(0,w.createProxyIdentifier)("MainThreadManagedSockets"),MainThreadTimeline:(0,w.createProxyIdentifier)("MainThreadTimeline"),MainThreadTesting:(0,w.createProxyIdentifier)("MainThreadTesting"),MainThreadLocalization:(0,w.createProxyIdentifier)("MainThreadLocalizationShape"),MainThreadAiRelatedInformation:(0,w.createProxyIdentifier)("MainThreadAiRelatedInformation"),MainThreadAiEmbeddingVector:(0,w.createProxyIdentifier)("MainThreadAiEmbeddingVector"),MainThreadIssueReporter:(0,w.createProxyIdentifier)("MainThreadIssueReporter")},e.ExtHostContext={ExtHostCommands:(0,w.createProxyIdentifier)("ExtHostCommands"),ExtHostConfiguration:(0,w.createProxyIdentifier)("ExtHostConfiguration"),ExtHostDiagnostics:(0,w.createProxyIdentifier)("ExtHostDiagnostics"),ExtHostDebugService:(0,w.createProxyIdentifier)("ExtHostDebugService"),ExtHostDecorations:(0,w.createProxyIdentifier)("ExtHostDecorations"),ExtHostDocumentsAndEditors:(0,w.createProxyIdentifier)("ExtHostDocumentsAndEditors"),ExtHostDocuments:(0,w.createProxyIdentifier)("ExtHostDocuments"),ExtHostDocumentContentProviders:(0,w.createProxyIdentifier)("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:(0,w.createProxyIdentifier)("ExtHostDocumentSaveParticipant"),ExtHostEditors:(0,w.createProxyIdentifier)("ExtHostEditors"),ExtHostTreeViews:(0,w.createProxyIdentifier)("ExtHostTreeViews"),ExtHostFileSystem:(0,w.createProxyIdentifier)("ExtHostFileSystem"),ExtHostFileSystemInfo:(0,w.createProxyIdentifier)("ExtHostFileSystemInfo"),ExtHostFileSystemEventService:(0,w.createProxyIdentifier)("ExtHostFileSystemEventService"),ExtHostLanguages:(0,w.createProxyIdentifier)("ExtHostLanguages"),ExtHostLanguageFeatures:(0,w.createProxyIdentifier)("ExtHostLanguageFeatures"),ExtHostQuickOpen:(0,w.createProxyIdentifier)("ExtHostQuickOpen"),ExtHostQuickDiff:(0,w.createProxyIdentifier)("ExtHostQuickDiff"),ExtHostStatusBar:(0,w.createProxyIdentifier)("ExtHostStatusBar"),ExtHostShare:(0,w.createProxyIdentifier)("ExtHostShare"),ExtHostExtensionService:(0,w.createProxyIdentifier)("ExtHostExtensionService"),ExtHostLogLevelServiceShape:(0,w.createProxyIdentifier)("ExtHostLogLevelServiceShape"),ExtHostTerminalService:(0,w.createProxyIdentifier)("ExtHostTerminalService"),ExtHostSCM:(0,w.createProxyIdentifier)("ExtHostSCM"),ExtHostSearch:(0,w.createProxyIdentifier)("ExtHostSearch"),ExtHostTask:(0,w.createProxyIdentifier)("ExtHostTask"),ExtHostWorkspace:(0,w.createProxyIdentifier)("ExtHostWorkspace"),ExtHostWindow:(0,w.createProxyIdentifier)("ExtHostWindow"),ExtHostWebviews:(0,w.createProxyIdentifier)("ExtHostWebviews"),ExtHostWebviewPanels:(0,w.createProxyIdentifier)("ExtHostWebviewPanels"),ExtHostCustomEditors:(0,w.createProxyIdentifier)("ExtHostCustomEditors"),ExtHostWebviewViews:(0,w.createProxyIdentifier)("ExtHostWebviewViews"),ExtHostEditorInsets:(0,w.createProxyIdentifier)("ExtHostEditorInsets"),ExtHostEditorTabs:(0,w.createProxyIdentifier)("ExtHostEditorTabs"),ExtHostProgress:(0,w.createProxyIdentifier)("ExtHostProgress"),ExtHostComments:(0,w.createProxyIdentifier)("ExtHostComments"),ExtHostSecretState:(0,w.createProxyIdentifier)("ExtHostSecretState"),ExtHostStorage:(0,w.createProxyIdentifier)("ExtHostStorage"),ExtHostUrls:(0,w.createProxyIdentifier)("ExtHostUrls"),ExtHostUriOpeners:(0,w.createProxyIdentifier)("ExtHostUriOpeners"),ExtHostProfileContentHandlers:(0,w.createProxyIdentifier)("ExtHostProfileContentHandlers"),ExtHostOutputService:(0,w.createProxyIdentifier)("ExtHostOutputService"),ExtHosLabelService:(0,w.createProxyIdentifier)("ExtHostLabelService"),ExtHostNotebook:(0,w.createProxyIdentifier)("ExtHostNotebook"),ExtHostNotebookDocuments:(0,w.createProxyIdentifier)("ExtHostNotebookDocuments"),ExtHostNotebookEditors:(0,w.createProxyIdentifier)("ExtHostNotebookEditors"),ExtHostNotebookKernels:(0,w.createProxyIdentifier)("ExtHostNotebookKernels"),ExtHostNotebookRenderers:(0,w.createProxyIdentifier)("ExtHostNotebookRenderers"),ExtHostNotebookDocumentSaveParticipant:(0,w.createProxyIdentifier)("ExtHostNotebookDocumentSaveParticipant"),ExtHostInteractive:(0,w.createProxyIdentifier)("ExtHostInteractive"),ExtHostInlineChat:(0,w.createProxyIdentifier)("ExtHostInlineChatShape"),ExtHostChat:(0,w.createProxyIdentifier)("ExtHostChat"),ExtHostChatSlashCommands:(0,w.createProxyIdentifier)("ExtHostChatSlashCommands"),ExtHostChatVariables:(0,w.createProxyIdentifier)("ExtHostChatVariables"),ExtHostChatProvider:(0,w.createProxyIdentifier)("ExtHostChatProvider"),ExtHostAiRelatedInformation:(0,w.createProxyIdentifier)("ExtHostAiRelatedInformation"),ExtHostAiEmbeddingVector:(0,w.createProxyIdentifier)("ExtHostAiEmbeddingVector"),ExtHostTheming:(0,w.createProxyIdentifier)("ExtHostTheming"),ExtHostTunnelService:(0,w.createProxyIdentifier)("ExtHostTunnelService"),ExtHostManagedSockets:(0,w.createProxyIdentifier)("ExtHostManagedSockets"),ExtHostAuthentication:(0,w.createProxyIdentifier)("ExtHostAuthentication"),ExtHostTimeline:(0,w.createProxyIdentifier)("ExtHostTimeline"),ExtHostTesting:(0,w.createProxyIdentifier)("ExtHostTesting"),ExtHostTelemetry:(0,w.createProxyIdentifier)("ExtHostTelemetry"),ExtHostLocalization:(0,w.createProxyIdentifier)("ExtHostLocalization"),ExtHostIssueReporter:(0,w.createProxyIdentifier)("ExtHostIssueReporter")},e.SqlMainContext={MainThreadAccountManagement:(0,w.createProxyIdentifier)("MainThreadAccountManagement"),MainThreadAzureAccount:(0,w.createProxyIdentifier)("MainThreadAzureAccount"),MainThreadConnectionManagement:(0,w.createProxyIdentifier)("MainThreadConnectionManagement"),MainThreadCredentialManagement:(0,w.createProxyIdentifier)("MainThreadCredentialManagement"),MainThreadDataProtocol:(0,w.createProxyIdentifier)("MainThreadDataProtocol"),MainThreadObjectExplorer:(0,w.createProxyIdentifier)("MainThreadObjectExplorer"),MainThreadBackgroundTaskManagement:(0,w.createProxyIdentifier)("MainThreadBackgroundTaskManagement"),MainThreadResourceProvider:(0,w.createProxyIdentifier)("MainThreadResourceProvider"),MainThreadErrorDiagnostics:(0,w.createProxyIdentifier)("MainThreadErrorDiagnostics"),MainThreadModalDialog:(0,w.createProxyIdentifier)("MainThreadModalDialog"),MainThreadTasks:(0,w.createProxyIdentifier)("MainThreadTasks"),MainThreadDashboardWebview:(0,w.createProxyIdentifier)("MainThreadDashboardWebview"),MainThreadModelView:(0,w.createProxyIdentifier)("MainThreadModelView"),MainThreadDashboard:(0,w.createProxyIdentifier)("MainThreadDashboard"),MainThreadModelViewDialog:(0,w.createProxyIdentifier)("MainThreadModelViewDialog"),MainThreadQueryEditor:(0,w.createProxyIdentifier)("MainThreadQueryEditor"),MainThreadNotebook:(0,w.createProxyIdentifier)("MainThreadNotebook"),MainThreadNotebookDocumentsAndEditors:(0,w.createProxyIdentifier)("MainThreadNotebookDocumentsAndEditors"),MainThreadExtensionManagement:(0,w.createProxyIdentifier)("MainThreadExtensionManagement"),MainThreadWorkspace:(0,w.createProxyIdentifier)("MainThreadWorkspace"),MainThreadAzureBlob:(0,w.createProxyIdentifier)("MainThreadAzureBlob"),MainThreadPerf:(0,w.createProxyIdentifier)("MainThreadPerf"),MainThreadWindow:(0,w.createProxyIdentifier)("MainThreadWindow")},e.SqlExtHostContext={ExtHostAccountManagement:(0,w.createProxyIdentifier)("ExtHostAccountManagement"),ExtHostAzureAccount:(0,w.createProxyIdentifier)("ExtHostAzureAccount"),ExtHostConnectionManagement:(0,w.createProxyIdentifier)("ExtHostConnectionManagement"),ExtHostCredentialManagement:(0,w.createProxyIdentifier)("ExtHostCredentialManagement"),ExtHostDataProtocol:(0,w.createProxyIdentifier)("ExtHostDataProtocol"),ExtHostObjectExplorer:(0,w.createProxyIdentifier)("ExtHostObjectExplorer"),ExtHostResourceProvider:(0,w.createProxyIdentifier)("ExtHostResourceProvider"),ExtHostErrorDiagnostics:(0,w.createProxyIdentifier)("ExtHostErrorDiagnostics"),ExtHostModalDialogs:(0,w.createProxyIdentifier)("ExtHostModalDialogs"),ExtHostTasks:(0,w.createProxyIdentifier)("ExtHostTasks"),ExtHostBackgroundTaskManagement:(0,w.createProxyIdentifier)("ExtHostBackgroundTaskManagement"),ExtHostDashboardWebviews:(0,w.createProxyIdentifier)("ExtHostDashboardWebviews"),ExtHostModelView:(0,w.createProxyIdentifier)("ExtHostModelView"),ExtHostModelViewTreeViews:(0,w.createProxyIdentifier)("ExtHostModelViewTreeViews"),ExtHostDashboard:(0,w.createProxyIdentifier)("ExtHostDashboard"),ExtHostModelViewDialog:(0,w.createProxyIdentifier)("ExtHostModelViewDialog"),ExtHostQueryEditor:(0,w.createProxyIdentifier)("ExtHostQueryEditor"),ExtHostNotebook:(0,w.createProxyIdentifier)("ExtHostNotebook"),ExtHostNotebookDocumentsAndEditors:(0,w.createProxyIdentifier)("ExtHostNotebookDocumentsAndEditors"),ExtHostExtensionManagement:(0,w.createProxyIdentifier)("ExtHostExtensionManagement"),ExtHostWorkspace:(0,w.createProxyIdentifier)("ExtHostWorkspace"),ExtHostWindow:(0,w.createProxyIdentifier)("ExtHostWindow"),ExtHostAzureBlob:(0,w.createProxyIdentifier)("ExtHostAzureBlob"),ExtHostPerf:(0,w.createProxyIdentifier)("ExtHostPerf")}}),define(ye[293],Ce([1,0,7,40,46,4,41,3]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostAccountManagement=void 0;class p extends M.ExtHostAccountManagementShape{constructor(y){super(),this._handlePool=0,this._providers={},this._onDidChangeAccounts=new A.Emitter,this._proxy=y.getProxy(u.SqlMainContext.MainThreadAccountManagement)}$clear(y,E){return this._withProvider(y,t=>t.clear(E))}$initialize(y,E){return this._withProvider(y,t=>t.initialize(E))}$prompt(y){return this._withProvider(y,E=>E.prompt())}$refresh(y,E){return this._withProvider(y,t=>t.refresh(E))}$autoOAuthCancelled(y){return this._withProvider(y,E=>E.autoOAuthCancelled())}$beginAutoOAuthDeviceCode(y,E,t,s,g){return this._proxy.$beginAutoOAuthDeviceCode(y,E,t,s,g)}$endAutoOAuthDeviceCode(){this._proxy.$endAutoOAuthDeviceCode()}$accountUpdated(y){this._proxy.$accountUpdated(y)}async $getAllAccounts(){return(await this.getAllProvidersAndAccounts()).map(E=>E.account)}async getAllProvidersAndAccounts(){if(Object.keys(this._providers).length===0)throw new Error("No account providers registered.");const y=[],E=[];for(const t in this._providers){const s=parseInt(t),g=this._providers[s];E.push(this._proxy.$getAccountsForProvider(g.metadata.id).then(C=>{y.push(...C.map(r=>({provider:g.provider,account:r})))}))}return await Promise.all(E),y}async $getSecurityToken(y,E=d.AzureResource.ResourceManagement){const s=(await this.getAllProvidersAndAccounts()).find(g=>g.account.key.accountId===y.key.accountId);if(s)return s.provider.getSecurityToken(y,E);throw new Error(`Account ${y.key.accountId} not found.`)}async $getAccountSecurityToken(y,E,t=d.AzureResource.ResourceManagement){const g=(await this.getAllProvidersAndAccounts()).find(C=>C.account.key.accountId===y.key.accountId);if(g)return await g.provider.getAccountSecurityToken(y,E,t);throw Error(`Account ${y.key.accountId} not found.`)}get onDidChangeAccounts(){return this._onDidChangeAccounts.event}async $accountsChanged(y,E){return this._onDidChangeAccounts.fire({accounts:E})}$registerAccountProvider(y,E){let t=this;if((0,R.values)(this._providers).findIndex(C=>C.metadata.id===y.id)>=0)throw new Error(`Account Provider with ID '${y.id}' has already been registered`);let g=this._nextHandle();return this._providers[g]={metadata:y,provider:E},this._proxy.$registerAccountProvider(y,g),new w.Disposable(()=>{delete t._providers[g],t._proxy.$unregisterAccountProvider(g)})}getProviderCount(){return Object.keys(this._providers).length}_nextHandle(){return this._handlePool++}_withProvider(y,E){let t=this._providers[y];return t===void 0?Promise.reject(new Error(`Provider ${y} not found.`)):E(t.provider)}}e.ExtHostAccountManagement=p}),define(ye[294],Ce([1,0,4,29,3]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostBackgroundTaskManagement=e.ExtBackgroundOperation=e.TaskStatus=void 0;var A;(function(p){p[p.NotStarted=0]="NotStarted",p[p.InProgress=1]="InProgress",p[p.Succeeded=2]="Succeeded",p[p.SucceededWithWarning=3]="SucceededWithWarning",p[p.Failed=4]="Failed",p[p.Canceled=5]="Canceled",p[p.Canceling=6]="Canceling"})(A||(e.TaskStatus=A={}));class R{constructor(f,y){this._id=f,this._onCanceled=new w.Emitter,this._proxy=y.getProxy(d.SqlMainContext.MainThreadBackgroundTaskManagement)}updateStatus(f,y){this._proxy.$updateTask({message:y,status:f,taskId:this.id})}get onCanceled(){return this._onCanceled.event}cancel(){this._onCanceled.fire()}get id(){return this._id}}e.ExtBackgroundOperation=R;class u{constructor(f){this._handlers=new Map,this._operations=new Map,this._proxy=f.getProxy(d.SqlMainContext.MainThreadBackgroundTaskManagement),this._mainContext=f}$onTaskRegistered(f){let y=new R(f,this._mainContext);this._operations.set(f,y);let E=this._handlers.get(f);E&&E.operation(y)}$onTaskCanceled(f){let y=this._operations.get(f);y&&y.cancel()}$registerTask(f){let y=f.operationId||`OperationId${(0,M.generateUuid)()}`;if(this._handlers.has(y))throw new Error(`operation '${y}' already exists`);this._handlers.set(y,f);let E={databaseName:void 0,serverName:void 0,description:f.description,isCancelable:f.isCancelable,name:f.displayName,providerName:void 0,taskExecutionMode:0,taskId:y,status:A.NotStarted,connection:f.connection};this._proxy.$registerTask(E)}$removeTask(f){this._handlers.has(f)&&this._handlers.delete(f)}}e.ExtHostBackgroundTaskManagement=u}),define(ye[295],Ce([1,0,40,7,3]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostConnectionManagement=void 0;class A extends w.ExtHostConnectionManagementShape{constructor(u){super(),this._nextListenerHandle=0,this._connectionListeners=new Map,this._proxy=u.getProxy(d.SqlMainContext.MainThreadConnectionManagement)}$onConnectionEvent(u,p,f,y){let E=this._connectionListeners[u];E&&E.onConnectionEvent(p,f,y)}$registerConnectionEventListener(u){const p=this._nextListenerHandle++;return this._connectionListeners[p]=u,this._proxy.$registerConnectionEventListener(p),new M.Disposable(()=>{this._connectionListeners.delete(p),this._proxy.$unregisterConnectionEventListener(p)})}$getCurrentConnection(){return this._proxy.$getCurrentConnectionProfile()}$getConnections(u){return this._proxy.$getConnections(u)}$getConnection(u){return this._proxy.$getConnection(u)}$getActiveConnections(){return this._proxy.$getActiveConnections()}$getSqlOpsCurrentConnection(){return this._proxy.$getCurrentConnection()}$getCredentials(u){return this._proxy.$getCredentials(u)}$getServerInfo(u){return this._proxy.$getServerInfo(u)}$openConnectionDialog(u,p,f){return this._proxy.$openConnectionDialog(u,p,f)}$openChangePasswordDialog(u){return this._proxy.$openChangePasswordDialog(u)}$getNonDefaultOptions(u){return this._proxy.$getNonDefaultOptions(u)}$listDatabases(u){return this._proxy.$listDatabases(u)}$getConnectionString(u,p){return this._proxy.$getConnectionString(u,p)}$getUriForConnection(u){return this._proxy.$getUriForConnection(u)}$connect(u,p=!0,f=!0){return this._proxy.$connect(u,p,f)}}e.ExtHostConnectionManagement=A}),define(ye[296],Ce([1,0,40,7,3]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostCredentialManagement=void 0;class A{constructor(p){this.provider=p}saveCredential(p,f){return this.provider.saveCredential(p,f)}readCredential(p){return this.provider.readCredential(p)}deleteCredential(p){return this.provider.deleteCredential(p)}}class R extends w.ExtHostCredentialManagementShape{constructor(p){super(),this._adapter=Object.create(null),this._handlePool=0;let f=this;this._proxy=p.getProxy(d.SqlMainContext.MainThreadCredentialManagement),this._registrationPromise=new Promise(y=>{f._registrationPromiseResolve=y})}$registerCredentialProvider(p){return p.handle=this._nextHandle(),this._adapter[p.handle]=new A(p),this._proxy.$registerCredentialProvider(p.handle),this._registrationPromiseResolve(),this._createDisposable(p.handle)}$getCredentialProvider(p){let f=this;return p?this._registrationPromise.then(()=>f._withAdapter(0,A,y=>f._createNamespacedCredentialProvider(p,y))):Promise.reject(new Error("A namespace must be provided when retrieving a credential provider"))}$saveCredential(p,f){return this._withAdapter(0,A,y=>y.saveCredential(p,f))}$readCredential(p){return this._withAdapter(0,A,f=>f.readCredential(p))}$deleteCredential(p){return this._withAdapter(0,A,f=>f.deleteCredential(p))}getProviderCount(){return Object.keys(this._adapter).length}static _getNamespacedCredentialId(p,f){return`${p}|${f}`}_createNamespacedCredentialProvider(p,f){let y={handle:f.provider.handle,deleteCredential:E=>{let t=R._getNamespacedCredentialId(p,E);return f.provider.deleteCredential(t)},readCredential:E=>{let t=R._getNamespacedCredentialId(p,E);return f.provider.readCredential(t)},saveCredential:(E,t)=>{let s=R._getNamespacedCredentialId(p,E);return f.provider.saveCredential(s,t)}};return Promise.resolve(y)}_createDisposable(p){return new M.Disposable(()=>{delete this._adapter[p],this._proxy.$unregisterCredentialProvider(p)})}_nextHandle(){return this._handlePool++}_withAdapter(p,f,y){let E=this._adapter[p];return E instanceof f?y(E):Promise.reject(new Error("no adapter found"))}}e.ExtHostCredentialManagement=R}),define(ye[297],Ce([1,0,4,24,3]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDashboardWebviews=void 0;class A{constructor(p,f,y,E){this._proxy=p,this._handle=f,this._connection=y,this._serverInfo=E,this.onMessageEmitter=new w.Emitter,this.onClosedEmitter=new w.Emitter}postMessage(p){return this._proxy.$sendMessage(this._handle,p)}get onMessage(){return this.onMessageEmitter.event}get onClosed(){return this.onClosedEmitter.event}get connection(){return(0,M.deepClone)(this._connection)}get serverInfo(){return(0,M.deepClone)(this._serverInfo)}get html(){return this._html}set html(p){this._html!==p&&(this._html=p,this._proxy.$setHtml(this._handle,p))}}class R{constructor(p){this._webviews=new Map,this._handlers=new Map,this._proxy=p.getProxy(d.SqlMainContext.MainThreadDashboardWebview)}$onMessage(p,f){this._webviews.get(p).onMessageEmitter.fire(f)}$onClosed(p){this._webviews.get(p).onClosedEmitter.fire(void 0),this._webviews.delete(p)}$registerProvider(p,f){this._handlers.set(p,f),this._proxy.$registerProvider(p)}$registerWidget(p,f,y,E){let t=new A(this._proxy,p,y,E);this._webviews.set(p,t),this._handlers.get(f)(t)}}e.ExtHostDashboardWebviews=R}),define(ye[298],Ce([1,0,4,7,40,46,2,13,155,3]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDataProtocol=void 0;class y extends d.ExtHostDataProtocolShape{static{this._handlePool=0}constructor(t,s){super(),this.uriTransformer=s,this._onDidChangeLanguageFlavor=new w.Emitter,this.onDidChangeLanguageFlavor=this._onDidChangeLanguageFlavor.event,this._adapter=new Map,this._providersByType=new Map,this.messageRunner=new u.RunOnceScheduler(()=>this.sendMessages(),1e3),this.queuedMessages=new Map,this._proxy=t.getProxy(f.SqlMainContext.MainThreadDataProtocol),this._perfProxy=t.getProxy(f.SqlMainContext.MainThreadPerf)}_getTransformedUri(t,s){let g=R.URI.parse(encodeURI(t));return R.URI.from(s(g)).toString(!0)}_createDisposable(t){return new M.Disposable(()=>{this._adapter.delete(t),this._proxy.$unregisterProvider(t)})}_nextHandle(){return y._handlePool++}_resolveProvider(t){let s=this._adapter.get(t);if(s)return s;throw new Error(`Unfound provider ${t}`)}registerProvider(t,s){t.handle=this._nextHandle(),this._adapter.set(t.handle,t);let g=this._providersByType.get(s);return g?g.push(t):g=[t],this._providersByType.set(s,g),this._createDisposable(t.handle)}getProvider(t,s){let g=this._providersByType.get(s);if(g)return g.find(C=>C.providerId===t)}getProvidersByType(t){return this._providersByType.get(t)||[]}$registerConnectionProvider(t){let s=this.registerProvider(t,A.DataProviderType.ConnectionProvider);return this._proxy.$registerConnectionProvider(t.providerId,t.handle),s}$registerBackupProvider(t){let s=this.registerProvider(t,A.DataProviderType.BackupProvider);return this._proxy.$registerBackupProvider(t.providerId,t.handle),s}$registerRestoreProvider(t){let s=this.registerProvider(t,A.DataProviderType.RestoreProvider);return this._proxy.$registerRestoreProvider(t.providerId,t.handle),s}$registerScriptingProvider(t){let s=this.registerProvider(t,A.DataProviderType.ScriptingProvider);return this._proxy.$registerScriptingProvider(t.providerId,t.handle),s}$registerQueryProvider(t){let s=this.registerProvider(t,A.DataProviderType.QueryProvider);return this._proxy.$registerQueryProvider(t.providerId,t.handle),s}$registerMetadataProvider(t){let s=this.registerProvider(t,A.DataProviderType.MetadataProvider);return this._proxy.$registerMetadataProvider(t.providerId,t.handle),s}$registerTaskServicesProvider(t){let s=this.registerProvider(t,A.DataProviderType.TaskServicesProvider);return this._proxy.$registerTaskServicesProvider(t.providerId,t.handle),s}$registerFileBrowserProvider(t){let s=this.registerProvider(t,A.DataProviderType.FileBrowserProvider);return this._proxy.$registerFileBrowserProvider(t.providerId,t.handle),s}$registerObjectExplorerProvider(t){let s=this.registerProvider(t,A.DataProviderType.ObjectExplorerProvider);return this._proxy.$registerObjectExplorerProvider(t.providerId,t.handle),s}$registerObjectExplorerNodeProvider(t){let s=this.registerProvider(t,A.DataProviderType.ObjectExplorerNodeProvider);return this._proxy.$registerObjectExplorerNodeProvider(t.providerId,t.supportedProviderId,t.group,t.handle),s}$registerIconProvider(t){let s=this.registerProvider(t,A.DataProviderType.IconProvider);return this._proxy.$registerIconProvider(t.providerId,t.handle),s}$registerProfilerProvider(t){let s=this.registerProvider(t,A.DataProviderType.ProfilerProvider);return this._proxy.$registerProfilerProvider(t.providerId,t.handle),s}$registerAdminServicesProvider(t){let s=this.registerProvider(t,A.DataProviderType.AdminServicesProvider);return this._proxy.$registerAdminServicesProvider(t.providerId,t.handle),s}$registerAgentServiceProvider(t){let s=this.registerProvider(t,A.DataProviderType.AgentServicesProvider);return this._proxy.$registerAgentServicesProvider(t.providerId,t.handle),s}$registerSqlAssessmentServiceProvider(t){let s=this.registerProvider(t,A.DataProviderType.SqlAssessmentServicesProvider);return this._proxy.$registerSqlAssessmentServicesProvider(t.providerId,t.handle),s}$registerDataGridProvider(t){let s=this.registerProvider(t,A.DataProviderType.DataGridProvider);return this._proxy.$registerDataGridProvider(t.providerId,t.title,t.handle),s}$registerCapabilitiesServiceProvider(t){let s=this.registerProvider(t,A.DataProviderType.CapabilitiesProvider);return this._proxy.$registerCapabilitiesServiceProvider(t.providerId,t.handle),s}$registerSerializationProvider(t){let s=this.registerProvider(t,A.DataProviderType.QueryProvider);return this._proxy.$registerSerializationProvider(t.providerId,t.handle),s}$registerTableDesignerProvider(t){let s=this.registerProvider(t,A.DataProviderType.TableDesignerProvider);return this._proxy.$registerTableDesignerProvider(t.providerId,t.handle),s}$registerExecutionPlanProvider(t){let s=this.registerProvider(t,A.DataProviderType.ExecutionPlanProvider);return this._proxy.$registerExecutionPlanProvider(t.providerId,t.handle),s}$registerServerContextualizationProvider(t){let s=this.registerProvider(t,A.DataProviderType.ServerContextualizationProvider);return this._proxy.$registerServerContextualizationProvider(t.providerId,t.handle),s}$getServerCapabilities(t,s){return this._resolveProvider(t).getServerCapabilities(s)}$connect(t,s,g){return this.uriTransformer&&(s=this._getTransformedUri(s,this.uriTransformer.transformIncoming)),this._resolveProvider(t).connect(s,g)}$disconnect(t,s){return this._resolveProvider(t).disconnect(s)}$changePassword(t,s,g,C){return this.uriTransformer&&(s=this._getTransformedUri(s,this.uriTransformer.transformIncoming)),this._resolveProvider(t).changePassword(s,g,C)}$cancelConnect(t,s){return this._resolveProvider(t).cancelConnect(s)}$changeDatabase(t,s,g){return this._resolveProvider(t).changeDatabase(s,g)}$listDatabases(t,s){return this._resolveProvider(t).listDatabases(s)}$getConnectionString(t,s,g){return this._resolveProvider(t).getConnectionString(s,g)}$buildConnectionInfo(t,s){let g=this._resolveProvider(t);return g.buildConnectionInfo?g.buildConnectionInfo(s):Promise.resolve(void 0)}$rebuildIntelliSenseCache(t,s){return this._resolveProvider(t).rebuildIntelliSenseCache(s)}$onConnectComplete(t,s){this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformOutgoing)),this._proxy.$onConnectionComplete(t,s)}$onIntelliSenseCacheComplete(t,s){this._proxy.$onIntelliSenseCacheComplete(t,s)}$onConnectionChanged(t,s){this._proxy.$onConnectionChangeNotification(t,s)}$languageFlavorChanged(t){this._onDidChangeLanguageFlavor.fire(t)}$cancelQuery(t,s){return this._resolveProvider(t).cancelQuery(s)}$runQuery(t,s,g,C){return this.uriTransformer&&(s=this._getTransformedUri(s,this.uriTransformer.transformIncoming)),this._perfProxy.$mark(`sql/query/${s}/ext_$runQuery`),this._resolveProvider(t).runQuery(s,g,C)}$runQueryStatement(t,s,g,C){return this._perfProxy.$mark(`sql/query/${s}/ext_$runQueryStatement`),this._resolveProvider(t).runQueryStatement(s,g,C)}$runQueryString(t,s,g){return this._perfProxy.$mark(`sql/query/${s}/ext_$runQueryString`),this._resolveProvider(t).runQueryString(s,g)}$runQueryAndReturn(t,s,g){return this._perfProxy.$mark(`sql/query/${s}/ext_$runQueryAndReturn`),this._resolveProvider(t).runQueryAndReturn(s,g)}$setQueryExecutionOptions(t,s,g){return this._resolveProvider(t).setQueryExecutionOptions?this._resolveProvider(t).setQueryExecutionOptions(s,g):new Promise(C=>C())}$connectWithProfile(t,s,g){return new Promise(C=>C())}$parseSyntax(t,s,g){return this._resolveProvider(t).parseSyntax(s,g)}$getQueryRows(t,s){return this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformIncoming)),this._resolveProvider(t).getQueryRows(s)}$disposeQuery(t,s){return this.uriTransformer&&(s=this._getTransformedUri(s,this.uriTransformer.transformOutgoing)),this._resolveProvider(t).disposeQuery(s)}$connectionUriChanged(t,s,g){return this.uriTransformer&&(s=this._getTransformedUri(s,this.uriTransformer.transformOutgoing),g=this._getTransformedUri(g,this.uriTransformer.transformOutgoing)),this._resolveProvider(t).connectionUriChanged(s,g)}$onQueryComplete(t,s){this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformOutgoing)),this._perfProxy.$mark(`sql/query/${s.ownerUri}/ext_$onQueryComplete`),this.messageRunner.isScheduled()&&(this.messageRunner.cancel(),this.sendMessages()),this._proxy.$onQueryComplete(t,s)}$onBatchStart(t,s){this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformOutgoing)),this._proxy.$onBatchStart(t,s)}$onBatchComplete(t,s){this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformOutgoing)),this.messageRunner.cancel(),this.sendMessages(),this._proxy.$onBatchComplete(t,s)}$onResultSetAvailable(t,s){this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformOutgoing)),this._proxy.$onResultSetAvailable(t,s)}$onResultSetUpdated(t,s){this.uriTransformer&&(s.ownerUri=this._getTransformedUri(s.ownerUri,this.uriTransformer.transformOutgoing)),this._proxy.$onResultSetUpdated(t,s)}$onQueryMessage(t){this.uriTransformer&&(t.ownerUri=this._getTransformedUri(t.ownerUri,this.uriTransformer.transformOutgoing)),this.queuedMessages.has(t.ownerUri)||this.queuedMessages.set(t.ownerUri,[]),this.queuedMessages.get(t.ownerUri).push(t),this.messageRunner.isScheduled()||this.messageRunner.schedule()}sendMessages(){const t=(0,p.mapToSerializable)(this.queuedMessages);this.queuedMessages.clear(),this._proxy.$onQueryMessage(t)}$saveResults(t,s){return this._resolveProvider(t).saveResults(s)}$copyResults(t,s){const g=this._resolveProvider(t);if(g.copyResults)return g.copyResults(s);throw new Error("copyResults() is not implemented by the provider")}$commitEdit(t,s){return this._resolveProvider(t).commitEdit(s)}$createRow(t,s){return this._resolveProvider(t).createRow(s)}$deleteRow(t,s,g){return this._resolveProvider(t).deleteRow(s,g)}$disposeEdit(t,s){return this._resolveProvider(t).disposeEdit(s)}$initializeEdit(t,s,g,C,r,h,o){return this._resolveProvider(t).initializeEdit(s,g,C,r,h,o)}$revertCell(t,s,g,C){return this._resolveProvider(t).revertCell(s,g,C)}$revertRow(t,s,g){return this._resolveProvider(t).revertRow(s,g)}$updateCell(t,s,g,C,r){return this._resolveProvider(t).updateCell(s,g,C,r)}$getEditRows(t,s){return this._resolveProvider(t).getEditRows(s)}$onEditSessionReady(t,s,g,C){this._proxy.$onEditSessionReady(t,s,g,C)}$getConnectionIconId(t,s,g){return this._resolveProvider(t).getConnectionIconId(s,g)}$getMetadata(t,s){return this._resolveProvider(t).getMetadata(s)}$getDatabases(t,s){return this._resolveProvider(t).getDatabases(s)}$getTableInfo(t,s,g){return this._resolveProvider(t).getTableInfo(s,g)}$getViewInfo(t,s,g){return this._resolveProvider(t).getViewInfo(s,g)}$createObjectExplorerSession(t,s){return this._resolveProvider(t).createNewSession(s)}$createObjectExplorerNodeProviderSession(t,s){return this._resolveProvider(t).handleSessionOpen(s)}$expandObjectExplorerNode(t,s){return this._resolveProvider(t).expandNode(s)}$refreshObjectExplorerNode(t,s){return this._resolveProvider(t).refreshNode(s)}$closeObjectExplorerSession(t,s){return this._resolveProvider(t).closeSession(s)}$handleSessionClose(t,s){return this._resolveProvider(t).handleSessionClose(s)}$findNodes(t,s){return this._resolveProvider(t).findNodes(s)}$onObjectExplorerSessionCreated(t,s){this._proxy.$onObjectExplorerSessionCreated(t,s)}$onObjectExplorerSessionDisconnected(t,s){this._proxy.$onObjectExplorerSessionDisconnected(t,s)}$onObjectExplorerNodeExpanded(t,s){this._proxy.$onObjectExplorerNodeExpanded(t,s)}$getAllTasks(t,s){return this._resolveProvider(t).getAllTasks(s)}$cancelTask(t,s){return this._resolveProvider(t).cancelTask(s)}$onTaskStatusChanged(t,s){this._proxy.$onTaskStatusChanged(t,s)}$onTaskCreated(t,s){this._proxy.$onTaskCreated(t,s)}$scriptAsOperation(t,s,g,C,r){return this._resolveProvider(t).scriptAsOperation(s,g,C,r)}$onScriptingComplete(t,s){this._proxy.$onScriptingComplete(t,s)}$createDatabase(t,s,g){return this._resolveProvider(t).createDatabase(s,g)}$getDefaultDatabaseInfo(t,s){return this._resolveProvider(t).getDefaultDatabaseInfo(s)}$getDatabaseInfo(t,s){return this._resolveProvider(t).getDatabaseInfo(s)}$createLogin(t,s,g){return this._resolveProvider(t).createLogin(s,g)}$backup(t,s,g,C){return this._resolveProvider(t).backup(s,g,C)}$getBackupConfigInfo(t,s){return this._resolveProvider(t).getBackupConfigInfo(s)}$restore(t,s,g){return this._resolveProvider(t).restore(s,g)}$getRestorePlan(t,s,g){return this._resolveProvider(t).getRestorePlan(s,g)}$cancelRestorePlan(t,s,g){return this._resolveProvider(t).cancelRestorePlan(s,g)}$getRestoreConfigInfo(t,s){return this._resolveProvider(t).getRestoreConfigInfo(s)}$openFileBrowser(t,s,g,C,r,h){return this._resolveProvider(t).openFileBrowser(s,g,C,r,h)}$onFileBrowserOpened(t,s){this._proxy.$onFileBrowserOpened(t,s)}$expandFolderNode(t,s,g){return this._resolveProvider(t).expandFolderNode(s,g)}$onFolderNodeExpanded(t,s){this._proxy.$onFolderNodeExpanded(t,s)}$validateFilePaths(t,s,g,C){return this._resolveProvider(t).validateFilePaths(s,g,C)}$onFilePathsValidated(t,s){this._proxy.$onFilePathsValidated(t,s)}$closeFileBrowser(t,s){return this._resolveProvider(t).closeFileBrowser(s)}$createSession(t,s,g,C){return this._resolveProvider(t).createSession(s,g,C)}$startSession(t,s,g,C){return this._resolveProvider(t).startSession(s,g,C)}$stopSession(t,s){return this._resolveProvider(t).stopSession(s)}$pauseSession(t,s){return this._resolveProvider(t).pauseSession(s)}$disconnectSession(t,s){return this._resolveProvider(t).disconnectSession(s)}$getXEventSessions(t,s){return this._resolveProvider(t).getXEventSessions(s)}$onSessionEventsAvailable(t,s){this._proxy.$onSessionEventsAvailable(t,s)}$onSessionStopped(t,s){this._proxy.$onSessionStopped(t,s)}$onProfilerSessionCreated(t,s){this._proxy.$onProfilerSessionCreated(t,s)}$getJobs(t,s){return this._resolveProvider(t).getJobs(s)}$getJobHistory(t,s,g,C){return this._resolveProvider(t).getJobHistory(s,g,C)}$jobAction(t,s,g,C){return this._resolveProvider(t).jobAction(s,g,C)}$deleteJob(t,s,g){return this._resolveProvider(t).deleteJob(s,g)}$deleteJobStep(t,s,g){return this._resolveProvider(t).deleteJobStep(s,g)}$getAlerts(t,s){return this._resolveProvider(t).getAlerts(s)}$deleteAlert(t,s,g){return this._resolveProvider(t).deleteAlert(s,g)}$getNotebooks(t,s){return this._resolveProvider(t).getNotebooks(s)}$getNotebookHistory(t,s,g,C,r){return this._resolveProvider(t).getNotebookHistory(s,g,C,r)}$getMaterializedNotebook(t,s,g,C){return this._resolveProvider(t).getMaterializedNotebook(s,g,C)}$getTemplateNotebook(t,s,g,C){return this._resolveProvider(t).getTemplateNotebook(s,g,C)}$deleteNotebook(t,s,g){return this._resolveProvider(t).deleteNotebook(s,g)}$updateNotebookMaterializedName(t,s,g,C,r){return this._resolveProvider(t).updateNotebookMaterializedName(s,g,C,r)}$deleteMaterializedNotebook(t,s,g,C){return this._resolveProvider(t).deleteMaterializedNotebook(s,g,C)}$updateNotebookMaterializedPin(t,s,g,C,r){return this._resolveProvider(t).updateNotebookMaterializedPin(s,g,C,r)}$getOperators(t,s){return this._resolveProvider(t).getOperators(s)}$deleteOperator(t,s,g){return this._resolveProvider(t).deleteOperator(s,g)}$getProxies(t,s){return this._resolveProvider(t).getProxies(s)}$deleteProxy(t,s,g){return this._resolveProvider(t).deleteProxy(s,g)}$getCredentials(t,s){return this._resolveProvider(t).getCredentials(s)}$onJobDataUpdated(t){this._proxy.$onJobDataUpdated(t)}$startSerialization(t,s){return this._resolveProvider(t).startSerialization(s)}$continueSerialization(t,s){return this._resolveProvider(t).continueSerialization(s)}$assessmentInvoke(t,s,g){return this._resolveProvider(t).assessmentInvoke(s,g)}$getAssessmentItems(t,s,g){return this._resolveProvider(t).getAssessmentItems(s,g)}$generateAssessmentScript(t,s){return this._resolveProvider(t).generateAssessmentScript(s)}$getDataGridItems(t){return this._resolveProvider(t).getDataGridItems()}$getDataGridColumns(t){return this._resolveProvider(t).getDataGridColumns()}$initializeTableDesigner(t,s){return this._resolveProvider(t).initializeTableDesigner(s)}$processTableDesignerEdit(t,s,g){return this._resolveProvider(t).processTableEdit(s,g)}$publishTableDesignerChanges(t,s){return this._resolveProvider(t).publishChanges(s)}$generateScriptForTableDesigner(t,s){return this._resolveProvider(t).generateScript(s)}$generatePreviewReportForTableDesigner(t,s){return this._resolveProvider(t).generatePreviewReport(s)}$disposeTableDesigner(t,s){return this._resolveProvider(t).disposeTableDesigner(s)}$openTableDesigner(t,s,g,C){return this._proxy.$openTableDesigner(t,s,g,C),Promise.resolve()}$getExecutionPlan(t,s){return this._resolveProvider(t).getExecutionPlan(s)}$compareExecutionPlanGraph(t,s,g){return this._resolveProvider(t).compareExecutionPlanGraph(s,g)}$isExecutionPlan(t,s){return this._resolveProvider(t).isExecutionPlan(s)}$getServerContextualization(t,s){return this._resolveProvider(t).getServerContextualization(s)}}e.ExtHostDataProtocol=y}),define(ye[299],Ce([1,0,7,40,41,3]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostErrorDiagnostics=void 0;class R extends M.ExtHostErrorDiagnosticsShape{constructor(p){super(),this._handlePool=0,this._providers={},this._proxy=p.getProxy(A.SqlMainContext.MainThreadErrorDiagnostics)}$handleConnectionError(p,f,y){let E=this._providers[p];return E===void 0?Promise.resolve({handled:!1}):E.provider.handleConnectionError(f,y)}$registerDiagnosticsProvider(p,f){let y=this;if((0,d.values)(this._providers).findIndex(s=>s.metadata.targetProviderId===p.targetProviderId)>=0)throw new Error(`Diagnostics Provider with ID '${p.targetProviderId}' has already been registered`);let t=this._nextHandle();return this._providers[t]={metadata:p,provider:f},this._proxy.$registerDiagnosticsProvider(p,t),new w.Disposable(()=>{delete y._providers[t],y._proxy.$unregisterDiagnosticsProvider(t)})}getProviderCount(){return Object.keys(this._providers).length}_nextHandle(){return this._handlePool++}}e.ExtHostErrorDiagnostics=R}),define(ye[300],Ce([1,0,3]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostExtensionManagement=void 0;class M{constructor(A){this._proxy=A.getProxy(w.SqlMainContext.MainThreadExtensionManagement)}$install(A){return this._proxy.$install(A)}$showObsoleteExtensionApiUsageNotification(A){return this._proxy.$showObsoleteExtensionApiUsageNotification(A)}}e.ExtHostExtensionManagement=M}),define(ye[301],Ce([1,0,4,3]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostModalDialogs=void 0;class d{constructor(u,p){this._proxy=u,this._handle=p,this.onMessageEmitter=new w.Emitter,this.onClosedEmitter=new w.Emitter}get title(){return this._title}set title(u){this._title!==u&&(this._title=u,this._proxy.$setTitle(this._handle,u))}get html(){return this._html}set html(u){this._html!==u&&(this._html=u,this._proxy.$setHtml(this._handle,u))}set okTitle(u){this._okTitle=u}get okTitle(){return this._okTitle}set closeTitle(u){this._closeTitle=u}get closeTitle(){return this._closeTitle}open(){this._proxy.$show(this._handle)}close(){this._proxy.$disposeDialog(this._handle)}postMessage(u){return this._proxy.$sendMessage(this._handle,u)}get onMessage(){return this.onMessageEmitter.event}get onClosed(){return this.onClosedEmitter.event}}class A{static{this._handlePool=0}constructor(u){this._webviews=new Map,this._proxy=u.getProxy(M.SqlMainContext.MainThreadModalDialog)}createDialog(u){const p=A._handlePool++;this._proxy.$createDialog(p);const f=new d(this._proxy,p);return this._webviews.set(p,f),f.title=u,f}$onMessage(u,p){this._webviews.get(u).onMessageEmitter.fire(p)}$onClosed(u){this._webviews.get(u).onClosedEmitter.fire(void 0)}}e.ExtHostModalDialogs=A}),define(ye[302],Ce([1,0,4,24,179,46,8,3,5]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostModelView=void 0;class f{constructor(F,J,I,V,j){this._proxy=F,this._handle=J,this._extHostModelViewTree=I,this._extension=V,this.logService=j,this._componentBuilders=new Map,this.cardDeprecationMessagePrinted=!1,this.nextComponentId=0}navContainer(){let F=this.getNextComponentId(),J=new t(this._proxy,this._handle,A.ModelComponentTypes.NavContainer,F,this.logService);return this._componentBuilders.set(F,J),J}divContainer(){let F=this.getNextComponentId(),J=new s(this._proxy,this._handle,A.ModelComponentTypes.DivContainer,F,this.logService);return this._componentBuilders.set(F,J),J}flexContainer(){let F=this.getNextComponentId(),J=new t(this._proxy,this._handle,A.ModelComponentTypes.FlexContainer,F,this.logService);return this._componentBuilders.set(F,J),J}splitViewContainer(){let F=this.getNextComponentId(),J=new t(this._proxy,this._handle,A.ModelComponentTypes.SplitViewContainer,F,this.logService);return this._componentBuilders.set(F,J),J}formContainer(){let F=this.getNextComponentId(),J=new g(this._proxy,this._handle,A.ModelComponentTypes.Form,F,this,this.logService);return this._componentBuilders.set(F,J),J}toolbarContainer(){let F=this.getNextComponentId(),J=new r(this._proxy,this._handle,A.ModelComponentTypes.Toolbar,F,this.logService);return this._componentBuilders.set(F,J),J}groupContainer(){let F=this.getNextComponentId(),J=new C(this._proxy,this._handle,A.ModelComponentTypes.Group,F,this.logService);return this._componentBuilders.set(F,J),J}card(){this.cardDeprecationMessagePrinted||(this.logService.warn(`Extension '${this._extension.identifier.value}' is using card component which has been replaced by radioCardGroup. the card component will be removed in a future release.`),this.cardDeprecationMessagePrinted=!0);let F=this.getNextComponentId(),J=this.getComponentBuilder(new l(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}tree(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new pe(this._extHostModelViewTree,this._proxy,this._handle,F,this._extension,this.logService),F);return this._componentBuilders.set(F,J),J}inputBox(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new i(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}text(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new v(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}image(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new D(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}radioButton(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new m(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}checkBox(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new c(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}webView(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new _(this._proxy,this._handle,F,this._extension.extensionLocation,this.logService),F);return this._componentBuilders.set(F,J),J}editor(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new S(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}diffeditor(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new k(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}button(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new $(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}separator(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new X(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}dropDown(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new O(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}listBox(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new N(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}table(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new L(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}declarativeTable(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new H(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}dashboardWidget(F){let J=this.getNextComponentId(),I=this.getComponentBuilder(new n(this._proxy,this._handle,A.ModelComponentTypes.DashboardWidget,J,this.logService),J);return this._componentBuilders.set(J,I),I}dashboardWebview(F){let J=this.getNextComponentId(),I=this.getComponentBuilder(new n(this._proxy,this._handle,A.ModelComponentTypes.DashboardWebview,J,this.logService),J);return this._componentBuilders.set(J,I),I}loadingComponent(){let F=this.getNextComponentId(),J=new P(new U(this._proxy,this._handle,F,this.logService));return this._componentBuilders.set(F,J),J}fileBrowserTree(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new x(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}hyperlink(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new le(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}radioCardGroup(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new re(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}listView(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new q(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}tabbedPanel(){let F=this.getNextComponentId(),J=new h(new oe(this._proxy,this._handle,F,this.logService));return this._componentBuilders.set(F,J),J}propertiesContainer(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new ve(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}infoBox(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new ce(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}slider(){const F=this.getNextComponentId(),J=this.getComponentBuilder(new se(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}executionPlan(){const F=this.getNextComponentId(),J=this.getComponentBuilder(new te(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}chart(){let F=this.getNextComponentId(),J=this.getComponentBuilder(new G(this._proxy,this._handle,F,this.logService),F);return this._componentBuilders.set(F,J),J}getComponentBuilder(F,J){let I=new y(F);return this._componentBuilders.set(J,I),I}handleEvent(F,J){let I=this._componentBuilders.get(F);I&&I.handleEvent(J)}runCustomValidations(F){return this._componentBuilders.get(F).componentWrapper().runCustomValidations()}getNextComponentId(){return`component${this._handle}_${this.nextComponentId++}`}}class y{constructor(F){this._component=F,F.registerEvent()}component(){return this._component}componentWrapper(){return this._component}withProperties(F){return this._component.properties=Object.assign({},this._component.properties,F),this}withProps(F){return this._component.properties=Object.assign({},this._component.properties,F),this}withValidation(F){return this._component.customValidations.push(F),this}handleEvent(F){this._component.onEvent(F)}}class E extends y{constructor(F){super(F)}withProps(F){return super.withProps(F),this}withLayout(F){return this._component.layout=F,this}withItems(F,J){return this._component.itemConfigs=F.map(I=>{let V=I;return new T(V,J)}),this}}class t extends E{constructor(F,J,I,V,j){super(new n(F,J,I,V,j))}}class s extends E{constructor(F,J,I,V,j){super(new K(F,J,I,V,j))}}class g extends t{constructor(F,J,I,V,j,Z){super(F,J,I,V,Z),this._builder=j}withFormItems(F,J){return this.addFormItems(F,J),this}convertToItemConfig(F,J){let I=F.component;if(F.required&&I&&(I.required=!0),F.title&&I&&(I.ariaLabel=F.title,I instanceof U)){I.component.ariaLabel=F.title;let j=I.component;j.required&&(I.required=j.required)}let V;return F.actions&&(V=F.actions.map(j=>j.id)),new T(I,Object.assign({},J||{},{title:F.title,actions:V,isFormComponent:!0,required:I.required}))}addComponentActions(F,J){F.actions&&F.actions.forEach(I=>{let V=I;this._component.addItem(V,J)})}removeComponentActions(F){F.actions&&F.actions.forEach(J=>{let I=J;this._component.removeItem(I)})}addFormItems(F,J){F.forEach(I=>{this.addFormItem(I,J)})}addFormItem(F,J){this.insertFormItem(F,void 0,J)}insertFormItem(F,J,I){let V=F;if(V&&V.components!==void 0){let j=this._builder.text().component();j.value=V.title,this._component.addItem(j,{isGroupLabel:!0},J);let Z=J?J+1:void 0;V.components.forEach(he=>{let Pe=he.layout||I,z=this.convertToItemConfig(he,Pe);z.config.isInGroup=!0,this._component.insertItem(he.component,Z,z.config),Z&&Z++,this.addComponentActions(he,Pe)})}else{F=F;let j=this.convertToItemConfig(F,I);this._component.addItem(F.component,j.config,J),this.addComponentActions(F,I)}}removeFormItem(F){let J=F,I=!1;if(J&&J.components!==void 0){let V=J.components[0],j=this._component.itemConfigs.findIndex(Z=>Z.component.id===V.component.id);j!==-1&&(I=this._component.removeItemAt(j-1)),J.components.forEach(Z=>{this.removeComponentActions(Z),this._component.removeItem(Z.component)})}else F=F,F&&(I=this._component.removeItem(F.component),this.removeComponentActions(F));return I}}class C extends E{constructor(F,J,I,V,j){super(new B(F,J,I,V,j))}}class r extends t{withToolbarItems(F){return this._component.itemConfigs=F.map(J=>this.convertToItemConfig(J)),this}convertToItemConfig(F){let J=F.component;return new T(J,{title:F.title,toolbarSeparatorAfter:F.toolbarSeparatorAfter})}addToolbarItems(F){F.forEach(J=>{this.addToolbarItem(J)})}addToolbarItem(F){let J=this.convertToItemConfig(F);this._component.addItem(F.component,J.config)}}class h extends E{withTabs(F){return this._component.itemConfigs=o(F),this}}function o(Ee){const F=[];return Ee.forEach(J=>{if(J&&"tabs"in J)J.tabs.forEach(I=>{F.push(b(I.content,I.title,I.id,J.title,I.icon))});else{const I=J;F.push(b(I.content,I.title,I.id,void 0,I.icon))}}),F}function b(Ee,F,J,I,V){return new T(Ee,{title:F,group:I,id:J,icon:V})}class P extends y{withItem(F){return this.component().component=F,this}}class T{constructor(F,J){this._component=F,this.config=J}toIItemConfig(){return{config:this.config,componentShape:this._component.toComponentShape()}}get component(){return this._component}}class n extends p.Disposable{constructor(F,J,I,V,j){super(),this._proxy=F,this._handle=J,this._type=I,this._id=V,this._logService=j,this.properties={},this.customValidations=[],this._valid=!0,this._onValidityChangedEmitter=this._register(new w.Emitter),this.onValidityChanged=this._onValidityChangedEmitter.event,this._onErrorEmitter=this._register(new w.Emitter),this.onError=this._onErrorEmitter.event,this._emitterMap=new Map,this.properties={},this.itemConfigs=[]}getRegisteredEmitter(){let F=new w.Emitter;return this._register(F),F}get id(){return this._id}get type(){return this._type}get items(){return this.itemConfigs.map(F=>F.component)}get enabled(){let F=this.properties.enabled;return F===void 0?!0:F}set enabled(F){this.setProperty("enabled",F)}get height(){return this.properties.height}set height(F){this.setProperty("height",F)}get width(){return this.properties.width}set width(F){this.setProperty("width",F)}get required(){return this.properties.required}set required(F){this.setProperty("required",F)}get display(){return this.properties.display}set display(F){this.setProperty("display",F)}get ariaLabel(){return this.properties.ariaLabel}set ariaLabel(F){this.setProperty("ariaLabel",F)}get ariaRole(){return this.properties.ariaRole}set ariaRole(F){this.setProperty("ariaRole",F)}get ariaSelected(){return this.properties.ariaSelected}set ariaSelected(F){this.setProperty("ariaSelected",F)}get ariaHidden(){return this.properties.ariaHidden}set ariaHidden(F){this.setProperty("ariaHidden",F)}get CSSStyles(){return this.properties.CSSStyles}set CSSStyles(F){this.setProperty("CSSStyles",F)}toComponentShape(){return{id:this.id,type:this.type,layout:this.layout,properties:this.properties,itemConfigs:this.itemConfigs?this.itemConfigs.map(F=>F.toIItemConfig()):void 0}}clearItems(){return this.itemConfigs=[],this._proxy.$clearContainer(this._handle,this.id)}addItems(F,J){if(F=F.filter(V=>this.itemConfigs.find(j=>j.component.id===V.id)?(this._logService.warn(`Trying to add duplicate component ${V.id} to container ${this.id}`),!1):(this._register(V),!0)),F.length===0)return;const I=F.map(V=>({itemConfig:this.createAndAddItemConfig(V,J).toIItemConfig()}));this._proxy.$addToContainer(this._handle,this.id,I).then(void 0,V=>this.handleError(V))}removeItemAt(F){if(F>=0&&F<this.itemConfigs.length){let J=this.itemConfigs[F];return this._proxy.$removeFromContainer(this._handle,this.id,J.toIItemConfig()),this.itemConfigs.splice(F,1),!0}return!1}removeItem(F){let J=this.itemConfigs.findIndex(I=>I.component.id===F.id);return J>=0&&J<this.itemConfigs.length?this.removeItemAt(J):!1}insertItem(F,J,I){this.addItem(F,I,J)}addItem(F,J,I){if(this.itemConfigs.find(j=>j.component.id===F.id)){this._logService.warn(`Trying to add duplicate component ${F.id} to container ${this.id}`);return}this._register(F);const V=this.createAndAddItemConfig(F,J,I);this._proxy.$addToContainer(this._handle,this.id,[{itemConfig:V.toIItemConfig(),index:I}]).then(void 0,j=>this.handleError(j))}createAndAddItemConfig(F,J,I){const V=F;if(!V)throw new Error(d.localize(0,null));this._register(V);const j=new T(V,J);if(I!==void 0&&I>=0&&I<=this.items.length)this.itemConfigs.splice(I,0,j);else if(!I)this.itemConfigs.push(j);else throw new Error(d.localize(1,null,I));return j}setLayout(F){return this._proxy.$setLayout(this._handle,this.id,F)}setItemLayout(F,J){const I=this.itemConfigs.find(V=>V.component.id===F.id);return I&&(I.config=J,this._proxy.$setItemLayout(this._handle,this.id,I.toIItemConfig()).then(void 0,R.onUnexpectedError)),!1}updateProperties(F){return this.properties=Object.assign(this.properties,F),this.notifyPropertyChanged()}updateProperty(F,J){return this.setProperty(F,J)}updateCssStyles(F){return this.properties.CSSStyles=Object.assign(this.properties.CSSStyles||{},F),this.notifyPropertyChanged()}notifyPropertyChanged(){return this._proxy.$setProperties(this._handle,this._id,this.properties)}registerEvent(){return this._proxy.$registerEvent(this._handle,this._id).then(()=>!0)}onEvent(F){if(F&&F.eventType===A.ComponentEventType.PropertiesChanged)this.properties=F.args;else if(F&&F.eventType===A.ComponentEventType.validityChanged)this._valid=F.args,this._onValidityChangedEmitter.fire(this._valid);else if(F){let J=this._emitterMap.get(F.eventType);J&&J.fire(F.args)}}setDataProvider(){return this._proxy.$setDataProvider(this._handle,this._id)}async setProperty(F,J){return!this.properties[F]||this.properties[F]!==J?(this.properties[F]=J,this.notifyPropertyChanged()):Promise.resolve()}handleError(F){this._onErrorEmitter.fire(F)}async runCustomValidations(){let F=!0;try{await Promise.all(this.customValidations.map(async J=>{await J(this)||(F=!1)}))}catch{F=!1}return F}validate(){return this._proxy.$validate(this._handle,this._id)}get valid(){return this._valid}focus(){return this._proxy.$focus(this._handle,this._id)}doAction(F,...J){return this._proxy.$doAction(this._handle,this._id,F,...J)}}class a extends n{constructor(F,J,I,V,j){super(F,J,I,V,j)}get iconPath(){return this.properties.iconPath}set iconPath(F){this.setProperty("iconPath",F)}get iconHeight(){return this.properties.iconHeight}set iconHeight(F){this.setProperty("iconHeight",F)}get iconWidth(){return this.properties.iconWidth}set iconWidth(F){this.setProperty("iconWidth",F)}get title(){return this.properties.title}set title(F){this.setProperty("title",F)}}class l extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Card,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter())}get label(){return this.properties.label}set label(F){this.setProperty("label",F)}get value(){return this.properties.value}set value(F){this.setProperty("value",F)}get selected(){return this.properties.selected}set selected(F){this.setProperty("selected",F)}get cardType(){return this.properties.cardType}set cardType(F){this.setProperty("cardType",F)}get actions(){return this.properties.actions}set actions(F){this.setProperty("actions",F)}get iconPath(){return this.properties.iconPath}set iconPath(F){this.setProperty("iconPath",F)}get iconHeight(){return this.properties.iconHeight}set iconHeight(F){this.setProperty("iconHeight",F)}get iconWidth(){return this.properties.iconWidth}set iconWidth(F){this.setProperty("iconWidth",F)}get onDidActionClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}get onCardSelectedChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class i extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.InputBox,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onEnterKeyPressed,this.getRegisteredEmitter())}get value(){return this.properties.value}set value(F){this.setProperty("value",F)}get ariaLive(){return this.properties.ariaLive}set ariaLive(F){this.setProperty("ariaLive",F)}get placeHolder(){return this.properties.placeHolder}set placeHolder(F){this.setProperty("placeHolder",F)}get title(){return this.properties.title}set title(F){this.setProperty("title",F)}get rows(){return this.properties.rows}set rows(F){this.setProperty("rows",F)}get min(){return this.properties.min}set min(F){this.setProperty("min",F)}get max(){return this.properties.max}set max(F){this.setProperty("max",F)}get columns(){return this.properties.columns}set columns(F){this.setProperty("columns",F)}get multiline(){return this.properties.multiline}set multiline(F){this.setProperty("multiline",F)}get inputType(){return this.properties.inputType}set inputType(F){this.setProperty("inputType",F)}get stopEnterPropagation(){return this.properties.stopEnterPropagation}set stopEnterPropagation(F){this.setProperty("stopEnterPropagation",F)}get validationErrorMessage(){return this.properties.validationErrorMessage}set validationErrorMessage(F){this.setProperty("validationErrorMessage",F)}get maxLength(){return this.properties.maxLength}set maxLength(F){this.setProperty("maxLength",F)}get onTextChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}get onEnterKeyPressed(){const F=this._emitterMap.get(A.ComponentEventType.onEnterKeyPressed);return F&&F.event}}class c extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.CheckBox,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter())}get checked(){return this.properties.checked}set checked(F){this.setProperty("checked",F)}get label(){return this.properties.label}set label(F){this.setProperty("label",F)}get onChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}}class _ extends n{constructor(F,J,I,V,j){super(F,J,A.ModelComponentTypes.WebView,I,j),this._extensionLocation=V,this.properties={extensionLocation:this._extensionLocation},this._emitterMap.set(A.ComponentEventType.onMessage,this.getRegisteredEmitter())}get message(){return this.properties.message}set message(F){this.setProperty("message",F)}get html(){return this.properties.html}set html(F){this.setProperty("html",F)}get onMessage(){let F=this._emitterMap.get(A.ComponentEventType.onMessage);return F&&F.event}get options(){return this.properties.options}set options(F){this.setProperty("options",F)}}class S extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Editor,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onComponentCreated,this.getRegisteredEmitter())}get content(){return this.properties.content}set content(F){this.setProperty("content",F)}get languageMode(){return this.properties.languageMode}set languageMode(F){this.setProperty("languageMode",F)}get editorUri(){return this.properties.editorUri}get isAutoResizable(){return this.properties.isAutoResizable}set isAutoResizable(F){this.setProperty("isAutoResizable",F)}get minimumHeight(){return this.properties.minimumHeight}set minimumHeight(F){this.setProperty("minimumHeight",F)}get onContentChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}get onEditorCreated(){let F=this._emitterMap.get(A.ComponentEventType.onComponentCreated);return F&&F.event}}class k extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.DiffEditor,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onComponentCreated,this.getRegisteredEmitter())}get contentLeft(){return this.properties.contentLeft}set contentLeft(F){this.setProperty("contentLeft",F)}get contentRight(){return this.properties.contentRight}set contentRight(F){this.setProperty("contentRight",F)}get languageMode(){return this.properties.languageMode}set languageMode(F){this.setProperty("languageMode",F)}get editorUri(){return this.properties.editorUri}get isAutoResizable(){return this.properties.isAutoResizable}set isAutoResizable(F){this.setProperty("isAutoResizable",F)}get minimumHeight(){return this.properties.minimumHeight}set minimumHeight(F){this.setProperty("minimumHeight",F)}get onContentChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}get onEditorCreated(){let F=this._emitterMap.get(A.ComponentEventType.onComponentCreated);return F&&F.event}get editorUriLeft(){return this.properties.editorUriLeft}set editorUriLeft(F){this.setProperty("editorUriLeft",F)}get editorUriRight(){return this.properties.editorUriRight}set editorUriRight(F){this.setProperty("editorUriRight",F)}get title(){return this.properties.title}set title(F){this.setProperty("title",F)}}class m extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.RadioButton,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter())}get name(){return this.properties.name}set name(F){this.setProperty("name",F)}get label(){return this.properties.label}set label(F){this.setProperty("label",F)}get value(){return this.properties.value}set value(F){this.setProperty("value",F)}get checked(){return this.properties.checked}set checked(F){this.setProperty("checked",F)}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}get onDidChangeCheckedState(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}}class v extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Text,I,V),this.properties={}}get value(){return this.properties.value}set value(F){this.setProperty("value",F)}get title(){return this.properties.title}set title(F){this.setProperty("title",F)}get requiredIndicator(){return this.properties.requiredIndicator}set requiredIndicator(F){this.setProperty("requiredIndicator",F)}get headingLevel(){return this.properties.headingLevel}set headingLevel(F){this.setProperty("headingLevel",F)}get textType(){return this.properties.textType}set textType(F){this.setProperty("textType",F)}get ariaLive(){return this.properties.ariaLive}set ariaLive(F){this.setProperty("ariaLive",F)}}class D extends a{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Image,I,V),this.properties={}}}class L extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Table,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onSelectedRowChanged,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onCellAction,this.getRegisteredEmitter())}get data(){return this.properties.data}set data(F){this.setProperty("data",F)}get columns(){return this.properties.columns}set columns(F){this.setProperty("columns",F)}get fontSize(){return this.properties.fontSize}set fontSize(F){this.setProperty("fontSize",F)}get selectedRows(){return this.properties.selectedRows}set selectedRows(F){this.setProperty("selectedRows",F)}get forceFitColumns(){return this.properties.forceFitColumns}set forceFitColunms(F){this.setProperty("forceFitColumns",F)}get title(){return this.properties.title}set title(F){this.setProperty("title",F)}get ariaRowCount(){return this.properties.ariaRowCount}set ariaRowCount(F){this.setProperty("ariaRowCount",F)}get ariaColumnCount(){return this.properties.ariaColumnCount}set ariaColumnCount(F){this.setProperty("ariaColumnCount",F)}get moveFocusOutWithTab(){return this.properties.moveFocusOutWithTab}set moveFocusOutWithTab(F){this.setProperty("moveFocusOutWithTab",F)}get updateCells(){return this.properties.updateCells}set updateCells(F){this.setProperty("updateCells",F)}get onRowSelected(){let F=this._emitterMap.get(A.ComponentEventType.onSelectedRowChanged);return F&&F.event}get onCellAction(){let F=this._emitterMap.get(A.ComponentEventType.onCellAction);return F&&F.event}appendData(F){return this.doAction(A.ModelViewAction.AppendData,F)}setActiveCell(F,J){this.doAction(A.ModelViewAction.SetActiveCell,F,J)}}class O extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.DropDown,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter())}get value(){let F=this.properties.value;return!this.editable&&!F&&this.values&&this.values.length>0&&(F=this.values[0]),F}set value(F){this.setProperty("value",F)}get values(){return this.properties.values}set values(F){this.setProperty("values",F)}get editable(){return this.properties.editable}set editable(F){this.setProperty("editable",F)}get fireOnTextChange(){return this.properties.fireOnTextChange}set fireOnTextChange(F){this.setProperty("fireOnTextChange",F)}get loading(){return this.properties.loading}set loading(F){this.setProperty("loading",F)}get loadingText(){return this.properties.loadingText}set loadingText(F){this.setProperty("loadingText",F)}get onValueChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}get placeholder(){return this.properties.placeholder}set placeholder(F){this.setProperty("placeholder",F)}get validationErrorMessages(){return this.properties.validationErrorMessages}set validationErrorMessages(F){this.setProperty("validationErrorMessages",F)}}class H extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.DeclarativeTable,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onSelectedRowChanged,this.getRegisteredEmitter())}get data(){return this.properties.data}set data(F){this.clearItems().then(()=>{this.setProperty("data",F)})}get dataValues(){return this.properties.dataValues}set dataValues(F){this.clearItems().then(()=>{this.setProperty("dataValues",F)})}async setDataValues(F){await this.clearItems(),await this.setProperty("dataValues",F),this.setRowNumAriaLabels()}get columns(){return this.properties.columns}set columns(F){this.setProperty("columns",F)}get onDataChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}get onRowSelected(){let F=this._emitterMap.get(A.ComponentEventType.onSelectedRowChanged);return F&&F.event}notifyPropertyChanged(){return this._proxy.$setProperties(this._handle,this._id,this.getPropertiesForMainThread())}get enableRowSelection(){return this.properties.enableRowSelection}set enableRowSelection(F){this.setProperty("enableRowSelection",F)}setFilter(F){this._proxy.$doAction(this._handle,this._id,A.ModelViewAction.Filter,F),this.setRowNumAriaLabels()}get selectedRow(){return this.properties.selectedRow??-1}set selectedRow(F){this.setProperty("selectedRow",F)}setColumnAriaLabels(){let F=d.localize(2,null);if(this.ariaLabel){const J=this.ariaLabel.indexOf(F);for(const I of this.columns)I&&(F+=I.displayName+" ");if(J===-1)F+=`
`,this.ariaLabel+=F;else{const I=this.ariaLabel.indexOf(`
`,J);this.ariaLabel=this.ariaLabel.substring(0,J)+F+this.ariaLabel.substring(I)}}}setRowNumAriaLabels(){let F=d.localize(3,null);if(this.ariaLabel){const J=this.ariaLabel.indexOf(F);if(this.dataValues&&this.dataValues.length>0&&this.dataValues[0]?F=d.localize(4,null,this.dataValues[0].length):F=d.localize(5,null),J===-1)F+=`
`,this.ariaLabel+=F;else{const I=this.ariaLabel.indexOf(`
`,J);this.ariaLabel=this.ariaLabel.substring(0,J)+F+this.ariaLabel.substring(I)}}}toComponentShape(){return{id:this.id,type:this.type,layout:this.layout,properties:this.getPropertiesForMainThread(),itemConfigs:this.itemConfigs?this.itemConfigs.map(F=>F.toIItemConfig()):void 0}}getPropertiesForMainThread(){this.setColumnAriaLabels(),this.setRowNumAriaLabels();const F=Object.assign({},this.properties),J=[];return F.data?.length>0?F.data=F.data.map(I=>I.map(V=>V instanceof n?(this.itemConfigs.find(j=>j.component.id===V.id)||J.push(V),V.id):V)):F.dataValues&&(F.dataValues=F.dataValues.map(I=>I.map(V=>{const j=V.value;return j instanceof n?(this.itemConfigs.find(Z=>Z.component.id===j.id)||J.push(j),{value:j.id,ariaLabel:V.ariaLabel,style:V.style}):V}))),this.addItems(J),F}}class N extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.ListBox,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onSelectedRowChanged,this.getRegisteredEmitter())}get selectedRow(){return this.properties.selectedRow}set selectedRow(F){this.setProperty("selectedRow",F)}get values(){return this.properties.values}set values(F){this.setProperty("values",F)}get onRowSelected(){let F=this._emitterMap.get(A.ComponentEventType.onSelectedRowChanged);return F&&F.event}}class $ extends a{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Button,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter())}get label(){return this.properties.label}set label(F){this.setProperty("label",F)}get fileType(){return this.properties.fileType}set fileType(F){this.setProperty("fileType",F)}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class U extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.LoadingComponent,I,V),this.properties={loading:!0}}get loading(){return this.properties.loading}set loading(F){this.setProperty("loading",F)}get showText(){return this.properties.showText}set showText(F){this.setProperty("showText",F)}get loadingText(){return this.properties.loadingText}set loadingText(F){this.setProperty("loadingText",F)}get loadingCompletedText(){return this.properties.loadingCompletedText}set loadingCompletedText(F){this.setProperty("loadingCompletedText",F)}get component(){return this.items[0]}set component(F){this.addItem(F)}}class x extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.FileBrowserTree,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter())}get ownerUri(){return this.properties.ownerUri}set ownerUri(F){this.setProperty("ownerUri",F)}get onDidChange(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}}class X extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Separator,I,V)}}class K extends n{constructor(F,J,I,V,j){super(F,J,I,V,j),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter())}get overflowY(){return this.properties.overflowY}set overflowY(F){this.setProperty("overflowY",F)}get yOffsetChange(){return this.properties.yOffsetChange}set yOffsetChange(F){this.setProperty("yOffsetChange",F)}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class pe extends n{constructor(F,J,I,V,j,Z){super(J,I,A.ModelComponentTypes.TreeComponent,V,Z),this._extHostModelViewTree=F,this._extension=j,this.properties={}}registerDataProvider(F){return this.setDataProvider(),this._extHostModelViewTree.$createTreeView(this._handle,this.id,{treeDataProvider:F},this._extension)}get withCheckbox(){return this.properties.withCheckbox}set withCheckbox(F){this.setProperty("withCheckbox",F)}}class le extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Hyperlink,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter())}get label(){return this.properties.label}set label(F){this.setProperty("label",F)}get url(){return this.properties.url}set url(F){this.setProperty("url",F)}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class re extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.RadioCardGroup,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter())}get iconWidth(){return this.properties.iconWidth}set iconWidth(F){this.setProperty("iconWidth",F)}get iconHeight(){return this.properties.iconHeight}set iconHeight(F){this.setProperty("iconHeight",F)}get cardWidth(){return this.properties.cardWidth}set cardWidth(F){this.setProperty("cardWidth",F)}get cardHeight(){return this.properties.cardHeight}set cardHeight(F){this.setProperty("cardHeight",F)}get cards(){return this.properties.cards}set cards(F){this.setProperty("cards",F)}get selectedCardId(){return this.properties.selectedCardId}set selectedCardId(F){this.setProperty("selectedCardId",F)}get orientation(){return this.properties.orientation}set orientation(F){this.setProperty("orientation",F)}get onSelectionChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}get onLinkClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class q extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.ListView,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter())}get title(){return this.properties.title}set title(F){this.setProperty("title",F)}get options(){return this.properties.options}set options(F){this.setProperty("options",F)}get selectedOptionId(){return this.properties.selectedOptionId}set selectedOptionId(F){this.setProperty("selectedOptionId",F)}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class oe extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.TabbedPanel,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter())}updateTabs(F){o(F).forEach(I=>{const V=this.itemConfigs.find(j=>I.config.id===j.config.id);V?this.setItemLayout(V.component,I.config):this.addItem(I.component,I.config)})}selectTab(F){this.doAction(A.ModelViewAction.SelectTab,F)}get onTabChanged(){let F=this._emitterMap.get(A.ComponentEventType.onDidChange);return F&&F.event}}class ve extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.PropertiesContainer,I,V),this.properties={}}get propertyItems(){return this.properties.propertyItems}set propertyItems(F){this.setProperty("propertyItems",F)}get loading(){return this.properties.loading}set loading(F){this.setProperty("loading",F)}}class ce extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.InfoBox,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onChildClick,this.getRegisteredEmitter())}get style(){return this.properties.style}set style(F){this.setProperty("style",F)}get text(){return this.properties.text}set text(F){this.setProperty("text",F)}get links(){return this.properties.links}set links(F){this.setProperty("links",F)}get announceText(){return this.properties.announceText}set announceText(F){this.setProperty("announceText",F)}get isClickable(){return this.properties.isClickable}set isClickable(F){this.setProperty("isClickable",F)}get clickableButtonAriaLabel(){return this.properties.clickableButtonAriaLabel}set clickableButtonAriaLabel(F){this.setProperty("clickableButtonAriaLabel",F)}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}get onLinkClick(){let F=this._emitterMap.get(A.ComponentEventType.onChildClick);return F&&F.event}}class se extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Slider,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidChange,this.getRegisteredEmitter()),this._emitterMap.set(A.ComponentEventType.onInput,this.getRegisteredEmitter())}get min(){return this.properties.min}set min(F){this.setProperty("min",F)}get max(){return this.properties.max}set max(F){this.setProperty("max",F)}get step(){return this.properties.step}set step(F){this.setProperty("step",F)}get value(){return this.properties.value}set value(F){this.setProperty("value",F)}get showTicks(){return this.properties.showTicks}set showTicks(F){this.setProperty("showTicks",F)}get onChanged(){return this._emitterMap.get(A.ComponentEventType.onDidChange).event}get onInput(){return this._emitterMap.get(A.ComponentEventType.onInput).event}}class te extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.ExecutionPlan,I,V),this.properties={}}get data(){return this.properties.data}set data(F){this.setProperty("data",F)}}class B extends n{constructor(F,J,I,V,j){super(F,J,I,V,j),this.properties={}}get collapsed(){return this.properties.collapsed}set collapsed(F){this.setProperty("collapsed",F)}}class G extends n{constructor(F,J,I,V){super(F,J,A.ModelComponentTypes.Chart,I,V),this.properties={},this._emitterMap.set(A.ComponentEventType.onDidClick,new w.Emitter)}set chartType(F){this.setProperty("chartType",F)}get chartType(){return this.properties.chartType}set data(F){this.setProperty("data",F)}get data(){return this.properties.data}set options(F){this.setProperty("options",F)}get options(){return this.properties.options}get onDidClick(){let F=this._emitterMap.get(A.ComponentEventType.onDidClick);return F&&F.event}}class fe extends p.Disposable{constructor(F,J,I,V,j,Z,he){super(),this._proxy=F,this._handle=J,this._connection=I,this._serverInfo=V,this._extHostModelViewTree=j,this.onClosedEmitter=this._register(new w.Emitter),this._onValidityChangedEmitter=this._register(new w.Emitter),this.onValidityChanged=this._onValidityChangedEmitter.event,this._modelBuilder=new f(this._proxy,this._handle,this._extHostModelViewTree,Z,he)}get onClosed(){return this.onClosedEmitter.event}get connection(){return(0,M.deepClone)(this._connection)}get serverInfo(){return(0,M.deepClone)(this._serverInfo)}get modelBuilder(){return this._modelBuilder}get valid(){return this._component.valid}handleEvent(F,J){this._modelBuilder.handleEvent(F,J)}initializeModel(F){F.onValidityChanged(I=>this._onValidityChangedEmitter.fire(I)),this._component=F;let J=F;return J?this._proxy.$initializeModel(this._handle,J.toComponentShape()):Promise.reject(d.localize(6,null))}validate(){return this._proxy.$validate(this._handle,this._component.id)}runCustomValidations(F){return this._modelBuilder.runCustomValidations(F)}}class _e{constructor(F,J,I){this._extHostModelViewTree=J,this.logService=I,this._modelViews=new Map,this._handlers=new Map,this._handlerToExtension=new Map,this._proxy=F.getProxy(u.SqlMainContext.MainThreadModelView)}$onClosed(F){this._modelViews.get(F).onClosedEmitter.fire(void 0),this._modelViews.delete(F)}$registerProvider(F,J,I){this._handlers.set(F,J),this._handlerToExtension.set(F,I),this._proxy.$registerProvider(F)}$registerWidget(F,J,I,V){let j=this._handlerToExtension.get(J),Z=new fe(this._proxy,F,I,V,this._extHostModelViewTree,j,this.logService);this._modelViews.set(F,Z),this._handlers.get(J)(Z)}$handleEvent(F,J,I){const V=this._modelViews.get(F);V&&V.handleEvent(J,I)}$runCustomValidations(F,J){return this._modelViews.get(F).runCustomValidations(J)}}e.ExtHostModelView=_e}),define(ye[303],Ce([1,0,4,180,29,46,3,5]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostModelViewDialog=e.WizardPageInfoEventType=void 0;const p=M.localize(0,null),f=M.localize(1,null),y=M.localize(2,null),E=M.localize(3,null),t=M.localize(4,null);class s extends u.Disposable{constructor(i,c,_,S){super(),this._viewType=i,this._extHostModelViewDialog=c,this._extHostModelView=_,this._extension=S,this._valid=!0,this._onValidityChanged=this._extHostModelViewDialog.getValidityChangedEvent(this),this._onValidityChanged(k=>this._valid=k)}registerContent(i){if(!this._modelViewId){let c=this._viewType+this.handle;this.setModelViewId(c),this._extHostModelView.$registerProvider(c,_=>{this._modelView=_,this._register(this._modelView),i(_)},this._extension)}}setModelViewId(i){this._modelViewId=i}get modelView(){return this._modelView}set modelView(i){this._modelView=i}get valid(){return this._valid}get onValidityChanged(){return this._onValidityChanged}}class g extends s{constructor(i,c,_,S,k,m,v){super("modelViewEditor",i,c,_),this._proxy=S,this._title=k,this._name=m,this._options=v,this._isDirty=!1}openEditor(i){return this._proxy.$openEditor(this.handle,this._modelViewId,this._title,this._name,this._options,i)}closeEditor(){return this._proxy.$closeEditor(this.handle)}get isDirty(){return this._isDirty}set isDirty(i){this._isDirty=i,this._proxy.$setDirty(this.handle,i)}registerSaveHandler(i){this._saveHandler=i}handleSave(){return this._saveHandler?Promise.resolve(this._saveHandler()):Promise.resolve(!0)}}class C extends s{constructor(i,c,_,S){super("modelViewDialog",i,c,S),this._onClosed=new w.Emitter,this.onClosed=this._onClosed.event,this.okButton=this._extHostModelViewDialog.createButton(p),this.cancelButton=this._extHostModelViewDialog.createButton(f,"right",!0),this._operationHandler=new o("dialog",_),this.okButton.onClick(()=>{this._operationHandler.createOperation()})}get dialogStyle(){return this._dialogStyle}set dialogStyle(i){this._dialogStyle=i}get dialogPosition(){return this._dialogPosition}set dialogPosition(i){this._dialogPosition=i}get renderHeader(){return this._renderHeader}set renderHeader(i){this._renderHeader=i}get renderFooter(){return this._renderFooter}set renderFooter(i){this._renderFooter=i}get dialogProperties(){return this._dialogProperties}set dialogProperties(i){this._dialogProperties=i}get width(){return this._width}set width(i){this._width=i}registerOperation(i){this._operationHandler.registerOperation(i)}setModelViewId(i){super.setModelViewId(i),this.content=i}get message(){return this._message}set message(i){this._message=i,this._extHostModelViewDialog.updateDialogContent(this)}get loading(){return this._loading}set loading(i){this._loading=i,this._extHostModelViewDialog.updateDialogContent(this)}get loadingText(){return this._loadingText}set loadingText(i){this._loadingText=i,this._extHostModelViewDialog.updateDialogContent(this)}get loadingCompletedText(){return this._loadingCompletedText}set loadingCompletedText(i){this._loadingCompletedText=i,this._extHostModelViewDialog.updateDialogContent(this)}get dialogName(){return this._dialogName}set dialogName(i){this._dialogName=i}get isWide(){return this._isWide}set isWide(i){this._isWide=i}registerCloseValidator(i){this._closeValidator=i}validateClose(){return this._closeValidator?Promise.resolve(this._closeValidator()):Promise.resolve(!0)}handleOnClosed(i){this._onClosed.fire(i)}}class r extends s{constructor(i,c,_){super("modelViewDialogTab",i,c,_)}setModelViewId(i){super.setModelViewId(i),this.content=i}}class h{constructor(i){this._extHostModelViewDialog=i,this._onClick=new w.Emitter,this.onClick=this._onClick.event,this._enabled=!0,this._hidden=!1,this._position="right"}get label(){return this._label}set label(i){this._label=i,this._extHostModelViewDialog.updateButton(this)}get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._extHostModelViewDialog.updateButton(this)}get hidden(){return this._hidden}set hidden(i){this._hidden=i,this._extHostModelViewDialog.updateButton(this)}get position(){return this._position}set position(i){this._position=i,this._extHostModelViewDialog.updateButton(this)}get secondary(){return this._secondary}set secondary(i){this._secondary=i,this._extHostModelViewDialog.updateButton(this)}get focused(){return this._focused}set focused(i){this._focused=i,this._extHostModelViewDialog.updateButton(this),this._focused=void 0}getOnClickCallback(){return()=>this._onClick.fire()}}class o{constructor(i,c){this._name=i,this._extHostTaskManagement=c}createOperation(){if(this._operationInfo){if(!this._operationInfo.operationId){let i=(0,d.generateUuid)();this._operationInfo.operationId="OperationId"+i+this._name}this._operationInfo.operation&&this._extHostTaskManagement.$registerTask(this._operationInfo)}}registerOperation(i){this._operationInfo=i}}class b extends s{constructor(i,c,_,S,k){super("modelViewWizardPage",c,_,S),this.title=i,this.pageName=k,this._enabled=!0}get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._extHostModelViewDialog.updateWizardPage(this)}get content(){return this._modelViewId}set content(i){this._modelViewId=i}get description(){return this._description}set description(i){this._description=i,this._extHostModelViewDialog.updateWizardPage(this)}}var P;(function(l){l[l.PageChanged=0]="PageChanged",l[l.PageAddedOrRemoved=1]="PageAddedOrRemoved"})(P||(e.WizardPageInfoEventType=P={}));class T{constructor(i,c,_,S){this.title=i,this.name=c,this._extHostModelViewDialog=_,this._currentPage=void 0,this.pages=[],this._pageChangedEmitter=new w.Emitter,this.onPageChanged=this._pageChangedEmitter.event,this._displayPageTitles=!0,this.doneButton=this._extHostModelViewDialog.createButton(p),this.cancelButton=this._extHostModelViewDialog.createButton(f,"right",!0),this.generateScriptButton=this._extHostModelViewDialog.createButton(y,"right",!0),this.nextButton=this._extHostModelViewDialog.createButton(E),this.backButton=this._extHostModelViewDialog.createButton(t,"right",!0),this._extHostModelViewDialog.registerWizardPageInfoChangedCallback(this,k=>this.handlePageInfoChanged(k)),this._currentPage=0,this.onPageChanged(k=>this._currentPage=k.newPage),this._operationHandler=new o("wizard"+this.title,S),this.doneButton.onClick(()=>{this._operationHandler.createOperation()})}registerOperation(i){this._operationHandler.registerOperation(i)}get width(){return this._width}set width(i){this._width=i}get currentPage(){return this._currentPage}get message(){return this._message}set message(i){this._message=i,this._extHostModelViewDialog.updateWizard(this)}get loading(){return this._loading}set loading(i){this._loading=i,this._extHostModelViewDialog.updateWizard(this)}get loadingText(){return this._loadingText}set loadingText(i){this._loadingText=i,this._extHostModelViewDialog.updateWizard(this)}get loadingCompletedText(){return this._loadingCompletedText}set loadingCompletedText(i){this._loadingCompletedText=i,this._extHostModelViewDialog.updateWizard(this)}get displayPageTitles(){return this._displayPageTitles}set displayPageTitles(i){this._displayPageTitles=i,this._extHostModelViewDialog.updateWizard(this)}addPage(i,c){return this._extHostModelViewDialog.updateWizardPage(i).then(()=>{this._extHostModelViewDialog.addPage(this,i,c)})}removePage(i){return this._extHostModelViewDialog.removePage(this,i)}setCurrentPage(i){return this._extHostModelViewDialog.setWizardPage(this,i)}open(i){return this._extHostModelViewDialog.openWizard(this,i)}close(){return this._extHostModelViewDialog.closeWizard(this)}registerNavigationValidator(i){this._navigationValidator=i}validateNavigation(i){return this._navigationValidator?Promise.resolve(this._navigationValidator(i)):Promise.resolve(!0)}handlePageInfoChanged(i){this._currentPage=i.pageChangeInfo.newPage,i.eventType===P.PageAddedOrRemoved?this.pages=i.pages:i.eventType===P.PageChanged&&this._pageChangedEmitter.fire(i.pageChangeInfo)}}class n extends u.Disposable{constructor(i,c){super(),this._editor=i,this._options=c,this._register(this._editor)}updateTabs(i){if(this._tabbedPanel===void 0||this._view===void 0)throw new Error(M.localize(5,null));this._tabbedPanel.updateTabs(this.createTabs(i,this._view))}registerTabs(i){this._editor.registerContent(async c=>{this._view=c;const _=await i(c),S=this.createTabs(_,c);return this._tabbedPanel=c.modelBuilder.tabbedPanel().withTabs(S).withLayout({orientation:A.TabOrientation.Vertical,showIcon:this._options?.showIcon??!0,alwaysShowTabs:this._options?.alwaysShowTabs??!1}).component(),this._register(this._tabbedPanel),c.initializeModel(this._tabbedPanel)})}open(){return this._editor.openEditor()}close(){return this._editor.closeEditor()}createTab(i,c){let _;if(i.toolbar){const S=c.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).component();S.addItem(i.toolbar,{flex:"0 0 auto"}),S.addItem(i.content,{flex:"1 1 auto"}),_={title:i.title,id:i.id,content:S,icon:i.icon,dispose:()=>S.dispose()}}else{let S=i.content;_={content:S,id:i.id,title:i.title,icon:i.icon,dispose:()=>S.dispose()}}return this._register(_),_}createTabs(i,c){const _=[];return i.forEach(S=>{if("tabs"in S){let k=S.tabs.map(m=>this.createTab(m,c));_.push({title:S.title,tabs:k,dispose:()=>{k.forEach(m=>m.dispose())}})}else _.push(this.createTab(S,c))}),_}selectTab(i){this._tabbedPanel.selectTab(i)}}class a{static{this._currentHandle=0}constructor(i,c,_){this._extHostModelView=c,this._extHostTaskManagement=_,this._objectHandles=new Map,this._objectsByHandle=new Map,this._validityEmitters=new Map,this._pageInfoChangedCallbacks=new Map,this._onClickCallbacks=new Map,this._proxy=i.getProxy(R.SqlMainContext.MainThreadModelViewDialog)}static getNewHandle(){let i=a._currentHandle;return a._currentHandle+=1,i}getHandle(i,c=!0){let _=this._objectHandles.get(i);return c&&_===void 0&&(_=a.getNewHandle(),this._objectHandles.set(i,_),this._objectsByHandle.set(_,i)),_}$onButtonClick(i){this._onClickCallbacks.get(i)()}$onPanelValidityChanged(i,c){let _=this._validityEmitters.get(i);_&&_.fire(c)}$onWizardPageChanged(i,c){let _=this._pageInfoChangedCallbacks.get(i);_&&_({eventType:P.PageChanged,pageChangeInfo:c})}$updateWizardPageInfo(i,c,_){let S=this._pageInfoChangedCallbacks.get(i);if(S){let k=c.map(m=>this._objectsByHandle.get(m));S({eventType:P.PageAddedOrRemoved,pageChangeInfo:{lastPage:void 0,newPage:_},pages:k})}}$validateNavigation(i,c){return this._objectsByHandle.get(i).validateNavigation(c)}$validateDialogClose(i){return this._objectsByHandle.get(i).validateClose()}$handleSave(i){return this._objectsByHandle.get(i).handleSave()}$onClosed(i,c){this._objectsByHandle.get(i).handleOnClosed(c)}openDialog(i){let c=this.getHandle(i);this.updateDialogContent(i),i.dialogName?this._proxy.$openDialog(c,i.dialogName):this._proxy.$openDialog(c)}openCustomErrorDialog(i){return this._proxy.$openCustomErrorDialog(i)}closeDialog(i){let c=this.getHandle(i);this._proxy.$closeDialog(c)}createModelViewEditor(i,c,_,S){_=_??"ModelViewEditor";let k=new g(this,this._extHostModelView,c,this._proxy,i,_,S);return k.handle=this.getHandle(k),k}createModelViewDashboard(i,c,_,S){c=c??"ModelViewDashboard";const k=this.createModelViewEditor(i,S,c,{supportsSave:!1});return new n(k,_)}updateDialogContent(i){let c="narrow",_,S,k,m,v,D=this.getHandle(i),L=i.content;i.dialogStyle&&(_=i.dialogStyle),i.dialogPosition&&(S=i.dialogPosition),i.renderHeader&&(k=i.renderHeader),i.renderFooter&&(m=i.renderFooter),i.dialogProperties&&(v=i.dialogProperties),L&&typeof L!="string"&&L.forEach(O=>this.updateTabContent(O)),i.customButtons&&i.customButtons.forEach(O=>{this.updateButton(O,!0)}),i.renderFooter!==!1&&(this.updateButton(i.okButton),this.updateButton(i.cancelButton)),i.isWide!==void 0?c=i.isWide?"wide":"narrow":i.width!==void 0?c=i.width:c="narrow",this._proxy.$setDialogDetails(D,{title:i.title,width:c,dialogStyle:_,dialogPosition:S,renderHeader:k,renderFooter:m,dialogProperties:v,okButton:this.getHandle(i.okButton),cancelButton:this.getHandle(i.cancelButton),content:i.content&&typeof i.content!="string"?i.content.map(O=>this.getHandle(O)):i.content,customButtons:i.customButtons?i.customButtons.map(O=>this.getHandle(O)):void 0,message:i.message,loading:i.loading,loadingText:i.loadingText,loadingCompletedText:i.loadingCompletedText})}updateTabContent(i){let c=this.getHandle(i);this._proxy.$setTabDetails(c,{title:i.title,content:i.content})}updateButton(i,c=!1){c&&(i.secondary=!0);let _=this.getHandle(i);this._proxy.$setButtonDetails(_,{label:i.label,enabled:i.enabled,hidden:i.hidden,focused:i.focused,position:i.position,secondary:i.secondary})}registerOnClickCallback(i,c){let _=this.getHandle(i);this._onClickCallbacks.set(_,c)}createDialog(i,c,_,S,k,m,v,D,L){let O=new C(this,this._extHostModelView,this._extHostTaskManagement,_);return c&&(O.dialogName=c),k&&(O.dialogStyle=k),m&&(O.dialogPosition=m),L&&(O.dialogProperties=L),O.renderHeader=v,O.renderFooter=D,i&&(O.title=i),O.width=S??"narrow",O.handle=this.getHandle(O),O}createTab(i,c){let _=new r(this,this._extHostModelView,c);return _.title=i,_.handle=this.getHandle(_),_}createButton(i,c="right",_=!1){let S=new h(this);return this.getHandle(S),this.registerOnClickCallback(S,S.getOnClickCallback()),S.label=i,S.position=c,S.secondary=_,S}getValidityChangedEvent(i){let c=this.getHandle(i),_=this._validityEmitters.get(c);return _||(_=new w.Emitter,this._validityEmitters.set(c,_)),_.event}registerWizardPageInfoChangedCallback(i,c){let _=this.getHandle(i);this._pageInfoChangedCallbacks.set(_,c)}createWizardPage(i,c,_){let S=new b(i,this,this._extHostModelView,c,_);return S.handle=this.getHandle(S),S}createWizard(i,c="ModelViewWizard",_="wide"){let S=new T(i,c,this,this._extHostTaskManagement);return S.width=_,this.getHandle(S),S}updateWizardPage(i){let c=this.getHandle(i);return i.customButtons&&i.customButtons.forEach(_=>{this.updateButton(_,!0)}),this._proxy.$setWizardPageDetails(c,{content:i.content,customButtons:i.customButtons?i.customButtons.map(_=>this.getHandle(_)):void 0,enabled:i.enabled,title:i.title,description:i.description,pageName:i.pageName})}updateWizard(i){let c=this.getHandle(i);return i.pages.forEach(_=>this.updateWizardPage(_)),this.updateButton(i.backButton),this.updateButton(i.cancelButton),this.updateButton(i.generateScriptButton),this.updateButton(i.doneButton),this.updateButton(i.nextButton),i.customButtons&&i.customButtons.forEach(_=>{this.updateButton(_,!0)}),this._proxy.$setWizardDetails(c,{title:i.title,name:i.name,width:i.width,pages:i.pages.map(_=>this.getHandle(_)),currentPage:i.currentPage,backButton:this.getHandle(i.backButton),cancelButton:this.getHandle(i.cancelButton),generateScriptButton:this.getHandle(i.generateScriptButton),doneButton:this.getHandle(i.doneButton),nextButton:this.getHandle(i.nextButton),customButtons:i.customButtons?i.customButtons.map(_=>this.getHandle(_)):void 0,message:i.message,displayPageTitles:i.displayPageTitles,loading:i.loading,loadingText:i.loadingText,loadingCompletedText:i.loadingCompletedText})}addPage(i,c,_){return this._proxy.$addWizardPage(this.getHandle(i),this.getHandle(c),_)}removePage(i,c){return this._proxy.$removeWizardPage(this.getHandle(i),c)}setWizardPage(i,c){return this._proxy.$setWizardPage(this.getHandle(i),c)}openWizard(i,c){let _=this.getHandle(i);return this.updateWizard(i),this._proxy.$openWizard(_,c)}closeWizard(i){let c=this.getHandle(i);return this._proxy.$closeWizard(c)}}e.ExtHostModelViewDialog=a}),define(ye[304],Ce([1,0,181,8,147,4,3]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTreeView=e.ExtHostModelViewTreeViews=void 0;class u{constructor(y,E){this._mainContext=y,this.logService=E,this.treeViews=new Map,this._proxy=this._mainContext.getProxy(R.SqlMainContext.MainThreadModelView)}$createTreeView(y,E,t,s){if(!t||!t.treeDataProvider)throw new Error("Options with treeDataProvider is mandatory");const g=this.createExtHostTreeViewer(y,E,t.treeDataProvider,s,this.logService);return{dispose:()=>{this.treeViews.delete(E),g.dispose()},onNodeCheckedChanged:g.NodeCheckedChanged,onDidChangeSelection:g.ChangeSelection}}$getChildren(y,E){const t=this.treeViews.get(y);return t?t.getChildren(E):Promise.reject(new Error((0,w.localize)(0,null,y)))}$onNodeCheckedChanged(y,E,t){const s=this.treeViews.get(y);s&&s.onNodeCheckedChanged(E,t)}$onNodeSelected(y,E){const t=this.treeViews.get(y);t&&t.onNodeSelectedChanged(E)}$setSelectionAndFocus(y,E,t){}$setExpanded(y,E,t){}$setSelection(y,E){}$setVisible(y,E){}$hasResolve(y){return Promise.resolve(!1)}$resolve(y,E){return Promise.resolve(void 0)}$handleDrop(y,E,t,s,g,C,r,h){return Promise.resolve(void 0)}$handleDrag(y,E,t,s){return Promise.resolve(void 0)}$setFocus(y,E){}$changeCheckboxState(y,E){}createExtHostTreeViewer(y,E,t,s,g){const C=new p(y,E,t,this._proxy,void 0,s,g);return this.treeViews.set(`${y}-${E}`,C),C}}e.ExtHostModelViewTreeViews=u;class p extends d.ExtHostTreeView{constructor(y,E,t,s,g,C,r){super(E,{treeDataProvider:t},void 0,g,r,C),this.handle=y,this.componentId=E,this.componentDataProvider=t,this.modelViewProxy=s,this._logService=r,this._onNodeCheckedChanged=this._register(new A.Emitter),this._onChangeSelection=this._register(new A.Emitter),this.NodeCheckedChanged=this._onNodeCheckedChanged.event,this.ChangeSelection=this._onChangeSelection.event}onNodeCheckedChanged(y,E){const t=y?this.getExtensionElement(y):void 0;y&&!t&&this._logService.error(`No tree item with id '${y}' found.`),this._onNodeCheckedChanged.fire({element:t,checked:E})}onNodeSelectedChanged(y){if(y){let E=y.map(t=>t?this.getExtensionElement(t):void 0);this._onChangeSelection.fire({selection:E})}}reveal(y,E){if(typeof this.componentDataProvider.getParent!="function")return Promise.reject(new Error("Required registered TreeDataProvider to implement 'getParent' method to access 'reveal' method"));let t;return Promise.resolve(this.resolveUnknownParentChain(y).then(s=>this.resolveTreeNode(y,s[s.length-1]).then(g=>t)))}refreshElements(y){if(y.some(t=>!t))this.clearAll(),this.modelViewProxy.$refreshDataProvider(this.handle,this.componentId);else{const t=this.getHandlesToRefresh(y);t.length&&this.refreshHandles(t).catch(M.onUnexpectedError)}}refreshHandles(y){const E={};return Promise.all(y.map(t=>this.refreshNode(t).then(s=>{s&&(E[t]=s.item)}))).then(()=>Object.keys(E).length?this.modelViewProxy.$refreshDataProvider(this.handle,this.componentId,E):null)}createTreeNode(y,E,t){let s=super.createTreeNode(y,E,t);return s.item&&(s.item=Object.assign(s.item,{checked:E.checked,enabled:E.enabled})),s}}e.ExtHostTreeView=p}),define(ye[305],Ce([1,0,7,182,2,46,3]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebook=void 0;class u{static{this._handlePool=0}constructor(E){this._adapters=new Map,this._proxy=E.getProxy(R.SqlMainContext.MainThreadNotebook)}async $getSerializationManagerDetails(E,t){let s=d.URI.revive(t),g=await this._withSerializationProvider(E,C=>this.getOrCreateSerializationManager(C,s));return{handle:g.handle,hasContentManager:!!g.contentManager}}async $getExecuteManagerDetails(E,t){let s=d.URI.revive(t),g=await this._withExecuteProvider(E,C=>this.getOrCreateExecuteManager(C,s));return{handle:g.handle,hasServerManager:!!g.serverManager}}$handleNotebookClosed(E){let t=d.URI.revive(E),s=t.toString();this.findExecuteManagersForUri(s).forEach(g=>{g.provider.handleNotebookClosed(t),this._adapters.delete(g.handle)})}$doStartServer(E,t){return this._withServerManager(E,s=>s.startServer(t))}$doStopServer(E){return this._withServerManager(E,t=>t.stopServer())}$deserializeNotebook(E,t){return this._withContentManager(E,s=>s.deserializeNotebook(t))}$serializeNotebook(E,t){return this._withContentManager(E,s=>s.serializeNotebook(t))}$refreshSpecs(E){return this._withSessionManager(E,async t=>(await t.ready,t.specs))}$startNewSession(E,t){return this._withSessionManager(E,async s=>{try{let g=await s.startNew(t),C=this._addNewAdapter(g),r;return g.kernel&&(r=this.saveKernel(g.kernel)),{sessionId:C,id:g.id,path:g.path,name:g.name,type:g.type,status:g.status,canChangeKernels:g.canChangeKernels,kernelDetails:r}}catch(g){throw typeof g=="string"?new Error(g):Object.assign(g,{errorCode:g.response?.status})}})}saveKernel(E){return{kernelId:this._addNewAdapter(E),id:E.id,info:E.info,name:E.name,supportsIntellisense:E.supportsIntellisense,requiresConnection:E.requiresConnection}}$shutdownSession(E,t){if(this._adapters.get(E)!==void 0)return this._withSessionManager(E,async s=>s.shutdown(t))}$shutdownAll(E){return this._withSessionManager(E,async t=>t.shutdownAll())}$changeKernel(E,t){return this._getAdapter(E).changeKernel(t).then(g=>this.saveKernel(g))}$configureKernel(E,t){return this._getAdapter(E).configureKernel(t).then(()=>null)}$configureConnection(E,t){return this._getAdapter(E).configureConnection(t).then(()=>null)}$getKernelReadyStatus(E){let t=this._getAdapter(E);return t.ready.then(s=>t.info)}$getKernelSpec(E){return this._getAdapter(E).getSpec()}$requestComplete(E,t){return this._getAdapter(E).requestComplete(t)}$requestExecute(E,t,s){let C=this._getAdapter(E).requestExecute(t,s),r=this._addNewAdapter(C);return this.hookFutureDone(r,C),this.hookFutureMessages(r,C),Promise.resolve({futureId:r,msg:C.msg})}hookFutureDone(E,t){t.done.then(s=>this._proxy.$onFutureDone(E,{succeeded:!0,message:s,rejectReason:void 0}),s=>{let g;return typeof s=="string"?g=s:s instanceof Error&&typeof s.message=="string"?g=s.message:g=s,this._proxy.$onFutureDone(E,{succeeded:!1,message:void 0,rejectReason:g})})}hookFutureMessages(E,t){t.setReplyHandler({handle:s=>this._proxy.$onFutureMessage(E,A.FutureMessageType.Reply,s)}),t.setStdInHandler({handle:s=>this._proxy.$onFutureMessage(E,A.FutureMessageType.StdIn,s)}),t.setIOPubHandler({handle:s=>this._proxy.$onFutureMessage(E,A.FutureMessageType.IOPub,s)})}$interruptKernel(E){return this._getAdapter(E).interrupt()}$restartKernel(E){return this._getAdapter(E).restart()}$sendInputReply(E,t){return this._getAdapter(E).sendInputReply(t)}$disposeFuture(E){this._getAdapter(E).dispose()}$dispose(E){return this._withSessionManager(E,async t=>t.dispose())}registerExecuteProvider(E){if(!E||!E.providerId)throw new Error((0,M.localize)(0,null));const t=this._addNewAdapter(E);return this._proxy.$registerExecuteProvider(E.providerId,t),this._createDisposable(t)}registerSerializationProvider(E){if(!E||!E.providerId)throw new Error((0,M.localize)(1,null));const t=this._addNewAdapter(E);return this._proxy.$registerSerializationProvider(E.providerId,t),this._createDisposable(t)}getAdapters(E){let t=[];return this._adapters.forEach(s=>{s instanceof E&&t.push(s)}),t}findExecuteManagersForUri(E){return this.getAdapters(f).filter(t=>t.uriString===E)}async getOrCreateSerializationManager(E,t){let s=t.toString(),g=this.getAdapters(p).find(C=>C.uriString===s&&C.provider.providerId===E.providerId);if(!g){let C=await E.getSerializationManager(t);g=new p(E,C,s),g.handle=this._addNewAdapter(g)}return g}async getOrCreateExecuteManager(E,t){let s=t.toString(),g=this.getAdapters(f).find(C=>C.uriString===s&&C.provider.providerId===E.providerId);if(!g){let C=await E.getExecuteManager(t);g=new f(E,C,s),g.handle=this._addNewAdapter(g)}return g}_createDisposable(E){return new w.Disposable(()=>{this._adapters.delete(E)})}_nextHandle(){return u._handlePool++}_withSerializationProvider(E,t){let s=this._adapters.get(E);return s===void 0?Promise.reject(new Error((0,M.localize)(2,null))):Promise.resolve(t(s))}_withExecuteProvider(E,t){let s=this._adapters.get(E);return s===void 0?Promise.reject(new Error((0,M.localize)(3,null))):Promise.resolve(t(s))}_withSerializationManager(E,t){let s=this._adapters.get(E);return s===void 0?Promise.reject(new Error((0,M.localize)(4,null))):this.callbackWithErrorWrap(t,s)}_withExecuteManager(E,t){let s=this._adapters.get(E);return s===void 0?Promise.reject(new Error((0,M.localize)(5,null))):this.callbackWithErrorWrap(t,s)}async callbackWithErrorWrap(E,t){try{return await E(t)}catch(s){throw typeof s=="string"?new Error(s):s}}_withServerManager(E,t){return this._withExecuteManager(E,s=>{let g=s.serverManager;return g?t(g):Promise.reject(new Error((0,M.localize)(6,null,s.uriString)))})}_withContentManager(E,t){return this._withSerializationManager(E,s=>{let g=s.contentManager;return g?t(g):Promise.reject(new Error((0,M.localize)(7,null,s.uriString)))})}_withSessionManager(E,t){return this._withExecuteManager(E,s=>{let g=s.sessionManager;return g?t(g):Promise.reject(new Error((0,M.localize)(8,null,s.uriString)))})}_addNewAdapter(E){const t=this._nextHandle();return this._adapters.set(t,E),t}_getAdapter(E){let t=this._adapters.get(E);if(t===void 0)throw new Error("No adapter found");return t}}e.ExtHostNotebook=u;class p{constructor(E,t,s){this.provider=E,this.manager=t,this.uriString=s}get contentManager(){return this.manager.contentManager}}class f{constructor(E,t,s){this.provider=E,this.manager=t,this.uriString=s}get sessionManager(){return this.manager.sessionManager}get serverManager(){return this.manager.serverManager}}}),define(ye[306],Ce([1,0,4,5,2,7,11,42,183,270,271,3]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookDocumentsAndEditors=void 0;class t{static{this._handlePool=0}constructor(g){this._mainContext=g,this._disposables=[],this._adapters=new Map,this._editors=new Map,this._documents=new Map,this._onDidChangeVisibleNotebookEditors=new w.Emitter,this._onDidChangeActiveNotebookEditor=new w.Emitter,this._onDidOpenNotebook=new w.Emitter,this._onDidCloseNotebook=new w.Emitter,this._onDidChangeNotebookCell=new w.Emitter,this.onDidChangeVisibleNotebookEditors=this._onDidChangeVisibleNotebookEditors.event,this.onDidChangeActiveNotebookEditor=this._onDidChangeActiveNotebookEditor.event,this.onDidOpenNotebookDocument=this._onDidOpenNotebook.event,this.onDidCloseNotebookDocument=this._onDidCloseNotebook.event,this.onDidChangeNotebookCell=this._onDidChangeNotebookCell.event,this._mainContext&&(this._proxy=this._mainContext.getProxy(E.SqlMainContext.MainThreadNotebookDocumentsAndEditors))}dispose(){this._disposables=(0,M.dispose)(this._disposables)}$acceptDocumentsAndEditorsDelta(g){const C=[],r=[],h=[];if(g.removedDocuments)for(const o of g.removedDocuments){const P=d.URI.revive(o).toString(),T=this._documents.get(P);this._documents.delete(P),C.push(T)}if(g.addedDocuments)for(const o of g.addedDocuments){const b=d.URI.revive(o.uri);if(!this._documents.has(b.toString())){const P=new f.ExtHostNotebookDocumentData(this._proxy,b,o.providerId,o.isDirty,o.cells);this._documents.set(b.toString(),P),r.push(P)}}if(g.removedEditors)for(const o of g.removedEditors){const b=this._editors.get(o);this._editors.delete(o),h.push(b)}if(g.addedEditors)for(const o of g.addedEditors){const b=d.URI.revive(o.documentUri);(0,u.ok)(this._documents.has(b.toString()),`document '${b}' does not exist`),(0,u.ok)(!this._editors.has(o.id),`editor '${o.id}' already exists!`);const P=this._documents.get(b.toString()),T=new y.ExtHostNotebookEditor(this._mainContext.getProxy(E.SqlMainContext.MainThreadNotebookDocumentsAndEditors),o.id,P,typeof o.editorPosition=="number"?R.ViewColumn.to(o.editorPosition):void 0);this._editors.set(o.id,T)}g.newActiveEditor!==void 0&&((0,u.ok)(g.newActiveEditor===null||this._editors.has(g.newActiveEditor),`active editor '${g.newActiveEditor}' does not exist`),this._activeEditorId=g.newActiveEditor),(0,M.dispose)(C),(0,M.dispose)(h),C&&C.forEach(o=>this._onDidCloseNotebook.fire(o.document)),r&&r.forEach(o=>this._onDidOpenNotebook.fire(o.document)),(g.removedEditors||g.addedEditors)&&this._onDidChangeVisibleNotebookEditors.fire(this.getAllEditors()),g.newActiveEditor!==void 0&&this._onDidChangeActiveNotebookEditor.fire(this.getActiveEditor())}$acceptModelChanged(g,C){const h=d.URI.revive(g).toString();let o=this._documents.get(h);o&&(o.onModelChanged(C),this._onDidChangeNotebookCell.fire({cells:o.document.cells,notebook:o.document,kind:C.changeKind}))}_nextHandle(){return t._handlePool++}_addNewAdapter(g){const C=this._nextHandle();return this._adapters.set(C,g),C}_getAdapter(g){let C=this._adapters.get(g);if(C===void 0)throw new Error("No adapter found");return C}$getNavigation(g,C){let r=this._getAdapter(g);if(r){let h=d.URI.revive(C);return r.getNavigation(h)}throw new Error("No navigation provider found for handle ${handle}")}showNotebookDocument(g,C){return this.doShowNotebookDocument(g,C)}async doShowNotebookDocument(g,C){let r={};C&&(r.preserveFocus=C.preserveFocus,r.preview=C.preview,r.position=C.viewColumn,r.providerId=C.providerId,r.connectionProfile=C.connectionProfile,r.defaultKernel=C.defaultKernel,C.initialContent&&(typeof C.initialContent!="string"?r.initialContent=JSON.stringify(C.initialContent):r.initialContent=C.initialContent),r.initialDirtyState=C.initialDirtyState);let h=await this._proxy.$tryShowNotebookDocument(g,r),o=this.getEditor(h);if(o)return o;throw new Error(`Failed to show notebook document ${g.toString()}, should show in editor #${h}`)}getDocument(g){return this._documents.get(g)}getAllDocuments(){const g=[];return this._documents.forEach(C=>g.push(C)),g}getEditor(g){return this._editors.get(g)}getActiveEditor(){if(this._activeEditorId)return this._editors.get(this._activeEditorId)}getAllEditors(){const g=[];return this._editors.forEach(C=>g.push(C)),g}registerNavigationProvider(g){if(!g||!g.providerId)throw new Error((0,p.localize)(0,null));const C=this._addNewAdapter(g);return this._proxy.$registerNavigationProvider(g.providerId,C),new A.Disposable(()=>{this._adapters.delete(C)})}}e.ExtHostNotebookDocumentsAndEditors=t}),define(ye[307],Ce([1,0,3,156]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostObjectExplorerNode=e.ExtHostObjectExplorer=void 0;class d{constructor(u,p){this._proxy=u.getProxy(w.SqlMainContext.MainThreadObjectExplorer);function f(E){return E?.$treeItem?.payload}function y(E){return{connectionProfile:E.$treeItem.payload,isConnectionNode:E.$treeItem?.type===M.NodeType.Server||E.$treeItem?.type===M.NodeType.Database,nodeInfo:E.$treeItem.nodeInfo}}p.registerArgumentProcessor({processArgument:E=>f(E)?y(E):E})}$getNode(u,p){return this._proxy.$getNode(u,p).then(f=>f===void 0?void 0:new A(f,u,this._proxy))}$getActiveConnectionNodes(){return this._proxy.$getActiveConnectionNodes().then(u=>u.map(p=>new A(p.nodeInfo,p.connectionId,this._proxy)))}$findNodes(u,p,f,y,E,t){return this._proxy.$findNodes(u,p,f,y,E,t).then(s=>s.map(g=>new A(g,u,this._proxy)))}$getNodeActions(u,p){return this._proxy.$getNodeActions(u,p)}$getSessionConnectionProfile(u){return this._proxy.$getSessionConnectionProfile(u)}}e.ExtHostObjectExplorer=d;class A{constructor(u,p,f){this._proxy=f,this.getDetailsFromInfo(u),this.connectionId=p}isExpanded(){return this._proxy.$isExpanded(this.connectionId,this.nodePath)}setExpandedState(u){return this._proxy.$setExpandedState(this.connectionId,this.nodePath,u)}setSelected(u,p=void 0){return this._proxy.$setSelected(this.connectionId,this.nodePath,u,p)}getChildren(){return this._proxy.$getChildren(this.connectionId,this.nodePath).then(u=>u.map(p=>new A(p,this.connectionId,this._proxy)))}getParent(){let u;if(this.parentNodePath===void 0){let p=this.metadata?`${this.metadata.schema?this.metadata.schema+".":""}${this.metadata.name}`:this.label,f=this.nodePath.lastIndexOf(p)-1;u=this.nodePath.slice(0,f)}else u=this.parentNodePath;return u?this._proxy.$getNode(this.connectionId,this.parentNodePath).then(p=>p?new A(p,this.connectionId,this._proxy):void 0):Promise.resolve(void 0)}refresh(){return this._proxy.$refresh(this.connectionId,this.nodePath).then(u=>this.getDetailsFromInfo(u))}getDetailsFromInfo(u){this.nodePath=u.nodePath,this.parentNodePath=u.parentNodePath,this.nodeType=u.nodeType,this.nodeSubType=u.nodeSubType,this.nodeStatus=u.nodeStatus,this.label=u.label,this.isLeaf=u.isLeaf,this.metadata=u.metadata,this.errorMessage=u.errorMessage}}e.ExtHostObjectExplorerNode=A}),define(ye[308],Ce([1,0,3,116,7,2,278]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostQueryEditor=void 0;class u{constructor(y,E,t){this.providerId=y,this.uri=E,this._proxy=t}setExecutionOptions(y){let E={options:y};return this._proxy.$setQueryExecutionOptions(this.uri,E)}createQueryTab(y){this._proxy.$createQueryTab(this.uri,y.title,y.content)}connect(y){return this._proxy.$connectWithProfile(this.uri,y)}}class p{constructor(y){this._nextListenerHandle=0,this._queryListeners=new Map,this._proxy=y.getProxy(w.SqlMainContext.MainThreadQueryEditor)}$connect(y,E){return this._proxy.$connect(y,E)}$runQuery(y,E=!0){return this._proxy.$runQuery(y,E)}$registerQueryInfoListener(y){const E=this._nextListenerHandle++;return this._queryListeners[E]=y,this._proxy.$registerQueryInfoListener(E),new d.Disposable(()=>{this._queryListeners.delete(E),this._proxy.$unregisterQueryInfoListener(E)})}$onQueryEvent(y,E,t,s){let g=this._queryListeners[E];if(g){let C=s.params&&s.params.planXml?s.params.planXml:s.params;g.onQueryEvent(s.type,new u(y,t,this._proxy),C,R.QueryInfo.to(s.queryInfo))}}$getQueryDocument(y){return new Promise(E=>{E(new u(M.mssqlProviderName,y,this._proxy))})}createQueryDocument(y,E){return this._proxy.$createQueryDocument(y,E).then(t=>A.URI.revive(t))}}e.ExtHostQueryEditor=p}),define(ye[309],Ce([1,0,7,40,41,3]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostResourceProvider=void 0;class R extends M.ExtHostResourceProviderShape{constructor(p){super(),this._handlePool=0,this._providers={},this._proxy=p.getProxy(A.SqlMainContext.MainThreadResourceProvider)}$createFirewallRule(p,f,y){return this._withProvider(p,E=>E.createFirewallRule(f,y))}$handleFirewallRule(p,f,y,E){return this._withProvider(p,t=>t.handleFirewallRule(f,y,E))}$registerResourceProvider(p,f){let y=this;if((0,d.values)(this._providers).findIndex(s=>s.metadata.id===p.id)>=0)throw new Error(`Resource Provider with ID '${p.id}' has already been registered`);let t=this._nextHandle();return this._providers[t]={metadata:p,provider:f},this._proxy.$registerResourceProvider(p,t),new w.Disposable(()=>{delete y._providers[t],y._proxy.$unregisterResourceProvider(t)})}getProviderCount(){return Object.keys(this._providers).length}_nextHandle(){return this._handlePool++}_withProvider(p,f){let y=this._providers[p];return y===void 0?Promise.reject(new Error(`Provider ${p} not found.`)):f(y.provider)}}e.ExtHostResourceProvider=R}),define(ye[310],Ce([1,0,18,7,3]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTasks=void 0;class A{constructor(u,p){this.logService=p,this._tasks=new Map,this._proxy=u.getProxy(d.SqlMainContext.MainThreadTasks)}registerTask(u,p,f,y){if(this.logService.trace("ExtHostTasks#registerTask",u),!u.trim().length)throw new Error("invalid id");if(this._tasks.has(u))throw new Error(`task '${u}' already exists`);return this._tasks.set(u,{callback:p,thisArg:f,description:y}),this._proxy.$registerTask(u),new M.Disposable(()=>{this._tasks.delete(u)&&this._proxy.$unregisterTask(u)})}$executeContributedTask(u,...p){let f=this._tasks.get(u);if(!f)return Promise.reject(new Error(`Contributed task '${u}' does not exist.`));let{callback:y,thisArg:E,description:t}=f;if(t)for(let s=0;s<t.args.length;s++)try{(0,w.validateConstraint)(p[s],t.args[s].constraint)}catch{return Promise.reject(new Error(`Running the contributed task:'${u}' failed. Illegal argument '${t.args[s].name}' - ${t.args[s].description}`))}try{let s=y.apply(E,p);return Promise.resolve(s)}catch{return Promise.reject(new Error(`Running the contributed task:'${u}' failed.`))}}$getContributedTaskHandlerDescriptions(){throw new Error("Method not implemented.")}}e.ExtHostTasks=A}),define(ye[311],Ce([1,0,3]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostWindow=void 0;class M{constructor(A){this._proxy=A.getProxy(w.SqlMainContext.MainThreadWindow)}$openServerFileBrowserDialog(A,R,u,p){return this._proxy.$openServerFileBrowserDialog(A,R,u,p)}$openBackupUrlBrowserDialog(A,R,u){return this._proxy.$openBackupUrlBrowserDialog(A,R,u)}}e.ExtHostWindow=M}),define(ye[312],Ce([1,0,3]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostWorkspace=void 0;class M{constructor(A){this._proxy=A.getProxy(w.SqlMainContext.MainThreadWorkspace)}$createAndEnterWorkspace(A,R){return this._proxy.$createAndEnterWorkspace(A,R)}$enterWorkspace(A){return this._proxy.$enterWorkspace(A)}$saveAndEnterWorkspace(A){return this._proxy.$saveAndEnterWorkspace(A)}}e.ExtHostWorkspace=M}),define(ye[313],Ce([1,0,3,7]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostRelatedInformation=void 0;class d{constructor(R){this._relatedInformationProviders=new Map,this._nextHandle=0,this._proxy=R.getProxy(w.MainContext.MainThreadAiRelatedInformation)}async $provideAiRelatedInformation(R,u,p){if(this._relatedInformationProviders.size===0)throw new Error("No related information providers registered");const f=this._relatedInformationProviders.get(R);if(!f)throw new Error("related information provider not found");return await f.provideRelatedInformation(u,p)??[]}getRelatedInformation(R,u,p){return this._proxy.$getAiRelatedInformation(u,p)}registerRelatedInformationProvider(R,u,p){const f=this._nextHandle;return this._nextHandle++,this._relatedInformationProviders.set(f,p),this._proxy.$registerAiRelatedInformationProvider(f,u),new M.Disposable(()=>{this._proxy.$unregisterAiRelatedInformationProvider(f),this._relatedInformationProviders.delete(f)})}}e.ExtHostRelatedInformation=d}),define(ye[89],Ce([1,0,6,12,3,20]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullApiDeprecationService=e.ExtHostApiDeprecationService=e.IExtHostApiDeprecationService=void 0,e.IExtHostApiDeprecationService=(0,w.createDecorator)("IExtHostApiDeprecationService");let R=class{constructor(p,f){this._extHostLogService=f,this._reportedUsages=new Set,this._telemetryShape=p.getProxy(d.MainContext.MainThreadTelemetry)}report(p,f,y){const E=this.getUsageKey(p,f);this._reportedUsages.has(E)||(this._reportedUsages.add(E),f.isUnderDevelopment&&this._extHostLogService.warn(`[Deprecation Warning] '${p}' is deprecated. ${y}`),this._telemetryShape.$publicLog2("extHostDeprecatedApiUsage",{extensionId:f.identifier.value,apiId:p}))}getUsageKey(p,f){return`${p}-${f.identifier.value}`}};e.ExtHostApiDeprecationService=R,e.ExtHostApiDeprecationService=R=je([He(0,A.IExtHostRpcService),He(1,M.ILogService)],R),e.NullApiDeprecationService=Object.freeze(new class{report(u,p,f){}})}),define(ye[314],Ce([1,0,4,3,7,23]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostAuthentication=void 0;class R{constructor(f){this._authenticationProviders=new Map,this._providers=[],this._onDidChangeSessions=new w.Emitter,this.onDidChangeSessions=this._onDidChangeSessions.event,this._getSessionTaskSingler=new u,this._getSessionsTaskSingler=new u,this._proxy=f.getProxy(M.MainContext.MainThreadAuthentication)}$setProviders(f){return this._providers=f,Promise.resolve()}async getSession(f,y,E,t={}){const s=A.ExtensionIdentifier.toKey(f.identifier),g=[...E].sort().join(" ");return await this._getSessionTaskSingler.getOrCreate(`${s} ${y} ${g}`,async()=>{await this._proxy.$ensureProvider(y);const C=f.displayName||f.name;return this._proxy.$getSession(y,E,s,C,t)})}async getSessions(f,y,E){const t=A.ExtensionIdentifier.toKey(f.identifier),s=[...E].sort().join(" ");return await this._getSessionsTaskSingler.getOrCreate(`${t} ${s}`,async()=>{await this._proxy.$ensureProvider(y);const g=f.displayName||f.name;return this._proxy.$getSessions(y,E,t,g)})}async removeSession(f,y){const E=this._authenticationProviders.get(f);return E?E.provider.removeSession(y):this._proxy.$removeSession(f,y)}registerAuthenticationProvider(f,y,E,t){if(this._authenticationProviders.get(f))throw new Error(`An authentication provider with id '${f}' is already registered.`);this._authenticationProviders.set(f,{label:y,provider:E,options:t??{supportsMultipleAccounts:!1}}),this._providers.find(g=>g.id===f)||this._providers.push({id:f,label:y});const s=E.onDidChangeSessions(g=>{this._proxy.$sendDidChangeSessions(f,{added:g.added??[],changed:g.changed??[],removed:g.removed??[]})});return this._proxy.$registerAuthenticationProvider(f,y,t?.supportsMultipleAccounts??!1),new d.Disposable(()=>{s.dispose(),this._authenticationProviders.delete(f);const g=this._providers.findIndex(C=>C.id===f);g>-1&&this._providers.splice(g),this._proxy.$unregisterAuthenticationProvider(f)})}$createSession(f,y,E){const t=this._authenticationProviders.get(f);if(t)return Promise.resolve(t.provider.createSession(y,E));throw new Error(`Unable to find authentication provider with handle: ${f}`)}$removeSession(f,y){const E=this._authenticationProviders.get(f);if(E)return Promise.resolve(E.provider.removeSession(y));throw new Error(`Unable to find authentication provider with handle: ${f}`)}$getSessions(f,y){const E=this._authenticationProviders.get(f);if(E)return Promise.resolve(E.provider.getSessions(y));throw new Error(`Unable to find authentication provider with handle: ${f}`)}$onDidChangeAuthenticationSessions(f,y){return this._onDidChangeSessions.fire({provider:{id:f,label:y}}),Promise.resolve()}}e.ExtHostAuthentication=R;class u{constructor(){this._inFlightPromises=new Map}getOrCreate(f,y){const E=this._inFlightPromises.get(f);if(E)return E;const t=y().finally(()=>this._inFlightPromises.delete(f));return this._inFlightPromises.set(f,t),t}}}),define(ye[315],Ce([1,0,3,20,11]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostBulkEdits=void 0;let A=class{constructor(u,p){this._proxy=u.getProxy(w.MainContext.MainThreadBulkEdits),this._versionInformationProvider={getTextDocumentVersion:f=>p.getDocument(f)?.version,getNotebookDocumentVersion:()=>{}}}applyWorkspaceEdit(u,p,f){const y=d.WorkspaceEdit.from(u,this._versionInformationProvider);return this._proxy.$tryApplyWorkspaceEdit(y,void 0,f?.isRefactoring??!1)}};e.ExtHostBulkEdits=A,e.ExtHostBulkEdits=A=je([He(0,M.IExtHostRpcService)],A)}),define(ye[316],Ce([1,0,13,4,51,5,36,208,3,11]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostChat=void 0;class y{static{this._pool=0}constructor(s,g){this.extension=s,this.provider=g,this.handle=y._pool++}}class E{static{this._nextId=0}constructor(s,g){this.logService=g,this._chatProvider=new Map,this._chatSessions=new Map,this._onDidPerformUserAction=new M.Emitter,this.onDidPerformUserAction=this._onDidPerformUserAction.event,this._proxy=s.getProxy(p.MainContext.MainThreadChat)}registerChatProvider(s,g,C){const r=new y(s,C);return this._chatProvider.set(r.handle,r),this._proxy.$registerChatProvider(r.handle,g),(0,A.toDisposable)(()=>{this._proxy.$unregisterChatProvider(r.handle),this._chatProvider.delete(r.handle)})}transferChatSession(s,g){const C=d.Iterable.find(this._chatSessions.keys(),r=>this._chatSessions.get(r)===s)??0;typeof C=="number"&&this._proxy.$transferChatSession(C,g)}addChatRequest(s){this._proxy.$addRequest(s)}sendInteractiveRequestToProvider(s,g){this._proxy.$sendRequestToProvider(s,g)}async $prepareChat(s,g,C){const r=this._chatProvider.get(s);if(!r)return;const h=await r.provider.prepareSession(g,C);if(!h)return;const o=E._nextId++;return this._chatSessions.set(o,h),{id:o,requesterUsername:h.requester?.name,requesterAvatarIconUri:h.requester?.icon,responderUsername:h.responder?.name,responderAvatarIconUri:h.responder?.icon,inputPlaceholder:h.inputPlaceholder}}async $resolveRequest(s,g,C,r){const h=this._chatProvider.get(s);if(!h)return;const o=this._chatSessions.get(g);if(!o||!h.provider.resolveRequest)return;const b=await h.provider.resolveRequest(o,C,r);if(b)return{message:typeof b.message=="string"?b.message:f.ChatReplyFollowup.from(b.message)}}async $provideWelcomeMessage(s,g){const C=this._chatProvider.get(s);if(!C||!C.provider.provideWelcomeMessage)return;const r=await C.provider.provideWelcomeMessage(g);if(r)return r.map(h=>typeof h=="string"?h:h.map(o=>f.ChatReplyFollowup.from(o)))}async $provideFollowups(s,g,C){const r=this._chatProvider.get(s);if(!r)return;const h=this._chatSessions.get(g);return!h||!r.provider.provideFollowups?void 0:(await r.provider.provideFollowups(h,C))?.map(b=>f.ChatFollowup.from(b))}$removeRequest(s,g,C){const r=this._chatProvider.get(s);if(!r)return;const h=this._chatSessions.get(g);h&&r.provider.removeRequest&&r.provider.removeRequest(h,C)}async $provideReply(s,g,C,r){const h=this._chatProvider.get(s);if(!h)return;const o=this._chatSessions.get(g);if(!o)return;const b={session:o,message:typeof C.message=="string"?C.message:f.ChatReplyFollowup.to(C.message),variables:{}};if(C.variables)for(const i of Object.keys(C.variables))b.variables[i]=C.variables[i].map(f.ChatVariable.to);const P=R.StopWatch.create(!1);let T;const n={report:i=>{if(!r.isCancellationRequested)if(typeof T>"u"&&(T=P.elapsed()),"responseId"in i)this._proxy.$acceptResponseProgress(s,g,{requestId:i.responseId});else if("placeholder"in i&&"resolvedContent"in i){const c=Promise.all([this._proxy.$acceptResponseProgress(s,g,{placeholder:i.placeholder}),i.resolvedContent]);(0,w.raceCancellation)(c,r).then(_=>{if(!_)return;const[S,k]=_;this._proxy.$acceptResponseProgress(s,g,k,S??void 0)})}else"content"in i?this._proxy.$acceptResponseProgress(s,g,{content:typeof i.content=="string"?i.content:f.MarkdownString.from(i.content)}):this._proxy.$acceptResponseProgress(s,g,i)}};let a;try{a=await h.provider.provideResponseWithProgress(b,n,r),a||(a={errorDetails:{message:(0,u.localize)(0,null)}})}catch(i){a={errorDetails:{message:(0,u.localize)(1,null,i.message),responseIsIncomplete:!0}},this.logService.error(i)}try{if(o.saveState&&this._chatSessions.has(g)){const i=o.saveState();this._proxy.$acceptChatState(g,i)}}catch(i){this.logService.warn(i)}const l={firstProgress:T??0,totalElapsed:P.elapsed()};return{errorDetails:a.errorDetails,timings:l}}async $provideSlashCommands(s,g,C){const r=this._chatProvider.get(s);if(!r)return;const h=this._chatSessions.get(g);return!h||!r.provider.provideSlashCommands?void 0:(await r.provider.provideSlashCommands(h,C))?.map(b=>({...b,kind:f.CompletionItemKind.from(b.kind)}))}$releaseSession(s){this._chatSessions.delete(s)}async $onDidPerformUserAction(s){this._onDidPerformUserAction.fire(s)}}e.ExtHostChat=E}),define(ye[317],Ce([1,0,5,3,11,83,23]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostChatProvider=void 0;class u{static{this._idPool=1}constructor(f,y){this._logService=y,this._providers=new Map,this._pendingRequest=new Map,this._chatAccessAllowList=new R.ExtensionIdentifierMap,this._proxy=f.getProxy(M.MainContext.MainThreadChatProvider)}registerProvider(f,y,E,t){const s=u._idPool++;return this._providers.set(s,{extension:f,provider:E}),this._proxy.$registerProvider(s,y,{extension:f,displayName:t.name??f.value}),(0,w.toDisposable)(()=>{this._proxy.$unregisterProvider(s),this._providers.delete(s)})}async $provideChatResponse(f,y,E,t,s){const g=this._providers.get(f);if(!g)return;const C=new A.Progress(async r=>{if(s.isCancellationRequested){this._logService.warn(`[CHAT](${g.extension.value}) CANNOT send progress because the REQUEST IS CANCELLED`);return}await this._proxy.$handleProgressChunk(y,{index:r.index,part:r.part})},{async:!0});return g.provider.provideChatResponse(E.map(d.ChatMessage.to),t,C,s)}allowListExtensionWhile(f,y){this._chatAccessAllowList.set(f,y),y.finally(()=>this._chatAccessAllowList.delete(f))}async requestChatResponseProvider(f,y){if(!this._chatAccessAllowList.has(f))throw new Error("Extension is NOT allowed to make chat requests");const E=this;return{get isRevoked(){return!E._chatAccessAllowList.has(f)},async makeRequest(t,s,g,C){if(!E._chatAccessAllowList.has(f))throw new Error("Access to chat has been revoked");const r=Math.random()*1e6|0;E._pendingRequest.set(r,g);try{await E._proxy.$fetchResponse(f,y,r,t.map(d.ChatMessage.from),s,C)}finally{E._pendingRequest.delete(r)}}}}async $handleResponseFragment(f,y){this._pendingRequest.get(f)?.report(y)}}e.ExtHostChatProvider=u}),define(ye[318],Ce([1,0,5,3,7,11,83,13]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostChatSlashCommands=void 0;class p{static{this._idPool=0}constructor(y,E,t){this._extHostChatProvider=E,this._logService=t,this._commands=new Map,this._proxy=y.getProxy(M.MainContext.MainThreadChatSlashCommands)}registerCommand(y,E,t,s){const g=p._idPool++;return this._commands.set(g,{extension:y,command:t}),this._proxy.$registerCommand(g,E,s.description),(0,w.toDisposable)(()=>{this._proxy.$unregisterCommand(g),this._commands.delete(g)})}async $executeCommand(y,E,t,s,g){const C=this._commands.get(y);if(!C){this._logService.warn(`[CHAT](${y}) CANNOT execute command because the command is not registered`);return}let r=!1;function h(){if(r)throw new Error("Only valid while executing the command")}const o=new u.DeferredPromise;g.onCancellationRequested(()=>o.complete()),setTimeout(()=>o.complete(),3*1e3),this._extHostChatProvider.allowListExtensionWhile(C.extension,o.p);const b=C.command({role:d.ChatMessageRole.User,content:t},{history:s.history.map(A.ChatMessage.to)},new R.Progress(P=>{h(),this._proxy.$handleProgressChunk(E,{content:P.message.value})}),g);try{await(0,u.raceCancellation)(Promise.resolve(b),g)}finally{r=!0,o.complete()}}}e.ExtHostChatSlashCommands=p}),define(ye[319],Ce([1,0,5,3,8,11]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostChatVariables=void 0;class R{static{this._idPool=0}constructor(p){this._resolver=new Map,this._proxy=p.getProxy(M.MainContext.MainThreadChatVariables)}async $resolveVariable(p,f,y){const E=this._resolver.get(p);if(E)try{const t=await E.resolver.resolve(E.data.name,{message:f},y);if(t)return t.map(A.ChatVariable.from)}catch(t){(0,d.onUnexpectedExternalError)(t)}}registerVariableResolver(p,f,y,E){const t=R._idPool++;return this._resolver.set(t,{extension:p.identifier,data:{name:f,description:y},resolver:E}),this._proxy.$registerVariable(t,{name:f,description:y}),(0,w.toDisposable)(()=>{this._resolver.delete(t),this._proxy.$unregisterVariable(t)})}}e.ExtHostChatVariables=R}),define(ye[320],Ce([1,0,3]),function(ge,e,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostClipboard=void 0;class M{constructor(A){const R=A.getProxy(w.MainContext.MainThreadClipboard);this.value=Object.freeze({readText(){return R.$readText()},writeText(u){return R.$writeText(u)}})}}e.ExtHostClipboard=M}),define(ye[32],Ce([1,0,18,7,11,24,3,19,12,76,37,59,2,5,6,20,144,21,64,47,36,85,88]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiCommand=e.ApiCommandResult=e.ApiCommandArgument=e.CommandsConverter=e.IExtHostCommands=e.ExtHostCommands=void 0;let a=class{#e;#t;#i;constructor(k,m,v){this._commands=new Map,this._apiCommands=new Map,this.#e=k.getProxy(R.MainContext.MainThreadCommands),this._logService=m,this.#i=v,this.#t=k.getProxy(R.MainContext.MainThreadTelemetry),this.converter=new l(this,D=>{const L=this._apiCommands.get(D);return L?.result===c.Void?L:void 0},m),this._argumentProcessors=[{processArgument(D){return(0,f.revive)(D)}},{processArgument(D){return(0,A.cloneAndChange)(D,function(L){if(y.Range.isIRange(L))return d.Range.to(L);if(E.Position.isIPosition(L))return d.Position.to(L);if(y.Range.isIRange(L.range)&&t.URI.isUri(L.uri))return d.location.to(L);if(L instanceof h.VSBuffer)return L.buffer.buffer;if(!Array.isArray(L))return L})}}]}registerArgumentProcessor(k){this._argumentProcessors.push(k)}registerApiCommand(k){const m=this.registerCommand(!1,k.id,async(...v)=>{const D=k.args.map((O,H)=>{if(!O.validate(v[H]))throw new Error(`Invalid argument '${O.name}' when running '${k.id}', received: ${v[H]}`);return O.convert(v[H])}),L=await this.executeCommand(k.internalId,...D);return k.result.convert(L,v,this.converter)},void 0,{description:k.description,args:k.args,returns:k.result.description});return this._apiCommands.set(k.id,k),new M.Disposable(()=>{m.dispose(),this._apiCommands.delete(k.id)})}registerCommand(k,m,v,D,L,O){if(this._logService.trace("ExtHostCommands#registerCommand",m),!m.trim().length)throw new Error("invalid id");if(this._commands.has(m))throw new Error(`command '${m}' already exists`);return this._commands.set(m,{callback:v,thisArg:D,description:L,extension:O}),k&&this.#e.$registerCommand(m),new M.Disposable(()=>{this._commands.delete(m)&&k&&this.#e.$unregisterCommand(m)})}executeCommand(k,...m){return this._logService.trace("ExtHostCommands#executeCommand",k),this._doExecuteCommand(k,m,!0)}async _doExecuteCommand(k,m,v){if(this._commands.has(k))return this.#e.$fireCommandActivationEvent(k),this._executeContributedCommand(k,m,!1);{let D=!1;const L=(0,A.cloneAndChange)(m,function(O){if(O instanceof M.Position)return d.Position.from(O);if(O instanceof M.Range)return d.Range.from(O);if(O instanceof M.Location)return d.location.from(O);if(M.NotebookRange.isNotebookRange(O))return d.NotebookRange.from(O);if(O instanceof ArrayBuffer)return D=!0,h.VSBuffer.wrap(new Uint8Array(O));if(O instanceof Uint8Array)return D=!0,h.VSBuffer.wrap(O);if(O instanceof h.VSBuffer)return D=!0,O;if(!Array.isArray(O))return O});try{const O=await this.#e.$executeCommand(k,D?new o.SerializableObjectWithBuffers(L):L,v);return(0,f.revive)(O)}catch(O){if(O instanceof Error&&O.message==="$executeCommand:retry")return this._doExecuteCommand(k,m,!1);throw O}}}async _executeContributedCommand(k,m,v){const D=this._commands.get(k);if(!D)throw new Error("Unknown command");const{callback:L,thisArg:O,description:H}=D;if(H)for(let $=0;$<H.args.length;$++)try{(0,w.validateConstraint)(m[$],H.args[$].constraint)}catch{throw new Error(`Running the contributed command: '${k}' failed. Illegal argument '${H.args[$].name}' - ${H.args[$].description}`)}const N=P.StopWatch.create();try{return await L.apply(O,m)}catch($){if(k===this.converter.delegatingCommandId){const U=this.converter.getActualCommand(...m);U&&(k=U.command)}if(this._logService.error($,k,D.extension?.identifier),!v)throw $;if(D.extension?.identifier){const U=this.#i.onExtensionError(D.extension.identifier,$);this._logService.trace("forwarded error to extension?",U,D.extension?.identifier)}throw new class extends Error{constructor(){super((0,b.toErrorMessage)($)),this.id=k,this.source=D.extension?.displayName??D.extension?.name}}}finally{this._reportTelemetry(D,k,N.elapsed())}}_reportTelemetry(k,m,v){k.extension&&this.#t.$publicLog2("Extension:ActionExecuted",{extensionId:k.extension.identifier.value,id:new T.TelemetryTrustedValue(m),duration:v})}$executeContributedCommand(k,...m){this._logService.trace("ExtHostCommands#$executeContributedCommand",k);const v=this._commands.get(k);return v?(m=m.map(D=>this._argumentProcessors.reduce((L,O)=>O.processArgument(L,v.extension?.identifier),D)),this._executeContributedCommand(k,m,!0)):Promise.reject(new Error(`Contributed command '${k}' does not exist.`))}getCommands(k=!1){return this._logService.trace("ExtHostCommands#getCommands",k),this.#e.$getCommands().then(m=>(k&&(m=m.filter(v=>v[0]!=="_")),m))}$getContributedCommandHandlerDescriptions(){const k=Object.create(null);for(const[m,v]of this._commands){const{description:D}=v;D&&(k[m]=D)}return Promise.resolve(k)}};e.ExtHostCommands=a,e.ExtHostCommands=a=je([He(0,C.IExtHostRpcService),He(1,p.ILogService),He(2,n.IExtHostTelemetry)],a),e.IExtHostCommands=(0,g.createDecorator)("IExtHostCommands");class l{constructor(k,m,v){this._commands=k,this._lookupApiCommand=m,this._logService=v,this.delegatingCommandId=`__vsc${Date.now().toString(36)}`,this._cache=new Map,this._cachIdPool=0,this._commands.registerCommand(!0,this.delegatingCommandId,this._executeConvertedCommand,this)}toInternal(k,m){if(!k)return;const v={$ident:void 0,id:k.command,title:k.title,tooltip:k.tooltip};if(!k.command)return v;const D=this._lookupApiCommand(k.command);if(D)v.id=D.internalId,v.arguments=D.args.map((L,O)=>L.convert(k.arguments&&k.arguments[O]));else if((0,u.isNonEmptyArray)(k.arguments)){const L=`${k.command}/${++this._cachIdPool}`;this._cache.set(L,k),m.add((0,s.toDisposable)(()=>{this._cache.delete(L),this._logService.trace("CommandsConverter#DISPOSE",L)})),v.$ident=L,v.id=this.delegatingCommandId,v.arguments=[L],this._logService.trace("CommandsConverter#CREATE",k.command,L)}return v}fromInternal(k){return typeof k.$ident=="string"?this._cache.get(k.$ident):{command:k.id,title:k.title,arguments:k.arguments}}getActualCommand(...k){return this._cache.get(k[0])}_executeConvertedCommand(...k){const m=this.getActualCommand(...k);return this._logService.trace("CommandsConverter#EXECUTE",k[0],m?m.command:"MISSING"),m?this._commands.executeCommand(m.command,...m.arguments||[]):Promise.reject(`Actual command not found, wanted to execute ${k[0]}`)}}e.CommandsConverter=l;class i{static{this.Uri=new i("uri","Uri of a text document",k=>t.URI.isUri(k),k=>k)}static{this.Position=new i("position","A position in a text document",k=>M.Position.isPosition(k),d.Position.from)}static{this.Range=new i("range","A range in a text document",k=>M.Range.isRange(k),d.Range.from)}static{this.Selection=new i("selection","A selection in a text document",k=>M.Selection.isSelection(k),d.Selection.from)}static{this.Number=new i("number","",k=>typeof k=="number",k=>k)}static{this.String=new i("string","",k=>typeof k=="string",k=>k)}static{this.StringArray=i.Arr(i.String)}static Arr(k){return new i(`${k.name}_array`,`Array of ${k.name}, ${k.description}`,m=>Array.isArray(m)&&m.every(v=>k.validate(v)),m=>m.map(v=>k.convert(v)))}static{this.CallHierarchyItem=new i("item","A call hierarchy item",k=>k instanceof M.CallHierarchyItem,d.CallHierarchyItem.from)}static{this.TypeHierarchyItem=new i("item","A type hierarchy item",k=>k instanceof M.TypeHierarchyItem,d.TypeHierarchyItem.from)}static{this.TestItem=new i("testItem","A VS Code TestItem",k=>k instanceof r.TestItemImpl,d.TestItem.from)}constructor(k,m,v,D){this.name=k,this.description=m,this.validate=v,this.convert=D}optional(){return new i(this.name,`(optional) ${this.description}`,k=>k==null||this.validate(k),k=>k===void 0?void 0:k===null?null:this.convert(k))}with(k,m){return new i(k??this.name,m??this.description,this.validate,this.convert)}}e.ApiCommandArgument=i;class c{static{this.Void=new c("no result",k=>k)}constructor(k,m){this.description=k,this.convert=m}}e.ApiCommandResult=c;class _{constructor(k,m,v,D,L){this.id=k,this.internalId=m,this.description=v,this.args=D,this.result=L}}e.ApiCommand=_}),define(ye[321],Ce([1,0,19,15,2,81,130,45,134,32,11,7]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostApiCommands=void 0;const t=[new f.ApiCommand("vscode.executeDocumentHighlights","_executeDocumentHighlights","Execute document highlight provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of DocumentHighlight-instances.",g(y.DocumentHighlight.to))),new f.ApiCommand("vscode.executeDocumentSymbolProvider","_executeDocumentSymbolProvider","Execute document symbol provider.",[f.ApiCommandArgument.Uri],new f.ApiCommandResult("A promise that resolves to an array of SymbolInformation and DocumentSymbol instances.",(r,h)=>{if((0,w.isFalsyOrEmpty)(r))return;class o extends E.SymbolInformation{static to(P){const T=new o(P.name,y.SymbolKind.to(P.kind),P.containerName||"",new E.Location(h[0],y.Range.to(P.range)));return T.detail=P.detail,T.range=T.location.range,T.selectionRange=y.Range.to(P.selectionRange),T.children=P.children?P.children.map(o.to):[],T}}return r.map(o.to)})),new f.ApiCommand("vscode.executeFormatDocumentProvider","_executeFormatDocumentProvider","Execute document format provider.",[f.ApiCommandArgument.Uri,new f.ApiCommandArgument("options","Formatting options",r=>!0,r=>r)],new f.ApiCommandResult("A promise that resolves to an array of TextEdits.",g(y.TextEdit.to))),new f.ApiCommand("vscode.executeFormatRangeProvider","_executeFormatRangeProvider","Execute range format provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Range,new f.ApiCommandArgument("options","Formatting options",r=>!0,r=>r)],new f.ApiCommandResult("A promise that resolves to an array of TextEdits.",g(y.TextEdit.to))),new f.ApiCommand("vscode.executeFormatOnTypeProvider","_executeFormatOnTypeProvider","Execute format on type provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position,new f.ApiCommandArgument("ch","Trigger character",r=>typeof r=="string",r=>r),new f.ApiCommandArgument("options","Formatting options",r=>!0,r=>r)],new f.ApiCommandResult("A promise that resolves to an array of TextEdits.",g(y.TextEdit.to))),new f.ApiCommand("vscode.executeDefinitionProvider","_executeDefinitionProvider","Execute all definition providers.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of Location or LocationLink instances.",C)),new f.ApiCommand("vscode.executeTypeDefinitionProvider","_executeTypeDefinitionProvider","Execute all type definition providers.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of Location or LocationLink instances.",C)),new f.ApiCommand("vscode.executeDeclarationProvider","_executeDeclarationProvider","Execute all declaration providers.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of Location or LocationLink instances.",C)),new f.ApiCommand("vscode.executeImplementationProvider","_executeImplementationProvider","Execute all implementation providers.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of Location or LocationLink instances.",C)),new f.ApiCommand("vscode.executeReferenceProvider","_executeReferenceProvider","Execute all reference providers.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of Location-instances.",g(y.location.to))),new f.ApiCommand("vscode.executeHoverProvider","_executeHoverProvider","Execute all hover providers.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of Hover-instances.",g(y.Hover.to))),new f.ApiCommand("vscode.executeSelectionRangeProvider","_executeSelectionRangeProvider","Execute selection range provider.",[f.ApiCommandArgument.Uri,new f.ApiCommandArgument("position","A position in a text document",r=>Array.isArray(r)&&r.every(h=>E.Position.isPosition(h)),r=>r.map(y.Position.from))],new f.ApiCommandResult("A promise that resolves to an array of ranges.",r=>r.map(h=>{let o;for(const b of h.reverse())o=new E.SelectionRange(y.Range.to(b),o);return o}))),new f.ApiCommand("vscode.executeWorkspaceSymbolProvider","_executeWorkspaceSymbolProvider","Execute all workspace symbol providers.",[f.ApiCommandArgument.String.with("query","Search string")],new f.ApiCommandResult("A promise that resolves to an array of SymbolInformation-instances.",r=>r.map(y.WorkspaceSymbol.to))),new f.ApiCommand("vscode.prepareCallHierarchy","_executePrepareCallHierarchy","Prepare call hierarchy at a position inside a document",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of CallHierarchyItem-instances",r=>r.map(y.CallHierarchyItem.to))),new f.ApiCommand("vscode.provideIncomingCalls","_executeProvideIncomingCalls","Compute incoming calls for an item",[f.ApiCommandArgument.CallHierarchyItem],new f.ApiCommandResult("A promise that resolves to an array of CallHierarchyIncomingCall-instances",r=>r.map(y.CallHierarchyIncomingCall.to))),new f.ApiCommand("vscode.provideOutgoingCalls","_executeProvideOutgoingCalls","Compute outgoing calls for an item",[f.ApiCommandArgument.CallHierarchyItem],new f.ApiCommandResult("A promise that resolves to an array of CallHierarchyOutgoingCall-instances",r=>r.map(y.CallHierarchyOutgoingCall.to))),new f.ApiCommand("vscode.prepareRename","_executePrepareRename","Execute the prepareRename of rename provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to a range and placeholder text.",r=>{if(r)return{range:y.Range.to(r.range),placeholder:r.text}})),new f.ApiCommand("vscode.executeDocumentRenameProvider","_executeDocumentRenameProvider","Execute rename provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position,f.ApiCommandArgument.String.with("newName","The new symbol name")],new f.ApiCommandResult("A promise that resolves to a WorkspaceEdit.",r=>{if(r){if(r.rejectReason)throw new Error(r.rejectReason);return y.WorkspaceEdit.to(r)}})),new f.ApiCommand("vscode.executeLinkProvider","_executeLinkProvider","Execute document link provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Number.with("linkResolveCount","Number of links that should be resolved, only when links are unresolved.").optional()],new f.ApiCommandResult("A promise that resolves to an array of DocumentLink-instances.",r=>r.map(y.DocumentLink.to))),new f.ApiCommand("vscode.provideDocumentSemanticTokensLegend","_provideDocumentSemanticTokensLegend","Provide semantic tokens legend for a document",[f.ApiCommandArgument.Uri],new f.ApiCommandResult("A promise that resolves to SemanticTokensLegend.",r=>{if(r)return new E.SemanticTokensLegend(r.tokenTypes,r.tokenModifiers)})),new f.ApiCommand("vscode.provideDocumentSemanticTokens","_provideDocumentSemanticTokens","Provide semantic tokens for a document",[f.ApiCommandArgument.Uri],new f.ApiCommandResult("A promise that resolves to SemanticTokens.",r=>{if(!r)return;const h=(0,R.decodeSemanticTokensDto)(r);if(h.type==="full")return new E.SemanticTokens(h.data,void 0)})),new f.ApiCommand("vscode.provideDocumentRangeSemanticTokensLegend","_provideDocumentRangeSemanticTokensLegend","Provide semantic tokens legend for a document range",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Range.optional()],new f.ApiCommandResult("A promise that resolves to SemanticTokensLegend.",r=>{if(r)return new E.SemanticTokensLegend(r.tokenTypes,r.tokenModifiers)})),new f.ApiCommand("vscode.provideDocumentRangeSemanticTokens","_provideDocumentRangeSemanticTokens","Provide semantic tokens for a document range",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Range],new f.ApiCommandResult("A promise that resolves to SemanticTokens.",r=>{if(!r)return;const h=(0,R.decodeSemanticTokensDto)(r);if(h.type==="full")return new E.SemanticTokens(h.data,void 0)})),new f.ApiCommand("vscode.executeCompletionItemProvider","_executeCompletionItemProvider","Execute completion item provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position,f.ApiCommandArgument.String.with("triggerCharacter","Trigger completion when the user types the character, like `,` or `(`").optional(),f.ApiCommandArgument.Number.with("itemResolveCount","Number of completions to resolve (too large numbers slow down completions)").optional()],new f.ApiCommandResult("A promise that resolves to a CompletionList-instance.",(r,h,o)=>{if(!r)return new E.CompletionList([]);const b=r.suggestions.map(P=>y.CompletionItem.to(P,o));return new E.CompletionList(b,r.incomplete)})),new f.ApiCommand("vscode.executeSignatureHelpProvider","_executeSignatureHelpProvider","Execute signature help provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position,f.ApiCommandArgument.String.with("triggerCharacter","Trigger signature help when the user types the character, like `,` or `(`").optional()],new f.ApiCommandResult("A promise that resolves to SignatureHelp.",r=>{if(r)return y.SignatureHelp.to(r)})),new f.ApiCommand("vscode.executeCodeLensProvider","_executeCodeLensProvider","Execute code lens provider.",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Number.with("itemResolveCount","Number of lenses that should be resolved and returned. Will only return resolved lenses, will impact performance)").optional()],new f.ApiCommandResult("A promise that resolves to an array of CodeLens-instances.",(r,h,o)=>g(b=>new E.CodeLens(y.Range.to(b.range),b.command&&o.fromInternal(b.command)))(r))),new f.ApiCommand("vscode.executeCodeActionProvider","_executeCodeActionProvider","Execute code action provider.",[f.ApiCommandArgument.Uri,new f.ApiCommandArgument("rangeOrSelection","Range in a text document. Some refactoring provider requires Selection object.",r=>E.Range.isRange(r),r=>E.Selection.isSelection(r)?y.Selection.from(r):y.Range.from(r)),f.ApiCommandArgument.String.with("kind","Code action kind to return code actions for").optional(),f.ApiCommandArgument.Number.with("itemResolveCount","Number of code actions to resolve (too large numbers slow down code actions)").optional()],new f.ApiCommandResult("A promise that resolves to an array of Command-instances.",(r,h,o)=>g(b=>{if(b._isSynthetic){if(!b.command)throw new Error("Synthetic code actions must have a command");return o.fromInternal(b.command)}else{const P=new E.CodeAction(b.title,b.kind?new E.CodeActionKind(b.kind):void 0);return b.edit&&(P.edit=y.WorkspaceEdit.to(b.edit)),b.command&&(P.command=o.fromInternal(b.command)),P.isPreferred=b.isPreferred,P}})(r))),new f.ApiCommand("vscode.executeDocumentColorProvider","_executeDocumentColorProvider","Execute document color provider.",[f.ApiCommandArgument.Uri],new f.ApiCommandResult("A promise that resolves to an array of ColorInformation objects.",r=>r?r.map(h=>new E.ColorInformation(y.Range.to(h.range),y.Color.to(h.color))):[])),new f.ApiCommand("vscode.executeColorPresentationProvider","_executeColorPresentationProvider","Execute color presentation provider.",[new f.ApiCommandArgument("color","The color to show and insert",r=>r instanceof E.Color,y.Color.from),new f.ApiCommandArgument("context","Context object with uri and range",r=>!0,r=>({uri:r.uri,range:y.Range.from(r.range)}))],new f.ApiCommandResult("A promise that resolves to an array of ColorPresentation objects.",r=>r?r.map(y.ColorPresentation.to):[])),new f.ApiCommand("vscode.executeInlayHintProvider","_executeInlayHintProvider","Execute inlay hints provider",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Range],new f.ApiCommandResult("A promise that resolves to an array of Inlay objects",(r,h,o)=>r.map(y.InlayHint.to.bind(void 0,o)))),new f.ApiCommand("vscode.executeFoldingRangeProvider","_executeFoldingRangeProvider","Execute folding range provider",[f.ApiCommandArgument.Uri],new f.ApiCommandResult("A promise that resolves to an array of FoldingRange objects",(r,h)=>{if(r)return r.map(y.FoldingRange.to)})),new f.ApiCommand("vscode.resolveNotebookContentProviders","_resolveNotebookContentProvider","Resolve Notebook Content Providers",[],new f.ApiCommandResult("A promise that resolves to an array of NotebookContentProvider static info objects.",g(r=>({viewType:r.viewType,displayName:r.displayName,options:{transientOutputs:r.options.transientOutputs,transientCellMetadata:r.options.transientCellMetadata,transientDocumentMetadata:r.options.transientDocumentMetadata},filenamePattern:r.filenamePattern.map(h=>y.NotebookExclusiveDocumentPattern.to(h))})))),new f.ApiCommand("vscode.executeInlineValueProvider","_executeInlineValueProvider","Execute inline value provider",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Range],new f.ApiCommandResult("A promise that resolves to an array of InlineValue objects",r=>r.map(y.InlineValue.to))),new f.ApiCommand("vscode.open","_workbench.open","Opens the provided resource in the editor. Can be a text or binary file, or an http(s) URL. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.",[new f.ApiCommandArgument("uriOrString","Uri-instance or string (only http/https)",r=>d.URI.isUri(r)||typeof r=="string"&&(0,p.matchesSomeScheme)(r,M.Schemas.http,M.Schemas.https),r=>r),new f.ApiCommandArgument("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",r=>r===void 0||typeof r=="number"||typeof r=="object",r=>r&&(typeof r=="number"?[y.ViewColumn.from(r),void 0]:[y.ViewColumn.from(r.viewColumn),y.TextEditorOpenOptions.from(r)])).optional(),f.ApiCommandArgument.String.with("label","").optional()],f.ApiCommandResult.Void),new f.ApiCommand("vscode.openWith","_workbench.openWith","Opens the provided resource with a specific editor.",[f.ApiCommandArgument.Uri.with("resource","Resource to open"),f.ApiCommandArgument.String.with("viewId","Custom editor view id or 'default' to use VS Code's default editor"),new f.ApiCommandArgument("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",r=>r===void 0||typeof r=="number"||typeof r=="object",r=>r&&(typeof r=="number"?[y.ViewColumn.from(r),void 0]:[y.ViewColumn.from(r.viewColumn),y.TextEditorOpenOptions.from(r)])).optional()],f.ApiCommandResult.Void),new f.ApiCommand("vscode.diff","_workbench.diff","Opens the provided resources in the diff editor to compare their contents.",[f.ApiCommandArgument.Uri.with("left","Left-hand side resource of the diff editor"),f.ApiCommandArgument.Uri.with("right","Right-hand side resource of the diff editor"),f.ApiCommandArgument.String.with("title","Human readable title for the diff editor").optional(),new f.ApiCommandArgument("columnOrOptions","Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",r=>r===void 0||typeof r=="object",r=>r&&[y.ViewColumn.from(r.viewColumn),y.TextEditorOpenOptions.from(r)]).optional()],f.ApiCommandResult.Void),new f.ApiCommand("vscode.prepareTypeHierarchy","_executePrepareTypeHierarchy","Prepare type hierarchy at a position inside a document",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.Position],new f.ApiCommandResult("A promise that resolves to an array of TypeHierarchyItem-instances",r=>r.map(y.TypeHierarchyItem.to))),new f.ApiCommand("vscode.provideSupertypes","_executeProvideSupertypes","Compute supertypes for an item",[f.ApiCommandArgument.TypeHierarchyItem],new f.ApiCommandResult("A promise that resolves to an array of TypeHierarchyItem-instances",r=>r.map(y.TypeHierarchyItem.to))),new f.ApiCommand("vscode.provideSubtypes","_executeProvideSubtypes","Compute subtypes for an item",[f.ApiCommandArgument.TypeHierarchyItem],new f.ApiCommandResult("A promise that resolves to an array of TypeHierarchyItem-instances",r=>r.map(y.TypeHierarchyItem.to))),new f.ApiCommand("vscode.revealTestInExplorer","_revealTestInExplorer","Reveals a test instance in the explorer",[f.ApiCommandArgument.TestItem],f.ApiCommandResult.Void),new f.ApiCommand("vscode.experimental.editSession.continue","_workbench.editSessions.actions.continueEditSession","Continue the current edit session in a different workspace",[f.ApiCommandArgument.Uri.with("workspaceUri","The target workspace to continue the current edit session in")],f.ApiCommandResult.Void),new f.ApiCommand("setContext","_setContext","Set a custom context key value that can be used in when clauses.",[f.ApiCommandArgument.String.with("name","The context key name"),new f.ApiCommandArgument("value","The context key value",()=>!0,r=>r)],f.ApiCommandResult.Void),new f.ApiCommand("vscode.executeMappedEditsProvider","_executeMappedEditsProvider","Execute Mapped Edits Provider",[f.ApiCommandArgument.Uri,f.ApiCommandArgument.StringArray,new f.ApiCommandArgument("MappedEditsContext","Mapped Edits Context",r=>y.MappedEditsContext.is(r),r=>y.MappedEditsContext.from(r))],new f.ApiCommandResult("A promise that resolves to a workspace edit or null",r=>r?y.WorkspaceEdit.to(r):null))];class s{static register(h){t.forEach(h.registerApiCommand,h),this._registerValidateWhenClausesCommand(h)}static _registerValidateWhenClausesCommand(h){h.registerCommand(!1,"_validateWhenClauses",u.validateWhenClauses)}}e.ExtHostApiCommands=s;function g(r){return h=>{if(Array.isArray(h))return h.map(r)}}function C(r){if(!Array.isArray(r))return;const h=[];for(const o of r)A.isLocationLink(o)?h.push(y.DefinitionLink.to(o)):h.push(y.location.to(o));return h}}),define(ye[322],Ce([1,0,13,68,4,5,2,81,23,11,7,3,27,18]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createExtHostComments=void 0;function g(C,r,h){const o=C.getProxy(E.MainContext.MainThreadComments);class b{static{this.handlePool=0}constructor(){this._commentControllers=new Map,this._commentControllersByExtension=new p.ExtensionIdentifierMap,r.registerArgumentProcessor({processArgument:S=>{if(S&&S.$mid===6){const k=this._commentControllers.get(S.handle);return k?k.value:S}else if(S&&S.$mid===7){const k=this._commentControllers.get(S.commentControlHandle);if(!k)return S;const m=k.getCommentThread(S.commentThreadHandle);return m?m.value:S}else if(S&&(S.$mid===9||S.$mid===8)){const k=this._commentControllers.get(S.thread.commentControlHandle);if(!k)return S;const m=k.getCommentThread(S.thread.commentThreadHandle);return m?S.$mid===8?m.value:{thread:m.value,text:S.text}:S}else if(S&&S.$mid===10){const k=this._commentControllers.get(S.thread.commentControlHandle);if(!k)return S;const m=k.getCommentThread(S.thread.commentThreadHandle);if(!m)return S;const v=S.commentUniqueId,D=m.getCommentByUniqueId(v);return D||S}else if(S&&S.$mid===11){const k=this._commentControllers.get(S.thread.commentControlHandle);if(!k)return S;const m=k.getCommentThread(S.thread.commentThreadHandle);if(!m)return S;const v=S.text,D=S.commentUniqueId,L=m.getCommentByUniqueId(D);return L?(typeof L.body=="string"?L.body=v:L.body=new y.MarkdownString(v),L):S}return S}})}createCommentController(S,k,m){const v=b.handlePool++,D=new T(S,v,k,m);this._commentControllers.set(D.handle,D);const L=this._commentControllersByExtension.get(S.identifier)||[];return L.push(D),this._commentControllersByExtension.set(S.identifier,L),D.value}$createCommentThreadTemplate(S,k,m){const v=this._commentControllers.get(S);v&&v.$createCommentThreadTemplate(k,m)}async $updateCommentThreadTemplate(S,k,m){const v=this._commentControllers.get(S);v&&v.$updateCommentThreadTemplate(k,m)}$deleteCommentThread(S,k){this._commentControllers.get(S)?.$deleteCommentThread(k)}$provideCommentingRanges(S,k,m){const v=this._commentControllers.get(S);if(!v||!v.commentingRangeProvider)return Promise.resolve(void 0);const D=h.getDocument(R.URI.revive(k));return(0,w.asPromise)(async()=>{const L=await v.commentingRangeProvider.provideCommentingRanges(D,m);let O;return Array.isArray(L)?O={ranges:L,fileComments:!1}:L?O={ranges:L.ranges||[],fileComments:L.fileComments||!1}:O=(0,s.withNullAsUndefined)(L),O}).then(L=>{let O;return L&&(O={ranges:L.ranges.map(H=>f.Range.from(H)),fileComments:L.fileComments}),O})}$toggleReaction(S,k,m,v,D){const L=this._commentControllers.get(S);return!L||!L.reactionHandler?Promise.resolve(void 0):(0,w.asPromise)(()=>{const O=L.getCommentThread(k);if(O){const H=O.getCommentByUniqueId(v.uniqueIdInThread);if(L!==void 0&&H&&L.reactionHandler)return L.reactionHandler(H,l(D))}return Promise.resolve(void 0)})}}class P{static{this._handlePool=0}set threadId(S){this._id=S}get threadId(){return this._id}get id(){return this._id}get resource(){return this._uri}get uri(){return this._uri}set range(S){(S===void 0!=(this._range===void 0)||!S||!this._range||!S.isEqual(this._range))&&(this._range=S,this.modifications.range=S,this._onDidUpdateCommentThread.fire())}get range(){return this._range}set canReply(S){this._canReply!==S&&(this._canReply=S,this.modifications.canReply=S,this._onDidUpdateCommentThread.fire())}get canReply(){return this._canReply}get label(){return this._label}set label(S){this._label=S,this.modifications.label=S,this._onDidUpdateCommentThread.fire()}get contextValue(){return this._contextValue}set contextValue(S){this._contextValue=S,this.modifications.contextValue=S,this._onDidUpdateCommentThread.fire()}get comments(){return this._comments}set comments(S){this._comments=S,this.modifications.comments=S,this._onDidUpdateCommentThread.fire()}get collapsibleState(){return this._collapseState}set collapsibleState(S){this._collapseState=S,this.modifications.collapsibleState=S,this._onDidUpdateCommentThread.fire()}get state(){return this._state}set state(S){this._state=S,this.modifications.state=S,this._onDidUpdateCommentThread.fire()}get isDisposed(){return this._isDiposed}constructor(S,k,m,v,D,L,O,H){this._commentControllerHandle=k,this._id=m,this._uri=v,this._range=D,this._comments=L,this.extensionDescription=O,this._isTemplate=H,this.handle=P._handlePool++,this.commentHandle=0,this.modifications=Object.create(null),this._onDidUpdateCommentThread=new d.Emitter,this.onDidUpdateCommentThread=this._onDidUpdateCommentThread.event,this._canReply=!0,this._commentsMap=new Map,this._acceptInputDisposables=new A.MutableDisposable,this._acceptInputDisposables.value=new A.DisposableStore,this._id===void 0&&(this._id=`${S}.${this.handle}`),o.$createCommentThread(k,this.handle,this._id,this._uri,f.Range.from(this._range),O.identifier,this._isTemplate),this._localDisposables=[],this._isDiposed=!1,this._localDisposables.push(this.onDidUpdateCommentThread(()=>{this.eventuallyUpdateCommentThread()})),this.comments=L,this._localDisposables.push({dispose:()=>{o.$deleteCommentThread(k,this.handle)}});const N=this;this.value={get uri(){return N.uri},get range(){return N.range},set range($){N.range=$},get comments(){return N.comments},set comments($){N.comments=$},get collapsibleState(){return N.collapsibleState},set collapsibleState($){N.collapsibleState=$},get canReply(){return N.canReply},set canReply($){N.canReply=$},get contextValue(){return N.contextValue},set contextValue($){N.contextValue=$},get label(){return N.label},set label($){N.label=$},get state(){return N.state},set state($){N.state=$},dispose:()=>{N.dispose()}}}updateIsTemplate(){this._isTemplate&&(this._isTemplate=!1,this.modifications.isTemplate=!1)}eventuallyUpdateCommentThread(){if(this._isDiposed)return;this.updateIsTemplate(),this._acceptInputDisposables.value||(this._acceptInputDisposables.value=new A.DisposableStore);const S=m=>Object.prototype.hasOwnProperty.call(this.modifications,m),k={};S("range")&&(k.range=f.Range.from(this._range)),S("label")&&(k.label=this.label),S("contextValue")&&(k.contextValue=this.contextValue??null),S("comments")&&(k.comments=this._comments.map(m=>n(this,m,this._commentsMap,this.extensionDescription))),S("collapsibleState")&&(k.collapseState=i(this._collapseState)),S("canReply")&&(k.canReply=this.canReply),S("state")&&(k.state=c(this._state)),S("isTemplate")&&(k.isTemplate=this._isTemplate),this.modifications={},o.$updateCommentThread(this._commentControllerHandle,this.handle,this._id,this._uri,k)}getCommentByUniqueId(S){for(const k of this._commentsMap){const m=k[0],v=k[1];if(S===v)return m}}dispose(){this._isDiposed=!0,this._acceptInputDisposables.dispose(),this._localDisposables.forEach(S=>S.dispose())}}je([(0,M.debounce)(100)],P.prototype,"eventuallyUpdateCommentThread",null);class T{get id(){return this._id}get label(){return this._label}get handle(){return this._handle}get commentingRangeProvider(){return this._commentingRangeProvider}set commentingRangeProvider(S){this._commentingRangeProvider=S,o.$updateCommentingRanges(this.handle)}get reactionHandler(){return this._reactionHandler}set reactionHandler(S){this._reactionHandler=S,o.$updateCommentControllerFeatures(this.handle,{reactionHandler:!!S})}get options(){return this._options}set options(S){this._options=S,o.$updateCommentControllerFeatures(this.handle,{options:this._options})}constructor(S,k,m,v){this._extension=S,this._handle=k,this._id=m,this._label=v,this._threads=new Map,o.$registerCommentController(this.handle,m,v);const D=this;this.value=Object.freeze({id:D.id,label:D.label,get options(){return D.options},set options(L){D.options=L},get commentingRangeProvider(){return D.commentingRangeProvider},set commentingRangeProvider(L){D.commentingRangeProvider=L},get reactionHandler(){return D.reactionHandler},set reactionHandler(L){D.reactionHandler=L},createCommentThread(L,O,H){return D.createCommentThread(L,O,H).value},dispose:()=>{D.dispose()}}),this._localDisposables=[],this._localDisposables.push({dispose:()=>{o.$unregisterCommentController(this.handle)}})}createCommentThread(S,k,m){k===void 0&&(0,t.checkProposedApiEnabled)(this._extension,"fileComments");const v=new P(this.id,this.handle,void 0,S,k,m,this._extension,!1);return this._threads.set(v.handle,v),v}$createCommentThreadTemplate(S,k){const m=new P(this.id,this.handle,void 0,R.URI.revive(S),f.Range.to(k),[],this._extension,!0);return m.collapsibleState=u.CommentThreadCollapsibleState.Expanded,this._threads.set(m.handle,m),m}$updateCommentThreadTemplate(S,k){const m=this._threads.get(S);m&&(m.range=f.Range.to(k))}$deleteCommentThread(S){this._threads.get(S)?.dispose(),this._threads.delete(S)}getCommentThread(S){return this._threads.get(S)}dispose(){this._threads.forEach(S=>{S.dispose()}),this._localDisposables.forEach(S=>S.dispose())}}function n(_,S,k,m){let v=k.get(S);return v||(v=++_.commentHandle,k.set(S,v)),S.state!==void 0&&(0,t.checkProposedApiEnabled)(m,"commentsDraftState"),{mode:S.mode,contextValue:S.contextValue,uniqueIdInThread:v,body:typeof S.body=="string"?S.body:f.MarkdownString.from(S.body),userName:S.author.name,userIconPath:S.author.iconPath,label:S.label,commentReactions:S.reactions?S.reactions.map(D=>a(D)):void 0,state:S.state,timestamp:S.timestamp?.toJSON()}}function a(_){return{label:_.label,iconPath:_.iconPath?f.pathOrURIToURI(_.iconPath):void 0,count:_.count,hasReacted:_.authorHasReacted}}function l(_){return{label:_.label||"",count:_.count||0,iconPath:_.iconPath?R.URI.revive(_.iconPath):"",authorHasReacted:_.hasReacted||!1}}function i(_){if(_!==void 0)switch(_){case y.CommentThreadCollapsibleState.Expanded:return u.CommentThreadCollapsibleState.Expanded;case y.CommentThreadCollapsibleState.Collapsed:return u.CommentThreadCollapsibleState.Collapsed}return u.CommentThreadCollapsibleState.Collapsed}function c(_){if(_!==void 0)switch(_){case y.CommentThreadState.Unresolved:return u.CommentThreadState.Unresolved;case y.CommentThreadState.Resolved:return u.CommentThreadState.Resolved}return u.CommentThreadState.Unresolved}return new b}e.createExtHostComments=g}),define(ye[323],Ce([1,0,24,3,26,20]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractExtHostConsoleForwarder=void 0;let R=class{constructor(y,E){this._mainThreadConsole=y.getProxy(M.MainContext.MainThreadConsole),this._includeStack=E.consoleForward.includeStack,this._logNative=E.consoleForward.logNative,this._wrapConsoleMethod("info","log"),this._wrapConsoleMethod("log","log"),this._wrapConsoleMethod("warn","warn"),this._wrapConsoleMethod("error","error")}_wrapConsoleMethod(y,E){const t=this,s=console[y];Object.defineProperty(console,y,{set:()=>{},get:()=>function(){t._handleConsoleCall(y,E,s,arguments)}})}_handleConsoleCall(y,E,t,s){this._mainThreadConsole.$logExtensionHostMessage({type:"__$console",severity:E,arguments:p(s,this._includeStack)}),this._logNative&&this._nativeConsoleLogMessage(y,t,s)}};e.AbstractExtHostConsoleForwarder=R,e.AbstractExtHostConsoleForwarder=R=je([He(0,A.IExtHostRpcService),He(1,d.IExtHostInitDataService)],R);const u=1e5;function p(f,y){const E=[];if(f.length)for(let t=0;t<f.length;t++){let s=f[t];if(typeof s>"u")s="undefined";else if(s instanceof Error){const g=s;g.stack?s=g.stack:s=g.toString()}E.push(s)}if(y){const t=new Error().stack;t&&E.push({__$stack:t.split(`
`).slice(3).join(`
`)})}try{const t=(0,w.safeStringify)(E);return t.length>u?"Output omitted for a large object that exceeds the limits":t}catch(t){return`Output omitted for an object that cannot be inspected ('${t.toString()}')`}}}),define(ye[148],Ce([1,0,2,3,7,6,20,12,19,16,17,27]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostDecorations=e.ExtHostDecorations=void 0;let s=class{static{t=this}static{this._handlePool=0}static{this._maxEventSize=250}constructor(C,r){this._logService=r,this._provider=new Map,this._proxy=C.getProxy(M.MainContext.MainThreadDecorations)}registerFileDecorationProvider(C,r){const h=t._handlePool++;this._provider.set(h,{provider:C,extensionDescription:r}),this._proxy.$registerDecorationProvider(h,r.identifier.value);const o=C.onDidChangeFileDecorations&&C.onDidChangeFileDecorations(b=>{if(!b){this._proxy.$onDidChange(h,null);return}const P=(0,p.asArray)(b);if(P.length<=t._maxEventSize){this._proxy.$onDidChange(h,P);return}this._logService.warn("[Decorations] CAPPING events from decorations provider",r.identifier.value,P.length);const T=P.map(l=>({uri:l,rank:(0,f.count)(l.path,"/")})),n=(0,p.groupBy)(T,(l,i)=>l.rank-i.rank||(0,f.compare)(l.uri.path,i.uri.path)),a=[];e:for(const l of n){let i;for(const c of l){const _=(0,y.dirname)(c.uri.path);if(i!==_&&(i=_,a.push(c.uri)>=t._maxEventSize))break e}}this._proxy.$onDidChange(h,a)});return new d.Disposable(()=>{o?.dispose(),this._proxy.$unregisterDecorationProvider(h),this._provider.delete(h)})}async $provideDecorations(C,r,h){if(!this._provider.has(C))return Object.create(null);const o=Object.create(null),{provider:b,extensionDescription:P}=this._provider.get(C);return await Promise.all(r.map(async T=>{try{const{uri:n,id:a}=T,l=await Promise.resolve(b.provideFileDecoration(w.URI.revive(n),h));if(!l)return;try{d.FileDecoration.validate(l),l.badge&&typeof l.badge!="string"&&(0,E.checkProposedApiEnabled)(P,"codiconDecoration"),o[a]=[l.propagate,l.tooltip,l.badge,l.color]}catch(i){this._logService.warn(`INVALID decoration from extension '${P.identifier.value}': ${i}`)}}catch(n){this._logService.error(n)}})),o}};e.ExtHostDecorations=s,e.ExtHostDecorations=s=t=je([He(0,R.IExtHostRpcService),He(1,u.ILogService)],s),e.IExtHostDecorations=(0,A.createDecorator)("IExtHostDecorations")}),define(ye[324],Ce([1,0,209,133,2,3,7,11,4,12,28,55]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDiagnostics=e.DiagnosticCollection=void 0;class s{#e;#t;#i;constructor(r,h,o,b,P,T,n,a){this._name=r,this._owner=h,this._maxDiagnosticsTotal=o,this._maxDiagnosticsPerFile=b,this._modelVersionIdProvider=P,this._isDisposed=!1,this._maxDiagnosticsTotal=Math.max(b,o),this.#i=new y.ResourceMap(l=>T.getComparisonKey(l)),this.#e=n,this.#t=a}dispose(){this._isDisposed||(this.#t.fire([...this.#i.keys()]),this.#e?.$clear(this._owner),this.#i.clear(),this._isDisposed=!0)}get name(){return this._checkDisposed(),this._name}set(r,h){if(!r){this.clear();return}this._checkDisposed();let o=[];if(d.URI.isUri(r)){if(!h){this.delete(r);return}this.#i.set(r,h.slice()),o=[r]}else if(Array.isArray(r)){o=[];let T;r=[...r].sort(s._compareIndexedTuplesByUri);for(const n of r){const[a,l]=n;if((!T||a.toString()!==T.toString())&&(T&&this.#i.get(T).length===0&&this.#i.delete(T),T=a,o.push(a),this.#i.set(a,[])),l)this.#i.get(a)?.push(...l);else{const i=this.#i.get(a);i&&(i.length=0)}}}if(this.#t.fire(o),!this.#e)return;const b=[];let P=0;for(const T of o){let n=[];const a=this.#i.get(T);if(a)if(a.length>this._maxDiagnosticsPerFile){n=[];const l=[R.DiagnosticSeverity.Error,R.DiagnosticSeverity.Warning,R.DiagnosticSeverity.Information,R.DiagnosticSeverity.Hint];e:for(let i=0;i<4;i++)for(const c of a)if(c.severity===l[i]&&n.push({...u.Diagnostic.from(c),modelVersionId:this._modelVersionIdProvider(T)})===this._maxDiagnosticsPerFile)break e;n.push({severity:M.MarkerSeverity.Info,message:(0,w.localize)(0,null,a.length-this._maxDiagnosticsPerFile),startLineNumber:n[n.length-1].startLineNumber,startColumn:n[n.length-1].startColumn,endLineNumber:n[n.length-1].endLineNumber,endColumn:n[n.length-1].endColumn})}else n=a.map(l=>({...u.Diagnostic.from(l),modelVersionId:this._modelVersionIdProvider(T)}));if(b.push([T,n]),P+=n.length,P>this._maxDiagnosticsTotal)break}this.#e.$changeMany(this._owner,b)}delete(r){this._checkDisposed(),this.#t.fire([r]),this.#i.delete(r),this.#e?.$changeMany(this._owner,[[r,void 0]])}clear(){this._checkDisposed(),this.#t.fire([...this.#i.keys()]),this.#i.clear(),this.#e?.$clear(this._owner)}forEach(r,h){this._checkDisposed();for(const[o,b]of this)r.call(h,o,b,this)}*[Symbol.iterator](){this._checkDisposed();for(const r of this.#i.keys())yield[r,this.get(r)]}get(r){this._checkDisposed();const h=this.#i.get(r);return Array.isArray(h)?Object.freeze(h.slice(0)):[]}has(r){return this._checkDisposed(),Array.isArray(this.#i.get(r))}_checkDisposed(){if(this._isDisposed)throw new Error("illegal state - object is disposed")}static _compareIndexedTuplesByUri(r,h){return r[0].toString()<h[0].toString()?-1:r[0].toString()>h[0].toString()?1:0}}e.DiagnosticCollection=s;let g=class{static{t=this}static{this._idPool=0}static{this._maxDiagnosticsPerFile=1e3}static{this._maxDiagnosticsTotal=1.1*t._maxDiagnosticsPerFile}static _mapper(r){const h=new y.ResourceMap;for(const o of r)h.set(o,o);return{uris:Object.freeze(Array.from(h.values()))}}constructor(r,h,o,b){this._logService=h,this._fileSystemInfoService=o,this._extHostDocumentsAndEditors=b,this._collections=new Map,this._onDidChangeDiagnostics=new p.DebounceEmitter({merge:P=>P.flat(),delay:50}),this.onDidChangeDiagnostics=p.Event.map(this._onDidChangeDiagnostics.event,t._mapper),this._proxy=r.getProxy(A.MainContext.MainThreadDiagnostics)}createDiagnosticCollection(r,h){const{_collections:o,_proxy:b,_onDidChangeDiagnostics:P,_logService:T,_fileSystemInfoService:n,_extHostDocumentsAndEditors:a}=this,l=new class{$changeMany(_,S){b.$changeMany(_,S),T.trace("[DiagnosticCollection] change many (extension, owner, uris)",r.value,_,S.length===0?"CLEARING":S)}$clear(_){b.$clear(_),T.trace("[DiagnosticCollection] remove all (extension, owner)",r.value,_)}dispose(){b.dispose()}};let i;if(!h)h="_generated_diagnostic_collection_name_#"+t._idPool++,i=h;else if(!o.has(h))i=h;else{this._logService.warn(`DiagnosticCollection with name '${h}' does already exist.`);do i=h+t._idPool++;while(o.has(i))}return new class extends s{constructor(){super(h,i,t._maxDiagnosticsTotal,t._maxDiagnosticsPerFile,_=>a.getDocument(_)?.version,n.extUri,l,P),o.set(i,this)}dispose(){super.dispose(),o.delete(i)}}}getDiagnostics(r){if(r)return this._getDiagnostics(r);{const h=new Map,o=[];for(const b of this._collections.values())b.forEach((P,T)=>{let n=h.get(P.toString());typeof n>"u"&&(n=o.length,h.set(P.toString(),n),o.push([P,[]])),o[n][1]=o[n][1].concat(...T)});return o}}_getDiagnostics(r){let h=[];for(const o of this._collections.values())o.has(r)&&(h=h.concat(o.get(r)));return h}$acceptMarkersChange(r){if(!this._mirrorCollection){const h="_generated_mirror",o=new s(h,h,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,b=>{},this._fileSystemInfoService.extUri,void 0,this._onDidChangeDiagnostics);this._collections.set(h,o),this._mirrorCollection=o}for(const[h,o]of r)this._mirrorCollection.set(d.URI.revive(h),o.map(u.Diagnostic.to))}};e.ExtHostDiagnostics=g,e.ExtHostDiagnostics=g=t=je([He(1,f.ILogService),He(2,E.IExtHostFileSystemInfo)],g)}),define(ye[325],Ce([1,0,2,3,27]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDialogs=void 0;class A{constructor(u){this._proxy=u.getProxy(M.MainContext.MainThreadDialogs)}showOpenDialog(u,p){return p?.allowUIResources&&(0,d.checkProposedApiEnabled)(u,"showLocal"),this._proxy.$showOpenDialog(p).then(f=>f?f.map(y=>w.URI.revive(y)):void 0)}showSaveDialog(u){return this._proxy.$showSaveDialog(u).then(p=>p?w.URI.revive(p):void 0)}}e.ExtHostDialogs=A}),define(ye[326],Ce([1,0,8,2,7,3,15,22,16]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDocumentContentProvider=void 0;class f{static{this._handlePool=0}constructor(E,t,s){this._documentsAndEditors=t,this._logService=s,this._documentContentProviders=new Map,this._proxy=E.getProxy(A.MainContext.MainThreadDocumentContentProviders)}registerTextDocumentContentProvider(E,t){if(Object.keys(R.Schemas).indexOf(E)>=0)throw new Error(`scheme '${E}' already registered`);const s=f._handlePool++;this._documentContentProviders.set(s,t),this._proxy.$registerTextContentProvider(s,E);let g;return typeof t.onDidChange=="function"&&(g=t.onDidChange(C=>{if(C.scheme!==E){this._logService.warn(`Provider for scheme '${E}' is firing event for schema '${C.scheme}' which will be IGNORED`);return}this._documentsAndEditors.getDocument(C)&&this.$provideTextDocumentContent(s,C).then(r=>{if(!r&&typeof r!="string")return;const h=this._documentsAndEditors.getDocument(C);if(!h)return;const o=(0,p.splitLines)(r);if(!h.equalLines(o))return this._proxy.$onVirtualDocumentChange(C,r)},w.onUnexpectedError)})),new d.Disposable(()=>{this._documentContentProviders.delete(s)&&this._proxy.$unregisterTextContentProvider(s),g&&(g.dispose(),g=void 0)})}$provideTextDocumentContent(E,t){const s=this._documentContentProviders.get(E);return s?Promise.resolve(s.provideTextDocumentContent(M.URI.revive(t),u.CancellationToken.None)):Promise.reject(new Error(`unsupported uri-scheme: ${t.scheme}`))}}e.ExtHostDocumentContentProvider=f}),define(ye[327],Ce([1,0,4,5,2,3,140,11,18,24,7,8]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDocuments=void 0;class t{constructor(g,C){this._onDidAddDocument=new w.Emitter({onListenerError:E.onUnexpectedExternalError}),this._onDidRemoveDocument=new w.Emitter({onListenerError:E.onUnexpectedExternalError}),this._onDidChangeDocument=new w.Emitter({onListenerError:E.onUnexpectedExternalError}),this._onDidSaveDocument=new w.Emitter({onListenerError:E.onUnexpectedExternalError}),this.onDidAddDocument=this._onDidAddDocument.event,this.onDidRemoveDocument=this._onDidRemoveDocument.event,this.onDidChangeDocument=this._onDidChangeDocument.event,this.onDidSaveDocument=this._onDidSaveDocument.event,this._toDispose=new M.DisposableStore,this._documentLoader=new Map,this._proxy=g.getProxy(A.MainContext.MainThreadDocuments),this._documentsAndEditors=C,this._documentsAndEditors.onDidRemoveDocuments(r=>{for(const h of r)this._onDidRemoveDocument.fire(h.document)},void 0,this._toDispose),this._documentsAndEditors.onDidAddDocuments(r=>{for(const h of r)this._onDidAddDocument.fire(h.document)},void 0,this._toDispose)}dispose(){this._toDispose.dispose()}getAllDocumentData(){return[...this._documentsAndEditors.allDocuments()]}getDocumentData(g){if(!g)return;const C=this._documentsAndEditors.getDocument(g);if(C)return C}getDocument(g){const C=this.getDocumentData(g);if(!C?.document)throw new Error(`Unable to retrieve document from URI '${g}'`);return C.document}ensureDocumentData(g){const C=this._documentsAndEditors.getDocument(g);if(C)return Promise.resolve(C);let r=this._documentLoader.get(g.toString());return r||(r=this._proxy.$tryOpenDocument(g).then(h=>{this._documentLoader.delete(g.toString());const o=d.URI.revive(h);return(0,p.assertIsDefined)(this._documentsAndEditors.getDocument(o))},h=>(this._documentLoader.delete(g.toString()),Promise.reject(h))),this._documentLoader.set(g.toString(),r)),r}createDocumentData(g){return this._proxy.$tryCreateDocument(g).then(C=>d.URI.revive(C))}$acceptModelLanguageChanged(g,C){const r=d.URI.revive(g),h=this._documentsAndEditors.getDocument(r);if(!h)throw new Error("unknown document");this._onDidRemoveDocument.fire(h.document),h._acceptLanguageId(C),this._onDidAddDocument.fire(h.document)}$acceptModelSaved(g){const C=d.URI.revive(g),r=this._documentsAndEditors.getDocument(C);if(!r)throw new Error("unknown document");this.$acceptDirtyStateChanged(g,!1),this._onDidSaveDocument.fire(r.document)}$acceptDirtyStateChanged(g,C){const r=d.URI.revive(g),h=this._documentsAndEditors.getDocument(r);if(!h)throw new Error("unknown document");h._acceptIsDirty(C),this._onDidChangeDocument.fire({document:h.document,contentChanges:[],reason:void 0})}$acceptModelChanged(g,C,r){const h=d.URI.revive(g),o=this._documentsAndEditors.getDocument(h);if(!o)throw new Error("unknown document");o._acceptIsDirty(r),o.onEvents(C);let b;C.isUndoing?b=y.TextDocumentChangeReason.Undo:C.isRedoing&&(b=y.TextDocumentChangeReason.Redo),this._onDidChangeDocument.fire((0,f.deepFreeze)({document:o.document,contentChanges:C.changes.map(P=>({range:u.Range.to(P.range),rangeOffset:P.rangeOffset,rangeLength:P.rangeLength,text:P.text})),reason:b}))}setWordDefinitionFor(g,C){(0,R.setWordDefinitionFor)(g,C)}}e.ExtHostDocuments=t}),define(ye[65],Ce([1,0,42,4,5,2,6,3,140,20,145,11,12,28,15,51,57]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostDocumentsAndEditors=e.ExtHostDocumentsAndEditors=void 0;class h{constructor(P){this.value=P,this._count=0}ref(){this._count++}unref(){return--this._count===0}}let o=class{constructor(P,T){this._extHostRpc=P,this._logService=T,this._activeEditorId=null,this._editors=new Map,this._documents=new s.ResourceMap,this._onDidAddDocuments=new M.Emitter,this._onDidRemoveDocuments=new M.Emitter,this._onDidChangeVisibleTextEditors=new M.Emitter,this._onDidChangeActiveTextEditor=new M.Emitter,this.onDidAddDocuments=this._onDidAddDocuments.event,this.onDidRemoveDocuments=this._onDidRemoveDocuments.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event}$acceptDocumentsAndEditorsDelta(P){this.acceptDocumentsAndEditorsDelta(P)}acceptDocumentsAndEditorsDelta(P){const T=[],n=[],a=[];if(P.removedDocuments)for(const l of P.removedDocuments){const i=A.URI.revive(l),c=this._documents.get(i);c?.unref()&&(this._documents.delete(i),T.push(c.value))}if(P.addedDocuments)for(const l of P.addedDocuments){const i=A.URI.revive(l.uri);let c=this._documents.get(i);if(c&&i.scheme!==g.Schemas.vscodeNotebookCell&&i.scheme!==g.Schemas.vscodeInteractiveInput)throw new Error(`document '${i} already exists!'`);c||(c=new h(new p.ExtHostDocumentData(this._extHostRpc.getProxy(u.MainContext.MainThreadDocuments),i,l.lines,l.EOL,l.versionId,l.languageId,l.isDirty,l.notebook)),this._documents.set(i,c),n.push(c.value)),c.ref()}if(P.removedEditors)for(const l of P.removedEditors){const i=this._editors.get(l);this._editors.delete(l),i&&a.push(i)}if(P.addedEditors)for(const l of P.addedEditors){const i=A.URI.revive(l.documentUri);w.ok(this._documents.has(i),`document '${i}' does not exist`),w.ok(!this._editors.has(l.id),`editor '${l.id}' already exists!`);const c=this._documents.get(i).value,_=new y.ExtHostTextEditor(l.id,this._extHostRpc.getProxy(u.MainContext.MainThreadTextEditors),this._logService,new r.Lazy(()=>c.document),l.selections.map(E.Selection.to),l.options,l.visibleRanges.map(S=>E.Range.to(S)),typeof l.editorPosition=="number"?E.ViewColumn.to(l.editorPosition):void 0);this._editors.set(l.id,_)}P.newActiveEditor!==void 0&&(w.ok(P.newActiveEditor===null||this._editors.has(P.newActiveEditor),`active editor '${P.newActiveEditor}' does not exist`),this._activeEditorId=P.newActiveEditor),(0,d.dispose)(T),(0,d.dispose)(a),P.removedDocuments&&this._onDidRemoveDocuments.fire(T),P.addedDocuments&&this._onDidAddDocuments.fire(n),(P.removedEditors||P.addedEditors)&&this._onDidChangeVisibleTextEditors.fire(this.allEditors().map(l=>l.value)),P.newActiveEditor!==void 0&&this._onDidChangeActiveTextEditor.fire(this.activeEditor())}getDocument(P){return this._documents.get(P)?.value}allDocuments(){return C.Iterable.map(this._documents.values(),P=>P.value)}getEditor(P){return this._editors.get(P)}activeEditor(P){if(!this._activeEditorId)return;const T=this._editors.get(this._activeEditorId);return P?T:T?.value}allEditors(){return[...this._editors.values()]}};e.ExtHostDocumentsAndEditors=o,e.ExtHostDocumentsAndEditors=o=je([He(0,f.IExtHostRpcService),He(1,t.ILogService)],o),e.IExtHostDocumentsAndEditors=(0,R.createDecorator)("IExtHostDocumentsAndEditors")}),define(ye[109],Ce([1,0,11,3,2,4,6,7,20,18,41]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostEditorTabs=e.IExtHostEditorTabs=void 0,e.IExtHostEditorTabs=(0,R.createDecorator)("IExtHostEditorTabs");class E{constructor(r,h,o){this._activeTabIdGetter=o,this._parentGroup=h,this.acceptDtoUpdate(r)}get apiObject(){if(!this._apiObject){const r=this,h={get isActive(){return r._dto.id===r._activeTabIdGetter()},get label(){return r._dto.label},get input(){return r._input},get isDirty(){return r._dto.isDirty},get isPinned(){return r._dto.isPinned},get isPreview(){return r._dto.isPreview},get group(){return r._parentGroup.apiObject}};this._apiObject=Object.freeze(h)}return this._apiObject}get tabId(){return this._dto.id}acceptDtoUpdate(r){this._dto=r,this._input=this._initInput()}_initInput(){switch(this._dto.input.kind){case 1:return new u.TextTabInput(d.URI.revive(this._dto.input.uri));case 2:return new u.TextDiffTabInput(d.URI.revive(this._dto.input.original),d.URI.revive(this._dto.input.modified));case 3:return new u.TextMergeTabInput(d.URI.revive(this._dto.input.base),d.URI.revive(this._dto.input.input1),d.URI.revive(this._dto.input.input2),d.URI.revive(this._dto.input.result));case 6:return new u.CustomEditorTabInput(d.URI.revive(this._dto.input.uri),this._dto.input.viewType);case 7:return new u.WebviewEditorTabInput(this._dto.input.viewType);case 4:return new u.NotebookEditorTabInput(d.URI.revive(this._dto.input.uri),this._dto.input.notebookType);case 5:return new u.NotebookDiffEditorTabInput(d.URI.revive(this._dto.input.original),d.URI.revive(this._dto.input.modified),this._dto.input.notebookType);case 8:return new u.TerminalEditorTabInput;case 9:return new u.InteractiveWindowInput(d.URI.revive(this._dto.input.uri),d.URI.revive(this._dto.input.inputBoxUri));default:return}}}class t{constructor(r,h){this._tabs=[],this._activeTabId="",this._dto=r,this._activeGroupIdGetter=h;for(const o of r.tabs)o.isActive&&(this._activeTabId=o.id),this._tabs.push(new E(o,this,()=>this.activeTabId()))}get apiObject(){if(!this._apiObject){const r=this,h={get isActive(){return r._dto.groupId===r._activeGroupIdGetter()},get viewColumn(){return w.ViewColumn.to(r._dto.viewColumn)},get activeTab(){return r._tabs.find(o=>o.tabId===r._activeTabId)?.apiObject},get tabs(){return Object.freeze(r._tabs.map(o=>o.apiObject))}};this._apiObject=Object.freeze(h)}return this._apiObject}get groupId(){return this._dto.groupId}get tabs(){return this._tabs}acceptGroupDtoUpdate(r){this._dto=r}acceptTabOperation(r){if(r.kind===0){const o=new E(r.tabDto,this,()=>this.activeTabId());return this._tabs.splice(r.index,0,o),r.tabDto.isActive&&(this._activeTabId=o.tabId),o}else if(r.kind===1){const o=this._tabs.splice(r.index,1)[0];if(!o)throw new Error(`Tab close updated received for index ${r.index} which does not exist`);return o.tabId===this._activeTabId&&(this._activeTabId=""),o}else if(r.kind===3){if(r.oldIndex===void 0)throw new Error("Invalid old index on move IPC");const o=this._tabs.splice(r.oldIndex,1)[0];if(!o)throw new Error(`Tab move updated received for index ${r.oldIndex} which does not exist`);return this._tabs.splice(r.index,0,o),o}const h=this._tabs.find(o=>o.tabId===r.tabDto.id);if(!h)throw new Error("INVALID tab");return r.tabDto.isActive?this._activeTabId=r.tabDto.id:this._activeTabId===r.tabDto.id&&!r.tabDto.isActive&&(this._activeTabId=""),h.acceptDtoUpdate(r.tabDto),h}activeTabId(){return this._activeTabId}}let s=class{constructor(r){this._onDidChangeTabs=new A.Emitter,this._onDidChangeTabGroups=new A.Emitter,this._extHostTabGroups=[],this._proxy=r.getProxy(M.MainContext.MainThreadEditorTabs)}get tabGroups(){if(!this._apiObject){const r=this,h={onDidChangeTabGroups:r._onDidChangeTabGroups.event,onDidChangeTabs:r._onDidChangeTabs.event,get all(){return Object.freeze(r._extHostTabGroups.map(o=>o.apiObject))},get activeTabGroup(){const o=r._activeGroupId;return(0,f.assertIsDefined)(r._extHostTabGroups.find(P=>P.groupId===o)?.apiObject)},close:async(o,b)=>{const P=Array.isArray(o)?o:[o];return P.length?g(P[0])?this._closeGroups(P,b):this._closeTabs(P,b):!0}};this._apiObject=Object.freeze(h)}return this._apiObject}$acceptEditorTabModel(r){const h=new Set(this._extHostTabGroups.map(l=>l.groupId)),o=new Set(r.map(l=>l.groupId)),b=(0,y.diffSets)(h,o),P=this._extHostTabGroups.filter(l=>b.removed.includes(l.groupId)).map(l=>l.apiObject),T=[],n=[];this._extHostTabGroups=r.map(l=>{const i=new t(l,()=>this._activeGroupId);return b.added.includes(i.groupId)?T.push(i.apiObject):n.push(i.apiObject),i});const a=(0,f.assertIsDefined)(r.find(l=>l.isActive===!0)?.groupId);a!==void 0&&this._activeGroupId!==a&&(this._activeGroupId=a),this._onDidChangeTabGroups.fire(Object.freeze({opened:T,closed:P,changed:n}))}$acceptTabGroupUpdate(r){const h=this._extHostTabGroups.find(o=>o.groupId===r.groupId);if(!h)throw new Error("Update Group IPC call received before group creation.");h.acceptGroupDtoUpdate(r),r.isActive&&(this._activeGroupId=r.groupId),this._onDidChangeTabGroups.fire(Object.freeze({changed:[h.apiObject],opened:[],closed:[]}))}$acceptTabOperation(r){const h=this._extHostTabGroups.find(b=>b.groupId===r.groupId);if(!h)throw new Error("Update Tabs IPC call received before group creation.");const o=h.acceptTabOperation(r);switch(r.kind){case 0:this._onDidChangeTabs.fire(Object.freeze({opened:[o.apiObject],closed:[],changed:[]}));return;case 1:this._onDidChangeTabs.fire(Object.freeze({opened:[],closed:[o.apiObject],changed:[]}));return;case 3:case 2:this._onDidChangeTabs.fire(Object.freeze({opened:[],closed:[],changed:[o.apiObject]}));return}}_findExtHostTabFromApi(r){for(const h of this._extHostTabGroups)for(const o of h.tabs)if(o.apiObject===r)return o}_findExtHostTabGroupFromApi(r){return this._extHostTabGroups.find(h=>h.apiObject===r)}async _closeTabs(r,h){const o=[];for(const b of r){const P=this._findExtHostTabFromApi(b);if(!P)throw new Error("Tab close: Invalid tab not found!");o.push(P.tabId)}return this._proxy.$closeTab(o,h)}async _closeGroups(r,h){const o=[];for(const b of r){const P=this._findExtHostTabGroupFromApi(b);if(!P)throw new Error("Group close: Invalid group not found!");o.push(P.groupId)}return this._proxy.$closeGroup(o,h)}};e.ExtHostEditorTabs=s,e.ExtHostEditorTabs=s=je([He(0,p.IExtHostRpcService)],s);function g(C){return C.tabs!==void 0}}),define(ye[328],Ce([1,0,3,7]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostAiEmbeddingVector=void 0;class d{constructor(R){this._AiEmbeddingVectorProviders=new Map,this._nextHandle=0,this._proxy=R.getProxy(w.MainContext.MainThreadAiEmbeddingVector)}async $provideAiEmbeddingVector(R,u,p){if(this._AiEmbeddingVectorProviders.size===0)throw new Error("No embedding vector providers registered");const f=this._AiEmbeddingVectorProviders.get(R);if(!f)throw new Error("Embedding vector provider not found");const y=await f.provideEmbeddingVector(u,p);if(!y)throw new Error("Embedding vector provider returned undefined");return y}registerEmbeddingVectorProvider(R,u,p){const f=this._nextHandle;return this._nextHandle++,this._AiEmbeddingVectorProviders.set(f,p),this._proxy.$registerAiEmbeddingVectorProvider(u,f),new M.Disposable(()=>{this._proxy.$unregisterAiEmbeddingVectorProvider(f),this._AiEmbeddingVectorProviders.delete(f)})}}e.ExtHostAiEmbeddingVector=d}),define(ye[329],Ce([1,0,2,3,5,7,11,171,16,21,27,77]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostFileSystem=void 0;class t{constructor(){this._schemes=[]}add(C){this._stateMachine=void 0,this._schemes.push(C)}delete(C){const r=this._schemes.indexOf(C);r>=0&&(this._schemes.splice(r,1),this._stateMachine=void 0)}_initStateMachine(){if(!this._stateMachine){const C=this._schemes.sort(),r=[];let h,o,b=14,P=14;for(const T of C){let n=h?(0,p.commonPrefixLength)(h,T):0;for(n===0?o=1:o=P;n<T.length;n++)n+1===T.length?(b=P,P=9):P+=1,r.push([o,T.toUpperCase().charCodeAt(n),P]),r.push([o,T.toLowerCase().charCodeAt(n),P]),o=P;h=T,P=b}r.push([9,58,10]),r.push([10,47,12]),this._stateMachine=new u.StateMachine(r)}}provideDocumentLinks(C){this._initStateMachine();const r=[],h=u.LinkComputer.computeLinks({getLineContent(o){return C.lineAt(o-1).text},getLineCount(){return C.lineCount}},this._stateMachine);for(const o of h){const b=R.DocumentLink.to(o);b.target&&r.push(b)}return r}}class s{constructor(C,r){this._extHostLanguageFeatures=r,this._linkProvider=new t,this._fsProvider=new Map,this._registeredSchemes=new Set,this._watches=new Map,this._handlePool=0,this._proxy=C.getProxy(M.MainContext.MainThreadFileSystem)}dispose(){this._linkProviderRegistration?.dispose()}registerFileSystemProvider(C,r,h,o={}){if(s._validateFileSystemProvider(h),this._registeredSchemes.has(r))throw new Error(`a provider for the scheme '${r}' is already registered`);this._linkProviderRegistration||(this._linkProviderRegistration=this._extHostLanguageFeatures.registerDocumentLinkProvider(C,"*",this._linkProvider));const b=this._handlePool++;this._linkProvider.add(r),this._registeredSchemes.add(r),this._fsProvider.set(b,h);let P=2;o.isCaseSensitive&&(P+=1024),o.isReadonly&&(P+=2048),typeof h.copy=="function"&&(P+=8),typeof h.open=="function"&&typeof h.close=="function"&&typeof h.read=="function"&&typeof h.write=="function"&&((0,y.checkProposedApiEnabled)(C,"fsChunks"),P+=4);let T;o.isReadonly&&(0,E.isMarkdownString)(o.isReadonly)&&((0,y.checkProposedApiEnabled)(C,"readonlyMessage"),T={value:o.isReadonly.value,isTrusted:o.isReadonly.isTrusted,supportThemeIcons:o.isReadonly.supportThemeIcons,supportHtml:o.isReadonly.supportHtml,baseUri:o.isReadonly.baseUri,uris:o.isReadonly.uris}),this._proxy.$registerFileSystemProvider(b,r,P,T).catch(a=>{console.error(`FAILED to register filesystem provider of ${C.identifier.value}-extension for the scheme ${r}`),console.error(a)});const n=h.onDidChangeFile(a=>{const l=[];for(const i of a){const{uri:c,type:_}=i;if(c.scheme!==r)continue;let S;switch(_){case A.FileChangeType.Changed:S=0;break;case A.FileChangeType.Created:S=1;break;case A.FileChangeType.Deleted:S=2;break;default:throw new Error("Unknown FileChangeType")}l.push({resource:c,type:S})}this._proxy.$onFileSystemChange(b,l)});return(0,d.toDisposable)(()=>{n.dispose(),this._linkProvider.delete(r),this._registeredSchemes.delete(r),this._fsProvider.delete(b),this._proxy.$unregisterProvider(b)})}static _validateFileSystemProvider(C){if(!C)throw new Error("MISSING provider");if(typeof C.watch!="function")throw new Error("Provider does NOT implement watch");if(typeof C.stat!="function")throw new Error("Provider does NOT implement stat");if(typeof C.readDirectory!="function")throw new Error("Provider does NOT implement readDirectory");if(typeof C.createDirectory!="function")throw new Error("Provider does NOT implement createDirectory");if(typeof C.readFile!="function")throw new Error("Provider does NOT implement readFile");if(typeof C.writeFile!="function")throw new Error("Provider does NOT implement writeFile");if(typeof C.delete!="function")throw new Error("Provider does NOT implement delete");if(typeof C.rename!="function")throw new Error("Provider does NOT implement rename")}static _asIStat(C){const{type:r,ctime:h,mtime:o,size:b,permissions:P}=C;return{type:r,ctime:h,mtime:o,size:b,permissions:P}}$stat(C,r){return Promise.resolve(this._getFsProvider(C).stat(w.URI.revive(r))).then(h=>s._asIStat(h))}$readdir(C,r){return Promise.resolve(this._getFsProvider(C).readDirectory(w.URI.revive(r)))}$readFile(C,r){return Promise.resolve(this._getFsProvider(C).readFile(w.URI.revive(r))).then(h=>f.VSBuffer.wrap(h))}$writeFile(C,r,h,o){return Promise.resolve(this._getFsProvider(C).writeFile(w.URI.revive(r),h.buffer,o))}$delete(C,r,h){return Promise.resolve(this._getFsProvider(C).delete(w.URI.revive(r),h))}$rename(C,r,h,o){return Promise.resolve(this._getFsProvider(C).rename(w.URI.revive(r),w.URI.revive(h),o))}$copy(C,r,h,o){const b=this._getFsProvider(C);if(!b.copy)throw new Error('FileSystemProvider does not implement "copy"');return Promise.resolve(b.copy(w.URI.revive(r),w.URI.revive(h),o))}$mkdir(C,r){return Promise.resolve(this._getFsProvider(C).createDirectory(w.URI.revive(r)))}$watch(C,r,h,o){const b=this._getFsProvider(C).watch(w.URI.revive(h),o);this._watches.set(r,b)}$unwatch(C,r){const h=this._watches.get(r);h&&(h.dispose(),this._watches.delete(r))}$open(C,r,h){const o=this._getFsProvider(C);if(!o.open)throw new Error('FileSystemProvider does not implement "open"');return Promise.resolve(o.open(w.URI.revive(r),h))}$close(C,r){const h=this._getFsProvider(C);if(!h.close)throw new Error('FileSystemProvider does not implement "close"');return Promise.resolve(h.close(r))}$read(C,r,h,o){const b=this._getFsProvider(C);if(!b.read)throw new Error('FileSystemProvider does not implement "read"');const P=f.VSBuffer.alloc(o);return Promise.resolve(b.read(r,h,P.buffer,0,o)).then(T=>P.slice(0,T))}$write(C,r,h,o){const b=this._getFsProvider(C);if(!b.write)throw new Error('FileSystemProvider does not implement "write"');return Promise.resolve(b.write(r,h,o.buffer,0,o.byteLength))}_getFsProvider(C){const r=this._fsProvider.get(C);if(!r){const h=new Error;throw h.name="ENOPRO",h.message="no provider",h}return r}}e.ExtHostFileSystem=s}),define(ye[66],Ce([1,0,3,30,7,21,6,20,55,5,13,25,15]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostConsumerFileSystem=e.ExtHostConsumerFileSystem=void 0;let g=s=class{constructor(r,h){this._fileSystemProvider=new Map,this._writeQueue=new y.ResourceQueue,this._proxy=r.getProxy(w.MainContext.MainThreadFileSystem);const o=this;this.value=Object.freeze({async stat(b){try{let P;const T=o._fileSystemProvider.get(b.scheme);return T?(await o._proxy.$ensureActivation(b.scheme),P=await T.impl.stat(b)):P=await o._proxy.$stat(b),{type:P.type,ctime:P.ctime,mtime:P.mtime,size:P.size,permissions:P.permissions===M.FilePermission.Readonly?1:void 0}}catch(P){s._handleError(P)}},async readDirectory(b){try{const P=o._fileSystemProvider.get(b.scheme);return P?(await o._proxy.$ensureActivation(b.scheme),(await P.impl.readDirectory(b)).slice()):await o._proxy.$readdir(b)}catch(P){return s._handleError(P)}},async createDirectory(b){try{const P=o._fileSystemProvider.get(b.scheme);return P&&!P.isReadonly?(await o._proxy.$ensureActivation(b.scheme),await o.mkdirp(P.impl,P.extUri,b)):await o._proxy.$mkdir(b)}catch(P){return s._handleError(P)}},async readFile(b){try{const P=o._fileSystemProvider.get(b.scheme);return P?(await o._proxy.$ensureActivation(b.scheme),(await P.impl.readFile(b)).slice()):(await o._proxy.$readFile(b)).buffer}catch(P){return s._handleError(P)}},async writeFile(b,P){try{const T=o._fileSystemProvider.get(b.scheme);return T&&!T.isReadonly?(await o._proxy.$ensureActivation(b.scheme),await o.mkdirp(T.impl,T.extUri,T.extUri.dirname(b)),await o._writeQueue.queueFor(b).queue(()=>Promise.resolve(T.impl.writeFile(b,P,{create:!0,overwrite:!0})))):await o._proxy.$writeFile(b,A.VSBuffer.wrap(P))}catch(T){return s._handleError(T)}},async delete(b,P){try{const T=o._fileSystemProvider.get(b.scheme);return T&&!T.isReadonly?(await o._proxy.$ensureActivation(b.scheme),await T.impl.delete(b,{recursive:!1,...P})):await o._proxy.$delete(b,{recursive:!1,useTrash:!1,atomic:!1,...P})}catch(T){return s._handleError(T)}},async rename(b,P,T){try{return await o._proxy.$rename(b,P,{overwrite:!1,...T})}catch(n){return s._handleError(n)}},async copy(b,P,T){try{return await o._proxy.$copy(b,P,{overwrite:!1,...T})}catch(n){return s._handleError(n)}},isWritableFileSystem(b){const P=h.getCapabilities(b);if(typeof P=="number")return!(P&2048)}})}async mkdirp(r,h,o){const b=[];for(;!h.isEqual(o,h.dirname(o));)try{if(!((await r.stat(o)).type&M.FileType.Directory))throw d.FileSystemError.FileExists(`Unable to create folder '${o.scheme===t.Schemas.file?o.fsPath:o.toString(!0)}' that already exists but is not a directory`);break}catch(P){if(M.toFileSystemProviderErrorCode(P)!==M.FileSystemProviderErrorCode.FileNotFound)throw P;b.push(h.basename(o)),o=h.dirname(o)}for(let P=b.length-1;P>=0;P--){o=h.joinPath(o,b[P]);try{await r.createDirectory(o)}catch(T){if(M.toFileSystemProviderErrorCode(T)!==M.FileSystemProviderErrorCode.FileExists)throw T}}}static _handleError(r){if(r instanceof d.FileSystemError)throw r;if(r instanceof M.FileSystemProviderError)switch(r.code){case M.FileSystemProviderErrorCode.FileExists:throw d.FileSystemError.FileExists(r.message);case M.FileSystemProviderErrorCode.FileNotFound:throw d.FileSystemError.FileNotFound(r.message);case M.FileSystemProviderErrorCode.FileNotADirectory:throw d.FileSystemError.FileNotADirectory(r.message);case M.FileSystemProviderErrorCode.FileIsADirectory:throw d.FileSystemError.FileIsADirectory(r.message);case M.FileSystemProviderErrorCode.NoPermissions:throw d.FileSystemError.NoPermissions(r.message);case M.FileSystemProviderErrorCode.Unavailable:throw d.FileSystemError.Unavailable(r.message);default:throw new d.FileSystemError(r.message,r.name)}if(!(r instanceof Error))throw new d.FileSystemError(String(r));if(r.name==="ENOPRO"||r.message.includes("ENOPRO"))throw d.FileSystemError.Unavailable(r.message);switch(r.name){case M.FileSystemProviderErrorCode.FileExists:throw d.FileSystemError.FileExists(r.message);case M.FileSystemProviderErrorCode.FileNotFound:throw d.FileSystemError.FileNotFound(r.message);case M.FileSystemProviderErrorCode.FileNotADirectory:throw d.FileSystemError.FileNotADirectory(r.message);case M.FileSystemProviderErrorCode.FileIsADirectory:throw d.FileSystemError.FileIsADirectory(r.message);case M.FileSystemProviderErrorCode.NoPermissions:throw d.FileSystemError.NoPermissions(r.message);case M.FileSystemProviderErrorCode.Unavailable:throw d.FileSystemError.Unavailable(r.message);default:throw new d.FileSystemError(r.message,r.name)}}addFileSystemProvider(r,h,o){return this._fileSystemProvider.set(r,{impl:h,extUri:o?.isCaseSensitive?E.extUri:E.extUriIgnorePathCase,isReadonly:!!o?.isReadonly}),(0,f.toDisposable)(()=>this._fileSystemProvider.delete(r))}getFileSystemProviderExtUri(r){return this._fileSystemProvider.get(r)?.extUri??E.extUri}};e.ExtHostConsumerFileSystem=g,e.ExtHostConsumerFileSystem=g=s=je([He(0,u.IExtHostRpcService),He(1,p.IExtHostFileSystemInfo)],g),e.IExtHostConsumerFileSystem=(0,R.createDecorator)("IExtHostConsumerFileSystem")}),define(ye[330],Ce([1,0,4,34,2,3,11,7]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostFileSystemEventService=void 0;class p{get ignoreCreateEvents(){return!!(this._config&1)}get ignoreChangeEvents(){return!!(this._config&2)}get ignoreDeleteEvents(){return!!(this._config&4)}constructor(E,t,s,g,C,r,h,o){this._onDidCreate=new w.Emitter,this._onDidChange=new w.Emitter,this._onDidDelete=new w.Emitter;const b=this.ensureWatching(E,s,C);this._config=0,r&&(this._config+=1),h&&(this._config+=2),o&&(this._config+=4);const P=(0,M.parse)(C),T=typeof C=="string",n=g(a=>{if(!r)for(const l of a.created){const i=d.URI.revive(l);P(i.fsPath)&&(!T||t.getWorkspaceFolder(i))&&this._onDidCreate.fire(i)}if(!h)for(const l of a.changed){const i=d.URI.revive(l);P(i.fsPath)&&(!T||t.getWorkspaceFolder(i))&&this._onDidChange.fire(i)}if(!o)for(const l of a.deleted){const i=d.URI.revive(l);P(i.fsPath)&&(!T||t.getWorkspaceFolder(i))&&this._onDidDelete.fire(i)}});this._disposable=u.Disposable.from(b,this._onDidCreate,this._onDidChange,this._onDidDelete,n)}ensureWatching(E,t,s){const g=u.Disposable.from();if(typeof s=="string")return g;const C=E.getProxy(A.MainContext.MainThreadFileSystem);let r=!1;(s.pattern.includes(M.GLOBSTAR)||s.pattern.includes(M.GLOB_SPLIT))&&(r=!0);const h=Math.random();return C.$watch(t.identifier.value,h,s.baseUri,{recursive:r,excludes:[]}),u.Disposable.from({dispose:()=>C.$unwatch(h)})}dispose(){this._disposable.dispose()}get onDidCreate(){return this._onDidCreate.event}get onDidChange(){return this._onDidChange.event}get onDidDelete(){return this._onDidDelete.event}}class f{constructor(E,t,s){this._mainContext=E,this._logService=t,this._extHostDocumentsAndEditors=s,this._onFileSystemEvent=new w.Emitter,this._onDidRenameFile=new w.Emitter,this._onDidCreateFile=new w.Emitter,this._onDidDeleteFile=new w.Emitter,this._onWillRenameFile=new w.AsyncEmitter,this._onWillCreateFile=new w.AsyncEmitter,this._onWillDeleteFile=new w.AsyncEmitter,this.onDidRenameFile=this._onDidRenameFile.event,this.onDidCreateFile=this._onDidCreateFile.event,this.onDidDeleteFile=this._onDidDeleteFile.event}createFileSystemWatcher(E,t,s,g,C,r){return new p(this._mainContext,E,t,this._onFileSystemEvent.event,R.GlobPattern.from(s),g,C,r)}$onFileEvent(E){this._onFileSystemEvent.fire(E)}$onDidRunFileOperation(E,t){switch(E){case 2:this._onDidRenameFile.fire(Object.freeze({files:t.map(s=>({oldUri:d.URI.revive(s.source),newUri:d.URI.revive(s.target)}))}));break;case 1:this._onDidDeleteFile.fire(Object.freeze({files:t.map(s=>d.URI.revive(s.target))}));break;case 0:case 3:this._onDidCreateFile.fire(Object.freeze({files:t.map(s=>d.URI.revive(s.target))}));break;default:}}getOnWillRenameFileEvent(E){return this._createWillExecuteEvent(E,this._onWillRenameFile)}getOnWillCreateFileEvent(E){return this._createWillExecuteEvent(E,this._onWillCreateFile)}getOnWillDeleteFileEvent(E){return this._createWillExecuteEvent(E,this._onWillDeleteFile)}_createWillExecuteEvent(E,t){return(s,g,C)=>{const r=function(o){s.call(g,o)};return r.extension=E,t.event(r,void 0,C)}}async $onWillRunFileOperation(E,t,s,g){switch(E){case 2:return await this._fireWillEvent(this._onWillRenameFile,{files:t.map(C=>({oldUri:d.URI.revive(C.source),newUri:d.URI.revive(C.target)}))},s,g);case 1:return await this._fireWillEvent(this._onWillDeleteFile,{files:t.map(C=>d.URI.revive(C.target))},s,g);case 0:case 3:return await this._fireWillEvent(this._onWillCreateFile,{files:t.map(C=>d.URI.revive(C.target))},s,g)}}async _fireWillEvent(E,t,s,g){const C=new Set,r=[];if(await E.fireAsync(t,g,async(o,b)=>{const P=Date.now(),T=await Promise.resolve(o);T instanceof u.WorkspaceEdit&&(r.push([b.extension,T]),C.add(b.extension.displayName??b.extension.identifier.value)),Date.now()-P>s&&this._logService.warn("SLOW file-participant",b.extension.identifier)}),g.isCancellationRequested||r.length===0)return;const h={edits:[]};for(const[,o]of r){const{edits:b}=R.WorkspaceEdit.from(o,{getTextDocumentVersion:P=>this._extHostDocumentsAndEditors.getDocument(P)?.version,getNotebookDocumentVersion:()=>{}});h.edits=h.edits.concat(b)}return{edit:h,extensionNames:Array.from(C)}}}e.ExtHostFileSystemEventService=f}),define(ye[331],Ce([1,0,5,2,3,11,7,32]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostInteractiveEditor=void 0;class p{static{this._pool=0}constructor(t,s){this.extension=t,this.provider=s,this.handle=p._pool++}}class f{constructor(t){this.session=t,this.responses=[]}}class y{static{this._nextId=0}constructor(t,s,g,C){this._documents=g,this._logService=C,this._inputProvider=new Map,this._inputSessions=new Map,this._proxy=t.getProxy(d.MainContext.MainThreadInlineChat),s.registerApiCommand(new u.ApiCommand("vscode.editorChat.start","inlineChat.start","Invoke a new editor chat session",[new u.ApiCommandArgument("Run arguments","",r=>!0,r=>{if(r)return{initialRange:r.initialRange?A.Range.from(r.initialRange):void 0,initialSelection:r.initialSelection?A.Selection.from(r.initialSelection):void 0,message:r.message,autoSend:r.autoSend,position:r.position?A.Position.from(r.position):void 0}})],u.ApiCommandResult.Void))}registerProvider(t,s){const g=new p(t,s);return this._inputProvider.set(g.handle,g),this._proxy.$registerInteractiveEditorProvider(g.handle,s.label,t.identifier.value,typeof s.handleInteractiveEditorResponseFeedback=="function"),(0,w.toDisposable)(()=>{this._proxy.$unregisterInteractiveEditorProvider(g.handle),this._inputProvider.delete(g.handle)})}async $prepareSession(t,s,g,C){const r=this._inputProvider.get(t);if(!r){this._logService.warn("CANNOT prepare session because the PROVIDER IS GONE");return}const h=this._documents.getDocument(M.URI.revive(s)),o=A.Selection.to(g),b=await r.provider.prepareInteractiveEditorSession({document:h,selection:o},C);if(!b)return;if(b.wholeRange&&!b.wholeRange.contains(o))throw new Error("InteractiveEditorSessionProvider returned a wholeRange that does not contain the selection.");const P=y._nextId++;return this._inputSessions.set(P,new f(b)),{id:P,placeholder:b.placeholder,slashCommands:b.slashCommands?.map(T=>({command:T.command,detail:T.detail,refer:T.refer,executeImmediately:T.executeImmediately})),wholeRange:A.Range.from(b.wholeRange),message:b.message}}async $provideResponse(t,s,g,C){const r=this._inputProvider.get(t);if(!r)return;const h=this._inputSessions.get(s.id);if(!h)return;const o={session:h.session,prompt:g.prompt,selection:A.Selection.to(g.selection),wholeRange:A.Range.to(g.wholeRange),attempt:g.attempt,live:g.live};let b=!1;const P={report:a=>{if(!g.live)throw new Error("Progress reporting is only supported for live sessions");b||C.isCancellationRequested||!a.message&&!a.edits||this._proxy.$handleProgressChunk(g.requestId,{message:a.message,edits:a.edits?.map(A.TextEdit.from)})}},T=typeof r.provider.provideInteractiveEditorResponse2=="function"?r.provider.provideInteractiveEditorResponse2(o,P,C):r.provider.provideInteractiveEditorResponse(o,C);Promise.resolve(T).finally(()=>b=!0);const n=await T;if(n){const a=h.responses.push(n)-1,l={wholeRange:A.Range.from(n.wholeRange),placeholder:n.placeholder};if(y._isMessageResponse(n))return{...l,id:a,type:"message",message:A.MarkdownString.from(n.contents)};const{edits:i}=n;if(i instanceof R.WorkspaceEdit)return{...l,id:a,type:"bulkEdit",edits:A.WorkspaceEdit.from(i)};if(Array.isArray(i))return{...l,id:a,type:"editorEdit",edits:i.map(A.TextEdit.from)}}}$handleFeedback(t,s,g,C){const r=this._inputProvider.get(t),h=this._inputSessions.get(s),o=h?.responses[g];if(r&&o){let b;switch(C){case 1:b=R.InteractiveEditorResponseFeedbackKind.Helpful;break;case 0:b=R.InteractiveEditorResponseFeedbackKind.Unhelpful;break;case 2:b=R.InteractiveEditorResponseFeedbackKind.Undone;break;case 3:b=R.InteractiveEditorResponseFeedbackKind.Accepted;break}r.provider.handleInteractiveEditorResponseFeedback?.(h.session,o,b)}}$releaseSession(t,s){const g=this._inputSessions.get(s),C=this._inputProvider.get(t);g&&C&&C.provider.releaseInteractiveEditorSession?.(g.session),this._inputSessions.delete(s)}static _isMessageResponse(t){return typeof t=="object"&&typeof t.contents=="object"}}e.ExtHostInteractiveEditor=y}),define(ye[332],Ce([1,0,3,7]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostIssueReporter=void 0;class d{constructor(R){this._IssueUriRequestHandlers=new Map,this._proxy=R.getProxy(w.MainContext.MainThreadIssueReporter)}async $getIssueReporterUri(R,u){if(this._IssueUriRequestHandlers.size===0)throw new Error("No issue request handlers registered");const p=this._IssueUriRequestHandlers.get(R);if(!p)throw new Error("Issue request handler not found");const f=await p.handleIssueUrlRequest();if(!f)throw new Error("Issue request handler returned no result");return f}registerIssueUriRequestHandler(R,u){const p=R.identifier.value;return this._IssueUriRequestHandlers.set(p,u),this._proxy.$registerIssueUriRequestHandler(p),new M.Disposable(()=>{this._proxy.$unregisterIssueUriRequestHandler(p),this._IssueUriRequestHandlers.delete(p)})}}e.ExtHostIssueReporter=d}),define(ye[333],Ce([1,0,5,3]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostLabelService=void 0;class d{constructor(R){this._handlePool=0,this._proxy=R.getProxy(M.MainContext.MainThreadLabelService)}$registerResourceLabelFormatter(R){const u=this._handlePool++;return this._proxy.$registerResourceLabelFormatter(u,R),(0,w.toDisposable)(()=>{this._proxy.$unregisterResourceLabelFormatter(u)})}}e.ExtHostLabelService=d}),define(ye[334],Ce([1,0,2,24,11,7,81,3,16,37,19,18,167,22,23,5,130,117,86,36,8,13,27,211]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostLanguageFeatures=void 0;class l{constructor(z,ee){this._documents=z,this._provider=ee}async provideDocumentSymbols(z,ee){const ie=this._documents.getDocument(z),ue=await this._provider.provideDocumentSymbols(ie,ee);if(!(0,y.isFalsyOrEmpty)(ue))return ue[0]instanceof A.DocumentSymbol?ue.map(d.DocumentSymbol.from):l._asDocumentSymbolTree(ue)}static _asDocumentSymbolTree(z){z=z.slice(0).sort((ue,Y)=>{let me=ue.location.range.start.compareTo(Y.location.range.start);return me===0&&(me=Y.location.range.end.compareTo(ue.location.range.end)),me});const ee=[],ie=[];for(const ue of z){const Y={name:ue.name||"!!MISSING: name!!",kind:d.SymbolKind.from(ue.kind),tags:ue.tags?.map(d.SymbolTag.from)||[],detail:"",containerName:ue.containerName,range:d.Range.from(ue.location.range),selectionRange:d.Range.from(ue.location.range),children:[]};for(;;){if(ie.length===0){ie.push(Y),ee.push(Y);break}const me=ie[ie.length-1];if(f.Range.containsRange(me.range,Y.range)&&!f.Range.equalsRange(me.range,Y.range)){me.children?.push(Y),ie.push(Y);break}ie.pop()}}return ee}}class i{static{this._badCmd={command:"missing",title:"!!MISSING: command!!"}}constructor(z,ee,ie){this._documents=z,this._commands=ee,this._provider=ie,this._cache=new o.Cache("CodeLens"),this._disposables=new Map}async provideCodeLenses(z,ee){const ie=this._documents.getDocument(z),ue=await this._provider.provideCodeLenses(ie,ee);if(!ue||ee.isCancellationRequested)return;const Y=this._cache.add(ue),me=new C.DisposableStore;this._disposables.set(Y,me);const Se={cacheId:Y,lenses:[]};for(let Ue=0;Ue<ue.length;Ue++)Se.lenses.push({cacheId:[Y,Ue],range:d.Range.from(ue[Ue].range),command:this._commands.toInternal(ue[Ue].command,me)});return Se}async resolveCodeLens(z,ee){const ie=z.cacheId&&this._cache.get(...z.cacheId);if(!ie)return;let ue;if(typeof this._provider.resolveCodeLens!="function"||ie.isResolved?ue=ie:ue=await this._provider.resolveCodeLens(ie,ee),ue||(ue=ie),ee.isCancellationRequested)return;const Y=z.cacheId&&this._disposables.get(z.cacheId[0]);if(Y)return z.command=this._commands.toInternal(ue.command??i._badCmd,Y),z}releaseCodeLenses(z){this._disposables.get(z)?.dispose(),this._disposables.delete(z),this._cache.delete(z)}}function c(Pe){return Array.isArray(Pe)?Pe.map(d.DefinitionLink.from):Pe?[d.DefinitionLink.from(Pe)]:[]}class _{constructor(z,ee){this._documents=z,this._provider=ee}async provideDefinition(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideDefinition(ue,Y,ie);return c(me)}}class S{constructor(z,ee){this._documents=z,this._provider=ee}async provideDeclaration(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideDeclaration(ue,Y,ie);return c(me)}}class k{constructor(z,ee){this._documents=z,this._provider=ee}async provideImplementation(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideImplementation(ue,Y,ie);return c(me)}}class m{constructor(z,ee){this._documents=z,this._provider=ee}async provideTypeDefinition(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideTypeDefinition(ue,Y,ie);return c(me)}}class v{constructor(z,ee){this._documents=z,this._provider=ee}async provideHover(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideHover(ue,Y,ie);if(!(!me||(0,y.isFalsyOrEmpty)(me.contents)))return me.range||(me.range=ue.getWordRangeAtPosition(Y)),me.range||(me.range=new A.Range(Y,Y)),d.Hover.from(me)}}class D{constructor(z,ee){this._documents=z,this._provider=ee}async provideEvaluatableExpression(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideEvaluatableExpression(ue,Y,ie);if(me)return d.EvaluatableExpression.from(me)}}class L{constructor(z,ee){this._documents=z,this._provider=ee}async provideInlineValues(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=await this._provider.provideInlineValues(Y,d.Range.to(ee),d.InlineValueContext.to(ie),ue);if(Array.isArray(me))return me.map(Se=>d.InlineValue.from(Se))}}class O{constructor(z,ee){this._documents=z,this._provider=ee}async provideDocumentHighlights(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideDocumentHighlights(ue,Y,ie);if(Array.isArray(me))return me.map(d.DocumentHighlight.from)}}class H{constructor(z,ee){this._documents=z,this._provider=ee}async provideLinkedEditingRanges(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.provideLinkedEditingRanges(ue,Y,ie);if(me&&Array.isArray(me.ranges))return{ranges:(0,y.coalesce)(me.ranges.map(d.Range.from)),wordPattern:me.wordPattern}}}class N{constructor(z,ee){this._documents=z,this._provider=ee}async provideReferences(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=d.Position.to(ee),Se=await this._provider.provideReferences(Y,me,ie,ue);if(Array.isArray(Se))return Se.map(d.location.from)}}class ${static{this._maxCodeActionsPerFile=1e3}constructor(z,ee,ie,ue,Y,me,Se){this._documents=z,this._commands=ee,this._diagnostics=ie,this._provider=ue,this._logService=Y,this._extension=me,this._apiDeprecation=Se,this._cache=new o.Cache("CodeAction"),this._disposables=new Map,this.nbKind=new A.CodeActionKind("notebook")}async provideCodeActions(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=t.Selection.isISelection(ee)?d.Selection.to(ee):d.Range.to(ee),Se=[];for(const it of this._diagnostics.getDiagnostics(z))if(me.intersection(it.range)&&Se.push(it)>$._maxCodeActionsPerFile)break;const Ue={diagnostics:Se,only:ie.only?new A.CodeActionKind(ie.only):void 0,triggerKind:d.CodeActionTriggerKind.to(ie.trigger)},ze=await this._provider.provideCodeActions(Y,me,Ue,ue);if(!(0,y.isNonEmptyArray)(ze)||ue.isCancellationRequested)return;const et=this._cache.add(ze),Ye=new C.DisposableStore;this._disposables.set(et,Ye);const at=[];for(let it=0;it<ze.length;it++){const rt=ze[it];if(rt)if($._isCommand(rt))this._apiDeprecation.report("CodeActionProvider.provideCodeActions - return commands",this._extension,"Return 'CodeAction' instances instead."),at.push({_isSynthetic:!0,title:rt.title,command:this._commands.toInternal(rt,Ye)});else{if(Ue.triggerKind!==A.CodeActionTriggerKind.Invoke&&rt.kind&&this.nbKind.contains(rt.kind))continue;Ue.only&&(rt.kind?Ue.only.contains(rt.kind)||this._logService.warn(`${this._extension.identifier.value} - Code actions of kind '${Ue.only.value} 'requested but returned code action is of kind '${rt.kind.value}'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.`):this._logService.warn(`${this._extension.identifier.value} - Code actions of kind '${Ue.only.value} 'requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.`)),at.push({cacheId:[et,it],title:rt.title,command:rt.command&&this._commands.toInternal(rt.command,Ye),diagnostics:rt.diagnostics&&rt.diagnostics.map(d.Diagnostic.from),edit:rt.edit&&d.WorkspaceEdit.from(rt.edit,void 0),kind:rt.kind&&rt.kind.value,isPreferred:rt.isPreferred,disabled:rt.disabled?.reason})}}return{cacheId:et,actions:at}}async resolveCodeAction(z,ee){const[ie,ue]=z,Y=this._cache.get(ie,ue);if(!Y||$._isCommand(Y))return{};if(!this._provider.resolveCodeAction)return{};const me=await this._provider.resolveCodeAction(Y,ee)??Y;let Se;me.edit&&(Se=d.WorkspaceEdit.from(me.edit,void 0));let Ue;if(me.command){const ze=this._disposables.get(ie);ze&&(Ue=this._commands.toInternal(me.command,ze))}return{edit:Se,command:Ue}}releaseCodeActions(z){this._disposables.get(z)?.dispose(),this._disposables.delete(z),this._cache.delete(z)}static _isCommand(z){return typeof z.command=="string"&&typeof z.title=="string"}}class U{static toInternalProviderId(z,ee){return z+"."+ee}constructor(z,ee,ie,ue,Y){this._proxy=z,this._documents=ee,this._provider=ie,this._handle=ue,this._extension=Y}async prepareDocumentPaste(z,ee,ie,ue){if(!this._provider.prepareDocumentPaste)return;const Y=this._documents.getDocument(z),me=ee.map(ze=>d.Range.to(ze)),Se=d.DataTransfer.toDataTransfer(ie,()=>{throw new P.NotImplementedError});if(await this._provider.prepareDocumentPaste(Y,me,Se,ue),ue.isCancellationRequested)return;const Ue=Array.from(Se).filter(([,ze])=>!(ze instanceof A.InternalDataTransferItem));return d.DataTransfer.from(Ue)}async providePasteEdits(z,ee,ie,ue,Y){if(!this._provider.provideDocumentPasteEdits)return;const me=this._documents.getDocument(ee),Se=ie.map(et=>d.Range.to(et)),Ue=d.DataTransfer.toDataTransfer(ue,async et=>(await this._proxy.$resolvePasteFileData(this._handle,z,et)).buffer),ze=await this._provider.provideDocumentPasteEdits(me,Se,Ue,Y);if(ze)return{label:ze.label??(0,a.localize)(0,null,this._extension.displayName||this._extension.name),detail:this._extension.displayName||this._extension.name,yieldTo:ze.yieldTo?.map(et=>"mimeType"in et?et:{providerId:U.toInternalProviderId(et.extensionId,et.providerId)}),insertText:typeof ze.insertText=="string"?ze.insertText:{snippet:ze.insertText.value},additionalEdit:ze.additionalEdit?d.WorkspaceEdit.from(ze.additionalEdit,void 0):void 0}}}class x{constructor(z,ee){this._documents=z,this._provider=ee}async provideDocumentFormattingEdits(z,ee,ie){const ue=this._documents.getDocument(z),Y=await this._provider.provideDocumentFormattingEdits(ue,ee,ie);if(Array.isArray(Y))return Y.map(d.TextEdit.from)}}class X{constructor(z,ee){this._documents=z,this._provider=ee}async provideDocumentRangeFormattingEdits(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=d.Range.to(ee),Se=await this._provider.provideDocumentRangeFormattingEdits(Y,me,ie,ue);if(Array.isArray(Se))return Se.map(d.TextEdit.from)}async provideDocumentRangesFormattingEdits(z,ee,ie,ue){(0,E.assertType)(typeof this._provider.provideDocumentRangesFormattingEdits=="function","INVALID invocation of `provideDocumentRangesFormattingEdits`");const Y=this._documents.getDocument(z),me=ee.map(d.Range.to),Se=await this._provider.provideDocumentRangesFormattingEdits(Y,me,ie,ue);if(Array.isArray(Se))return Se.map(d.TextEdit.from)}}class K{constructor(z,ee){this._documents=z,this._provider=ee,this.autoFormatTriggerCharacters=[]}async provideOnTypeFormattingEdits(z,ee,ie,ue,Y){const me=this._documents.getDocument(z),Se=d.Position.to(ee),Ue=await this._provider.provideOnTypeFormattingEdits(me,Se,ie,ue,Y);if(Array.isArray(Ue))return Ue.map(d.TextEdit.from)}}class pe{constructor(z,ee){this._provider=z,this._logService=ee,this._cache=new o.Cache("WorkspaceSymbols")}async provideWorkspaceSymbols(z,ee){const ie=await this._provider.provideWorkspaceSymbols(z,ee);if(!(0,y.isNonEmptyArray)(ie))return{symbols:[]};const ue=this._cache.add(ie),Y={cacheId:ue,symbols:[]};for(let me=0;me<ie.length;me++){const Se=ie[me];if(!Se||!Se.name){this._logService.warn("INVALID SymbolInformation",Se);continue}Y.symbols.push({...d.WorkspaceSymbol.from(Se),cacheId:[ue,me]})}return Y}async resolveWorkspaceSymbol(z,ee){if(typeof this._provider.resolveWorkspaceSymbol!="function"||!z.cacheId)return z;const ie=this._cache.get(...z.cacheId);if(ie){const ue=await this._provider.resolveWorkspaceSymbol(ie,ee);return ue&&(0,M.mixin)(z,d.WorkspaceSymbol.from(ue),!0)}}releaseWorkspaceSymbols(z){this._cache.delete(z)}}class le{static supportsResolving(z){return typeof z.prepareRename=="function"}constructor(z,ee,ie){this._documents=z,this._provider=ee,this._logService=ie}async provideRenameEdits(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=d.Position.to(ee);try{const Se=await this._provider.provideRenameEdits(Y,me,ie,ue);return Se?d.WorkspaceEdit.from(Se):void 0}catch(Se){const Ue=le._asMessage(Se);return Ue?{rejectReason:Ue,edits:void 0}:Promise.reject(Se)}}async resolveRenameLocation(z,ee,ie){if(typeof this._provider.prepareRename!="function")return Promise.resolve(void 0);const ue=this._documents.getDocument(z),Y=d.Position.to(ee);try{const me=await this._provider.prepareRename(ue,Y,ie);let Se,Ue;if(A.Range.isRange(me)?(Se=me,Ue=ue.getText(me)):(0,E.isObject)(me)&&(Se=me.range,Ue=me.placeholder),!Se||!Ue)return;if(Se.start.line>Y.line||Se.end.line<Y.line){this._logService.warn("INVALID rename location: position line must be within range start/end lines");return}return{range:d.Range.from(Se),text:Ue}}catch(me){const Se=le._asMessage(me);return Se?{rejectReason:Se,range:void 0,text:void 0}:Promise.reject(me)}}static _asMessage(z){return typeof z=="string"?z:z instanceof Error&&typeof z.message=="string"?z.message:void 0}}class re{constructor(z,ee){this.resultId=z,this.tokens=ee}}class q{constructor(z,ee){this._documents=z,this._provider=ee,this._nextResultId=1,this._previousResults=new Map}async provideDocumentSemanticTokens(z,ee,ie){const ue=this._documents.getDocument(z),Y=ee!==0?this._previousResults.get(ee):null;let me=typeof Y?.resultId=="string"&&typeof this._provider.provideDocumentSemanticTokensEdits=="function"?await this._provider.provideDocumentSemanticTokensEdits(ue,Y.resultId,ie):await this._provider.provideDocumentSemanticTokens(ue,ie);return Y&&this._previousResults.delete(ee),me?(me=q._fixProvidedSemanticTokens(me),this._send(q._convertToEdits(Y,me),me)):null}async releaseDocumentSemanticColoring(z){this._previousResults.delete(z)}static _fixProvidedSemanticTokens(z){return q._isSemanticTokens(z)?q._isCorrectSemanticTokens(z)?z:new A.SemanticTokens(new Uint32Array(z.data),z.resultId):q._isSemanticTokensEdits(z)?q._isCorrectSemanticTokensEdits(z)?z:new A.SemanticTokensEdits(z.edits.map(ee=>new A.SemanticTokensEdit(ee.start,ee.deleteCount,ee.data?new Uint32Array(ee.data):ee.data)),z.resultId):z}static _isSemanticTokens(z){return z&&!!z.data}static _isCorrectSemanticTokens(z){return z.data instanceof Uint32Array}static _isSemanticTokensEdits(z){return z&&Array.isArray(z.edits)}static _isCorrectSemanticTokensEdits(z){for(const ee of z.edits)if(!(ee.data instanceof Uint32Array))return!1;return!0}static _convertToEdits(z,ee){if(!q._isSemanticTokens(ee)||!z||!z.tokens)return ee;const ie=z.tokens,ue=ie.length,Y=ee.data,me=Y.length;let Se=0;const Ue=Math.min(ue,me);for(;Se<Ue&&ie[Se]===Y[Se];)Se++;if(Se===ue&&Se===me)return new A.SemanticTokensEdits([],ee.resultId);let ze=0;const et=Ue-Se;for(;ze<et&&ie[ue-ze-1]===Y[me-ze-1];)ze++;return new A.SemanticTokensEdits([{start:Se,deleteCount:ue-Se-ze,data:Y.subarray(Se,me-ze)}],ee.resultId)}_send(z,ee){if(q._isSemanticTokens(z)){const ie=this._nextResultId++;return this._previousResults.set(ie,new re(z.resultId,z.data)),(0,r.encodeSemanticTokensDto)({id:ie,type:"full",data:z.data})}if(q._isSemanticTokensEdits(z)){const ie=this._nextResultId++;return q._isSemanticTokens(ee)?this._previousResults.set(ie,new re(ee.resultId,ee.data)):this._previousResults.set(ie,new re(z.resultId)),(0,r.encodeSemanticTokensDto)({id:ie,type:"delta",deltas:(z.edits||[]).map(ue=>({start:ue.start,deleteCount:ue.deleteCount,data:ue.data}))})}return null}}class oe{constructor(z,ee){this._documents=z,this._provider=ee}async provideDocumentRangeSemanticTokens(z,ee,ie){const ue=this._documents.getDocument(z),Y=await this._provider.provideDocumentRangeSemanticTokens(ue,d.Range.to(ee),ie);return Y?this._send(Y):null}_send(z){return(0,r.encodeSemanticTokensDto)({id:0,type:"full",data:z.data})}}class ve{static supportsResolving(z){return typeof z.resolveCompletionItem=="function"}constructor(z,ee,ie,ue,Y){this._documents=z,this._commands=ee,this._provider=ie,this._apiDeprecation=ue,this._extension=Y,this._cache=new o.Cache("CompletionItem"),this._disposables=new Map}async provideCompletionItems(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=d.Position.to(ee),Se=Y.getWordRangeAtPosition(me)||new A.Range(me,me),Ue=Se.with({end:me}),ze=new b.StopWatch,et=await this._provider.provideCompletionItems(Y,me,ue,d.CompletionContext.to(ie));if(!et||ue.isCancellationRequested)return;const Ye=Array.isArray(et)?new A.CompletionList(et):et,at=ve.supportsResolving(this._provider)?this._cache.add(Ye.items):this._cache.add([]),it=new C.DisposableStore;this._disposables.set(at,it);const rt=[],Ae={x:at,b:rt,a:{replace:d.Range.from(Se),insert:d.Range.from(Ue)},c:Ye.isIncomplete||void 0,d:ze.elapsed()};for(let xe=0;xe<Ye.items.length;xe++){const Te=Ye.items[xe],Ve=this._convertCompletionItem(Te,[at,xe],Ue,Se);rt.push(Ve)}return Ae}async resolveCompletionItem(z,ee){if(typeof this._provider.resolveCompletionItem!="function")return;const ie=this._cache.get(...z);if(!ie)return;const ue=this._convertCompletionItem(ie,z),Y=await this._provider.resolveCompletionItem(ie,ee);if(!Y)return;const me=this._convertCompletionItem(Y,z);return(ue.h!==me.h||ue.i!==me.i)&&this._apiDeprecation.report("CompletionItem.insertText",this._extension,"extension MAY NOT change 'insertText' of a CompletionItem during resolve"),(ue.n!==me.n||ue.o!==me.o||!(0,M.equals)(ue.p,me.p))&&this._apiDeprecation.report("CompletionItem.command",this._extension,"extension MAY NOT change 'command' of a CompletionItem during resolve"),{...ue,d:me.d,c:me.c,l:me.l,h:me.h,i:me.i,n:me.n,o:me.o,p:me.p}}releaseCompletionItems(z){this._disposables.get(z)?.dispose(),this._disposables.delete(z),this._cache.delete(z)}_convertCompletionItem(z,ee,ie,ue){const Y=this._disposables.get(ee[0]);if(!Y)throw Error("DisposableStore is missing...");const me=this._commands.toInternal(z.command,Y),Se={x:ee,a:z.label,b:z.kind!==void 0?d.CompletionItemKind.from(z.kind):void 0,m:z.tags&&z.tags.map(d.CompletionItemTag.from),c:z.detail,d:typeof z.documentation>"u"?void 0:d.MarkdownString.fromStrict(z.documentation),e:z.sortText!==z.label?z.sortText:void 0,f:z.filterText!==z.label?z.filterText:void 0,g:z.preselect||void 0,i:z.keepWhitespace?1:0,k:z.commitCharacters?.join(""),l:z.additionalTextEdits&&z.additionalTextEdits.map(d.TextEdit.from),n:me?.$ident,o:me?.id,p:me?.$ident?void 0:me?.arguments};z.textEdit?(this._apiDeprecation.report("CompletionItem.textEdit",this._extension,"Use 'CompletionItem.insertText' and 'CompletionItem.range' instead."),Se.h=z.textEdit.newText):typeof z.insertText=="string"?Se.h=z.insertText:z.insertText instanceof A.SnippetString&&(Se.h=z.insertText.value,Se.i|=4);let Ue;return z.textEdit?Ue=z.textEdit.range:z.range&&(Ue=z.range),A.Range.isRange(Ue)?Se.j=d.Range.from(Ue):Ue&&(!ie?.isEqual(Ue.inserting)||!ue?.isEqual(Ue.replacing))&&(Se.j={insert:d.Range.from(Ue.inserting),replace:d.Range.from(Ue.replacing)}),Se}}class ce{async provideInlineCompletions(z,ee,ie,ue){}disposeCompletions(z){}handleDidShowCompletionItem(z,ee,ie){}handlePartialAccept(z,ee,ie){}}class se extends ce{constructor(z,ee,ie,ue){super(),this._extension=z,this._documents=ee,this._provider=ie,this._commands=ue,this._references=new te,this._isAdditionsProposedApiEnabled=(0,n.isProposedApiEnabled)(this._extension,"inlineCompletionsAdditions"),this.languageTriggerKindToVSCodeTriggerKind={[R.InlineCompletionTriggerKind.Automatic]:A.InlineCompletionTriggerKind.Automatic,[R.InlineCompletionTriggerKind.Explicit]:A.InlineCompletionTriggerKind.Invoke}}get supportsHandleEvents(){return(0,n.isProposedApiEnabled)(this._extension,"inlineCompletionsAdditions")&&(typeof this._provider.handleDidShowCompletionItem=="function"||typeof this._provider.handleDidPartiallyAcceptCompletionItem=="function")}async provideInlineCompletions(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=d.Position.to(ee),Se=await this._provider.provideInlineCompletionItems(Y,me,{selectedCompletionInfo:ie.selectedSuggestionInfo?{range:d.Range.to(ie.selectedSuggestionInfo.range),text:ie.selectedSuggestionInfo.text}:void 0,triggerKind:this.languageTriggerKindToVSCodeTriggerKind[ie.triggerKind]},ue);if(!Se||ue.isCancellationRequested)return;const Ue=Array.isArray(Se)?Se:Se.items,ze=this._isAdditionsProposedApiEnabled?Array.isArray(Se)?[]:Se.commands||[]:[],et=this._isAdditionsProposedApiEnabled&&!Array.isArray(Se)?Se.enableForwardStability:void 0;let Ye;return{pid:this._references.createReferenceId({dispose(){Ye?.dispose()},items:Ue}),items:Ue.map((it,rt)=>{let Ae;it.command&&(Ye||(Ye=new C.DisposableStore),Ae=this._commands.toInternal(it.command,Ye));const xe=it.insertText;return{insertText:typeof xe=="string"?xe:{snippet:xe.value},filterText:it.filterText,range:it.range?d.Range.from(it.range):void 0,command:Ae,idx:rt,completeBracketPairs:this._isAdditionsProposedApiEnabled?it.completeBracketPairs:!1}}),commands:ze.map(it=>(Ye||(Ye=new C.DisposableStore),this._commands.toInternal(it,Ye))),suppressSuggestions:!1,enableForwardStability:et}}disposeCompletions(z){this._references.disposeReferenceId(z)?.dispose()}handleDidShowCompletionItem(z,ee,ie){const ue=this._references.get(z)?.items[ee];ue&&this._provider.handleDidShowCompletionItem&&this._isAdditionsProposedApiEnabled&&this._provider.handleDidShowCompletionItem(ue,ie)}handlePartialAccept(z,ee,ie){const ue=this._references.get(z)?.items[ee];ue&&this._provider.handleDidPartiallyAcceptCompletionItem&&this._isAdditionsProposedApiEnabled&&this._provider.handleDidPartiallyAcceptCompletionItem(ue,ie)}}class te{constructor(){this._references=new Map,this._idPool=1}createReferenceId(z){const ee=this._idPool++;return this._references.set(ee,z),ee}disposeReferenceId(z){const ee=this._references.get(z);return this._references.delete(z),ee}get(z){return this._references.get(z)}}class B{constructor(z,ee){this._documents=z,this._provider=ee,this._cache=new o.Cache("SignatureHelp")}async provideSignatureHelp(z,ee,ie,ue){const Y=this._documents.getDocument(z),me=d.Position.to(ee),Se=this.reviveContext(ie),Ue=await this._provider.provideSignatureHelp(Y,me,ue,Se);if(Ue){const ze=this._cache.add([Ue]);return{...d.SignatureHelp.from(Ue),id:ze}}}reviveContext(z){let ee;if(z.activeSignatureHelp){const ie=d.SignatureHelp.to(z.activeSignatureHelp),ue=this._cache.get(z.activeSignatureHelp.id,0);ue?(ee=ue,ee.activeSignature=ie.activeSignature,ee.activeParameter=ie.activeParameter):ee=ie}return{...z,activeSignatureHelp:ee}}releaseSignatureHelp(z){this._cache.delete(z)}}class G{constructor(z,ee,ie,ue,Y){this._documents=z,this._commands=ee,this._provider=ie,this._logService=ue,this._extension=Y,this._cache=new o.Cache("InlayHints"),this._disposables=new Map}async provideInlayHints(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Range.to(ee),me=await this._provider.provideInlayHints(ue,Y,ie);if(!Array.isArray(me)||me.length===0){this._logService.trace(`[InlayHints] NO inlay hints from '${this._extension.identifier.value}' for ${ee}`);return}if(ie.isCancellationRequested)return;const Se=this._cache.add(me);this._disposables.set(Se,new C.DisposableStore);const Ue={hints:[],cacheId:Se};for(let ze=0;ze<me.length;ze++)this._isValidInlayHint(me[ze],Y)&&Ue.hints.push(this._convertInlayHint(me[ze],[Se,ze]));return this._logService.trace(`[InlayHints] ${Ue.hints.length} inlay hints from '${this._extension.identifier.value}' for ${ee}`),Ue}async resolveInlayHint(z,ee){if(typeof this._provider.resolveInlayHint!="function")return;const ie=this._cache.get(...z);if(!ie)return;const ue=await this._provider.resolveInlayHint(ie,ee);if(ue&&this._isValidInlayHint(ue))return this._convertInlayHint(ue,z)}releaseHints(z){this._disposables.get(z)?.dispose(),this._disposables.delete(z),this._cache.delete(z)}_isValidInlayHint(z,ee){return z.label.length===0||Array.isArray(z.label)&&z.label.every(ie=>ie.value.length===0)?(console.log("INVALID inlay hint, empty label",z),!1):!(ee&&!ee.contains(z.position))}_convertInlayHint(z,ee){const ie=this._disposables.get(ee[0]);if(!ie)throw Error("DisposableStore is missing...");const ue={label:"",cacheId:ee,tooltip:d.MarkdownString.fromStrict(z.tooltip),position:d.Position.from(z.position),textEdits:z.textEdits&&z.textEdits.map(d.TextEdit.from),kind:z.kind&&d.InlayHintKind.from(z.kind),paddingLeft:z.paddingLeft,paddingRight:z.paddingRight};return typeof z.label=="string"?ue.label=z.label:ue.label=z.label.map(Y=>{const me={label:Y.value};return me.tooltip=d.MarkdownString.fromStrict(Y.tooltip),A.Location.isLocation(Y.location)&&(me.location=d.location.from(Y.location)),Y.command&&(me.command=this._commands.toInternal(Y.command,ie)),me}),ue}}class fe{constructor(z,ee){this._documents=z,this._provider=ee,this._cache=new o.Cache("DocumentLink")}async provideLinks(z,ee){const ie=this._documents.getDocument(z),ue=await this._provider.provideDocumentLinks(ie,ee);if(!(!Array.isArray(ue)||ue.length===0)&&!ee.isCancellationRequested){if(typeof this._provider.resolveDocumentLink!="function")return{links:ue.filter(fe._validateLink).map(d.DocumentLink.from)};{const Y=this._cache.add(ue),me={links:[],cacheId:Y};for(let Se=0;Se<ue.length;Se++){if(!fe._validateLink(ue[Se]))continue;const Ue=d.DocumentLink.from(ue[Se]);Ue.cacheId=[Y,Se],me.links.push(Ue)}return me}}}static _validateLink(z){return z.target&&z.target.path.length>5e4?(console.warn("DROPPING link because it is too long"),!1):!0}async resolveLink(z,ee){if(typeof this._provider.resolveDocumentLink!="function")return;const ie=this._cache.get(...z);if(!ie)return;const ue=await this._provider.resolveDocumentLink(ie,ee);if(!(!ue||!fe._validateLink(ue)))return d.DocumentLink.from(ue)}releaseLinks(z){this._cache.delete(z)}}class _e{constructor(z,ee){this._documents=z,this._provider=ee}async provideColors(z,ee){const ie=this._documents.getDocument(z),ue=await this._provider.provideDocumentColors(ie,ee);return Array.isArray(ue)?ue.map(me=>({color:d.Color.from(me.color),range:d.Range.from(me.range)})):[]}async provideColorPresentations(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Range.to(ee.range),me=d.Color.to(ee.color),Se=await this._provider.provideColorPresentations(me,{document:ue,range:Y},ie);if(Array.isArray(Se))return Se.map(d.ColorPresentation.from)}}class Ee{constructor(z,ee){this._documents=z,this._provider=ee}async provideFoldingRanges(z,ee,ie){const ue=this._documents.getDocument(z),Y=await this._provider.provideFoldingRanges(ue,ee,ie);if(Array.isArray(Y))return Y.map(d.FoldingRange.from)}}class F{constructor(z,ee,ie){this._documents=z,this._provider=ee,this._logService=ie}async provideSelectionRanges(z,ee,ie){const ue=this._documents.getDocument(z),Y=ee.map(d.Position.to),me=await this._provider.provideSelectionRanges(ue,Y,ie);if(!(0,y.isNonEmptyArray)(me))return[];if(me.length!==Y.length)return this._logService.warn("BAD selection ranges, provider must return ranges for each position"),[];const Se=[];for(let Ue=0;Ue<Y.length;Ue++){const ze=[];Se.push(ze);let et=Y[Ue],Ye=me[Ue];for(;;){if(!Ye.range.contains(et))throw new Error("INVALID selection range, must contain the previous range");if(ze.push(d.SelectionRange.from(Ye)),!Ye.parent)break;et=Ye.range,Ye=Ye.parent}}return Se}}class J{constructor(z,ee){this._documents=z,this._provider=ee,this._idPool=new h.IdGenerator(""),this._cache=new Map}async prepareSession(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.prepareCallHierarchy(ue,Y,ie);if(!me)return;const Se=this._idPool.nextId();return this._cache.set(Se,new Map),Array.isArray(me)?me.map(Ue=>this._cacheAndConvertItem(Se,Ue)):[this._cacheAndConvertItem(Se,me)]}async provideCallsTo(z,ee,ie){const ue=this._itemFromCache(z,ee);if(!ue)throw new Error("missing call hierarchy item");const Y=await this._provider.provideCallHierarchyIncomingCalls(ue,ie);if(Y)return Y.map(me=>({from:this._cacheAndConvertItem(z,me.from),fromRanges:me.fromRanges.map(Se=>d.Range.from(Se))}))}async provideCallsFrom(z,ee,ie){const ue=this._itemFromCache(z,ee);if(!ue)throw new Error("missing call hierarchy item");const Y=await this._provider.provideCallHierarchyOutgoingCalls(ue,ie);if(Y)return Y.map(me=>({to:this._cacheAndConvertItem(z,me.to),fromRanges:me.fromRanges.map(Se=>d.Range.from(Se))}))}releaseSession(z){this._cache.delete(z)}_cacheAndConvertItem(z,ee){const ie=this._cache.get(z),ue=d.CallHierarchyItem.from(ee,z,ie.size.toString(36));return ie.set(ue._itemId,ee),ue}_itemFromCache(z,ee){return this._cache.get(z)?.get(ee)}}class I{constructor(z,ee){this._documents=z,this._provider=ee,this._idPool=new h.IdGenerator(""),this._cache=new Map}async prepareSession(z,ee,ie){const ue=this._documents.getDocument(z),Y=d.Position.to(ee),me=await this._provider.prepareTypeHierarchy(ue,Y,ie);if(!me)return;const Se=this._idPool.nextId();return this._cache.set(Se,new Map),Array.isArray(me)?me.map(Ue=>this._cacheAndConvertItem(Se,Ue)):[this._cacheAndConvertItem(Se,me)]}async provideSupertypes(z,ee,ie){const ue=this._itemFromCache(z,ee);if(!ue)throw new Error("missing type hierarchy item");const Y=await this._provider.provideTypeHierarchySupertypes(ue,ie);if(Y)return Y.map(me=>this._cacheAndConvertItem(z,me))}async provideSubtypes(z,ee,ie){const ue=this._itemFromCache(z,ee);if(!ue)throw new Error("missing type hierarchy item");const Y=await this._provider.provideTypeHierarchySubtypes(ue,ie);if(Y)return Y.map(me=>this._cacheAndConvertItem(z,me))}releaseSession(z){this._cache.delete(z)}_cacheAndConvertItem(z,ee){const ie=this._cache.get(z),ue=d.TypeHierarchyItem.from(ee,z,ie.size.toString(36));return ie.set(ue._itemId,ee),ue}_itemFromCache(z,ee){return this._cache.get(z)?.get(ee)}}class V{static toInternalProviderId(z,ee){return z+"."+ee}constructor(z,ee,ie,ue,Y){this._proxy=z,this._documents=ee,this._provider=ie,this._handle=ue,this._extension=Y}async provideDocumentOnDropEdits(z,ee,ie,ue,Y){const me=this._documents.getDocument(ee),Se=d.Position.to(ie),Ue=d.DataTransfer.toDataTransfer(ue,async et=>(await this._proxy.$resolveDocumentOnDropFileData(this._handle,z,et)).buffer),ze=await this._provider.provideDocumentDropEdits(me,Se,Ue,Y);if(ze)return{label:ze.label??(0,a.localize)(1,null,this._extension.displayName||this._extension.name),yieldTo:ze.yieldTo?.map(et=>"mimeType"in et?et:{providerId:V.toInternalProviderId(et.extensionId,et.providerId)}),insertText:typeof ze.insertText=="string"?ze.insertText:{snippet:ze.insertText.value},additionalEdit:ze.additionalEdit?d.WorkspaceEdit.from(ze.additionalEdit,void 0):void 0}}}class j{constructor(z,ee){this._documents=z,this._provider=ee}async provideMappedEdits(z,ee,ie,ue){const Y=w.URI.revive(z),me=this._documents.getDocument(Y),Se={selections:ie.selections.map(ze=>d.Selection.to(ze)),related:ie.related.map(ze=>({uri:w.URI.revive(ze.uri),range:d.Range.to(ze.range)}))},Ue=await this._provider.provideMappedEdits(me,ee,Se,ue);return Ue?d.WorkspaceEdit.from(Ue):null}}class Z{constructor(z,ee){this.adapter=z,this.extension=ee}}class he{static{this._handlePool=0}constructor(z,ee,ie,ue,Y,me,Se,Ue){this._uriTransformer=ee,this._documents=ie,this._commands=ue,this._diagnostics=Y,this._logService=me,this._apiDeprecation=Se,this._extensionTelemetry=Ue,this._adapter=new Map,this._proxy=z.getProxy(u.MainContext.MainThreadLanguageFeatures)}_transformDocumentSelector(z,ee){return d.DocumentSelector.from(z,this._uriTransformer,ee)}_createDisposable(z){return new A.Disposable(()=>{this._adapter.delete(z),this._proxy.$unregister(z)})}_nextHandle(){return he._handlePool++}async _withAdapter(z,ee,ie,ue,Y,me=!1){const Se=this._adapter.get(z);if(!Se||!(Se.adapter instanceof ee))return ue;const Ue=Date.now();me||this._logService.trace(`[${Se.extension.identifier.value}] INVOKE provider '${ie.toString().replace(/[\r\n]/g,"")}'`);const ze=ie(Se.adapter,Se.extension);return Promise.resolve(ze).catch(et=>{(0,P.isCancellationError)(et)||(this._logService.error(`[${Se.extension.identifier.value}] provider FAILED`),this._logService.error(et),this._extensionTelemetry.onExtensionError(Se.extension.identifier,et))}).finally(()=>{me||this._logService.trace(`[${Se.extension.identifier.value}] provider DONE after ${Date.now()-Ue}ms`)}),s.CancellationToken.isCancellationToken(Y)?(0,T.raceCancellationError)(ze,Y):ze}_addNewAdapter(z,ee){const ie=this._nextHandle();return this._adapter.set(ie,new Z(z,ee)),ie}static _extLabel(z){return z.displayName||z.name}registerDocumentSymbolProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new l(this._documents,ie),z),me=ue&&ue.label||he._extLabel(z);return this._proxy.$registerDocumentSymbolProvider(Y,this._transformDocumentSelector(ee,z),me),this._createDisposable(Y)}$provideDocumentSymbols(z,ee,ie){return this._withAdapter(z,l,ue=>ue.provideDocumentSymbols(w.URI.revive(ee),ie),void 0,ie)}registerCodeLensProvider(z,ee,ie){const ue=this._nextHandle(),Y=typeof ie.onDidChangeCodeLenses=="function"?this._nextHandle():void 0;this._adapter.set(ue,new Z(new i(this._documents,this._commands.converter,ie),z)),this._proxy.$registerCodeLensSupport(ue,this._transformDocumentSelector(ee,z),Y);let me=this._createDisposable(ue);if(Y!==void 0){const Se=ie.onDidChangeCodeLenses(Ue=>this._proxy.$emitCodeLensEvent(Y));me=A.Disposable.from(me,Se)}return me}$provideCodeLenses(z,ee,ie){return this._withAdapter(z,i,ue=>ue.provideCodeLenses(w.URI.revive(ee),ie),void 0,ie)}$resolveCodeLens(z,ee,ie){return this._withAdapter(z,i,ue=>ue.resolveCodeLens(ee,ie),void 0,void 0)}$releaseCodeLenses(z,ee){this._withAdapter(z,i,ie=>Promise.resolve(ie.releaseCodeLenses(ee)),void 0,void 0)}registerDefinitionProvider(z,ee,ie){const ue=this._addNewAdapter(new _(this._documents,ie),z);return this._proxy.$registerDefinitionSupport(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideDefinition(z,ee,ie,ue){return this._withAdapter(z,_,Y=>Y.provideDefinition(w.URI.revive(ee),ie,ue),[],ue)}registerDeclarationProvider(z,ee,ie){const ue=this._addNewAdapter(new S(this._documents,ie),z);return this._proxy.$registerDeclarationSupport(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideDeclaration(z,ee,ie,ue){return this._withAdapter(z,S,Y=>Y.provideDeclaration(w.URI.revive(ee),ie,ue),[],ue)}registerImplementationProvider(z,ee,ie){const ue=this._addNewAdapter(new k(this._documents,ie),z);return this._proxy.$registerImplementationSupport(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideImplementation(z,ee,ie,ue){return this._withAdapter(z,k,Y=>Y.provideImplementation(w.URI.revive(ee),ie,ue),[],ue)}registerTypeDefinitionProvider(z,ee,ie){const ue=this._addNewAdapter(new m(this._documents,ie),z);return this._proxy.$registerTypeDefinitionSupport(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideTypeDefinition(z,ee,ie,ue){return this._withAdapter(z,m,Y=>Y.provideTypeDefinition(w.URI.revive(ee),ie,ue),[],ue)}registerHoverProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new v(this._documents,ie),z);return this._proxy.$registerHoverProvider(Y,this._transformDocumentSelector(ee,z)),this._createDisposable(Y)}$provideHover(z,ee,ie,ue){return this._withAdapter(z,v,Y=>Y.provideHover(w.URI.revive(ee),ie,ue),void 0,ue)}registerEvaluatableExpressionProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new D(this._documents,ie),z);return this._proxy.$registerEvaluatableExpressionProvider(Y,this._transformDocumentSelector(ee,z)),this._createDisposable(Y)}$provideEvaluatableExpression(z,ee,ie,ue){return this._withAdapter(z,D,Y=>Y.provideEvaluatableExpression(w.URI.revive(ee),ie,ue),void 0,ue)}registerInlineValuesProvider(z,ee,ie,ue){const Y=typeof ie.onDidChangeInlineValues=="function"?this._nextHandle():void 0,me=this._addNewAdapter(new L(this._documents,ie),z);this._proxy.$registerInlineValuesProvider(me,this._transformDocumentSelector(ee,z),Y);let Se=this._createDisposable(me);if(Y!==void 0){const Ue=ie.onDidChangeInlineValues(ze=>this._proxy.$emitInlineValuesEvent(Y));Se=A.Disposable.from(Se,Ue)}return Se}$provideInlineValues(z,ee,ie,ue,Y){return this._withAdapter(z,L,me=>me.provideInlineValues(w.URI.revive(ee),ie,ue,Y),void 0,Y)}registerDocumentHighlightProvider(z,ee,ie){const ue=this._addNewAdapter(new O(this._documents,ie),z);return this._proxy.$registerDocumentHighlightProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideDocumentHighlights(z,ee,ie,ue){return this._withAdapter(z,O,Y=>Y.provideDocumentHighlights(w.URI.revive(ee),ie,ue),void 0,ue)}registerLinkedEditingRangeProvider(z,ee,ie){const ue=this._addNewAdapter(new H(this._documents,ie),z);return this._proxy.$registerLinkedEditingRangeProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideLinkedEditingRanges(z,ee,ie,ue){return this._withAdapter(z,H,async Y=>{const me=await Y.provideLinkedEditingRanges(w.URI.revive(ee),ie,ue);if(me)return{ranges:me.ranges,wordPattern:me.wordPattern?he._serializeRegExp(me.wordPattern):void 0}},void 0,ue)}registerReferenceProvider(z,ee,ie){const ue=this._addNewAdapter(new N(this._documents,ie),z);return this._proxy.$registerReferenceSupport(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideReferences(z,ee,ie,ue,Y){return this._withAdapter(z,N,me=>me.provideReferences(w.URI.revive(ee),ie,ue,Y),void 0,Y)}registerCodeActionProvider(z,ee,ie,ue){const Y=new C.DisposableStore,me=this._addNewAdapter(new $(this._documents,this._commands.converter,this._diagnostics,ie,this._logService,z,this._apiDeprecation),z);return this._proxy.$registerQuickFixSupport(me,this._transformDocumentSelector(ee,z),{providedKinds:ue?.providedCodeActionKinds?.map(Se=>Se.value),documentation:ue?.documentation?.map(Se=>({kind:Se.kind.value,command:this._commands.converter.toInternal(Se.command,Y)}))},he._extLabel(z),!!ie.resolveCodeAction),Y.add(this._createDisposable(me)),Y}$provideCodeActions(z,ee,ie,ue,Y){return this._withAdapter(z,$,me=>me.provideCodeActions(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$resolveCodeAction(z,ee,ie){return this._withAdapter(z,$,ue=>ue.resolveCodeAction(ee,ie),{},void 0)}$releaseCodeActions(z,ee){this._withAdapter(z,$,ie=>Promise.resolve(ie.releaseCodeActions(ee)),void 0,void 0)}registerDocumentFormattingEditProvider(z,ee,ie){const ue=this._addNewAdapter(new x(this._documents,ie),z);return this._proxy.$registerDocumentFormattingSupport(ue,this._transformDocumentSelector(ee,z),z.identifier,z.displayName||z.name),this._createDisposable(ue)}$provideDocumentFormattingEdits(z,ee,ie,ue){return this._withAdapter(z,x,Y=>Y.provideDocumentFormattingEdits(w.URI.revive(ee),ie,ue),void 0,ue)}registerDocumentRangeFormattingEditProvider(z,ee,ie){const ue=typeof ie.provideDocumentRangesFormattingEdits=="function",Y=this._addNewAdapter(new X(this._documents,ie),z);return this._proxy.$registerRangeFormattingSupport(Y,this._transformDocumentSelector(ee,z),z.identifier,z.displayName||z.name,ue),this._createDisposable(Y)}$provideDocumentRangeFormattingEdits(z,ee,ie,ue,Y){return this._withAdapter(z,X,me=>me.provideDocumentRangeFormattingEdits(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$provideDocumentRangesFormattingEdits(z,ee,ie,ue,Y){return this._withAdapter(z,X,me=>me.provideDocumentRangesFormattingEdits(w.URI.revive(ee),ie,ue,Y),void 0,Y)}registerOnTypeFormattingEditProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new K(this._documents,ie),z);return this._proxy.$registerOnTypeFormattingSupport(Y,this._transformDocumentSelector(ee,z),ue,z.identifier),this._createDisposable(Y)}$provideOnTypeFormattingEdits(z,ee,ie,ue,Y,me){return this._withAdapter(z,K,Se=>Se.provideOnTypeFormattingEdits(w.URI.revive(ee),ie,ue,Y,me),void 0,me)}registerWorkspaceSymbolProvider(z,ee){const ie=this._addNewAdapter(new pe(ee,this._logService),z);return this._proxy.$registerNavigateTypeSupport(ie,typeof ee.resolveWorkspaceSymbol=="function"),this._createDisposable(ie)}$provideWorkspaceSymbols(z,ee,ie){return this._withAdapter(z,pe,ue=>ue.provideWorkspaceSymbols(ee,ie),{symbols:[]},ie)}$resolveWorkspaceSymbol(z,ee,ie){return this._withAdapter(z,pe,ue=>ue.resolveWorkspaceSymbol(ee,ie),void 0,void 0)}$releaseWorkspaceSymbols(z,ee){this._withAdapter(z,pe,ie=>ie.releaseWorkspaceSymbols(ee),void 0,void 0)}registerRenameProvider(z,ee,ie){const ue=this._addNewAdapter(new le(this._documents,ie,this._logService),z);return this._proxy.$registerRenameSupport(ue,this._transformDocumentSelector(ee,z),le.supportsResolving(ie)),this._createDisposable(ue)}$provideRenameEdits(z,ee,ie,ue,Y){return this._withAdapter(z,le,me=>me.provideRenameEdits(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$resolveRenameLocation(z,ee,ie,ue){return this._withAdapter(z,le,Y=>Y.resolveRenameLocation(w.URI.revive(ee),ie,ue),void 0,ue)}registerDocumentSemanticTokensProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new q(this._documents,ie),z),me=typeof ie.onDidChangeSemanticTokens=="function"?this._nextHandle():void 0;this._proxy.$registerDocumentSemanticTokensProvider(Y,this._transformDocumentSelector(ee,z),ue,me);let Se=this._createDisposable(Y);if(me){const Ue=ie.onDidChangeSemanticTokens(ze=>this._proxy.$emitDocumentSemanticTokensEvent(me));Se=A.Disposable.from(Se,Ue)}return Se}$provideDocumentSemanticTokens(z,ee,ie,ue){return this._withAdapter(z,q,Y=>Y.provideDocumentSemanticTokens(w.URI.revive(ee),ie,ue),null,ue)}$releaseDocumentSemanticTokens(z,ee){this._withAdapter(z,q,ie=>ie.releaseDocumentSemanticColoring(ee),void 0,void 0)}registerDocumentRangeSemanticTokensProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new oe(this._documents,ie),z);return this._proxy.$registerDocumentRangeSemanticTokensProvider(Y,this._transformDocumentSelector(ee,z),ue),this._createDisposable(Y)}$provideDocumentRangeSemanticTokens(z,ee,ie,ue){return this._withAdapter(z,oe,Y=>Y.provideDocumentRangeSemanticTokens(w.URI.revive(ee),ie,ue),null,ue)}registerCompletionItemProvider(z,ee,ie,ue){const Y=this._addNewAdapter(new ve(this._documents,this._commands.converter,ie,this._apiDeprecation,z),z);return this._proxy.$registerCompletionsProvider(Y,this._transformDocumentSelector(ee,z),ue,ve.supportsResolving(ie),z.identifier),this._createDisposable(Y)}$provideCompletionItems(z,ee,ie,ue,Y){return this._withAdapter(z,ve,me=>me.provideCompletionItems(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$resolveCompletionItem(z,ee,ie){return this._withAdapter(z,ve,ue=>ue.resolveCompletionItem(ee,ie),void 0,ie)}$releaseCompletionItems(z,ee){this._withAdapter(z,ve,ie=>ie.releaseCompletionItems(ee),void 0,void 0)}registerInlineCompletionsProvider(z,ee,ie,ue){const Y=new se(z,this._documents,ie,this._commands.converter),me=this._addNewAdapter(Y,z);return this._proxy.$registerInlineCompletionsSupport(me,this._transformDocumentSelector(ee,z),Y.supportsHandleEvents,g.ExtensionIdentifier.toKey(z.identifier.value),ue?.yieldTo?.map(Se=>g.ExtensionIdentifier.toKey(Se))||[]),this._createDisposable(me)}$provideInlineCompletions(z,ee,ie,ue,Y){return this._withAdapter(z,ce,me=>me.provideInlineCompletions(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$handleInlineCompletionDidShow(z,ee,ie,ue){this._withAdapter(z,ce,async Y=>{Y.handleDidShowCompletionItem(ee,ie,ue)},void 0,void 0)}$handleInlineCompletionPartialAccept(z,ee,ie,ue){this._withAdapter(z,ce,async Y=>{Y.handlePartialAccept(ee,ie,ue)},void 0,void 0)}$freeInlineCompletionsList(z,ee){this._withAdapter(z,ce,async ie=>{ie.disposeCompletions(ee)},void 0,void 0)}registerSignatureHelpProvider(z,ee,ie,ue){const Y=Array.isArray(ue)?{triggerCharacters:ue,retriggerCharacters:[]}:ue,me=this._addNewAdapter(new B(this._documents,ie),z);return this._proxy.$registerSignatureHelpProvider(me,this._transformDocumentSelector(ee,z),Y),this._createDisposable(me)}$provideSignatureHelp(z,ee,ie,ue,Y){return this._withAdapter(z,B,me=>me.provideSignatureHelp(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$releaseSignatureHelp(z,ee){this._withAdapter(z,B,ie=>ie.releaseSignatureHelp(ee),void 0,void 0)}registerInlayHintsProvider(z,ee,ie){const ue=typeof ie.onDidChangeInlayHints=="function"?this._nextHandle():void 0,Y=this._addNewAdapter(new G(this._documents,this._commands.converter,ie,this._logService,z),z);this._proxy.$registerInlayHintsProvider(Y,this._transformDocumentSelector(ee,z),typeof ie.resolveInlayHint=="function",ue,he._extLabel(z));let me=this._createDisposable(Y);if(ue!==void 0){const Se=ie.onDidChangeInlayHints(Ue=>this._proxy.$emitInlayHintsEvent(ue));me=A.Disposable.from(me,Se)}return me}$provideInlayHints(z,ee,ie,ue){return this._withAdapter(z,G,Y=>Y.provideInlayHints(w.URI.revive(ee),ie,ue),void 0,ue)}$resolveInlayHint(z,ee,ie){return this._withAdapter(z,G,ue=>ue.resolveInlayHint(ee,ie),void 0,ie)}$releaseInlayHints(z,ee){this._withAdapter(z,G,ie=>ie.releaseHints(ee),void 0,void 0)}registerDocumentLinkProvider(z,ee,ie){const ue=this._addNewAdapter(new fe(this._documents,ie),z);return this._proxy.$registerDocumentLinkProvider(ue,this._transformDocumentSelector(ee,z),typeof ie.resolveDocumentLink=="function"),this._createDisposable(ue)}$provideDocumentLinks(z,ee,ie){return this._withAdapter(z,fe,ue=>ue.provideLinks(w.URI.revive(ee),ie),void 0,ie,ee.scheme==="output")}$resolveDocumentLink(z,ee,ie){return this._withAdapter(z,fe,ue=>ue.resolveLink(ee,ie),void 0,void 0,!0)}$releaseDocumentLinks(z,ee){this._withAdapter(z,fe,ie=>ie.releaseLinks(ee),void 0,void 0,!0)}registerColorProvider(z,ee,ie){const ue=this._addNewAdapter(new _e(this._documents,ie),z);return this._proxy.$registerDocumentColorProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideDocumentColors(z,ee,ie){return this._withAdapter(z,_e,ue=>ue.provideColors(w.URI.revive(ee),ie),[],ie)}$provideColorPresentations(z,ee,ie,ue){return this._withAdapter(z,_e,Y=>Y.provideColorPresentations(w.URI.revive(ee),ie,ue),void 0,ue)}registerFoldingRangeProvider(z,ee,ie){const ue=this._nextHandle(),Y=typeof ie.onDidChangeFoldingRanges=="function"?this._nextHandle():void 0;this._adapter.set(ue,new Z(new Ee(this._documents,ie),z)),this._proxy.$registerFoldingRangeProvider(ue,this._transformDocumentSelector(ee,z),z.identifier,Y);let me=this._createDisposable(ue);if(Y!==void 0){const Se=ie.onDidChangeFoldingRanges(()=>this._proxy.$emitFoldingRangeEvent(Y));me=A.Disposable.from(me,Se)}return me}$provideFoldingRanges(z,ee,ie,ue){return this._withAdapter(z,Ee,Y=>Y.provideFoldingRanges(w.URI.revive(ee),ie,ue),void 0,ue)}registerSelectionRangeProvider(z,ee,ie){const ue=this._addNewAdapter(new F(this._documents,ie,this._logService),z);return this._proxy.$registerSelectionRangeProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideSelectionRanges(z,ee,ie,ue){return this._withAdapter(z,F,Y=>Y.provideSelectionRanges(w.URI.revive(ee),ie,ue),[],ue)}registerCallHierarchyProvider(z,ee,ie){const ue=this._addNewAdapter(new J(this._documents,ie),z);return this._proxy.$registerCallHierarchyProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$prepareCallHierarchy(z,ee,ie,ue){return this._withAdapter(z,J,Y=>Promise.resolve(Y.prepareSession(w.URI.revive(ee),ie,ue)),void 0,ue)}$provideCallHierarchyIncomingCalls(z,ee,ie,ue){return this._withAdapter(z,J,Y=>Y.provideCallsTo(ee,ie,ue),void 0,ue)}$provideCallHierarchyOutgoingCalls(z,ee,ie,ue){return this._withAdapter(z,J,Y=>Y.provideCallsFrom(ee,ie,ue),void 0,ue)}$releaseCallHierarchy(z,ee){this._withAdapter(z,J,ie=>Promise.resolve(ie.releaseSession(ee)),void 0,void 0)}registerTypeHierarchyProvider(z,ee,ie){const ue=this._addNewAdapter(new I(this._documents,ie),z);return this._proxy.$registerTypeHierarchyProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$prepareTypeHierarchy(z,ee,ie,ue){return this._withAdapter(z,I,Y=>Promise.resolve(Y.prepareSession(w.URI.revive(ee),ie,ue)),void 0,ue)}$provideTypeHierarchySupertypes(z,ee,ie,ue){return this._withAdapter(z,I,Y=>Y.provideSupertypes(ee,ie,ue),void 0,ue)}$provideTypeHierarchySubtypes(z,ee,ie,ue){return this._withAdapter(z,I,Y=>Y.provideSubtypes(ee,ie,ue),void 0,ue)}$releaseTypeHierarchy(z,ee){this._withAdapter(z,I,ie=>Promise.resolve(ie.releaseSession(ee)),void 0,void 0)}registerDocumentOnDropEditProvider(z,ee,ie,ue){const Y=this._nextHandle();this._adapter.set(Y,new Z(new V(this._proxy,this._documents,ie,Y,z),z));const me=(0,n.isProposedApiEnabled)(z,"dropMetadata")&&ue?V.toInternalProviderId(z.identifier.value,ue.id):void 0;return this._proxy.$registerDocumentOnDropEditProvider(Y,this._transformDocumentSelector(ee,z),me,(0,n.isProposedApiEnabled)(z,"dropMetadata")?ue:void 0),this._createDisposable(Y)}$provideDocumentOnDropEdits(z,ee,ie,ue,Y,me){return this._withAdapter(z,V,Se=>Promise.resolve(Se.provideDocumentOnDropEdits(ee,w.URI.revive(ie),ue,Y,me)),void 0,void 0)}registerMappedEditsProvider(z,ee,ie){const ue=this._addNewAdapter(new j(this._documents,ie),z);return this._proxy.$registerMappedEditsProvider(ue,this._transformDocumentSelector(ee,z)),this._createDisposable(ue)}$provideMappedEdits(z,ee,ie,ue,Y){return this._withAdapter(z,j,me=>Promise.resolve(me.provideMappedEdits(ee,ie,ue,Y)),null,Y)}registerDocumentPasteEditProvider(z,ee,ie,ue){const Y=this._nextHandle();this._adapter.set(Y,new Z(new U(this._proxy,this._documents,ie,Y,z),z));const me=U.toInternalProviderId(z.identifier.value,ue.id);return this._proxy.$registerPasteEditProvider(Y,this._transformDocumentSelector(ee,z),me,{supportsCopy:!!ie.prepareDocumentPaste,supportsPaste:!!ie.provideDocumentPasteEdits,copyMimeTypes:ue.copyMimeTypes,pasteMimeTypes:ue.pasteMimeTypes}),this._createDisposable(Y)}$prepareDocumentPaste(z,ee,ie,ue,Y){return this._withAdapter(z,U,me=>me.prepareDocumentPaste(w.URI.revive(ee),ie,ue,Y),void 0,Y)}$providePasteEdits(z,ee,ie,ue,Y,me){return this._withAdapter(z,U,Se=>Se.providePasteEdits(ee,w.URI.revive(ie),ue,Y,me),void 0,me)}static _serializeRegExp(z){return{pattern:z.source,flags:z.flags}}static _serializeIndentationRule(z){return{decreaseIndentPattern:he._serializeRegExp(z.decreaseIndentPattern),increaseIndentPattern:he._serializeRegExp(z.increaseIndentPattern),indentNextLinePattern:z.indentNextLinePattern?he._serializeRegExp(z.indentNextLinePattern):void 0,unIndentedLinePattern:z.unIndentedLinePattern?he._serializeRegExp(z.unIndentedLinePattern):void 0}}static _serializeOnEnterRule(z){return{beforeText:he._serializeRegExp(z.beforeText),afterText:z.afterText?he._serializeRegExp(z.afterText):void 0,previousLineText:z.previousLineText?he._serializeRegExp(z.previousLineText):void 0,action:z.action}}static _serializeOnEnterRules(z){return z.map(he._serializeOnEnterRule)}setLanguageConfiguration(z,ee,ie){const{wordPattern:ue}=ie;if(ue&&(0,p.regExpLeadsToEndlessLoop)(ue))throw new Error(`Invalid language configuration: wordPattern '${ue}' is not allowed to match the empty string.`);ue?this._documents.setWordDefinitionFor(ee,ue):this._documents.setWordDefinitionFor(ee,void 0),ie.__electricCharacterSupport&&this._apiDeprecation.report("LanguageConfiguration.__electricCharacterSupport",z,"Do not use."),ie.__characterPairSupport&&this._apiDeprecation.report("LanguageConfiguration.__characterPairSupport",z,"Do not use."),ie.autoClosingPairs&&(0,n.checkProposedApiEnabled)(z,"languageConfigurationAutoClosingPairs");const Y=this._nextHandle(),me={comments:ie.comments,brackets:ie.brackets,wordPattern:ie.wordPattern?he._serializeRegExp(ie.wordPattern):void 0,indentationRules:ie.indentationRules?he._serializeIndentationRule(ie.indentationRules):void 0,onEnterRules:ie.onEnterRules?he._serializeOnEnterRules(ie.onEnterRules):void 0,__electricCharacterSupport:ie.__electricCharacterSupport,__characterPairSupport:ie.__characterPairSupport,autoClosingPairs:ie.autoClosingPairs};return this._proxy.$setLanguageConfiguration(Y,ee,me),this._createDisposable(Y)}$setWordDefinitions(z){for(const ee of z)this._documents.setWordDefinitionFor(ee.languageId,new RegExp(ee.regexSource,ee.regexFlags))}}e.ExtHostLanguageFeatures=he}),define(ye[335],Ce([1,0,3,11,7,43,13,5]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostLanguages=void 0;class p{constructor(y,E,t,s){this._documents=E,this._commands=t,this._uriTransformer=s,this._languageIds=[],this._handlePool=0,this._ids=new Set,this._proxy=y.getProxy(w.MainContext.MainThreadLanguages)}$acceptLanguageIds(y){this._languageIds=y}async getLanguages(){return this._languageIds.slice(0)}async changeLanguage(y,E){await this._proxy.$changeLanguage(y,E);const t=this._documents.getDocumentData(y);if(!t)throw new Error(`document '${y.toString()}' NOT found`);return t.document}async tokenAtPosition(y,E){const t=y.version,s=M.Position.from(E),g=await this._proxy.$tokensAtPosition(y.uri,s),C={type:d.StandardTokenType.Other,range:y.getWordRangeAtPosition(E)??new d.Range(E.line,E.character,E.line,E.character)};if(!g)return C;const r={range:M.Range.to(g.range),type:M.TokenType.to(g.type)};return!r.range.contains(E)||t!==y.version?C:r}createLanguageStatusItem(y,E,t){const s=this._handlePool++,g=this._proxy,C=this._ids,r=`${y.identifier.value}/${E}`;if(C.has(r))throw new Error(`LanguageStatusItem with id '${E}' ALREADY exists`);C.add(r);const h={selector:t,id:E,name:y.displayName??y.name,severity:d.LanguageStatusSeverity.Information,command:void 0,text:"",detail:"",busy:!1};let o;const b=new u.DisposableStore,P=()=>{if(o?.dispose(),!C.has(r)){console.warn(`LanguageStatusItem (${E}) from ${y.identifier.value} has been disposed and CANNOT be updated anymore`);return}o=(0,R.disposableTimeout)(()=>{b.clear(),this._proxy.$setLanguageStatus(s,{id:r,name:h.name??y.displayName??y.name,source:y.displayName??y.name,selector:M.DocumentSelector.from(h.selector,this._uriTransformer),label:h.text,detail:h.detail??"",severity:h.severity===d.LanguageStatusSeverity.Error?A.default.Error:h.severity===d.LanguageStatusSeverity.Warning?A.default.Warning:A.default.Info,command:h.command&&this._commands.toInternal(h.command,b),accessibilityInfo:h.accessibilityInformation,busy:h.busy})},0)},T={dispose(){b.dispose(),o?.dispose(),g.$removeLanguageStatus(s),C.delete(r)},get id(){return h.id},get name(){return h.name},set name(n){h.name=n,P()},get selector(){return h.selector},set selector(n){h.selector=n,P()},get text(){return h.text},set text(n){h.text=n,P()},get detail(){return h.detail},set detail(n){h.detail=n,P()},get severity(){return h.severity},set severity(n){h.severity=n,P()},get accessibilityInformation(){return h.accessibilityInformation},set accessibilityInformation(n){h.accessibilityInformation=n,P()},get command(){return h.command},set command(n){h.command=n,P()},get busy(){return h.busy},set busy(n){h.busy=n,P()}};return P(),T}}e.ExtHostLanguages=p}),define(ye[110],Ce([1,0,14,16,2,6,12,3,26,20]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostLocalizationService=e.ExtHostLocalizationService=void 0;let y=class{constructor(t,s,g){this.logService=g,this.bundleCache=new Map,this._proxy=s.getProxy(u.MainContext.MainThreadLocalization),this.currentLanguage=t.environment.appLanguage,this.isDefaultLanguage=this.currentLanguage===w.LANGUAGE_DEFAULT}getMessage(t,s){const{message:g,args:C,comment:r}=s;if(this.isDefaultLanguage)return(0,M.format2)(g,C??{});let h=g;r&&r.length>0&&(h+=`/${Array.isArray(r)?r.join(""):r}`);const o=this.bundleCache.get(t)?.contents[h];return o||this.logService.warn(`Using default string since no string found in i18n bundle that has the key: ${h}`),(0,M.format2)(o??g,C??{})}getBundle(t){return this.bundleCache.get(t)?.contents}getBundleUri(t){return this.bundleCache.get(t)?.uri}async initializeLocalizedMessages(t){if(this.isDefaultLanguage||!t.l10n&&!t.isBuiltin||this.bundleCache.has(t.identifier.value))return;let s;const g=await this.getBundleLocation(t);if(!g){this.logService.error(`No bundle location found for extension ${t.identifier.value}`);return}try{const C=await this._proxy.$fetchBundleContents(g),r=JSON.parse(C);s=t.isBuiltin?r.contents?.bundle:r}catch(C){this.logService.error(`Failed to load translations for ${t.identifier.value} from ${g}: ${C.message}`);return}s&&this.bundleCache.set(t.identifier.value,{contents:s,uri:g})}async getBundleLocation(t){if(t.isBuiltin){const s=await this._proxy.$fetchBuiltInBundleUri(t.identifier.value,this.currentLanguage);return d.URI.revive(s)}return t.l10n?d.URI.joinPath(t.extensionLocation,t.l10n,`bundle.l10n.${this.currentLanguage}.json`):void 0}};e.ExtHostLocalizationService=y,e.ExtHostLocalizationService=y=je([He(0,p.IExtHostInitDataService),He(1,f.IExtHostRpcService),He(2,R.ILogService)],y),e.IExtHostLocalizationService=(0,A.createDecorator)("IExtHostLocalizationService")}),define(ye[149],Ce([1,0,12,3,26,20,2,76]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostLoggerService=void 0;let p=class extends w.AbstractLoggerService{constructor(E,t){super(t.logLevel,t.logsLocation,t.loggers.map(s=>(0,u.revive)(s))),this._proxy=E.getProxy(M.MainContext.MainThreadLogger)}$setLogLevel(E,t){t?this.setLogLevel(R.URI.revive(t),E):this.setLogLevel(E)}setVisibility(E,t){super.setVisibility(E,t),this._proxy.$setVisibility(E,t)}doCreateLogger(E,t,s){return new f(this._proxy,E,t,s)}};e.ExtHostLoggerService=p,e.ExtHostLoggerService=p=je([He(0,A.IExtHostRpcService),He(1,d.IExtHostInitDataService)],p);class f extends w.AbstractMessageLogger{constructor(E,t,s,g){super(g?.logLevel==="always"),this.proxy=E,this.file=t,this.isLoggerCreated=!1,this.buffer=[],this.setLevel(s),this.proxy.$createLogger(t,g).then(()=>{this.doLog(this.buffer),this.isLoggerCreated=!0})}log(E,t){const s=[[E,t]];this.isLoggerCreated?this.doLog(s):this.buffer.push(...s)}doLog(E){this.proxy.$log(this.file,E)}flush(){this.proxy.$flush(this.file)}}}),define(ye[111],Ce([1,0,3,6,5,20,21]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostManagedSockets=e.IExtHostManagedSockets=void 0,e.IExtHostManagedSockets=(0,M.createDecorator)("IExtHostManagedSockets");let u=class{constructor(E){this._remoteSocketIdCounter=0,this._factory=null,this._managedRemoteSockets=new Map,this._proxy=E.getProxy(w.MainContext.MainThreadManagedSockets)}setFactory(E,t){for(const s of this._managedRemoteSockets.values())s.dispose();this._factory&&this._proxy.$unregisterSocketFactory(this._factory.socketFactoryId),this._factory=new p(E,t),this._proxy.$registerSocketFactory(this._factory.socketFactoryId)}async $openRemoteSocket(E){if(!this._factory||this._factory.socketFactoryId!==E)throw new Error(`No socket factory with id ${E}`);const t=++this._remoteSocketIdCounter,s=await this._factory.makeConnection(),g=new d.DisposableStore;return this._managedRemoteSockets.set(t,new f(t,s,g)),g.add((0,d.toDisposable)(()=>this._managedRemoteSockets.delete(t))),g.add(s.onDidEnd(()=>{this._proxy.$onDidManagedSocketEnd(t),g.dispose()})),g.add(s.onDidClose(C=>{this._proxy.$onDidManagedSocketClose(t,C?.stack??C?.message),g.dispose()})),g.add(s.onDidReceiveMessage(C=>this._proxy.$onDidManagedSocketHaveData(t,R.VSBuffer.wrap(C)))),t}$remoteSocketWrite(E,t){this._managedRemoteSockets.get(E)?.actual.send(t.buffer)}$remoteSocketEnd(E){const t=this._managedRemoteSockets.get(E);t&&(t.actual.end(),t.dispose())}async $remoteSocketDrain(E){await this._managedRemoteSockets.get(E)?.actual.drain?.()}};e.ExtHostManagedSockets=u,e.ExtHostManagedSockets=u=je([He(0,A.IExtHostRpcService)],u);class p{constructor(E,t){this.socketFactoryId=E,this.makeConnection=t}}class f extends d.Disposable{constructor(E,t,s){super(),this.socketId=E,this.actual=t,this._register(s)}}}),define(ye[336],Ce([1,0,3,12,27]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostMessageService=void 0;function A(u){return u&&u.title}let R=class{constructor(p,f){this._logService=f,this._proxy=p.getProxy(w.MainContext.MainThreadMessageService)}showMessage(p,f,y,E,t){const s={source:{identifier:p.identifier,label:p.displayName||p.name}};let g;typeof E=="string"||A(E)?g=[E,...t]:(s.modal=E?.modal,s.useCustom=E?.useCustom,s.detail=E?.detail,g=t),s.useCustom&&(0,d.checkProposedApiEnabled)(p,"resolvers");const C=[];for(let r=0;r<g.length;r++){const h=g[r];if(typeof h=="string")C.push({title:h,handle:r,isCloseAffordance:!1});else if(typeof h=="object"){const{title:o,isCloseAffordance:b}=h;C.push({title:o,isCloseAffordance:!!b,handle:r})}else this._logService.warn("Invalid message item:",h)}return this._proxy.$showMessage(f,y,s,C).then(r=>{if(typeof r=="number")return g[r]})}};e.ExtHostMessageService=R,e.ExtHostMessageService=R=je([He(1,M.ILogService)],R)}),define(ye[337],Ce([1,0,213,21,4,5,28,16,18,2,30,86,3,32,11,7,64,280,143,8,24,15]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookController=void 0;class n{static{this._notebookStatusBarItemProviderHandlePool=0}get activeNotebookEditor(){return this._activeNotebookEditor?.apiEditor}get visibleNotebookEditors(){return this._visibleNotebookEditors.map(l=>l.apiEditor)}constructor(l,i,c,_,S){this._textDocumentsAndEditors=c,this._textDocuments=_,this._extHostFileSystem=S,this._notebookStatusBarItemProviders=new Map,this._documents=new R.ResourceMap,this._editors=new Map,this._onDidChangeActiveNotebookEditor=new d.Emitter({onListenerError:b.onUnexpectedExternalError}),this.onDidChangeActiveNotebookEditor=this._onDidChangeActiveNotebookEditor.event,this._visibleNotebookEditors=[],this._onDidOpenNotebookDocument=new d.Emitter({onListenerError:b.onUnexpectedExternalError}),this.onDidOpenNotebookDocument=this._onDidOpenNotebookDocument.event,this._onDidCloseNotebookDocument=new d.Emitter({onListenerError:b.onUnexpectedExternalError}),this.onDidCloseNotebookDocument=this._onDidCloseNotebookDocument.event,this._onDidChangeVisibleNotebookEditors=new d.Emitter({onListenerError:b.onUnexpectedExternalError}),this.onDidChangeVisibleNotebookEditors=this._onDidChangeVisibleNotebookEditors.event,this._statusBarCache=new E.Cache("NotebookCellStatusBarCache"),this._handlePool=0,this._notebookSerializer=new Map,this._notebookProxy=l.getProxy(t.MainContext.MainThreadNotebook),this._notebookDocumentsProxy=l.getProxy(t.MainContext.MainThreadNotebookDocuments),this._notebookEditorsProxy=l.getProxy(t.MainContext.MainThreadNotebookEditors),this._commandsConverter=i.converter,i.registerArgumentProcessor({processArgument:k=>{if(k&&k.$mid===13){const m=k.notebookEditor?.notebookUri,v=k.cell.handle,L=this._documents.get(m)?.getCell(v);if(L)return L.apiCell}if(k&&k.$mid===14){const m=k.uri,v=this._documents.get(m);if(v)return v.apiNotebook}return k}}),n._registerApiCommands(i)}getEditorById(l){const i=this._editors.get(l);if(!i)throw new Error(`unknown text editor: ${l}. known editors: ${[...this._editors.keys()]} `);return i}getIdByEditor(l){for(const[i,c]of this._editors)if(c.apiEditor===l)return i}get notebookDocuments(){return[...this._documents.values()]}getNotebookDocument(l,i){const c=this._documents.get(l);if(!c&&!i)throw new Error(`NO notebook document for '${l}'`);return c}static _convertNotebookRegistrationData(l,i){if(!i)return;const c=i.filenamePattern.map(_=>g.NotebookExclusiveDocumentPattern.from(_)).filter(_=>_!==void 0);if(i.filenamePattern&&!c){console.warn(`Notebook content provider view options file name pattern is invalid ${i.filenamePattern}`);return}return{extension:l.identifier,providerDisplayName:l.displayName||l.name,displayName:i.displayName,filenamePattern:c,exclusive:i.exclusive||!1}}registerNotebookCellStatusBarItemProvider(l,i,c){const _=n._notebookStatusBarItemProviderHandlePool++,S=typeof c.onDidChangeCellStatusBarItems=="function"?n._notebookStatusBarItemProviderHandlePool++:void 0;this._notebookStatusBarItemProviders.set(_,c),this._notebookProxy.$registerNotebookCellStatusBarItemProvider(_,S,i);let k;return S!==void 0&&(k=c.onDidChangeCellStatusBarItems(m=>this._notebookProxy.$emitCellStatusBarEvent(S))),new C.Disposable(()=>{this._notebookStatusBarItemProviders.delete(_),this._notebookProxy.$unregisterNotebookCellStatusBarItemProvider(_,S),k?.dispose()})}async createNotebookDocument(l){const i=await this._notebookDocumentsProxy.$tryCreateNotebook({viewType:l.viewType,content:l.content&&g.NotebookData.from(l.content)});return f.URI.revive(i)}async openNotebookDocument(l){const i=this._documents.get(l);if(i)return i.apiNotebook;const c=await this._notebookDocumentsProxy.$tryOpenNotebook(l),_=this._documents.get(f.URI.revive(c));return(0,p.assertIsDefined)(_?.apiNotebook)}async showNotebookDocument(l,i){f.URI.isUri(l)&&(l=await this.openNotebookDocument(l));let c;typeof i=="object"?c={position:g.ViewColumn.from(i.viewColumn),preserveFocus:i.preserveFocus,selections:i.selections&&i.selections.map(g.NotebookRange.from),pinned:typeof i.preview=="boolean"?!i.preview:void 0}:c={preserveFocus:!1};const _=await this._notebookEditorsProxy.$tryShowNotebookDocument(l.uri,l.notebookType,c),S=_&&this._editors.get(_)?.apiEditor;if(S)return S;throw _?new Error(`Could NOT open editor for "${l.uri.toString()}" because another editor opened in the meantime.`):new Error(`Could NOT open editor for "${l.uri.toString()}".`)}async $provideNotebookCellStatusBarItems(l,i,c,_){const S=this._notebookStatusBarItemProviders.get(l),k=f.URI.revive(i),m=this._documents.get(k);if(!m||!S)return;const v=m.getCellFromIndex(c);if(!v)return;const D=await S.provideCellStatusBarItems(v.apiCell,_);if(!D)return;const L=new A.DisposableStore,O=this._statusBarCache.add([L]),N=(Array.isArray(D)?D:[D]).map($=>g.NotebookStatusBarItem.from($,this._commandsConverter,L));return{cacheId:O,items:N}}$releaseNotebookCellStatusBarItems(l){this._statusBarCache.delete(l)}registerNotebookSerializer(l,i,c,_,S){if((0,u.isFalsyOrWhitespace)(i))throw new Error("viewType cannot be empty or just whitespace");const k=this._handlePool++;return this._notebookSerializer.set(k,{viewType:i,serializer:c,options:_}),this._notebookProxy.$registerNotebookSerializer(k,{id:l.identifier,location:l.extensionLocation},i,g.NotebookDocumentContentOptions.from(_),n._convertNotebookRegistrationData(l,S)),(0,A.toDisposable)(()=>{this._notebookProxy.$unregisterNotebookSerializer(k)})}async $dataToNotebook(l,i,c){const _=this._notebookSerializer.get(l);if(!_)throw new Error("NO serializer found");const S=await _.serializer.deserializeNotebook(i.buffer,c);return new r.SerializableObjectWithBuffers(g.NotebookData.from(S))}async $notebookToData(l,i,c){const _=this._notebookSerializer.get(l);if(!_)throw new Error("NO serializer found");const S=await _.serializer.serializeNotebook(g.NotebookData.to(i.value),c);return M.VSBuffer.wrap(S)}async $saveNotebook(l,i,c,_,S){const k=f.URI.revive(i),m=this._notebookSerializer.get(l);if(!m)throw new Error("NO serializer found");const v=this._documents.get(k);if(!v)throw new Error("Document NOT found");if(v.versionId!==c)throw new Error("Document version mismatch");if(!this._extHostFileSystem.value.isWritableFileSystem(k.scheme))throw new y.FileOperationError((0,w.localize)(0,null,this._resourceForError(k)),6);await this._validateWriteFile(k,_);const D={metadata:(0,P.filter)(v.apiNotebook.metadata,$=>!(m.options?.transientDocumentMetadata??{})[$]),cells:[]};for(const $ of v.apiNotebook.getCells()){const U=new C.NotebookCellData($.kind,$.document.getText(),$.document.languageId,$.mime,m.options?.transientOutputs?[]:[...$.outputs],$.metadata,$.executionSummary);U.metadata=(0,P.filter)($.metadata,x=>!(m.options?.transientCellMetadata??{})[x]),D.cells.push(U)}const L=await m.serializer.serializeNotebook(D,S);await this._extHostFileSystem.value.writeFile(k,L);const O=this._extHostFileSystem.getFileSystemProviderExtUri(k.scheme),H=await this._extHostFileSystem.value.stat(k);return{name:O.basename(k),isFile:(H.type&y.FileType.File)!==0,isDirectory:(H.type&y.FileType.Directory)!==0,isSymbolicLink:(H.type&y.FileType.SymbolicLink)!==0,mtime:H.mtime,ctime:H.ctime,size:H.size,readonly:!!((H.permissions??0)&y.FilePermission.Readonly)||!this._extHostFileSystem.value.isWritableFileSystem(k.scheme),locked:!!((H.permissions??0)&y.FilePermission.Locked),etag:y.etag({mtime:H.mtime,size:H.size}),children:void 0}}async _validateWriteFile(l,i){const c=await this._extHostFileSystem.value.stat(l);if(typeof i?.mtime=="number"&&typeof i.etag=="string"&&i.etag!==y.ETAG_DISABLED&&typeof c.mtime=="number"&&typeof c.size=="number"&&i.mtime<c.mtime&&i.etag!==y.etag({mtime:i.mtime,size:c.size}))throw new y.FileOperationError((0,w.localize)(1,null),3,i)}_resourceForError(l){return l.scheme===T.Schemas.file?l.fsPath:l.toString()}_createExtHostEditor(l,i,c){if(this._editors.has(i))throw new Error(`editor with id ALREADY EXSIST: ${i}`);const _=new o.ExtHostNotebookEditor(i,this._notebookEditorsProxy,l,c.visibleRanges.map(g.NotebookRange.to),c.selections.map(g.NotebookRange.to),typeof c.viewColumn=="number"?g.ViewColumn.to(c.viewColumn):void 0);this._editors.set(i,_)}$acceptDocumentAndEditorsDelta(l){if(l.value.removedDocuments)for(const c of l.value.removedDocuments){const _=f.URI.revive(c),S=this._documents.get(_);S&&(S.dispose(),this._documents.delete(_),this._textDocumentsAndEditors.$acceptDocumentsAndEditorsDelta({removedDocuments:S.apiNotebook.getCells().map(k=>k.document.uri)}),this._onDidCloseNotebookDocument.fire(S.apiNotebook));for(const k of this._editors.values())k.notebookData.uri.toString()===_.toString()&&this._editors.delete(k.id)}if(l.value.addedDocuments){const c=[];for(const _ of l.value.addedDocuments){const S=f.URI.revive(_.uri);if(this._documents.has(S))throw new Error(`adding EXISTING notebook ${S} `);const k=new h.ExtHostNotebookDocument(this._notebookDocumentsProxy,this._textDocumentsAndEditors,this._textDocuments,S,_);c.push(..._.cells.map(m=>h.ExtHostCell.asModelAddData(k.apiNotebook,m))),this._documents.get(S)?.dispose(),this._documents.set(S,k),this._textDocumentsAndEditors.$acceptDocumentsAndEditorsDelta({addedDocuments:c}),this._onDidOpenNotebookDocument.fire(k.apiNotebook)}}if(l.value.addedEditors)for(const c of l.value.addedEditors){if(this._editors.has(c.id))return;const _=f.URI.revive(c.documentUri),S=this._documents.get(_);S&&this._createExtHostEditor(S,c.id,c)}const i=[];if(l.value.removedEditors)for(const c of l.value.removedEditors){const _=this._editors.get(c);_&&(this._editors.delete(c),this._activeNotebookEditor?.id===_.id&&(this._activeNotebookEditor=void 0),i.push(_))}if(l.value.visibleEditors){this._visibleNotebookEditors=l.value.visibleEditors.map(_=>this._editors.get(_)).filter(_=>!!_);const c=new Set;this._visibleNotebookEditors.forEach(_=>c.add(_.id));for(const _ of this._editors.values()){const S=c.has(_.id);_._acceptVisibility(S)}this._visibleNotebookEditors=[...this._editors.values()].map(_=>_).filter(_=>_.visible),this._onDidChangeVisibleNotebookEditors.fire(this.visibleNotebookEditors)}l.value.newActiveEditor===null?this._activeNotebookEditor=void 0:l.value.newActiveEditor&&(this._editors.get(l.value.newActiveEditor)||console.error(`FAILED to find active notebook editor ${l.value.newActiveEditor}`),this._activeNotebookEditor=this._editors.get(l.value.newActiveEditor)),l.value.newActiveEditor!==void 0&&this._onDidChangeActiveNotebookEditor.fire(this._activeNotebookEditor?.apiEditor)}static _registerApiCommands(l){const i=s.ApiCommandArgument.String.with("notebookType","A notebook type"),c=new s.ApiCommand("vscode.executeDataToNotebook","_executeDataToNotebook","Invoke notebook serializer",[i,new s.ApiCommandArgument("data","Bytes to convert to data",S=>S instanceof Uint8Array,S=>M.VSBuffer.wrap(S))],new s.ApiCommandResult("Notebook Data",S=>g.NotebookData.to(S.value))),_=new s.ApiCommand("vscode.executeNotebookToData","_executeNotebookToData","Invoke notebook serializer",[i,new s.ApiCommandArgument("NotebookData","Notebook data to convert to bytes",S=>!0,S=>new r.SerializableObjectWithBuffers(g.NotebookData.from(S)))],new s.ApiCommandResult("Bytes",S=>S.buffer));l.registerApiCommand(c),l.registerApiCommand(_)}}e.ExtHostNotebookController=n}),define(ye[338],Ce([1,0,19,13,22,4,5,28,2,23,12,86,3,32,11,7,107,273,27,64]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createKernelId=e.ExtHostNotebookKernels=void 0;let P=class{constructor(S,k,m,v,D){this._initData=k,this._extHostNotebook=m,this._commands=v,this._logService=D,this._activeExecutions=new u.ResourceMap,this._activeNotebookExecutions=new u.ResourceMap,this._kernelDetectionTask=new Map,this._kernelDetectionTaskHandlePool=0,this._kernelSourceActionProviders=new Map,this._kernelSourceActionProviderHandlePool=0,this._kernelSourceActionProviderCache=new E.Cache("NotebookKernelSourceActionProviderCache"),this._kernelData=new Map,this._handlePool=0,this._onDidChangeCellExecutionState=new A.Emitter,this.onDidChangeNotebookCellExecutionState=this._onDidChangeCellExecutionState.event,this._proxy=S.getProxy(t.MainContext.MainThreadNotebookKernels);const L=new s.ApiCommand("notebook.selectKernel","_notebook.selectKernel","Trigger kernel picker for specified notebook editor widget",[new s.ApiCommandArgument("options","Select kernel options",O=>!0,O=>{if(O&&"notebookEditor"in O&&"id"in O){const H=this._extHostNotebook.getIdByEditor(O.notebookEditor);return{id:O.id,extension:O.extension,notebookEditorId:H}}else if(O&&"notebookEditor"in O){const H=this._extHostNotebook.getIdByEditor(O.notebookEditor);if(H===void 0)throw new Error(`Cannot invoke 'notebook.selectKernel' for unrecognized notebook editor ${O.notebookEditor.notebook.uri.toString()}`);return{notebookEditorId:H}}return O})],s.ApiCommandResult.Void);this._commands.registerApiCommand(L)}createNotebookController(S,k,m,v,D,L){for(const ce of this._kernelData.values())if(ce.controller.id===k&&f.ExtensionIdentifier.equals(S.identifier,ce.extensionId))throw new Error(`notebook controller with id '${k}' ALREADY exist`);const O=this._handlePool++,H=this;this._logService.trace(`NotebookController[${O}], CREATED by ${S.identifier.value}, ${k}`);const N=()=>console.warn(`NO execute handler from notebook controller '${K.id}' of extension: '${S.identifier}'`);let $=!1;const U=new R.DisposableStore,x=new A.Emitter,X=new A.Emitter,K={id:c(S.identifier,k),notebookType:m,extensionId:S.identifier,extensionLocation:S.extensionLocation,label:v||S.identifier.value,preloads:L?L.map(g.NotebookRendererScript.from):[]};let pe=D??N,le;this._proxy.$addKernel(O,K).catch(ce=>{console.log(ce),$=!0});let re=0;const q=()=>{if($)return;const ce=++re;Promise.resolve().then(()=>{ce===re&&this._proxy.$updateKernel(O,K)})},oe=new u.ResourceMap,ve={get id(){return k},get notebookType(){return K.notebookType},onDidChangeSelectedNotebooks:x.event,get label(){return K.label},set label(ce){K.label=ce??S.displayName??S.name,q()},get detail(){return K.detail??""},set detail(ce){K.detail=ce,q()},get description(){return K.description??""},set description(ce){K.description=ce,q()},get supportedLanguages(){return K.supportedLanguages},set supportedLanguages(ce){K.supportedLanguages=ce,q()},get supportsExecutionOrder(){return K.supportsExecutionOrder??!1},set supportsExecutionOrder(ce){K.supportsExecutionOrder=ce,q()},get rendererScripts(){return K.preloads?K.preloads.map(g.NotebookRendererScript.to):[]},get executeHandler(){return pe},set executeHandler(ce){pe=ce??N},get interruptHandler(){return le},set interruptHandler(ce){le=ce,K.supportsInterrupt=!!ce,q()},createNotebookCellExecution(ce){if($)throw new Error("notebook controller is DISPOSED");if(!oe.has(ce.notebook.uri))throw H._logService.trace(`NotebookController[${O}] NOT associated to notebook, associated to THESE notebooks:`,Array.from(oe.keys()).map(se=>se.toString())),new Error(`notebook controller is NOT associated to notebook: ${ce.notebook.uri.toString()}`);return H._createNotebookCellExecution(ce,c(S.identifier,this.id))},createNotebookExecution(ce){if((0,o.checkProposedApiEnabled)(S,"notebookExecution"),$)throw new Error("notebook controller is DISPOSED");if(!oe.has(ce.uri))throw H._logService.trace(`NotebookController[${O}] NOT associated to notebook, associated to THESE notebooks:`,Array.from(oe.keys()).map(se=>se.toString())),new Error(`notebook controller is NOT associated to notebook: ${ce.uri.toString()}`);return H._createNotebookExecution(ce,c(S.identifier,this.id))},dispose:()=>{$||(this._logService.trace(`NotebookController[${O}], DISPOSED`),$=!0,this._kernelData.delete(O),U.dispose(),x.dispose(),X.dispose(),this._proxy.$removeKernel(O))},updateNotebookAffinity(ce,se){se===C.NotebookControllerAffinity2.Hidden&&(0,o.checkProposedApiEnabled)(S,"notebookControllerAffinityHidden"),H._proxy.$updateNotebookPriority(O,ce.uri,se)},onDidReceiveMessage:X.event,postMessage(ce,se){return(0,o.checkProposedApiEnabled)(S,"notebookMessaging"),H._proxy.$postMessage(O,se&&H._extHostNotebook.getIdByEditor(se),ce)},asWebviewUri(ce){return(0,o.checkProposedApiEnabled)(S,"notebookMessaging"),(0,r.asWebviewUri)(ce,H._initData.remote)}};return this._kernelData.set(O,{extensionId:S.identifier,controller:ve,onDidReceiveMessage:X,onDidChangeSelection:x,associatedNotebooks:oe}),ve}getIdByController(S){for(const[k,m]of this._kernelData)if(m.controller===S)return c(m.extensionId,S.id);return null}createNotebookControllerDetectionTask(S,k){const m=this._kernelDetectionTaskHandlePool++,v=this;this._logService.trace(`NotebookControllerDetectionTask[${m}], CREATED by ${S.identifier.value}`),this._proxy.$addKernelDetectionTask(m,k);const D={dispose:()=>{this._kernelDetectionTask.delete(m),v._proxy.$removeKernelDetectionTask(m)}};return this._kernelDetectionTask.set(m,D),D}registerKernelSourceActionProvider(S,k,m){const v=this._kernelSourceActionProviderHandlePool++,D=typeof m.onDidChangeNotebookKernelSourceActions=="function"?v:void 0,L=this;this._kernelSourceActionProviders.set(v,m),this._logService.trace(`NotebookKernelSourceActionProvider[${v}], CREATED by ${S.identifier.value}`),this._proxy.$addKernelSourceActionProvider(v,v,k);let O;return D!==void 0&&(O=m.onDidChangeNotebookKernelSourceActions(H=>this._proxy.$emitNotebookKernelSourceActionsChangeEvent(D))),{dispose:()=>{this._kernelSourceActionProviders.delete(v),L._proxy.$removeKernelSourceActionProvider(v,v),O?.dispose()}}}async $provideKernelSourceActions(S,k){const m=this._kernelSourceActionProviders.get(S);if(m){const v=new R.DisposableStore;return this._kernelSourceActionProviderCache.add([v]),(await m.provideNotebookKernelSourceActions(k)??[]).map(L=>g.NotebookKernelSourceAction.from(L,this._commands.converter,v))}return[]}$acceptNotebookAssociation(S,k,m){const v=this._kernelData.get(S);if(v){const D=this._extHostNotebook.getNotebookDocument(p.URI.revive(k));m?v.associatedNotebooks.set(D.uri,!0):v.associatedNotebooks.delete(D.uri),this._logService.trace(`NotebookController[${S}] ASSOCIATE notebook`,D.uri.toString(),m),v.onDidChangeSelection.fire({selected:m,notebook:D.apiNotebook})}}async $executeCells(S,k,m){const v=this._kernelData.get(S);if(!v)return;const D=this._extHostNotebook.getNotebookDocument(p.URI.revive(k)),L=[];for(const O of m){const H=D.getCell(O);H&&L.push(H.apiCell)}try{this._logService.trace(`NotebookController[${S}] EXECUTE cells`,D.uri.toString(),L.length),await v.controller.executeHandler.call(v.controller,L,D.apiNotebook,v.controller)}catch(O){this._logService.error(`NotebookController[${S}] execute cells FAILED`,O),console.error(O)}}async $cancelCells(S,k,m){const v=this._kernelData.get(S);if(!v)return;const D=this._extHostNotebook.getNotebookDocument(p.URI.revive(k));if(v.controller.interruptHandler)await v.controller.interruptHandler.call(v.controller,D.apiNotebook);else for(const L of m){const O=D.getCell(L);O&&this._activeExecutions.get(O.uri)?.cancel()}if(v.controller.interruptHandler){const L=this._activeNotebookExecutions.get(D.uri);m.length&&Array.isArray(L)&&L.length&&L.forEach(O=>O.dispose())}}$acceptKernelMessageFromRenderer(S,k,m){const v=this._kernelData.get(S);if(!v)return;const D=this._extHostNotebook.getEditorById(k);v.onDidReceiveMessage.fire(Object.freeze({editor:D.apiEditor,message:m}))}$cellExecutionChanged(S,k,m){const D=this._extHostNotebook.getNotebookDocument(p.URI.revive(S)).getCell(k);if(D){const L=m?g.NotebookCellExecutionState.to(m):C.NotebookCellExecutionState.Idle;L!==void 0&&this._onDidChangeCellExecutionState.fire({cell:D.apiCell,state:L})}}_createNotebookCellExecution(S,k){if(S.index<0)throw new Error("CANNOT execute cell that has been REMOVED from notebook");const v=this._extHostNotebook.getNotebookDocument(S.notebook.uri).getCellFromApiCell(S);if(!v)throw new Error("invalid cell");if(this._activeExecutions.has(v.uri))throw new Error(`duplicate execution for ${v.uri}`);const D=new n(k,v,this._proxy);this._activeExecutions.set(v.uri,D);const L=D.onDidChangeState(()=>{D.state===T.Resolved&&(D.dispose(),L.dispose(),this._activeExecutions.delete(v.uri))});return D.asApiObject()}_createNotebookExecution(S,k){const m=this._extHostNotebook.getNotebookDocument(S.uri),v=S.getCells().find(O=>{const H=m.getCellFromApiCell(O);return H&&this._activeExecutions.has(H.uri)});if(v)throw new Error(`duplicate cell execution for ${v.document.uri}`);if(this._activeNotebookExecutions.has(m.uri))throw new Error(`duplicate notebook execution for ${m.uri}`);const D=new l(k,m,this._proxy),L=D.onDidChangeState(()=>{D.state===a.Resolved&&(D.dispose(),L.dispose(),this._activeNotebookExecutions.delete(m.uri))});return this._activeNotebookExecutions.set(m.uri,[D,L]),D.asApiObject()}};e.ExtHostNotebookKernels=P,e.ExtHostNotebookKernels=P=je([He(4,y.ILogService)],P);var T;(function(_){_[_.Init=0]="Init",_[_.Started=1]="Started",_[_.Resolved=2]="Resolved"})(T||(T={}));class n extends R.Disposable{static{this.HANDLE=0}get state(){return this._state}constructor(S,k,m){super(),this._cell=k,this._proxy=m,this._handle=n.HANDLE++,this._onDidChangeState=new A.Emitter,this.onDidChangeState=this._onDidChangeState.event,this._state=T.Init,this._tokenSource=this._register(new d.CancellationTokenSource),this._collector=new i(10,v=>this.update(v)),this._executionOrder=k.internalMetadata.executionOrder,this._proxy.$createExecution(this._handle,S,this._cell.notebook.uri,this._cell.handle)}cancel(){this._tokenSource.cancel()}async updateSoon(S){await this._collector.addItem(S)}async update(S){const k=Array.isArray(S)?S:[S];return this._proxy.$updateExecution(this._handle,new b.SerializableObjectWithBuffers(k))}verifyStateForOutput(){if(this._state===T.Init)throw new Error("Must call start before modifying cell output");if(this._state===T.Resolved)throw new Error("Cannot modify cell output after calling resolve")}cellIndexToHandle(S){let k=this._cell;if(S&&(k=this._cell.notebook.getCellFromApiCell(S)),!k)throw new Error("INVALID cell");return k.handle}validateAndConvertOutputs(S){return S.map(k=>{const m=C.NotebookCellOutput.ensureUniqueMimeTypes(k.items,!0);return m===k.items?g.NotebookCellOutput.from(k):g.NotebookCellOutput.from({items:m,id:k.id,metadata:k.metadata})})}async updateOutputs(S,k,m){const v=this.cellIndexToHandle(k),D=this.validateAndConvertOutputs((0,w.asArray)(S));return this.updateSoon({editType:h.CellExecutionUpdateType.Output,cellHandle:v,append:m,outputs:D})}async updateOutputItems(S,k,m){return S=C.NotebookCellOutput.ensureUniqueMimeTypes((0,w.asArray)(S),!0),this.updateSoon({editType:h.CellExecutionUpdateType.OutputItems,items:S.map(g.NotebookCellOutputItem.from),outputId:k.id,append:m})}asApiObject(){const S=this;return Object.freeze({get token(){return S._tokenSource.token},get cell(){return S._cell.apiCell},get executionOrder(){return S._executionOrder},set executionOrder(m){S._executionOrder=m,S.update([{editType:h.CellExecutionUpdateType.ExecutionState,executionOrder:S._executionOrder}])},start(m){if(S._state===T.Resolved||S._state===T.Started)throw new Error("Cannot call start again");S._state=T.Started,S._onDidChangeState.fire(),S.update({editType:h.CellExecutionUpdateType.ExecutionState,runStartTime:m})},end(m,v){if(S._state===T.Resolved)throw new Error("Cannot call resolve twice");S._state=T.Resolved,S._onDidChangeState.fire(),S._collector.flush(),S._proxy.$completeExecution(S._handle,new b.SerializableObjectWithBuffers({runEndTime:v,lastRunSuccess:m}))},clearOutput(m){return S.verifyStateForOutput(),S.updateOutputs([],m,!1)},appendOutput(m,v){return S.verifyStateForOutput(),S.updateOutputs(m,v,!0)},replaceOutput(m,v){return S.verifyStateForOutput(),S.updateOutputs(m,v,!1)},appendOutputItems(m,v){return S.verifyStateForOutput(),S.updateOutputItems(m,v,!0)},replaceOutputItems(m,v){return S.verifyStateForOutput(),S.updateOutputItems(m,v,!1)}})}}var a;(function(_){_[_.Init=0]="Init",_[_.Started=1]="Started",_[_.Resolved=2]="Resolved"})(a||(a={}));class l extends R.Disposable{static{this.HANDLE=0}get state(){return this._state}constructor(S,k,m){super(),this._notebook=k,this._proxy=m,this._handle=l.HANDLE++,this._onDidChangeState=new A.Emitter,this.onDidChangeState=this._onDidChangeState.event,this._state=a.Init,this._tokenSource=this._register(new d.CancellationTokenSource),this._proxy.$createNotebookExecution(this._handle,S,this._notebook.uri)}cancel(){this._tokenSource.cancel()}asApiObject(){return Object.freeze({start:()=>{if(this._state===a.Resolved||this._state===a.Started)throw new Error("Cannot call start again");this._state=a.Started,this._onDidChangeState.fire(),this._proxy.$beginNotebookExecution(this._handle)},end:()=>{if(this._state===a.Resolved)throw new Error("Cannot call resolve twice");this._state=a.Resolved,this._onDidChangeState.fire(),this._proxy.$completeNotebookExecution(this._handle)}})}}class i{constructor(S,k){this.delay=S,this.callback=k,this.batch=[],this.startedTimer=Date.now()}addItem(S){return this.batch.push(S),this.currentDeferred||(this.currentDeferred=new M.DeferredPromise,this.startedTimer=Date.now(),(0,M.timeout)(this.delay).then(()=>this.flush())),Date.now()-this.startedTimer>this.delay?this.flush():this.currentDeferred.p}flush(){if(this.batch.length===0||!this.currentDeferred)return Promise.resolve();const S=this.currentDeferred;this.currentDeferred=void 0;const k=this.batch;return this.batch=[],this.callback(k).finally(()=>S.complete())}}function c(_,S){return`${_.value}/${S}`}e.createKernelId=c}),define(ye[339],Ce([1,0,4,3,143]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostNotebookRenderers=void 0;class A{constructor(u,p){this._extHostNotebook=p,this._rendererMessageEmitters=new Map,this.proxy=u.getProxy(M.MainContext.MainThreadNotebookRenderers)}$postRendererMessage(u,p,f){const y=this._extHostNotebook.getEditorById(u);this._rendererMessageEmitters.get(p)?.fire({editor:y.apiEditor,message:f})}createRendererMessaging(u,p){if(!u.contributes?.notebookRenderer?.some(y=>y.id===p))throw new Error(`Extensions may only call createRendererMessaging() for renderers they contribute (got ${p})`);return{onDidReceiveMessage:(y,E,t)=>this.getOrCreateEmitterFor(p).event(y,E,t),postMessage:(y,E)=>{d.ExtHostNotebookEditor.apiEditorsToExtHost.has(y)&&([y,E]=[E,y]);const t=E&&d.ExtHostNotebookEditor.apiEditorsToExtHost.get(E);return this.proxy.$postMessage(t?.id,p,y)}}}getOrCreateEmitterFor(u){let p=this._rendererMessageEmitters.get(u);return p||(p=new w.Emitter({onDidRemoveLastListener:()=>{p?.dispose(),this._rendererMessageEmitters.delete(u)}}),this._rendererMessageEmitters.set(u,p),p)}}e.ExtHostNotebookRenderers=A}),define(ye[340],Ce([1,0,5,18,2,27,3]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostProfileContentHandlers=void 0;class u{constructor(f){this.handlers=new Map,this.proxy=f.getProxy(R.MainContext.MainThreadProfileContentHandlers)}registrProfileContentHandler(f,y,E){if((0,A.checkProposedApiEnabled)(f,"profileContentHandlers"),this.handlers.has(y))throw new Error(`Handler with id '${y}' already registered`);return this.handlers.set(y,E),this.proxy.$registerProfileContentHandler(y,E.name,E.description,f.identifier.value),(0,w.toDisposable)(()=>{this.handlers.delete(y),this.proxy.$unregisterProfileContentHandler(y)})}async $saveProfile(f,y,E,t){const s=this.handlers.get(f);if(!s)throw new Error(`Unknown handler with id: ${f}`);return s.saveProfile(y,E,t)}async $readProfile(f,y,E){const t=this.handlers.get(f);if(!t)throw new Error(`Unknown handler with id: ${f}`);return t.readProfile((0,M.isString)(y)?y:d.URI.revive(y),E)}}e.ExtHostProfileContentHandlers=u}),define(ye[341],Ce([1,0,2,3,13,11]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostQuickDiff=void 0;class R{static{this.handlePool=0}constructor(p,f){this.uriTransformer=f,this.providers=new Map,this.proxy=p.getProxy(M.MainContext.MainThreadQuickDiff)}$provideOriginalResource(p,f,y){const E=w.URI.revive(f),t=this.providers.get(p);return t?(0,d.asPromise)(()=>t.provideOriginalResource(E,y)).then(s=>s||null):Promise.resolve(null)}registerQuickDiffProvider(p,f,y,E){const t=R.handlePool++;return this.providers.set(t,f),this.proxy.$registerQuickDiffProvider(t,A.DocumentSelector.from(p,this.uriTransformer),y,E),{dispose:()=>{this.proxy.$unregisterQuickDiffProvider(t),this.providers.delete(t)}}}}e.ExtHostQuickDiff=R}),define(ye[342],Ce([1,0,22,4,5,3,2,7,8,19,43,58,27,11]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createExtHostQuickOpen=void 0;function g(C,r,h){const o=C.getProxy(A.MainContext.MainThreadQuickOpen);class b{constructor(S,k){this._sessions=new Map,this._instances=0,this._workspace=S,this._commands=k}showQuickPick(S,k,m,v=w.CancellationToken.None){this._onDidSelectItem=void 0;const D=Promise.resolve(k),L=++this._instances,O=o.$show(L,{title:m?.title,placeHolder:m?.placeHolder,matchOnDescription:m?.matchOnDescription,matchOnDetail:m?.matchOnDetail,ignoreFocusLost:m?.ignoreFocusOut,canPickMany:m?.canPickMany},v),H={},N=O.then(()=>H);return Promise.race([N,D]).then($=>{if($===H)return;const U=(0,t.isProposedApiEnabled)(S,"quickPickItemTooltip");return D.then(x=>{const X=[];for(let K=0;K<x.length;K++){const pe=x[K];if(typeof pe=="string")X.push({label:pe,handle:K});else if(pe.kind===u.QuickPickItemKind.Separator)X.push({type:"separator",label:pe.label});else{pe.tooltip&&!U&&console.warn(`Extension '${S.identifier.value}' uses a tooltip which is proposed API that is only available when running out of dev or with the following command line switch: --enable-proposed-api ${S.identifier.value}`);const le=pe.iconPath?l(pe.iconPath):void 0;X.push({label:pe.label,iconPath:le?.iconPath,iconClass:le?.iconClass,description:pe.description,detail:pe.detail,picked:pe.picked,alwaysShow:pe.alwaysShow,tooltip:U?s.MarkdownString.fromStrict(pe.tooltip):void 0,handle:K})}}return m&&typeof m.onDidSelectItem=="function"&&(this._onDidSelectItem=K=>{m.onDidSelectItem(x[K])}),o.$setItems(L,X),O.then(K=>{if(typeof K=="number")return x[K];if(Array.isArray(K))return K.map(pe=>x[pe])})})}).then(void 0,$=>{if(!(0,p.isCancellationError)($))return o.$setError(L,$),Promise.reject($)})}$onItemSelected(S){this._onDidSelectItem?.(S)}showInput(S,k=w.CancellationToken.None){return this._validateInput=S?.validateInput,o.$input(S,typeof this._validateInput=="function",k).then(void 0,m=>{if(!(0,p.isCancellationError)(m))return Promise.reject(m)})}async $validateInput(S){if(!this._validateInput)return;const k=await this._validateInput(S);if(!k||typeof k=="string")return k;let m;switch(k.severity){case u.InputBoxValidationSeverity.Info:m=y.default.Info;break;case u.InputBoxValidationSeverity.Warning:m=y.default.Warning;break;case u.InputBoxValidationSeverity.Error:m=y.default.Error;break;default:m=k.message?y.default.Error:y.default.Ignore;break}return{content:k.message,severity:m}}async showWorkspaceFolderPick(S,k=w.CancellationToken.None){const m=await this._commands.executeCommand("_workbench.pickWorkspaceFolder",[S]);if(!m)return;const v=await this._workspace.getWorkspaceFolders2();if(v)return v.find(D=>D.uri.toString()===m.uri.toString())}createQuickPick(S){const k=new i(S,()=>this._sessions.delete(k._id));return this._sessions.set(k._id,k),k}createInputBox(S){const k=new c(S,()=>this._sessions.delete(k._id));return this._sessions.set(k._id,k),k}$onDidChangeValue(S,k){this._sessions.get(S)?._fireDidChangeValue(k)}$onDidAccept(S){this._sessions.get(S)?._fireDidAccept()}$onDidChangeActive(S,k){const m=this._sessions.get(S);m instanceof i&&m._fireDidChangeActive(k)}$onDidChangeSelection(S,k){const m=this._sessions.get(S);m instanceof i&&m._fireDidChangeSelection(k)}$onDidTriggerButton(S,k){this._sessions.get(S)?._fireDidTriggerButton(k)}$onDidTriggerItemButton(S,k,m){const v=this._sessions.get(S);v instanceof i&&v._fireDidTriggerItemButton(k,m)}$onDidHide(S){this._sessions.get(S)?._fireDidHide()}}class P{static{this._nextId=1}constructor(S,k){this._extensionId=S,this._onDidDispose=k,this._id=i._nextId++,this._visible=!1,this._expectingHide=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!0,this._value="",this._buttons=[],this._handlesToButtons=new Map,this._onDidAcceptEmitter=new M.Emitter,this._onDidChangeValueEmitter=new M.Emitter,this._onDidTriggerButtonEmitter=new M.Emitter,this._onDidHideEmitter=new M.Emitter,this._pendingUpdate={id:this._id},this._disposed=!1,this._disposables=[this._onDidTriggerButtonEmitter,this._onDidHideEmitter,this._onDidAcceptEmitter,this._onDidChangeValueEmitter],this.onDidChangeValue=this._onDidChangeValueEmitter.event,this.onDidAccept=this._onDidAcceptEmitter.event,this.onDidTriggerButton=this._onDidTriggerButtonEmitter.event,this.onDidHide=this._onDidHideEmitter.event}get title(){return this._title}set title(S){this._title=S,this.update({title:S})}get step(){return this._steps}set step(S){this._steps=S,this.update({step:S})}get totalSteps(){return this._totalSteps}set totalSteps(S){this._totalSteps=S,this.update({totalSteps:S})}get enabled(){return this._enabled}set enabled(S){this._enabled=S,this.update({enabled:S})}get busy(){return this._busy}set busy(S){this._busy=S,this.update({busy:S})}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(S){this._ignoreFocusOut=S,this.update({ignoreFocusOut:S})}get value(){return this._value}set value(S){this._value=S,this.update({value:S})}get placeholder(){return this._placeholder}set placeholder(S){this._placeholder=S,this.update({placeholder:S})}get buttons(){return this._buttons}set buttons(S){this._buttons=S.slice(),this._handlesToButtons.clear(),S.forEach((k,m)=>{const v=k===u.QuickInputButtons.Back?-1:m;this._handlesToButtons.set(v,k)}),this.update({buttons:S.map((k,m)=>({...l(k.iconPath),tooltip:k.tooltip,handle:k===u.QuickInputButtons.Back?-1:m}))})}show(){this._visible=!0,this._expectingHide=!0,this.update({visible:!0})}hide(){this._visible=!1,this.update({visible:!1})}_fireDidAccept(){this._onDidAcceptEmitter.fire()}_fireDidChangeValue(S){this._value=S,this._onDidChangeValueEmitter.fire(S)}_fireDidTriggerButton(S){const k=this._handlesToButtons.get(S);k&&this._onDidTriggerButtonEmitter.fire(k)}_fireDidHide(){this._expectingHide&&(this._expectingHide=this._visible,this._onDidHideEmitter.fire())}dispose(){this._disposed||(this._disposed=!0,this._fireDidHide(),this._disposables=(0,d.dispose)(this._disposables),this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this._onDidDispose(),o.$dispose(this._id))}update(S){if(!this._disposed){for(const k of Object.keys(S)){const m=S[k];this._pendingUpdate[k]=m===void 0?null:m}"visible"in this._pendingUpdate?(this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this.dispatchUpdate()):this._visible&&!this._updateTimeout&&(this._updateTimeout=setTimeout(()=>{this._updateTimeout=void 0,this.dispatchUpdate()},0))}}dispatchUpdate(){o.$createOrUpdate(this._pendingUpdate),this._pendingUpdate={id:this._id}}}function T(_){if(_ instanceof u.ThemeIcon)return{id:_.id};const S=a(_),k=n(_);return{dark:typeof S=="string"?R.URI.file(S):S,light:typeof k=="string"?R.URI.file(k):k}}function n(_){return typeof _=="object"&&"light"in _?_.light:_}function a(_){return typeof _=="object"&&"dark"in _?_.dark:_}function l(_){const S=T(_);let k,m;return"id"in S?m=E.ThemeIcon.asClassName(S):k=S,{iconPath:k,iconClass:m}}class i extends P{constructor(S,k){super(S.identifier,k),this.extension=S,this._items=[],this._handlesToItems=new Map,this._itemsToHandles=new Map,this._canSelectMany=!1,this._matchOnDescription=!0,this._matchOnDetail=!0,this._sortByLabel=!0,this._keepScrollPosition=!1,this._activeItems=[],this._onDidChangeActiveEmitter=new M.Emitter,this._selectedItems=[],this._onDidChangeSelectionEmitter=new M.Emitter,this._onDidTriggerItemButtonEmitter=new M.Emitter,this.onDidChangeActive=this._onDidChangeActiveEmitter.event,this.onDidChangeSelection=this._onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this._onDidTriggerItemButtonEmitter.event,this._disposables.push(this._onDidChangeActiveEmitter,this._onDidChangeSelectionEmitter,this._onDidTriggerItemButtonEmitter),this.update({type:"quickPick"})}get items(){return this._items}set items(S){this._items=S.slice(),this._handlesToItems.clear(),this._itemsToHandles.clear(),S.forEach((v,D)=>{this._handlesToItems.set(D,v),this._itemsToHandles.set(v,D)});const k=(0,t.isProposedApiEnabled)(this.extension,"quickPickItemTooltip"),m=[];for(let v=0;v<S.length;v++){const D=S[v];if(D.kind===u.QuickPickItemKind.Separator)m.push({type:"separator",label:D.label});else{D.tooltip&&!k&&console.warn(`Extension '${this.extension.identifier.value}' uses a tooltip which is proposed API that is only available when running out of dev or with the following command line switch: --enable-proposed-api ${this.extension.identifier.value}`);const L=D.iconPath?l(D.iconPath):void 0;m.push({handle:v,label:D.label,iconPath:L?.iconPath,iconClass:L?.iconClass,description:D.description,detail:D.detail,picked:D.picked,alwaysShow:D.alwaysShow,tooltip:k?s.MarkdownString.fromStrict(D.tooltip):void 0,buttons:D.buttons?.map((O,H)=>({...l(O.iconPath),tooltip:O.tooltip,handle:H}))})}}this.update({items:m})}get canSelectMany(){return this._canSelectMany}set canSelectMany(S){this._canSelectMany=S,this.update({canSelectMany:S})}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(S){this._matchOnDescription=S,this.update({matchOnDescription:S})}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(S){this._matchOnDetail=S,this.update({matchOnDetail:S})}get sortByLabel(){return this._sortByLabel}set sortByLabel(S){this._sortByLabel=S,this.update({sortByLabel:S})}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(S){this._keepScrollPosition=S,this.update({keepScrollPosition:S})}get activeItems(){return this._activeItems}set activeItems(S){this._activeItems=S.filter(k=>this._itemsToHandles.has(k)),this.update({activeItems:this._activeItems.map(k=>this._itemsToHandles.get(k))})}get selectedItems(){return this._selectedItems}set selectedItems(S){this._selectedItems=S.filter(k=>this._itemsToHandles.has(k)),this.update({selectedItems:this._selectedItems.map(k=>this._itemsToHandles.get(k))})}_fireDidChangeActive(S){const k=(0,f.coalesce)(S.map(m=>this._handlesToItems.get(m)));this._activeItems=k,this._onDidChangeActiveEmitter.fire(k)}_fireDidChangeSelection(S){const k=(0,f.coalesce)(S.map(m=>this._handlesToItems.get(m)));this._selectedItems=k,this._onDidChangeSelectionEmitter.fire(k)}_fireDidTriggerItemButton(S,k){const m=this._handlesToItems.get(S);if(!m||!m.buttons||!m.buttons.length)return;const v=m.buttons[k];v&&this._onDidTriggerItemButtonEmitter.fire({button:v,item:m})}}class c extends P{constructor(S,k){super(S.identifier,k),this._password=!1,this.update({type:"inputBox"})}get password(){return this._password}set password(S){this._password=S,this.update({password:S})}get prompt(){return this._prompt}set prompt(S){this._prompt=S,this.update({prompt:S})}get valueSelection(){return this._valueSelection}set valueSelection(S){this._valueSelection=S,this.update({valueSelection:S})}get validationMessage(){return this._validationMessage}set validationMessage(S){this._validationMessage=S,S?typeof S=="string"?this.update({validationMessage:S,severity:y.default.Error}):this.update({validationMessage:S.message,severity:S.severity??y.default.Error}):this.update({validationMessage:void 0,severity:y.default.Ignore})}}return new b(r,h)}e.createExtHostQuickOpen=g}),define(ye[343],Ce([1,0,2,4,68,5,13,3,19,124,12,23,58,11,27,15]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostSCM=e.ExtHostSCMInputBox=void 0;function h(k){if(k)return typeof k.iconPath=="string"?w.URI.file(k.iconPath):w.URI.isUri(k.iconPath)||t.ThemeIcon.isThemeIcon(k.iconPath)?k.iconPath:void 0}function o(k,m){if(!k.iconPath&&!m.iconPath)return 0;if(k.iconPath){if(!m.iconPath)return 1}else return-1;const v=typeof k.iconPath=="string"?k.iconPath:w.URI.isUri(k.iconPath)?k.iconPath.fsPath:k.iconPath.id,D=typeof m.iconPath=="string"?m.iconPath:w.URI.isUri(m.iconPath)?m.iconPath.fsPath:m.iconPath.id;return(0,f.comparePaths)(v,D)}function b(k,m){let v=0;if(k.strikeThrough!==m.strikeThrough)return k.strikeThrough?1:-1;if(k.faded!==m.faded)return k.faded?1:-1;if(k.tooltip!==m.tooltip)return(k.tooltip||"").localeCompare(m.tooltip||"");if(v=o(k,m),v!==0)return v;if(k.light&&m.light)v=o(k.light,m.light);else{if(k.light)return 1;if(m.light)return-1}if(v!==0)return v;if(k.dark&&m.dark)v=o(k.dark,m.dark);else{if(k.dark)return 1;if(m.dark)return-1}return v}function P(k,m){if(k.command!==m.command)return k.command<m.command?-1:1;if(k.title!==m.title)return k.title<m.title?-1:1;if(k.tooltip!==m.tooltip){if(k.tooltip!==void 0&&m.tooltip!==void 0)return k.tooltip<m.tooltip?-1:1;if(k.tooltip!==void 0)return 1;if(m.tooltip!==void 0)return-1}if(k.arguments===m.arguments)return 0;if(k.arguments)if(m.arguments){if(k.arguments.length!==m.arguments.length)return k.arguments.length-m.arguments.length}else return 1;else return-1;for(let v=0;v<k.arguments.length;v++){const D=k.arguments[v],L=m.arguments[v];if(D!==L)return D<L?-1:1}return 0}function T(k,m){let v=(0,f.comparePaths)(k.resourceUri.fsPath,m.resourceUri.fsPath,!0);if(v!==0)return v;if(k.command&&m.command)v=P(k.command,m.command);else{if(k.command)return 1;if(m.command)return-1}if(v!==0)return v;if(k.decorations&&m.decorations)v=b(k.decorations,m.decorations);else{if(k.decorations)return 1;if(m.decorations)return-1}return v}function n(k,m){for(let v=0;v<k.length;v++)if(k[v]!==m[v])return!1;return!0}function a(k,m){return k.command===m.command&&k.title===m.title&&k.tooltip===m.tooltip&&(k.arguments&&m.arguments?n(k.arguments,m.arguments):k.arguments===m.arguments)}function l(k,m){return(0,p.equals)(k,m,a)}class i{#e;#t;get value(){return this._value}set value(m){m=m??"",this.#e.$setInputBoxValue(this._sourceControlHandle,m),this.updateValue(m)}get onDidChange(){return this._onDidChange.event}get placeholder(){return this._placeholder}set placeholder(m){this.#e.$setInputBoxPlaceholder(this._sourceControlHandle,m),this._placeholder=m}get validateInput(){return(0,g.checkProposedApiEnabled)(this._extension,"scmValidation"),this._validateInput}set validateInput(m){if((0,g.checkProposedApiEnabled)(this._extension,"scmValidation"),m&&typeof m!="function")throw new Error(`[${this._extension.identifier.value}]: Invalid SCM input box validation function`);this._validateInput=m,this.#e.$setValidationProviderIsEnabled(this._sourceControlHandle,!!m)}get enabled(){return this._enabled}set enabled(m){m=!!m,this._enabled!==m&&(this._enabled=m,this.#e.$setInputBoxEnablement(this._sourceControlHandle,m))}get visible(){return this._visible}set visible(m){m=!!m,this._visible!==m&&(this._visible=m,this.#e.$setInputBoxVisibility(this._sourceControlHandle,m))}get document(){return(0,g.checkProposedApiEnabled)(this._extension,"scmTextDocument"),this.#t.getDocument(this._documentUri)}constructor(m,v,D,L,O){this._extension=m,this._sourceControlHandle=L,this._documentUri=O,this._value="",this._onDidChange=new M.Emitter,this._placeholder="",this._enabled=!0,this._visible=!0,this.#t=v,this.#e=D}showValidationMessage(m,v){(0,g.checkProposedApiEnabled)(this._extension,"scmValidation"),this.#e.$showValidationMessage(this._sourceControlHandle,m,v)}$onInputBoxValueChange(m){this.updateValue(m)}updateValue(m){this._value=m,this._onDidChange.fire(m)}}e.ExtHostSCMInputBox=i;class c{static{this._handlePool=0}get disposed(){return this._disposed}get id(){return this._id}get label(){return this._label}set label(m){this._label=m,this._proxy.$updateGroupLabel(this._sourceControlHandle,this.handle,m)}get hideWhenEmpty(){return this._hideWhenEmpty}set hideWhenEmpty(m){this._hideWhenEmpty=m,this._proxy.$updateGroup(this._sourceControlHandle,this.handle,this.features)}get features(){return{hideWhenEmpty:this.hideWhenEmpty}}get resourceStates(){return[...this._resourceStates]}set resourceStates(m){this._resourceStates=[...m],this._onDidUpdateResourceStates.fire()}constructor(m,v,D,L,O){this._proxy=m,this._commands=v,this._sourceControlHandle=D,this._id=L,this._label=O,this._resourceHandlePool=0,this._resourceStates=[],this._resourceStatesMap=new Map,this._resourceStatesCommandsMap=new Map,this._resourceStatesDisposablesMap=new Map,this._onDidUpdateResourceStates=new M.Emitter,this.onDidUpdateResourceStates=this._onDidUpdateResourceStates.event,this._disposed=!1,this._onDidDispose=new M.Emitter,this.onDidDispose=this._onDidDispose.event,this._handlesSnapshot=[],this._resourceSnapshot=[],this._hideWhenEmpty=void 0,this.handle=c._handlePool++}getResourceState(m){return this._resourceStatesMap.get(m)}$executeResourceCommand(m,v){const D=this._resourceStatesCommandsMap.get(m);return D?(0,R.asPromise)(()=>this._commands.executeCommand(D.command,...D.arguments||[],v)):Promise.resolve(void 0)}_takeResourceStateSnapshot(){const m=[...this._resourceStates].sort(T),D=(0,p.sortedDiff)(this._resourceSnapshot,m,T).map(H=>{const N=H.toInsert.map($=>{const U=this._resourceHandlePool++;this._resourceStatesMap.set(U,$);const x=$.resourceUri;let X;if($.command)if($.command.command==="vscode.open"||$.command.command==="vscode.diff"){const te=new A.DisposableStore;X=this._commands.converter.toInternal($.command,te),this._resourceStatesDisposablesMap.set(U,te)}else this._resourceStatesCommandsMap.set(U,$.command);const K=h($.decorations),pe=$.decorations&&h($.decorations.light)||K,le=$.decorations&&h($.decorations.dark)||K,re=[pe,le],q=$.decorations&&$.decorations.tooltip||"",oe=$.decorations&&!!$.decorations.strikeThrough,ve=$.decorations&&!!$.decorations.faded,ce=$.contextValue||"";return{rawResource:[U,x,re,q,oe,ve,ce,X],handle:U}});return{start:H.start,deleteCount:H.deleteCount,toInsert:N}}),L=D.map(({start:H,deleteCount:N,toInsert:$})=>[H,N,$.map(U=>U.rawResource)]),O=D.reverse();for(const{start:H,deleteCount:N,toInsert:$}of O){const U=$.map(X=>X.handle),x=this._handlesSnapshot.splice(H,N,...U);for(const X of x)this._resourceStatesMap.delete(X),this._resourceStatesCommandsMap.delete(X),this._resourceStatesDisposablesMap.get(X)?.dispose(),this._resourceStatesDisposablesMap.delete(X)}return this._resourceSnapshot=m,L}dispose(){this._disposed=!0,this._onDidDispose.fire()}}class _{static{this._handlePool=0}#e;get id(){return this._id}get label(){return this._label}get rootUri(){return this._rootUri}get inputBox(){return this._inputBox}get count(){return this._count}set count(m){this._count!==m&&(this._count=m,this.#e.$updateSourceControl(this.handle,{count:m}))}get quickDiffProvider(){return this._quickDiffProvider}set quickDiffProvider(m){this._quickDiffProvider=m;let v;(0,g.isProposedApiEnabled)(this._extension,"quickDiffProvider")&&(v=m?.label),this.#e.$updateSourceControl(this.handle,{hasQuickDiffProvider:!!m,quickDiffLabel:v})}get commitTemplate(){return this._commitTemplate}set commitTemplate(m){m!==this._commitTemplate&&(this._commitTemplate=m,this.#e.$updateSourceControl(this.handle,{commitTemplate:m}))}get acceptInputCommand(){return this._acceptInputCommand}set acceptInputCommand(m){this._acceptInputDisposables.value=new A.DisposableStore,this._acceptInputCommand=m;const v=this._commands.converter.toInternal(m,this._acceptInputDisposables.value);this.#e.$updateSourceControl(this.handle,{acceptInputCommand:v})}get actionButton(){return(0,g.checkProposedApiEnabled)(this._extension,"scmActionButton"),this._actionButton}set actionButton(m){(0,g.checkProposedApiEnabled)(this._extension,"scmActionButton"),this._actionButtonDisposables.value=new A.DisposableStore,this._actionButton=m;const v=m!==void 0?{command:this._commands.converter.toInternal(m.command,this._actionButtonDisposables.value),secondaryCommands:m.secondaryCommands?.map(D=>D.map(L=>this._commands.converter.toInternal(L,this._actionButtonDisposables.value))),description:m.description,enabled:m.enabled}:void 0;this.#e.$updateSourceControl(this.handle,{actionButton:v??null})}get statusBarCommands(){return this._statusBarCommands}set statusBarCommands(m){if(this._statusBarCommands&&m&&l(this._statusBarCommands,m))return;this._statusBarDisposables.value=new A.DisposableStore,this._statusBarCommands=m;const v=(m||[]).map(D=>this._commands.converter.toInternal(D,this._statusBarDisposables.value));this.#e.$updateSourceControl(this.handle,{statusBarCommands:v})}get selected(){return this._selected}constructor(m,v,D,L,O,H,N){this._extension=m,this._commands=L,this._id=O,this._label=H,this._rootUri=N,this._groups=new Map,this._count=void 0,this._quickDiffProvider=void 0,this._commitTemplate=void 0,this._acceptInputDisposables=new A.MutableDisposable,this._acceptInputCommand=void 0,this._actionButtonDisposables=new A.MutableDisposable,this._statusBarDisposables=new A.MutableDisposable,this._statusBarCommands=void 0,this._selected=!1,this._onDidChangeSelection=new M.Emitter,this.onDidChangeSelection=this._onDidChangeSelection.event,this.handle=_._handlePool++,this.createdResourceGroups=new Map,this.updatedResourceGroups=new Set,this.#e=D;const $=w.URI.from({scheme:C.Schemas.vscodeSourceControl,path:`${O}/scm${this.handle}/input`,query:N?`rootUri=${encodeURIComponent(N.toString())}`:void 0});this._inputBox=new i(m,v,this.#e,this.handle,$),this.#e.$registerSourceControl(this.handle,O,H,N,$)}createResourceGroup(m,v){const D=new c(this.#e,this._commands,this.handle,m,v),L=M.Event.once(D.onDidDispose)(()=>this.createdResourceGroups.delete(D));return this.createdResourceGroups.set(D,L),this.eventuallyAddResourceGroups(),D}eventuallyAddResourceGroups(){const m=[],v=[];for(const[D,L]of this.createdResourceGroups){L.dispose();const O=D.onDidUpdateResourceStates(()=>{this.updatedResourceGroups.add(D),this.eventuallyUpdateResourceStates()});M.Event.once(D.onDidDispose)(()=>{this.updatedResourceGroups.delete(D),O.dispose(),this._groups.delete(D.handle),this.#e.$unregisterGroup(this.handle,D.handle)}),m.push([D.handle,D.id,D.label,D.features]);const H=D._takeResourceStateSnapshot();H.length>0&&v.push([D.handle,H]),this._groups.set(D.handle,D)}this.#e.$registerGroups(this.handle,m,v),this.createdResourceGroups.clear()}eventuallyUpdateResourceStates(){const m=[];this.updatedResourceGroups.forEach(v=>{const D=v._takeResourceStateSnapshot();D.length!==0&&m.push([v.handle,D])}),m.length>0&&this.#e.$spliceResourceStates(this.handle,m),this.updatedResourceGroups.clear()}getResourceGroup(m){return this._groups.get(m)}setSelectionState(m){this._selected=m,this._onDidChangeSelection.fire(m)}dispose(){this._acceptInputDisposables.dispose(),this._actionButtonDisposables.dispose(),this._statusBarDisposables.dispose(),this._groups.forEach(m=>m.dispose()),this.#e.$unregisterSourceControl(this.handle)}}je([(0,d.debounce)(100)],_.prototype,"eventuallyAddResourceGroups",null),je([(0,d.debounce)(100)],_.prototype,"eventuallyUpdateResourceStates",null);let S=class{static{r=this}static{this._handlePool=0}get onDidChangeActiveProvider(){return this._onDidChangeActiveProvider.event}constructor(m,v,D,L){this._commands=v,this._extHostDocuments=D,this.logService=L,this._sourceControls=new Map,this._sourceControlsByExtension=new E.ExtensionIdentifierMap,this._onDidChangeActiveProvider=new M.Emitter,this._proxy=m.getProxy(u.MainContext.MainThreadSCM),this._telemetry=m.getProxy(u.MainContext.MainThreadTelemetry),v.registerArgumentProcessor({processArgument:O=>{if(O&&O.$mid===3){const H=this._sourceControls.get(O.sourceControlHandle);if(!H)return O;const N=H.getResourceGroup(O.groupHandle);return N?N.getResourceState(O.handle):O}else if(O&&O.$mid===4){const H=this._sourceControls.get(O.sourceControlHandle);return H?H.getResourceGroup(O.groupHandle):O}else if(O&&O.$mid===5){const H=this._sourceControls.get(O.handle);return H||O}return O}})}createSourceControl(m,v,D,L){this.logService.trace("ExtHostSCM#createSourceControl",m.identifier.value,v,D,L),this._telemetry.$publicLog2("api/scm/createSourceControl",{extensionId:m.identifier.value});const O=r._handlePool++,H=new _(m,this._extHostDocuments,this._proxy,this._commands,v,D,L);this._sourceControls.set(O,H);const N=this._sourceControlsByExtension.get(m.identifier)||[];return N.push(H),this._sourceControlsByExtension.set(m.identifier,N),H}getLastInputBox(m){this.logService.trace("ExtHostSCM#getLastInputBox",m.identifier.value);const v=this._sourceControlsByExtension.get(m.identifier),D=v&&v[v.length-1];return D&&D.inputBox}$provideOriginalResource(m,v,D){const L=w.URI.revive(v);this.logService.trace("ExtHostSCM#$provideOriginalResource",m,L.toString());const O=this._sourceControls.get(m);return!O||!O.quickDiffProvider||!O.quickDiffProvider.provideOriginalResource?Promise.resolve(null):(0,R.asPromise)(()=>O.quickDiffProvider.provideOriginalResource(L,D)).then(H=>H||null)}$onInputBoxValueChange(m,v){this.logService.trace("ExtHostSCM#$onInputBoxValueChange",m);const D=this._sourceControls.get(m);return D&&D.inputBox.$onInputBoxValueChange(v),Promise.resolve(void 0)}$executeResourceCommand(m,v,D,L){this.logService.trace("ExtHostSCM#$executeResourceCommand",m,v,D);const O=this._sourceControls.get(m);if(!O)return Promise.resolve(void 0);const H=O.getResourceGroup(v);return H?H.$executeResourceCommand(D,L):Promise.resolve(void 0)}$validateInput(m,v,D){this.logService.trace("ExtHostSCM#$validateInput",m);const L=this._sourceControls.get(m);return!L||!L.inputBox.validateInput?Promise.resolve(void 0):(0,R.asPromise)(()=>L.inputBox.validateInput(v,D)).then(O=>{if(!O)return Promise.resolve(void 0);const H=s.MarkdownString.fromStrict(O.message);return H?Promise.resolve([H,O.type]):Promise.resolve(void 0)})}$setSelectedSourceControl(m){return this.logService.trace("ExtHostSCM#$setSelectedSourceControl",m),m!==void 0&&this._sourceControls.get(m)?.setSelectionState(!0),this._selectedSourceControlHandle!==void 0&&this._sourceControls.get(this._selectedSourceControlHandle)?.setSelectionState(!1),this._selectedSourceControlHandle=m,Promise.resolve(void 0)}};e.ExtHostSCM=S,e.ExtHostSCM=S=r=je([He(3,y.ILogService)],S)}),define(ye[112],Ce([1,0,3,4,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostSecretState=e.ExtHostSecretState=void 0;class A{constructor(u){this._onDidChangePassword=new M.Emitter,this.onDidChangePassword=this._onDidChangePassword.event,this._proxy=u.getProxy(w.MainContext.MainThreadSecretState)}async $onDidChangePassword(u){this._onDidChangePassword.fire(u)}get(u,p){return this._proxy.$getPassword(u,p)}store(u,p,f){return this._proxy.$setPassword(u,p,f)}delete(u,p){return this._proxy.$deletePassword(u,p)}}e.ExtHostSecretState=A,e.IExtHostSecretState=(0,d.createDecorator)("IExtHostSecretState")}),define(ye[344],Ce([1,0,3,11,2]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostShare=void 0;class A{static{this.handlePool=0}constructor(u,p){this.uriTransformer=p,this.providers=new Map,this.proxy=u.getProxy(w.MainContext.MainThreadShare)}async $provideShare(u,p,f){return await this.providers.get(u)?.provideShare({selection:M.Range.to(p.selection),resourceUri:d.URI.revive(p.resourceUri)},f)??void 0}registerShareProvider(u,p){const f=A.handlePool++;return this.providers.set(f,p),this.proxy.$registerShareProvider(f,M.DocumentSelector.from(u,this.uriTransformer),p.id,p.label,p.priority),{dispose:()=>{this.proxy.$unregisterShareProvider(f),this.providers.delete(f)}}}}e.ExtHostShare=A}),define(ye[345],Ce([1,0,7,3,215,5,11,18]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostStatusBar=e.ExtHostStatusBarEntry=void 0;class p{static{this.ID_GEN=0}static{this.ALLOWED_BACKGROUND_COLORS=new Map([["statusBarItem.errorBackground",new w.ThemeColor("statusBarItem.errorForeground")],["statusBarItem.warningBackground",new w.ThemeColor("statusBarItem.warningForeground")]])}#e;#t;constructor(t,s,g,C,r,h=w.StatusBarAlignment.Left,o){if(this._disposed=!1,this._text="",this._staleCommandRegistrations=new A.DisposableStore,this.#e=t,this.#t=s,r&&C){this._entryId=(0,w.asStatusBarItemIdentifier)(C.identifier,r);const b=g.get(this._entryId);b&&(h=b.alignLeft?w.StatusBarAlignment.Left:w.StatusBarAlignment.Right,o=b.priority,this._visible=!0,this.name=b.name,this.text=b.text,this.tooltip=b.tooltip,this.command=b.command,this.accessibilityInformation=b.accessibilityInformation)}else this._entryId=String(p.ID_GEN++);this._extension=C,this._id=r,this._alignment=h,this._priority=this.validatePriority(o)}validatePriority(t){if((0,u.isNumber)(t))return t===Number.POSITIVE_INFINITY?Number.MAX_VALUE:t===Number.NEGATIVE_INFINITY?-Number.MAX_VALUE:t}get id(){return this._id??this._extension.identifier.value}get alignment(){return this._alignment}get priority(){return this._priority}get text(){return this._text}get name(){return this._name}get tooltip(){return this._tooltip}get color(){return this._color}get backgroundColor(){return this._backgroundColor}get command(){return this._command?.fromApi}get accessibilityInformation(){return this._accessibilityInformation}set text(t){this._text=t,this.update()}set name(t){this._name=t,this.update()}set tooltip(t){this._tooltip=t,this.update()}set color(t){this._color=t,this.update()}set backgroundColor(t){t&&!p.ALLOWED_BACKGROUND_COLORS.has(t.id)&&(t=void 0),this._backgroundColor=t,this.update()}set command(t){this._command?.fromApi!==t&&(this._latestCommandRegistration&&this._staleCommandRegistrations.add(this._latestCommandRegistration),this._latestCommandRegistration=new A.DisposableStore,typeof t=="string"?this._command={fromApi:t,internal:this.#t.toInternal({title:"",command:t},this._latestCommandRegistration)}:t?this._command={fromApi:t,internal:this.#t.toInternal(t,this._latestCommandRegistration)}:this._command=void 0,this.update())}set accessibilityInformation(t){this._accessibilityInformation=t,this.update()}show(){this._visible=!0,this.update()}hide(){clearTimeout(this._timeoutHandle),this._visible=!1,this.#e.$disposeEntry(this._entryId)}update(){this._disposed||!this._visible||(clearTimeout(this._timeoutHandle),this._timeoutHandle=setTimeout(()=>{this._timeoutHandle=void 0;let t;this._extension?this._id?t=`${this._extension.identifier.value}.${this._id}`:t=this._extension.identifier.value:t=this._id;let s;this._name?s=this._name:s=(0,d.localize)(0,null,this._extension.displayName||this._extension.name);let g=this._color;this._backgroundColor&&(g=p.ALLOWED_BACKGROUND_COLORS.get(this._backgroundColor.id));const C=R.MarkdownString.fromStrict(this._tooltip);this.#e.$setEntry(this._entryId,t,this._extension?.identifier.value,s,this._text,C,this._command?.internal,g,this._backgroundColor,this._alignment===w.StatusBarAlignment.Left,this._priority,this._accessibilityInformation),this._staleCommandRegistrations.clear()},0))}dispose(){this.hide(),this._disposed=!0}}e.ExtHostStatusBarEntry=p;class f{constructor(t){this._messages=[],this._item=t.createStatusBarEntry(void 0,"status.extensionMessage",w.StatusBarAlignment.Left,Number.MIN_VALUE),this._item.name=(0,d.localize)(1,null)}dispose(){this._messages.length=0,this._item.dispose()}setMessage(t){const s={message:t};return this._messages.unshift(s),this._update(),new w.Disposable(()=>{const g=this._messages.indexOf(s);g>=0&&(this._messages.splice(g,1),this._update())})}_update(){this._messages.length>0?(this._item.text=this._messages[0].message,this._item.show()):this._item.hide()}}class y{constructor(t,s){this._existingItems=new Map,this._proxy=t.getProxy(M.MainContext.MainThreadStatusBar),this._commands=s,this._statusMessage=new f(this)}$acceptStaticEntries(t){for(const s of t)this._existingItems.set(s.entryId,s)}createStatusBarEntry(t,s,g,C){return new p(this._proxy,this._commands,this._existingItems,t,s,g,C)}setStatusBarMessage(t,s){const g=this._statusMessage.setMessage(t);let C;return typeof s=="number"?C=setTimeout(()=>g.dispose(),s):typeof s<"u"&&s.then(()=>g.dispose(),()=>g.dispose()),new w.Disposable(()=>{g.dispose(),clearTimeout(C)})}}e.ExtHostStatusBar=y}),define(ye[113],Ce([1,0,3,4,6]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostStorage=e.ExtHostStorage=void 0;class A{constructor(u,p){this._logService=p,this._onDidChangeStorage=new M.Emitter,this.onDidChangeStorage=this._onDidChangeStorage.event,this._proxy=u.getProxy(w.MainContext.MainThreadStorage)}registerExtensionStorageKeysToSync(u,p){this._proxy.$registerExtensionStorageKeysToSync(u,p)}async initializeExtensionStorage(u,p,f){const y=await this._proxy.$initializeExtensionStorage(u,p);let E;return y&&(E=this.safeParseValue(u,p,y)),E||f}setValue(u,p,f){return this._proxy.$setValue(u,p,f)}$acceptValue(u,p,f){const y=this.safeParseValue(u,p,f);y&&this._onDidChangeStorage.fire({shared:u,key:p,value:y})}safeParseValue(u,p,f){try{return JSON.parse(f)}catch(y){this._logService.error(`[extHostStorage] unexpected error parsing storage contents (extensionId: ${p}, global: ${u}): ${y}`)}}}e.ExtHostStorage=A,e.IExtHostStorage=(0,d.createDecorator)("IExtHostStorage")}),define(ye[90],Ce([1,0,6,26,12,66,2]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionStoragePaths=e.IExtensionStoragePaths=void 0,e.IExtensionStoragePaths=(0,w.createDecorator)("IExtensionStoragePaths");let u=class{constructor(f,y,E){this._logService=y,this._extHostFileSystem=E,this._workspace=f.workspace??void 0,this._environment=f.environment,this.whenReady=this._getOrCreateWorkspaceStoragePath().then(t=>this._value=t)}async _getWorkspaceStorageURI(f){return R.URI.joinPath(this._environment.workspaceStorageHome,f)}async _getOrCreateWorkspaceStoragePath(){if(!this._workspace)return Promise.resolve(void 0);const f=this._workspace.id,y=await this._getWorkspaceStorageURI(f);try{return await this._extHostFileSystem.value.stat(y),this._logService.trace("[ExtHostStorage] storage dir already exists",y),y}catch{}try{return this._logService.trace("[ExtHostStorage] creating dir and metadata-file",y),await this._extHostFileSystem.value.createDirectory(y),await this._extHostFileSystem.value.writeFile(R.URI.joinPath(y,"meta.json"),new TextEncoder().encode(JSON.stringify({id:this._workspace.id,configuration:R.URI.revive(this._workspace.configuration)?.toString(),name:this._workspace.name},void 0,2))),y}catch(E){this._logService.error("[ExtHostStorage]",E);return}}workspaceValue(f){if(this._value)return R.URI.joinPath(this._value,f.identifier.value)}globalValue(f){return R.URI.joinPath(this._environment.globalStorageHome,f.identifier.value.toLowerCase())}onWillDeactivateAll(){}};e.ExtensionStoragePaths=u,e.ExtensionStoragePaths=u=je([He(0,M.IExtHostInitDataService),He(1,d.ILogService),He(2,A.IExtHostConsumerFileSystem)],u)}),define(ye[48],Ce([1,0,4,3,6,2,20,5,7,217,8,255,22,29,256,58,13,11,32]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerExtHostTerminalService=e.BaseExtHostTerminalService=e.ExtHostTerminal=e.IExtHostTerminalService=void 0,e.IExtHostTerminalService=(0,d.createDecorator)("IExtHostTerminalService");class b{constructor(m,v,D,L){this._proxy=m,this._id=v,this._creationOptions=D,this._name=L,this._disposed=!1,this._state={isInteractedWith:!1},this.isOpen=!1,this._creationOptions=Object.freeze(this._creationOptions),this._pidPromise=new Promise(H=>this._pidPromiseComplete=H);const O=this;this.value={get name(){return O._name||""},get processId(){return O._pidPromise},get creationOptions(){return O._creationOptions},get exitStatus(){return O._exitStatus},get state(){return O._state},get selection(){return O._selection},sendText(H,N=!0){O._checkDisposed(),O._proxy.$sendText(O._id,H,N)},show(H){O._checkDisposed(),O._proxy.$show(O._id,H)},hide(){O._checkDisposed(),O._proxy.$hide(O._id)},dispose(){O._disposed||(O._disposed=!0,O._proxy.$dispose(O._id))},get dimensions(){if(!(O._cols===void 0||O._rows===void 0))return{columns:O._cols,rows:O._rows}}}}async create(m,v){if(typeof this._id!="string")throw new Error("Terminal has already been created");await this._proxy.$createTerminal(this._id,{name:m.name,shellPath:m.shellPath??void 0,shellArgs:m.shellArgs??void 0,cwd:m.cwd??void 0,env:m.env??void 0,icon:c(m.iconPath)??void 0,color:C.ThemeColor.isThemeColor(m.color)?m.color.id:void 0,initialText:m.message??void 0,strictEnv:m.strictEnv??void 0,hideFromUser:m.hideFromUser??void 0,isFeatureTerminal:v?.isFeatureTerminal??void 0,isExtensionOwnedTerminal:!0,useShellEnvironment:v?.useShellEnvironment??void 0,location:v?.location||this._serializeParentTerminal(m.location,v?.resolvedExtHostIdentifier),isTransient:m.isTransient??void 0})}async createExtensionTerminal(m,v,D,L){if(typeof this._id!="string")throw new Error("Terminal has already been created");if(await this._proxy.$createTerminal(this._id,{name:this._name,isExtensionCustomPtyTerminal:!0,icon:D,color:C.ThemeColor.isThemeColor(L)?L.id:void 0,location:this._serializeParentTerminal(m,v),isTransient:!0}),typeof this._id=="string")throw new Error("Terminal creation failed");return this._id}_serializeParentTerminal(m,v){return typeof m=="object"?"parentTerminal"in m&&m.parentTerminal&&v?{parentTerminal:v}:"viewColumn"in m?{viewColumn:h.ViewColumn.from(m.viewColumn),preserveFocus:m.preserveFocus}:void 0:m}_checkDisposed(){if(this._disposed)throw new Error("Terminal has already been disposed")}set name(m){this._name=m}setExitStatus(m,v){this._exitStatus=Object.freeze({code:m,reason:v})}setDimensions(m,v){return m===this._cols&&v===this._rows||m===0||v===0?!1:(this._cols=m,this._rows=v,!0)}setInteractedWith(){return this._state.isInteractedWith?!1:(this._state={isInteractedWith:!0},!0)}setSelection(m){this._selection=m}_setProcessId(m){this._pidPromiseComplete?(this._pidPromiseComplete(m),this._pidPromiseComplete=void 0):this._pidPromise.then(v=>{v!==m&&(this._pidPromise=Promise.resolve(m))})}}e.ExtHostTerminal=b;class P{get onProcessReady(){return this._onProcessReady.event}constructor(m){this._pty=m,this.id=0,this.shouldPersist=!1,this._onProcessData=new w.Emitter,this.onProcessData=this._onProcessData.event,this._onProcessReady=new w.Emitter,this._onDidChangeProperty=new w.Emitter,this.onDidChangeProperty=this._onDidChangeProperty.event,this._onProcessExit=new w.Emitter,this.onProcessExit=this._onProcessExit.event}refreshProperty(m){throw new Error(`refreshProperty is not suppported in extension owned terminals. property: ${m}`)}updateProperty(m,v){throw new Error(`updateProperty is not suppported in extension owned terminals. property: ${m}, value: ${v}`)}async start(){}shutdown(){this._pty.close()}input(m){this._pty.handleInput?.(m)}resize(m,v){this._pty.setDimensions?.({columns:m,rows:v})}clearBuffer(){}async processBinary(m){}acknowledgeDataEvent(m){}async setUnicodeVersion(m){}getInitialCwd(){return Promise.resolve("")}getCwd(){return Promise.resolve("")}startSendingEvents(m){this._pty.onDidWrite(v=>this._onProcessData.fire(v)),this._pty.onDidClose?.((v=void 0)=>{this._onProcessExit.fire(v===void 0?void 0:v)}),this._pty.onDidOverrideDimensions?.(v=>{v&&this._onDidChangeProperty.fire({type:"overrideDimensions",value:{cols:v.columns,rows:v.rows}})}),this._pty.onDidChangeName?.(v=>{this._onDidChangeProperty.fire({type:"title",value:v})}),this._pty.open(m||void 0),m&&this._pty.setDimensions?.(m),this._onProcessReady.fire({pid:-1,cwd:"",windowsPty:void 0})}}let T=1,n=class extends u.Disposable{get activeTerminal(){return this._activeTerminal?.value}get terminals(){return this._terminals.map(m=>m.value)}constructor(m,v,D){super(),this._extHostCommands=v,this._terminals=[],this._terminalProcesses=new Map,this._terminalProcessDisposables={},this._extensionTerminalAwaitingStart={},this._getTerminalPromises={},this._environmentVariableCollections=new Map,this._lastQuickFixCommands=this._register(new u.MutableDisposable),this._linkProviders=new Set,this._profileProviders=new Map,this._quickFixProviders=new Map,this._terminalLinkCache=new Map,this._terminalLinkCancellationSource=new Map,this._onDidCloseTerminal=new w.Emitter,this.onDidCloseTerminal=this._onDidCloseTerminal.event,this._onDidOpenTerminal=new w.Emitter,this.onDidOpenTerminal=this._onDidOpenTerminal.event,this._onDidChangeActiveTerminal=new w.Emitter,this.onDidChangeActiveTerminal=this._onDidChangeActiveTerminal.event,this._onDidChangeTerminalDimensions=new w.Emitter,this.onDidChangeTerminalDimensions=this._onDidChangeTerminalDimensions.event,this._onDidChangeTerminalState=new w.Emitter,this.onDidChangeTerminalState=this._onDidChangeTerminalState.event,this._onDidChangeShell=new w.Emitter,this.onDidChangeShell=this._onDidChangeShell.event,this._onDidWriteTerminalData=new w.Emitter({onWillAddFirstListener:()=>this._proxy.$startSendingDataEvents(),onDidRemoveLastListener:()=>this._proxy.$stopSendingDataEvents()}),this.onDidWriteTerminalData=this._onDidWriteTerminalData.event,this._onDidExecuteCommand=new w.Emitter({onWillAddFirstListener:()=>this._proxy.$startSendingCommandEvents(),onDidRemoveLastListener:()=>this._proxy.$stopSendingCommandEvents()}),this.onDidExecuteTerminalCommand=this._onDidExecuteCommand.event,this._proxy=D.getProxy(M.MainContext.MainThreadTerminalService),this._bufferer=new g.TerminalDataBufferer(this._proxy.$sendProcessData),this._proxy.$registerProcessSupport(m),this._register({dispose:()=>{for(const[L,O]of this._terminalProcesses)O.shutdown(!0)}})}getDefaultShell(m){return(m?this._defaultAutomationProfile:this._defaultProfile)?.path||""}getDefaultShellArgs(m){return(m?this._defaultAutomationProfile:this._defaultProfile)?.args||[]}createExtensionTerminal(m,v){const D=new b(this._proxy,(0,s.generateUuid)(),m,m.name),L=new P(m.pty);return D.createExtensionTerminal(m.location,this._serializeParentTerminal(m,v).resolvedExtHostIdentifier,c(m.iconPath),_(m.color)).then(O=>{const H=this._setupExtHostProcessListeners(O,L);this._terminalProcessDisposables[O]=H}),this._terminals.push(D),D.value}_serializeParentTerminal(m,v){if(v=v||{},m.location&&typeof m.location=="object"&&"parentTerminal"in m.location){const D=m.location.parentTerminal;if(D){const L=this._terminals.find(O=>O.value===D);L&&(v.resolvedExtHostIdentifier=L._id)}}else m.location&&typeof m.location!="object"?v.location=m.location:v.location&&typeof v.location=="object"&&"splitActiveTerminal"in v.location&&(v.location={splitActiveTerminal:!0});return v}attachPtyToTerminal(m,v){if(!this._getTerminalById(m))throw new Error(`Cannot resolve terminal with id ${m} for virtual process`);const L=new P(v),O=this._setupExtHostProcessListeners(m,L);this._terminalProcessDisposables[m]=O}async $acceptActiveTerminalChanged(m){const v=this._activeTerminal;if(m===null){this._activeTerminal=void 0,v!==this._activeTerminal&&this._onDidChangeActiveTerminal.fire(void 0);return}const D=this._getTerminalById(m);D&&(this._activeTerminal=D,v!==this._activeTerminal&&this._onDidChangeActiveTerminal.fire(this._activeTerminal.value))}async $acceptTerminalProcessData(m,v){const D=this._getTerminalById(m);D&&this._onDidWriteTerminalData.fire({terminal:D.value,data:v})}async $acceptTerminalDimensions(m,v,D){const L=this._getTerminalById(m);L&&L.setDimensions(v,D)&&this._onDidChangeTerminalDimensions.fire({terminal:L.value,dimensions:L.value.dimensions})}async $acceptDidExecuteCommand(m,v){const D=this._getTerminalById(m);D&&this._onDidExecuteCommand.fire({terminal:D.value,...v})}async $acceptTerminalMaximumDimensions(m,v,D){this._terminalProcesses.get(m)?.resize(v,D)}async $acceptTerminalTitleChange(m,v){const D=this._getTerminalById(m);D&&(D.name=v)}async $acceptTerminalClosed(m,v,D){const L=this._getTerminalObjectIndexById(this._terminals,m);if(L!==null){const O=this._terminals.splice(L,1)[0];O.setExitStatus(v,D),this._onDidCloseTerminal.fire(O.value)}}$acceptTerminalOpened(m,v,D,L){if(v){const N=this._getTerminalObjectIndexById(this._terminals,v);if(N!==null){this._terminals[N]._id=m,this._onDidOpenTerminal.fire(this.terminals[N]),this._terminals[N].isOpen=!0;return}}const O={name:L.name,shellPath:L.executable,shellArgs:L.args,cwd:typeof L.cwd=="string"?L.cwd:A.URI.revive(L.cwd),env:L.env,hideFromUser:L.hideFromUser},H=new b(this._proxy,m,O,D);this._terminals.push(H),this._onDidOpenTerminal.fire(H.value),H.isOpen=!0}async $acceptTerminalProcessId(m,v){this._getTerminalById(m)?._setProcessId(v)}async $startExtensionTerminal(m,v){const D=this._getTerminalById(m);if(!D)return{message:(0,f.localize)(0,null,m)};D.isOpen||await new Promise(O=>{const H=this.onDidOpenTerminal(async N=>{N===D.value&&(H.dispose(),O())})});const L=this._terminalProcesses.get(m);L?L.startSendingEvents(v):this._extensionTerminalAwaitingStart[m]={initialDimensions:v}}_setupExtHostProcessListeners(m,v){const D=new u.DisposableStore;D.add(v.onProcessReady(O=>this._proxy.$sendProcessReady(m,O.pid,O.cwd,O.windowsPty))),D.add(v.onDidChangeProperty(O=>this._proxy.$sendProcessProperty(m,O))),this._bufferer.startBuffering(m,v.onProcessData),D.add(v.onProcessExit(O=>this._onProcessExit(m,O))),this._terminalProcesses.set(m,v);const L=this._extensionTerminalAwaitingStart[m];return L&&v instanceof P&&(v.startSendingEvents(L.initialDimensions),delete this._extensionTerminalAwaitingStart[m]),D}$acceptProcessAckDataEvent(m,v){this._terminalProcesses.get(m)?.acknowledgeDataEvent(v)}$acceptProcessInput(m,v){this._terminalProcesses.get(m)?.input(v)}$acceptTerminalInteraction(m){const v=this._getTerminalById(m);v?.setInteractedWith()&&this._onDidChangeTerminalState.fire(v.value)}$acceptTerminalSelection(m,v){this._getTerminalById(m)?.setSelection(v)}$acceptProcessResize(m,v,D){try{this._terminalProcesses.get(m)?.resize(v,D)}catch(L){if(L.code!=="EPIPE"&&L.code!=="ERR_IPC_CHANNEL_CLOSED")throw L}}$acceptProcessShutdown(m,v){this._terminalProcesses.get(m)?.shutdown(v)}$acceptProcessRequestInitialCwd(m){this._terminalProcesses.get(m)?.getInitialCwd().then(v=>this._proxy.$sendProcessProperty(m,{type:"initialCwd",value:v}))}$acceptProcessRequestCwd(m){this._terminalProcesses.get(m)?.getCwd().then(v=>this._proxy.$sendProcessProperty(m,{type:"cwd",value:v}))}$acceptProcessRequestLatency(m){return Promise.resolve(m)}registerLinkProvider(m){return this._linkProviders.add(m),this._linkProviders.size===1&&this._proxy.$startLinkProvider(),new p.Disposable(()=>{this._linkProviders.delete(m),this._linkProviders.size===0&&this._proxy.$stopLinkProvider()})}registerProfileProvider(m,v,D){if(this._profileProviders.has(v))throw new Error(`Terminal profile provider "${v}" already registered`);return this._profileProviders.set(v,D),this._proxy.$registerProfileProvider(v,m.identifier.value),new p.Disposable(()=>{this._profileProviders.delete(v),this._proxy.$unregisterProfileProvider(v)})}registerTerminalQuickFixProvider(m,v,D){if(this._quickFixProviders.has(m))throw new Error(`Terminal quick fix provider "${m}" is already registered`);return this._quickFixProviders.set(m,D),this._proxy.$registerQuickFixProvider(m,v),new p.Disposable(()=>{this._quickFixProviders.delete(m),this._proxy.$unregisterQuickFixProvider(m)})}async $provideTerminalQuickFixes(m,v){const D=new t.CancellationTokenSource().token;if(D.isCancellationRequested)return;const L=this._quickFixProviders.get(m);if(!L)return;const O=await L.provideTerminalQuickFixes(v,D);if(O===null||Array.isArray(O)&&O.length===0)return;const H=new u.DisposableStore;if(this._lastQuickFixCommands.value=H,!Array.isArray(O))return O?h.TerminalQuickFix.from(O,this._extHostCommands.converter,H):void 0;const N=[];for(const $ of O){const U=h.TerminalQuickFix.from($,this._extHostCommands.converter,H);U&&N.push(U)}return N}async $createContributedProfileTerminal(m,v){const D=new t.CancellationTokenSource().token;let L=await this._profileProviders.get(m)?.provideTerminalProfile(D);if(!D.isCancellationRequested){if(L&&!("options"in L)&&(L={options:L}),!L||!("options"in L))throw new Error(`No terminal profile options provided for id "${m}"`);if("pty"in L.options){this.createExtensionTerminal(L.options,v);return}this.createTerminalFromOptions(L.options,v)}}async $provideLinks(m,v){const D=this._getTerminalById(m);if(!D)return[];this._terminalLinkCache.delete(m),this._terminalLinkCancellationSource.get(m)?.dispose(!0);const O=new t.CancellationTokenSource;this._terminalLinkCancellationSource.set(m,O);const H=[],N={terminal:D.value,line:v},$=[];for(const X of this._linkProviders)$.push(r.Promises.withAsyncBody(async K=>{O.token.onCancellationRequested(()=>K({provider:X,links:[]}));const pe=await X.provideTerminalLinks(N,O.token)||[];O.token.isCancellationRequested||K({provider:X,links:pe})}));const U=await Promise.all($);if(O.token.isCancellationRequested)return[];const x=new Map;for(const X of U)X&&X.links.length>0&&H.push(...X.links.map(K=>{const pe={id:T++,startIndex:K.startIndex,length:K.length,label:K.tooltip};return x.set(pe.id,{provider:X.provider,link:K}),pe}));return this._terminalLinkCache.set(m,x),H}$activateLink(m,v){const D=this._terminalLinkCache.get(m)?.get(v);D&&D.provider.handleTerminalLink(D.link)}_onProcessExit(m,v){this._bufferer.stopBuffering(m),this._terminalProcesses.delete(m),delete this._extensionTerminalAwaitingStart[m];const D=this._terminalProcessDisposables[m];D&&(D.dispose(),delete this._terminalProcessDisposables[m]),this._proxy.$sendProcessExit(m,v)}_getTerminalById(m){return this._getTerminalObjectById(this._terminals,m)}_getTerminalObjectById(m,v){const D=this._getTerminalObjectIndexById(m,v);return D!==null?m[D]:null}_getTerminalObjectIndexById(m,v){const D=m.findIndex(L=>L._id===v);return D===-1?null:D}getEnvironmentVariableCollection(m){let v=this._environmentVariableCollections.get(m.identifier.value);return v||(v=new a,this._setEnvironmentVariableCollection(m.identifier.value,v)),v.getScopedEnvironmentVariableCollection(void 0)}_syncEnvironmentVariableCollection(m,v){const D=(0,E.serializeEnvironmentVariableCollection)(v.map),L=(0,E.serializeEnvironmentDescriptionMap)(v.descriptionMap);this._proxy.$setEnvironmentVariableCollection(m,v.persistent,D.length===0?void 0:D,L)}$initEnvironmentVariableCollections(m){m.forEach(v=>{const D=v[0],L=new a(v[1]);this._setEnvironmentVariableCollection(D,L)})}$acceptDefaultProfile(m,v){const D=this._defaultProfile;this._defaultProfile=m,this._defaultAutomationProfile=v,D?.path!==m.path&&this._onDidChangeShell.fire(m.path)}_setEnvironmentVariableCollection(m,v){this._environmentVariableCollections.set(m,v),v.onDidChangeCollection(()=>{this._syncEnvironmentVariableCollection(m,v)})}};e.BaseExtHostTerminalService=n,e.BaseExtHostTerminalService=n=je([He(1,o.IExtHostCommands),He(2,R.IExtHostRpcService)],n);class a{get persistent(){return this._persistent}set persistent(m){this._persistent=m,this._onDidChangeCollection.fire()}get onDidChangeCollection(){return this._onDidChangeCollection&&this._onDidChangeCollection.event}constructor(m){this.map=new Map,this.scopedCollections=new Map,this.descriptionMap=new Map,this._persistent=!0,this._onDidChangeCollection=new w.Emitter,this.map=new Map(m)}getScopedEnvironmentVariableCollection(m){const v=this.getScopeKey(m);let D=this.scopedCollections.get(v);return D||(D=new l(this,m),this.scopedCollections.set(v,D),D.onDidChangeCollection(()=>this._onDidChangeCollection.fire())),D}replace(m,v,D,L){this._setIfDiffers(m,{value:v,type:p.EnvironmentVariableMutatorType.Replace,options:D??{applyAtProcessCreation:!0},scope:L})}append(m,v,D,L){this._setIfDiffers(m,{value:v,type:p.EnvironmentVariableMutatorType.Append,options:D??{applyAtProcessCreation:!0},scope:L})}prepend(m,v,D,L){this._setIfDiffers(m,{value:v,type:p.EnvironmentVariableMutatorType.Prepend,options:D??{applyAtProcessCreation:!0},scope:L})}_setIfDiffers(m,v){if(v.options&&v.options.applyAtProcessCreation===!1&&!v.options.applyAtShellIntegration)throw new Error("EnvironmentVariableMutatorOptions must apply at either process creation or shell integration");const D=this.getKey(m,v.scope),L=this.map.get(D),O=v.options?{applyAtProcessCreation:v.options.applyAtProcessCreation??!1,applyAtShellIntegration:v.options.applyAtShellIntegration??!1}:{applyAtProcessCreation:!0};if(!L||L.value!==v.value||L.type!==v.type||L.options?.applyAtProcessCreation!==O.applyAtProcessCreation||L.options?.applyAtShellIntegration!==O.applyAtShellIntegration||L.scope?.workspaceFolder?.index!==v.scope?.workspaceFolder?.index){const H=this.getKey(m,v.scope),N={variable:m,...v,options:O};this.map.set(H,N),this._onDidChangeCollection.fire()}}get(m,v){const D=this.getKey(m,v),L=this.map.get(D);return L?S(L):void 0}getKey(m,v){const D=this.getScopeKey(v);return D.length?`${m}:::${D}`:m}getScopeKey(m){return this.getWorkspaceKey(m?.workspaceFolder)??""}getWorkspaceKey(m){return m?m.uri.toString():void 0}getVariableMap(m){const v=new Map;for(const[D,L]of this.map)this.getScopeKey(L.scope)===this.getScopeKey(m)&&v.set(L.variable,S(L));return v}delete(m,v){const D=this.getKey(m,v);this.map.delete(D),this._onDidChangeCollection.fire()}clear(m){if(m?.workspaceFolder){for(const[v,D]of this.map)D.scope?.workspaceFolder?.index===m.workspaceFolder.index&&this.map.delete(v);this.clearDescription(m)}else this.map.clear(),this.descriptionMap.clear();this._onDidChangeCollection.fire()}setDescription(m,v){const D=this.getScopeKey(v),L=this.descriptionMap.get(D);if(!L||L.description!==m){let O;typeof m=="string"?O=m:O=m?.value.split(`

`)[0];const H={description:O,scope:v};this.descriptionMap.set(D,H),this._onDidChangeCollection.fire()}}getDescription(m){const v=this.getScopeKey(m);return this.descriptionMap.get(v)?.description}clearDescription(m){const v=this.getScopeKey(m);this.descriptionMap.delete(v)}}class l{get persistent(){return this.collection.persistent}set persistent(m){this.collection.persistent=m}get onDidChangeCollection(){return this._onDidChangeCollection&&this._onDidChangeCollection.event}constructor(m,v){this.collection=m,this.scope=v,this._onDidChangeCollection=new w.Emitter}getScoped(m){return this.collection.getScopedEnvironmentVariableCollection(m)}replace(m,v,D){this.collection.replace(m,v,D,this.scope)}append(m,v,D){this.collection.append(m,v,D,this.scope)}prepend(m,v,D){this.collection.prepend(m,v,D,this.scope)}get(m){return this.collection.get(m,this.scope)}forEach(m,v){this.collection.getVariableMap(this.scope).forEach((D,L)=>m.call(v,L,D,this),this.scope)}[Symbol.iterator](){return this.collection.getVariableMap(this.scope).entries()}delete(m){this.collection.delete(m,this.scope),this._onDidChangeCollection.fire(void 0)}clear(){this.collection.clear(this.scope)}set description(m){this.collection.setDescription(m,this.scope)}get description(){return this.collection.getDescription(this.scope)}}let i=class extends n{constructor(m,v){super(!1,m,v)}createTerminal(m,v,D){throw new y.NotSupportedError}createTerminalFromOptions(m,v){throw new y.NotSupportedError}};e.WorkerExtHostTerminalService=i,e.WorkerExtHostTerminalService=i=je([He(0,o.IExtHostCommands),He(1,R.IExtHostRpcService)],i);function c(k){if(!(!k||typeof k=="string"))return"id"in k?{id:k.id,color:k.color}:k}function _(k){return C.ThemeColor.isThemeColor(k)?k:void 0}function S(k){const m={...k};return delete m.scope,m.options=m.options??void 0,delete m.variable,m}}),define(ye[346],Ce([1,0,19,13,21,22,4,69,72,5,24,18,29,3,20,144,11,7,63,106,87,27]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestRunProfileImpl=e.TestRunDto=e.TestRunCoordinator=e.ExtHostTesting=void 0;let n=class{constructor(N,$,U){this.editors=U,this.resultsChangedEmitter=new R.Emitter,this.controllers=new Map,this.onResultsChanged=this.resultsChangedEmitter.event,this.results=[],this.proxy=N.getProxy(s.MainContext.MainThreadTesting),this.observer=new D(this.proxy),this.runTracker=new c(this.proxy),$.registerArgumentProcessor({processArgument:x=>{switch(x?.$mid){case 15:{const X=x,K=X.tests[X.tests.length-1].item.extId;return this.controllers.get(o.TestId.root(K))?.collection.tree.get(K)?.actual??(0,C.toItemFromContext)(x)}case 17:{const{extId:X,message:K}=x;return{test:this.controllers.get(o.TestId.root(X))?.collection.tree.get(X)?.actual,message:r.TestMessage.to(K)}}default:return x}}}),$.registerCommand(!1,"testing.getExplorerSelection",async()=>{const x=await $.executeCommand("_testing.getExplorerSelection"),X=K=>{const pe=this.controllers.get(o.TestId.root(K));if(pe)return o.TestId.isRoot(K)?pe.controller:pe.collection.tree.get(K)?.actual};return{include:x?.include.map(X).filter(E.isDefined)||[],exclude:x?.exclude.map(X).filter(E.isDefined)||[]}})}createTestController(N,$,U,x){if(this.controllers.has($))throw new Error(`Attempt to insert a duplicate controller with ID "${$}"`);const X=new f.DisposableStore,K=X.add(new C.ExtHostTestItemCollection($,U,this.editors));K.root.label=U;const pe=new Map,le=this.proxy,re={items:K.root.children,get label(){return U},set label(oe){U=oe,K.root.label=oe,le.$updateController($,{label:U})},get refreshHandler(){return x},set refreshHandler(oe){x=oe,le.$updateController($,{canRefresh:!!oe})},get id(){return $},createRunProfile:(oe,ve,ce,se,te,B)=>{let G=(0,p.hash)(oe);for(;pe.has(G);)G++;return new L(this.proxy,pe,$,G,oe,ve,ce,se,te,B)},createTestItem(oe,ve,ce){return new C.TestItemImpl($,oe,ve,ce)},createTestRun:(oe,ve,ce=!0)=>this.runTracker.createTestRun(N,$,K,oe,ve,ce),invalidateTestResults:oe=>{if(oe===void 0)this.proxy.$markTestRetired(void 0);else{const ve=oe instanceof Array?oe:[oe];this.proxy.$markTestRetired(ve.map(ce=>o.TestId.fromExtHostTestItem(ce,$).toString()))}},set resolveHandler(oe){K.resolveHandler=oe},get resolveHandler(){return K.resolveHandler},dispose:()=>{X.dispose()}};le.$registerTestController($,U,!!x),X.add((0,f.toDisposable)(()=>le.$unregisterTestController($)));const q={controller:re,collection:K,profiles:pe,extension:N};return this.controllers.set($,q),X.add((0,f.toDisposable)(()=>this.controllers.delete($))),X.add(K.onDidGenerateDiff(oe=>le.$publishDiff($,oe.map(P.TestsDiffOp.serialize)))),re}createTestObserver(){return this.observer.checkout()}async runTests(N,$=A.CancellationToken.None){const U=_(N);if(!U)throw new Error("The request passed to `vscode.test.runTests` must include a profile");const x=this.controllers.get(U.controllerId);if(!x)throw new Error("Controller not found");await this.proxy.$runTests({isUiTriggered:!1,targets:[{testIds:N.include?.map(X=>o.TestId.fromExtHostTestItem(X,x.collection.root.id).toString())??[x.collection.root.id],profileGroup:O[U.kind],profileId:U.profileId,controllerId:U.controllerId}],exclude:N.exclude?.map(X=>X.id)},$)}$syncTests(){for(const{collection:N}of this.controllers.values())N.flushDiff();return Promise.resolve()}$provideFileCoverage(N,$,U){return(0,w.mapFind)(this.runTracker.trackers,X=>X.id===N?X.getCoverage($):void 0)?.provideFileCoverage(U)??Promise.resolve([])}$resolveFileCoverage(N,$,U,x){return(0,w.mapFind)(this.runTracker.trackers,K=>K.id===N?K.getCoverage($):void 0)?.resolveFileCoverage(U,x)??Promise.resolve([])}$configureRunProfile(N,$){this.controllers.get(N)?.profiles.get($)?.configureHandler?.()}async $refreshTests(N,$){await this.controllers.get(N)?.controller.refreshHandler?.($)}$publishTestResults(N){this.results=Object.freeze(N.map($=>(0,y.deepFreeze)(r.TestResults.to($))).concat(this.results).sort(($,U)=>U.completedAt-$.completedAt).slice(0,32)),this.resultsChangedEmitter.fire()}async $expandTest(N,$){const U=this.controllers.get(o.TestId.fromString(N).controllerId)?.collection;U&&(await U.expand(N,$<0?1/0:$),U.flushDiff())}$acceptDiff(N){this.observer.applyDiff(N.map(P.TestsDiffOp.deserialize))}async $runControllerTests(N,$){return Promise.all(N.map(U=>this.runControllerTestRequest(U,!1,$)))}async $startContinuousRun(N,$){const U=new A.CancellationTokenSource($),x=await Promise.all(N.map(X=>this.runControllerTestRequest(X,!0,U.token)));return!$.isCancellationRequested&&!x.some(X=>X.error)&&await new Promise(X=>$.onCancellationRequested(X)),U.dispose(!0),x}async runControllerTestRequest(N,$,U){const x=this.controllers.get(N.controllerId);if(!x)return{};const{collection:X,profiles:K,extension:pe}=x,le=K.get(N.profileId);if(!le)return{};const re=N.testIds.map(ce=>X.tree.get(ce)).filter(E.isDefined),q=N.excludeExtIds.map(ce=>x.collection.tree.get(ce)).filter(E.isDefined).filter(ce=>re.some(se=>se.fullId.compare(ce.fullId)===2));if(!re.length)return{};const oe=new h.TestRunRequest(re.some(ce=>ce.actual instanceof C.TestItemRootImpl)?void 0:re.map(ce=>ce.actual),q.map(ce=>ce.actual),le,$),ve=(0,P.isStartControllerTests)(N)&&this.runTracker.prepareForMainThreadTestRun(oe,S.fromInternal(N,x.collection),pe,U);try{return await le.runHandler(oe,U),{}}catch(ce){return{error:String(ce)}}finally{ve&&(ve.hasRunningTasks&&!U.isCancellationRequested&&await R.Event.toPromise(ve.onEnd),ve.dispose())}}$cancelExtensionTestRun(N){N===void 0?this.runTracker.cancelAllRuns():this.runTracker.cancelRunById(N)}};e.ExtHostTesting=n,e.ExtHostTesting=n=je([He(0,g.IExtHostRpcService)],n);const a=1e4;var l;(function(H){H[H.Running=0]="Running",H[H.Cancelling=1]="Cancelling",H[H.Ended=2]="Ended"})(l||(l={}));class i extends f.Disposable{get hasRunningTasks(){return this.tasks.size>0}get id(){return this.dto.id}constructor(N,$,U,x){super(),this.dto=N,this.proxy=$,this.extension=U,this.state=0,this.tasks=new Map,this.sharedTestIds=new Set,this.endEmitter=this._register(new R.Emitter),this.onEnd=this.endEmitter.event,this.cts=this._register(new A.CancellationTokenSource(x));const X=this._register(new M.RunOnceScheduler(()=>this.forciblyEndTasks(),a));this._register(this.cts.token.onCancellationRequested(()=>X.schedule()))}cancel(){this.state===0?(this.cts.cancel(),this.state=1):this.state===1&&this.forciblyEndTasks()}getCoverage(N){return this.tasks.get(N)?.coverage}createRun(N){const $=this.dto.id,U=this.dto.controllerId,x=(0,t.generateUuid)(),X=new k(this.proxy,$,x),K=q=>(oe,...ve)=>{if(le){console.warn(`Setting the state of test "${oe.id}" is a no-op after the run ends.`);return}this.dto.isIncluded(oe)&&(this.ensureTestIsKnown(oe),q(oe,...ve))},pe=(q,oe)=>{const ve=oe instanceof Array?oe.map(r.TestMessage.from):[r.TestMessage.from(oe)];if(ve.some(ce=>ce.contextValue!==void 0)&&(0,T.checkProposedApiEnabled)(this.extension,"testMessageContextValue"),q.uri&&q.range){const ce={range:r.Range.from(q.range),uri:q.uri};for(const se of ve)se.location=se.location||ce}this.proxy.$appendTestMessagesInRun($,x,o.TestId.fromExtHostTestItem(q,U).toString(),ve)};let le=!1;const re={isPersisted:this.dto.isPersisted,token:this.cts.token,name:N,get coverageProvider(){return X.coverageProvider},set coverageProvider(q){X.coverageProvider=q},enqueued:K(q=>{this.proxy.$updateTestStateInRun($,x,o.TestId.fromExtHostTestItem(q,U).toString(),1)}),skipped:K(q=>{this.proxy.$updateTestStateInRun($,x,o.TestId.fromExtHostTestItem(q,U).toString(),5)}),started:K(q=>{this.proxy.$updateTestStateInRun($,x,o.TestId.fromExtHostTestItem(q,U).toString(),2)}),errored:K((q,oe,ve)=>{pe(q,oe),this.proxy.$updateTestStateInRun($,x,o.TestId.fromExtHostTestItem(q,U).toString(),6,ve)}),failed:K((q,oe,ve)=>{pe(q,oe),this.proxy.$updateTestStateInRun($,x,o.TestId.fromExtHostTestItem(q,U).toString(),4,ve)}),passed:K((q,oe)=>{this.proxy.$updateTestStateInRun($,x,o.TestId.fromExtHostTestItem(q,this.dto.controllerId).toString(),3,oe)}),appendOutput:(q,oe,ve)=>{le||(ve&&(this.dto.isIncluded(ve)?this.ensureTestIsKnown(ve):ve=void 0),this.proxy.$appendOutputToRun($,x,d.VSBuffer.fromString(q),oe&&r.location.from(oe),ve&&o.TestId.fromExtHostTestItem(ve,U).toString()))},end:()=>{le||(le=!0,this.proxy.$finishedTestRunTask($,x),this.tasks.delete(x),this.tasks.size||this.markEnded())}};return this.tasks.set(x,{run:re,coverage:X}),this.proxy.$startedTestRunTask($,{id:x,name:N,running:!0}),re}forciblyEndTasks(){for(const{run:N}of this.tasks.values())N.end()}markEnded(){this.state!==2&&(this.state=2,this.endEmitter.fire())}ensureTestIsKnown(N){if(!(N instanceof C.TestItemImpl))throw new b.InvalidTestItemError(N.id);if(this.sharedTestIds.has(o.TestId.fromExtHostTestItem(N,this.dto.controllerId).toString()))return;const $=[],U=this.dto.colllection.root;for(;;){const x=r.TestItem.from(N);if($.unshift(x),this.sharedTestIds.has(x.extId)||(this.sharedTestIds.add(x.extId),N===U))break;N=N.parent||U}this.proxy.$addTestsToRun(this.dto.controllerId,this.dto.id,$)}}class c{get trackers(){return this.tracked.values()}constructor(N){this.proxy=N,this.tracked=new Map}prepareForMainThreadTestRun(N,$,U,x){return this.getTracker(N,$,U,x)}cancelRunById(N){for(const $ of this.tracked.values())if($.id===N){$.cancel();return}}cancelAllRuns(){for(const N of this.tracked.values())N.cancel()}createTestRun(N,$,U,x,X,K){const pe=this.tracked.get(x);if(pe)return pe.createRun(X);const le=S.fromPublic($,U,x,K),re=_(x);this.proxy.$startedExtensionTestRun({controllerId:$,continuous:!!x.continuous,profile:re&&{group:O[re.kind],id:re.profileId},exclude:x.exclude?.map(oe=>o.TestId.fromExtHostTestItem(oe,U.root.id).toString())??[],id:le.id,include:x.include?.map(oe=>o.TestId.fromExtHostTestItem(oe,U.root.id).toString())??[U.root.id],persist:K});const q=this.getTracker(x,le,N);return q.onEnd(()=>{this.proxy.$finishedExtensionTestRun(le.id),q.dispose()}),q.createRun(X)}getTracker(N,$,U,x){const X=new i($,this.proxy,U,x);return this.tracked.set(N,X),X.onEnd(()=>this.tracked.delete(N)),X}}e.TestRunCoordinator=c;const _=H=>{if(H.profile){if(!(H.profile instanceof L))throw new Error("TestRunRequest.profile is not an instance created from TestController.createRunProfile");return H.profile}};class S{static fromPublic(N,$,U,x){return new S(N,(0,t.generateUuid)(),U.include?.map(X=>o.TestId.fromExtHostTestItem(X,N).toString())??[N],U.exclude?.map(X=>o.TestId.fromExtHostTestItem(X,N).toString())??[],x,$)}static fromInternal(N,$){return new S(N.controllerId,N.runId,N.testIds,N.excludeExtIds,!0,$)}constructor(N,$,U,x,X,K){this.controllerId=N,this.id=$,this.isPersisted=X,this.colllection=K,this.includePrefix=U.map(pe=>pe+"\0"),this.excludePrefix=x.map(pe=>pe+"\0")}isIncluded(N){const $=o.TestId.fromExtHostTestItem(N,this.controllerId).toString()+"\0";for(const U of this.excludePrefix)if($===U||$.startsWith(U))return!1;for(const U of this.includePrefix)if($===U||$.startsWith(U))return!0;return!1}}e.TestRunDto=S;class k{set coverageProvider(N){if(this._coverageProvider)throw new Error("The TestCoverageProvider cannot be replaced after being provided");N&&(this._coverageProvider=N,this.proxy.$signalCoverageAvailable(this.runId,this.taskId))}get coverageProvider(){return this._coverageProvider}constructor(N,$,U){this.proxy=N,this.runId=$,this.taskId=U}async provideFileCoverage(N){if(!this._coverageProvider)return[];this.fileCoverage||(this.fileCoverage=(async()=>this._coverageProvider.provideFileCoverage(N))());try{return(await this.fileCoverage)?.map(r.TestCoverage.fromFile)??[]}catch($){throw this.fileCoverage=void 0,$}}async resolveFileCoverage(N,$){const U=await this.fileCoverage;let x=U?.[N];return!this._coverageProvider||!U||!x?[]:(x.detailedCoverage||(x=U[N]=await this._coverageProvider.resolveFileCoverage?.(x,$)??x),x.detailedCoverage?.map(r.TestCoverage.fromDetailed)??[])}}class m{get isEmpty(){return this.added.size===0&&this.removed.size===0&&this.updated.size===0}constructor(N){this.emitter=N,this.added=new Set,this.updated=new Set,this.removed=new Set,this.alreadyRemoved=new Set}add(N){this.added.add(N)}update(N){Object.assign(N.revived,r.TestItem.toPlain(N.item)),this.added.has(N)||this.updated.add(N)}remove(N){if(this.added.has(N)){this.added.delete(N);return}this.updated.delete(N);const $=o.TestId.parentId(N.item.extId);if($&&this.alreadyRemoved.has($.toString())){this.alreadyRemoved.add(N.item.extId);return}this.removed.add(N)}getChangeEvent(){const{added:N,updated:$,removed:U}=this;return{get added(){return[...N].map(x=>x.revived)},get updated(){return[...$].map(x=>x.revived)},get removed(){return[...U].map(x=>x.revived)}}}complete(){this.isEmpty||this.emitter.fire(this.getChangeEvent())}}class v extends P.AbstractIncrementalTestCollection{constructor(){super(...arguments),this.changeEmitter=new R.Emitter,this.onDidChangeTests=this.changeEmitter.event}get rootTests(){return super.roots}getMirroredTestDataById(N){return this.items.get(N)}getMirroredTestDataByReference(N){return this.items.get(N.id)}createItem(N,$){return{...N,revived:r.TestItem.toPlain(N.item),depth:$?$.depth+1:0,children:new Set}}createChangeCollector(){return new m(this.changeEmitter)}}class D{constructor(N){this.proxy=N}checkout(){this.current||(this.current=this.createObserverData());const N=this.current;return N.observers++,{onDidChangeTest:N.tests.onDidChangeTests,get tests(){return[...N.tests.rootTests].map($=>$.revived)},dispose:(0,u.once)(()=>{--N.observers===0&&(this.proxy.$unsubscribeFromDiffs(),this.current=void 0)})}}getMirroredTestDataByReference(N){return this.current?.tests.getMirroredTestDataByReference(N)}applyDiff(N){this.current?.tests.apply(N)}createObserverData(){const N=new v;return this.proxy.$subscribeToDiffs(),{observers:0,tests:N}}}class L{#e;#t;get label(){return this._label}set label(N){N!==this._label&&(this._label=N,this.#e.$updateTestRunConfig(this.controllerId,this.profileId,{label:N}))}get supportsContinuousRun(){return this._supportsContinuousRun}set supportsContinuousRun(N){N!==this._supportsContinuousRun&&(this._supportsContinuousRun=N,this.#e.$updateTestRunConfig(this.controllerId,this.profileId,{supportsContinuousRun:N}))}get isDefault(){return this._isDefault}set isDefault(N){N!==this._isDefault&&(this._isDefault=N,this.#e.$updateTestRunConfig(this.controllerId,this.profileId,{isDefault:N}))}get tag(){return this._tag}set tag(N){N?.id!==this._tag?.id&&(this._tag=N,this.#e.$updateTestRunConfig(this.controllerId,this.profileId,{tag:N?r.TestTag.namespace(this.controllerId,N.id):null}))}get configureHandler(){return this._configureHandler}set configureHandler(N){N!==this._configureHandler&&(this._configureHandler=N,this.#e.$updateTestRunConfig(this.controllerId,this.profileId,{hasConfigurationHandler:!!N}))}constructor(N,$,U,x,X,K,pe,le=!1,re=void 0,q=!1){this.controllerId=U,this.profileId=x,this._label=X,this.kind=K,this.runHandler=pe,this._isDefault=le,this._tag=re,this._supportsContinuousRun=q,this.#e=N,this.#t=$,$.set(x,this);const oe=O[K];if(typeof oe!="number")throw new Error(`Unknown TestRunProfile.group ${K}`);this.#e.$publishTestRunProfile({profileId:x,controllerId:U,tag:re?r.TestTag.namespace(this.controllerId,re.id):null,label:X,group:oe,isDefault:le,hasConfigurationHandler:!1,supportsContinuousRun:q})}dispose(){this.#t?.delete(this.profileId)&&(this.#t=void 0,this.#e.$removeTestProfile(this.controllerId,this.profileId))}}e.TestRunProfileImpl=L;const O={[h.TestRunProfileKind.Coverage]:8,[h.TestRunProfileKind.Debug]:4,[h.TestRunProfileKind.Run]:2}}),define(ye[347],Ce([1,0,19,8,4,3,145,11,7]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostEditors=void 0;class f{constructor(E,t){this._extHostDocumentsAndEditors=t,this._onDidChangeTextEditorSelection=new d.Emitter({onListenerError:M.onUnexpectedExternalError}),this._onDidChangeTextEditorOptions=new d.Emitter({onListenerError:M.onUnexpectedExternalError}),this._onDidChangeTextEditorVisibleRanges=new d.Emitter({onListenerError:M.onUnexpectedExternalError}),this._onDidChangeTextEditorViewColumn=new d.Emitter({onListenerError:M.onUnexpectedExternalError}),this._onDidChangeActiveTextEditor=new d.Emitter({onListenerError:M.onUnexpectedExternalError}),this._onDidChangeVisibleTextEditors=new d.Emitter({onListenerError:M.onUnexpectedExternalError}),this.onDidChangeTextEditorSelection=this._onDidChangeTextEditorSelection.event,this.onDidChangeTextEditorOptions=this._onDidChangeTextEditorOptions.event,this.onDidChangeTextEditorVisibleRanges=this._onDidChangeTextEditorVisibleRanges.event,this.onDidChangeTextEditorViewColumn=this._onDidChangeTextEditorViewColumn.event,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this._proxy=E.getProxy(A.MainContext.MainThreadTextEditors),this._extHostDocumentsAndEditors.onDidChangeVisibleTextEditors(s=>this._onDidChangeVisibleTextEditors.fire(s)),this._extHostDocumentsAndEditors.onDidChangeActiveTextEditor(s=>this._onDidChangeActiveTextEditor.fire(s))}getActiveTextEditor(){return this._extHostDocumentsAndEditors.activeEditor()}getVisibleTextEditors(E){const t=this._extHostDocumentsAndEditors.allEditors();return E?t:t.map(s=>s.value)}async showTextDocument(E,t,s){let g;typeof t=="number"?g={position:u.ViewColumn.from(t),preserveFocus:s}:typeof t=="object"?g={position:u.ViewColumn.from(t.viewColumn),preserveFocus:t.preserveFocus,selection:typeof t.selection=="object"?u.Range.from(t.selection):void 0,pinned:typeof t.preview=="boolean"?!t.preview:void 0}:g={preserveFocus:!1};const C=await this._proxy.$tryShowTextDocument(E.uri,g),r=C&&this._extHostDocumentsAndEditors.getEditor(C);if(r)return r.value;throw C?new Error(`Could NOT open editor for "${E.uri.toString()}" because another editor opened in the meantime.`):new Error(`Could NOT open editor for "${E.uri.toString()}".`)}createTextEditorDecorationType(E,t){return new R.TextEditorDecorationType(this._proxy,E,t).value}$acceptEditorPropertiesChanged(E,t){const s=this._extHostDocumentsAndEditors.getEditor(E);if(!s)throw new Error("unknown text editor");if(t.options&&s._acceptOptions(t.options),t.selections){const g=t.selections.selections.map(u.Selection.to);s._acceptSelections(g)}if(t.visibleRanges){const g=w.coalesce(t.visibleRanges.map(u.Range.to));s._acceptVisibleRanges(g)}if(t.options&&this._onDidChangeTextEditorOptions.fire({textEditor:s.value,options:{...t.options,lineNumbers:u.TextEditorLineNumbersStyle.to(t.options.lineNumbers)}}),t.selections){const g=p.TextEditorSelectionChangeKind.fromValue(t.selections.source),C=t.selections.selections.map(u.Selection.to);this._onDidChangeTextEditorSelection.fire({textEditor:s.value,selections:C,kind:g})}if(t.visibleRanges){const g=w.coalesce(t.visibleRanges.map(u.Range.to));this._onDidChangeTextEditorVisibleRanges.fire({textEditor:s.value,visibleRanges:g})}}$acceptEditorPositionData(E){for(const t in E){const s=this._extHostDocumentsAndEditors.getEditor(t);if(!s)throw new Error("Unknown text editor");const g=u.ViewColumn.to(E[t]);s.value.viewColumn!==g&&(s._acceptViewColumn(g),this._onDidChangeTextEditorViewColumn.fire({textEditor:s.value,viewColumn:g}))}}getDiffInformation(E){return Promise.resolve(this._proxy.$getDiffInformation(E))}}e.ExtHostEditors=f}),define(ye[348],Ce([1,0,2,6,3,5,7,11,23,18]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTimeline=e.IExtHostTimeline=void 0,e.IExtHostTimeline=(0,M.createDecorator)("IExtHostTimeline");class y{constructor(s,g){this._providers=new Map,this._itemsBySourceAndUriMap=new Map,this._proxy=s.getProxy(d.MainContext.MainThreadTimeline),g.registerArgumentProcessor({processArgument:(C,r)=>{if(C&&C.$mid===12)if(this._providers.get(C.source)&&p.ExtensionIdentifier.equals(r,this._providers.get(C.source)?.extension)){const h=C.uri===void 0?void 0:w.URI.revive(C.uri);return this._itemsBySourceAndUriMap.get(C.source)?.get(E(h))?.get(C.handle)}else return;return C}})}async $getTimeline(s,g,C,r){return this._providers.get(s)?.provider.provideTimeline(w.URI.revive(g),C,r)}registerTimelineProvider(s,g,C,r){const h=new A.DisposableStore,o=this.convertTimelineItem(g.id,r,h).bind(this);let b;g.onDidChange&&(b=g.onDidChange(T=>this._proxy.$emitTimelineChangeEvent({uri:void 0,reset:!0,...T,id:g.id}),this));const P=this._itemsBySourceAndUriMap;return this.registerTimelineProviderCore({...g,scheme:s,onDidChange:void 0,async provideTimeline(T,n,a){n?.resetCache&&(h.clear(),P.get(g.id)?.clear());const l=await g.provideTimeline(T,n,a);if(l==null)return;const i=o(T,n);return{...l,source:g.id,items:l.items.map(i)}},dispose(){for(const T of P.values())T.get(g.id)?.clear();b?.dispose(),h.dispose()}},C)}convertTimelineItem(s,g,C){return(r,h)=>{let o;if(h?.cacheResults){let b=this._itemsBySourceAndUriMap.get(s);b===void 0&&(b=new Map,this._itemsBySourceAndUriMap.set(s,b));const P=E(r);o=b.get(P),o===void 0&&(o=new Map,b.set(P,o))}return b=>{const{iconPath:P,...T}=b,n=`${s}|${b.id??b.timestamp}`;o?.set(n,b);let a,l,i;b.iconPath&&(P instanceof R.ThemeIcon?i={id:P.id,color:P.color}:w.URI.isUri(P)?(a=P,l=P):{light:a,dark:l}=P);let c;return R.MarkdownString.isMarkdownString(T.tooltip)?c=u.MarkdownString.from(T.tooltip):(0,f.isString)(T.tooltip)?c=T.tooltip:R.MarkdownString.isMarkdownString(T.detail)?(console.warn("Using deprecated TimelineItem.detail, migrate to TimelineItem.tooltip"),c=u.MarkdownString.from(T.detail)):(0,f.isString)(T.detail)&&(console.warn("Using deprecated TimelineItem.detail, migrate to TimelineItem.tooltip"),c=T.detail),{...T,id:T.id??void 0,handle:n,source:s,command:b.command?g.toInternal(b.command,C):void 0,icon:a,iconDark:l,themeIcon:i,tooltip:c,accessibilityInformation:b.accessibilityInformation}}}}registerTimelineProviderCore(s,g){if(this._providers.get(s.id))throw new Error(`Timeline Provider ${s.id} already exists.`);return this._proxy.$registerTimelineProvider({id:s.id,label:s.label,scheme:s.scheme}),this._providers.set(s.id,{provider:s,extension:g}),(0,A.toDisposable)(()=>{for(const r of this._itemsBySourceAndUriMap.values())r.get(s.id)?.clear();this._providers.delete(s.id),this._proxy.$unregisterTimelineProvider(s.id),s.dispose()})}}e.ExtHostTimeline=y;function E(t){return t?.toString()}}),define(ye[67],Ce([1,0,22,4,5,219,6,12,104,3,26,20,7]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTunnelService=e.IExtHostTunnelService=e.TunnelDtoConverter=void 0;class s extends p.DisposableTunnel{}var g;(function(r){function h(b){return{remoteAddress:b.remoteAddress,localAddress:b.localAddress,public:!!b.public,privacy:b.privacy??(b.public?p.TunnelPrivacyId.Public:p.TunnelPrivacyId.Private),protocol:b.protocol}}r.fromApiTunnel=h;function o(b){return{remoteAddress:{host:b.tunnelRemoteHost,port:b.tunnelRemotePort},localAddress:b.localAddress,public:b.privacy!==p.TunnelPrivacyId.ConstantPrivate&&b.privacy!==p.TunnelPrivacyId.ConstantPrivate,privacy:b.privacy,protocol:b.protocol}}r.fromServiceTunnel=o})(g||(e.TunnelDtoConverter=g={})),e.IExtHostTunnelService=(0,R.createDecorator)("IExtHostTunnelService");let C=class extends d.Disposable{constructor(h,o,b){super(),this.logService=b,this._showCandidatePort=()=>Promise.resolve(!0),this._extensionTunnels=new Map,this._onDidChangeTunnels=new M.Emitter,this.onDidChangeTunnels=this._onDidChangeTunnels.event,this._providerHandleCounter=0,this._portAttributesProviders=new Map,this._proxy=h.getProxy(f.MainContext.MainThreadTunnelService)}async openTunnel(h,o){this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) ${h.identifier.value} called openTunnel API for ${o.remoteAddress.host}:${o.remoteAddress.port}.`);const b=await this._proxy.$openTunnel(o,h.displayName);if(b){const P=new s(b.remoteAddress,b.localAddress,()=>this._proxy.$closeTunnel(b.remoteAddress));return this._register(P),P}}async getTunnels(){return this._proxy.$getTunnels()}nextPortAttributesProviderHandle(){return this._providerHandleCounter++}registerPortsAttributesProvider(h,o){const b=this.nextPortAttributesProviderHandle();return this._portAttributesProviders.set(b,{selector:h,provider:o}),this._proxy.$registerPortsAttributesProvider(h,b),new t.Disposable(()=>{this._portAttributesProviders.delete(b),this._proxy.$unregisterPortsAttributesProvider(b)})}async $providePortAttributes(h,o,b,P,T){const n=[];for(const l of h){const i=this._portAttributesProviders.get(l);if(!i)return[];n.push(...await Promise.all(o.map(async c=>{let _;try{_=await i.provider.providePortAttributes({port:c,pid:b,commandLine:P},T)}catch{_=await i.provider.providePortAttributes(c,b,P,T)}return{providedAttributes:_,port:c}})))}const a=n.filter(l=>!!l.providedAttributes);return a.length>0?a.map(l=>({autoForwardAction:l.providedAttributes.autoForwardAction,port:l.port})):[]}async $registerCandidateFinder(h){}registerTunnelProvider(h,o){if(this._forwardPortProvider)throw new Error("A tunnel provider has already been registered. Only the first tunnel provider to be registered will be used.");this._forwardPortProvider=async(P,T)=>await h.provideTunnel(P,T,new w.CancellationTokenSource().token)??void 0;const b=o.tunnelFeatures?{elevation:!!o.tunnelFeatures?.elevation,privacyOptions:o.tunnelFeatures?.privacyOptions}:void 0;return this._proxy.$setTunnelProvider(b),Promise.resolve((0,d.toDisposable)(()=>{this._forwardPortProvider=void 0,this._proxy.$setTunnelProvider(void 0)}))}async setTunnelFactory(h,o){if(h){h.candidatePortSource!==void 0&&this._proxy.$setCandidatePortSource(h.candidatePortSource),h.showCandidatePort&&(this._showCandidatePort=h.showCandidatePort,this._proxy.$setCandidateFilter());const b=h.tunnelFactory??(o?this.makeManagedTunnelFactory(o):void 0);if(b){this._forwardPortProvider=b;let P=h.tunnelFeatures?.privacyOptions??[];h.tunnelFeatures?.public&&P.length===0&&(P=[{id:"private",label:A.localize(0,null),themeIcon:"lock"},{id:"public",label:A.localize(1,null),themeIcon:"eye"}]);const T=h.tunnelFeatures?{elevation:!!h.tunnelFeatures?.elevation,public:!!h.tunnelFeatures?.public,privacyOptions:P}:void 0;this._proxy.$setTunnelProvider(T)}}else this._forwardPortProvider=void 0;return(0,d.toDisposable)(()=>{this._forwardPortProvider=void 0})}makeManagedTunnelFactory(h){}async $closeTunnel(h,o){if(this._extensionTunnels.has(h.host)){const b=this._extensionTunnels.get(h.host);b.has(h.port)&&(o&&b.get(h.port).disposeListener.dispose(),await b.get(h.port).tunnel.dispose(),b.delete(h.port))}}async $onDidTunnelsChange(){this._onDidChangeTunnels.fire()}async $forwardPort(h,o){if(this._forwardPortProvider)try{this.logService.trace("ForwardedPorts: (ExtHostTunnelService) Getting tunnel from provider.");const b=this._forwardPortProvider(h,o);if(this.logService.trace("ForwardedPorts: (ExtHostTunnelService) Got tunnel promise from provider."),b!==void 0){const P=await b;if(this.logService.trace("ForwardedPorts: (ExtHostTunnelService) Successfully awaited tunnel from provider."),P===void 0){this.logService.error("ForwardedPorts: (ExtHostTunnelService) Resolved tunnel is undefined");return}this._extensionTunnels.has(h.remoteAddress.host)||this._extensionTunnels.set(h.remoteAddress.host,new Map);const T=this._register(P.onDidDispose(()=>(this.logService.trace("ForwardedPorts: (ExtHostTunnelService) Extension fired tunnel's onDidDispose."),this._proxy.$closeTunnel(P.remoteAddress))));return this._extensionTunnels.get(h.remoteAddress.host).set(h.remoteAddress.port,{tunnel:P,disposeListener:T}),g.fromApiTunnel(P)}else this.logService.trace("ForwardedPorts: (ExtHostTunnelService) Tunnel is undefined")}catch(b){if(this.logService.trace("ForwardedPorts: (ExtHostTunnelService) tunnel provider error"),b instanceof Error)return b.message}}async $applyCandidateFilter(h){const o=await Promise.all(h.map(P=>this._showCandidatePort(P.host,P.port,P.detail??""))),b=h.filter((P,T)=>o[T]);return this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) filtered from ${h.map(P=>P.port).join(", ")} to ${b.map(P=>P.port).join(", ")}`),b}};e.ExtHostTunnelService=C,e.ExtHostTunnelService=C=je([He(0,E.IExtHostRpcService),He(1,y.IExtHostInitDataService),He(2,u.ILogService)],C)}),define(ye[349],Ce([1,0,5,15,2,3]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostUriOpeners=void 0;class R{static{this.supportedSchemes=new Set([M.Schemas.http,M.Schemas.https])}constructor(p){this._openers=new Map,this._proxy=p.getProxy(A.MainContext.MainThreadUriOpeners)}registerExternalUriOpener(p,f,y,E){if(this._openers.has(f))throw new Error(`Opener with id '${f}' already registered`);const t=E.schemes.find(s=>!R.supportedSchemes.has(s));if(t)throw new Error(`Scheme '${t}' is not supported. Only http and https are currently supported.`);return this._openers.set(f,y),this._proxy.$registerUriOpener(f,E.schemes,p,E.label),(0,w.toDisposable)(()=>{this._openers.delete(f),this._proxy.$unregisterUriOpener(f)})}async $canOpenUri(p,f,y){const E=this._openers.get(p);if(!E)throw new Error(`Unknown opener with id: ${p}`);const t=d.URI.revive(f);return E.canOpenExternalUri(t,y)}async $openUri(p,f,y){const E=this._openers.get(p);if(!E)throw new Error(`Unknown opener id: '${p}'`);return E.openExternalUri(d.URI.revive(f.resolvedUri),{sourceUri:d.URI.revive(f.sourceUri)},y)}}e.ExtHostUriOpeners=R}),define(ye[350],Ce([1,0,3,2,5,8,23]),function(ge,e,w,M,d,A,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostUrls=void 0;class u{static{this.HandlePool=0}constructor(f){this.handles=new R.ExtensionIdentifierSet,this.handlers=new Map,this._proxy=f.getProxy(w.MainContext.MainThreadUrls)}registerUriHandler(f,y){const E=f.identifier;if(this.handles.has(E))throw new Error(`Protocol handler already registered for extension ${E}`);const t=u.HandlePool++;return this.handles.add(E),this.handlers.set(t,y),this._proxy.$registerUriHandler(t,E,f.displayName||f.name),(0,d.toDisposable)(()=>{this.handles.delete(E),this.handlers.delete(t),this._proxy.$unregisterUriHandler(t)})}$handleExternalUri(f,y){const E=this.handlers.get(f);if(!E)return Promise.resolve(void 0);try{E.handleUri(M.URI.revive(y))}catch(t){(0,A.onUnexpectedError)(t)}return Promise.resolve(void 0)}async createAppUri(f){return M.URI.revive(await this._proxy.$createAppUri(f))}}e.ExtHostUrls=u}),define(ye[91],Ce([1,0,4,15,24,2,230,264,107,3]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeWebviewOptions=e.toExtensionData=e.ExtHostWebviews=e.shouldSerializeBuffersForPostMessage=e.ExtHostWebview=void 0;class y{#e;#t;#i;#u;#c;#n;#s;#r;#o;#a;#l;#h;constructor(b,P,T,n,a,l,i){this.#s="",this.#o=!1,this.#a=!1,this._onMessageEmitter=new w.Emitter,this.onDidReceiveMessage=this._onMessageEmitter.event,this.#d=new w.Emitter,this._onDidDispose=this.#d.event,this.#e=b,this.#t=P,this.#r=T,this.#u=n,this.#c=a,this.#n=l,this.#l=E(l),this.#h=t(l),this.#i=i}#d;dispose(){this.#o=!0,this.#d.fire(),this.#d.dispose(),this._onMessageEmitter.dispose()}asWebviewUri(b){return this.#a=!0,(0,p.asWebviewUri)(b,this.#u)}get cspSource(){const b=this.#n.extensionLocation;if(b.scheme===M.Schemas.https||b.scheme===M.Schemas.http){let P=b.toString();return P.endsWith("/")||(P+="/"),P+" "+p.webviewGenericCspSource}return p.webviewGenericCspSource}get html(){return this.assertNotDisposed(),this.#s}set html(b){this.assertNotDisposed(),this.#s!==b&&(this.#s=b,this.#h&&!this.#a&&/(["'])vscode-resource:([^\s'"]+?)(["'])/i.test(b)&&(this.#a=!0,this.#i.report("Webview vscode-resource: uris",this.#n,"Please migrate to use the 'webview.asWebviewUri' api instead: https://aka.ms/vscode-webview-use-aswebviewuri")),this.#t.$setHtml(this.#e,this.rewriteOldResourceUrlsIfNeeded(b)))}get options(){return this.assertNotDisposed(),this.#r}set options(b){this.assertNotDisposed(),d.equals(this.#r,b)||this.#t.$setOptions(this.#e,C(this.#n,this.#c,b)),this.#r=b}async postMessage(b){if(this.#o)return!1;const P=(0,u.serializeWebviewMessage)(b,{serializeBuffersForPostMessage:this.#l});return this.#t.$postMessage(this.#e,P.message,...P.buffers)}assertNotDisposed(){if(this.#o)throw new Error("Webview is disposed")}rewriteOldResourceUrlsIfNeeded(b){if(!this.#h)return b;const P=this.#n.extensionLocation?.scheme===M.Schemas.vscodeRemote,T=this.#n.extensionLocation.scheme===M.Schemas.vscodeRemote?this.#n.extensionLocation.authority:void 0;return b.replace(/(["'])(?:vscode-resource):(\/\/([^\s\/'"]+?)(?=\/))?([^\s'"]+?)(["'])/gi,(n,a,l,i,c,_)=>{const S=A.URI.from({scheme:i||"file",path:decodeURIComponent(c)}),k=(0,p.asWebviewUri)(S,{isRemote:P,authority:T}).toString();return`${a}${k}${_}`}).replace(/(["'])(?:vscode-webview-resource):(\/\/[^\s\/'"]+\/([^\s\/'"]+?)(?=\/))?([^\s'"]+?)(["'])/gi,(n,a,l,i,c,_)=>{const S=A.URI.from({scheme:i||"file",path:decodeURIComponent(c)}),k=(0,p.asWebviewUri)(S,{isRemote:P,authority:T}).toString();return`${a}${k}${_}`})}}e.ExtHostWebview=y;function E(o){try{const b=(0,R.normalizeVersion)((0,R.parseVersion)(o.engines.vscode));return!!b&&b.majorBase>=1&&b.minorBase>=57}catch{return!1}}e.shouldSerializeBuffersForPostMessage=E;function t(o){try{const b=(0,R.normalizeVersion)((0,R.parseVersion)(o.engines.vscode));return b?b.majorBase<1||b.majorBase===1&&b.minorBase<60:!1}catch{return!1}}class s{constructor(b,P,T,n,a){this.remoteInfo=P,this.workspace=T,this._logService=n,this._deprecationService=a,this._webviews=new Map,this._webviewProxy=b.getProxy(f.MainContext.MainThreadWebviews)}$onMessage(b,P,T){const n=this.getWebview(b);if(n){const{message:a}=(0,u.deserializeWebviewMessage)(P,T.value);n._onMessageEmitter.fire(a)}}$onMissingCsp(b,P){this._logService.warn(`${P} created a webview without a content security policy: https://aka.ms/vscode-webview-missing-csp`)}createNewWebview(b,P,T){const n=new y(b,this._webviewProxy,r(P),this.remoteInfo,this.workspace,T,this._deprecationService);return this._webviews.set(b,n),n._onDidDispose(()=>{this._webviews.delete(b)}),n}deleteWebview(b){this._webviews.delete(b)}getWebview(b){return this._webviews.get(b)}}e.ExtHostWebviews=s;function g(o){return{id:o.identifier,location:o.extensionLocation}}e.toExtensionData=g;function C(o,b,P){return{enableCommandUris:P.enableCommandUris,enableScripts:P.enableScripts,enableForms:P.enableForms,portMapping:P.portMapping,localResourceRoots:P.localResourceRoots||h(o,b)}}e.serializeWebviewOptions=C;function r(o){return{enableCommandUris:o.enableCommandUris,enableScripts:o.enableScripts,enableForms:o.enableForms,portMapping:o.portMapping,localResourceRoots:o.localResourceRoots?.map(b=>A.URI.from(b))}}function h(o,b){return[...(b?.getWorkspaceFolders()||[]).map(P=>P.uri),o.extensionLocation]}}),define(ye[351],Ce([1,0,22,72,5,15,25,2,11,91,86,3,7]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostCustomEditors=void 0;class s{constructor(a,l){this.document=a,this._storagePath=l,this._backupCounter=1,this._edits=new y.Cache("custom documents")}addEdit(a){return this._edits.add([a])}async undo(a,l){await this.getEdit(a).undo(),l||this.disposeBackup()}async redo(a,l){await this.getEdit(a).redo(),l||this.disposeBackup()}disposeEdits(a){for(const l of a)this._edits.delete(l)}getNewBackupUri(){if(!this._storagePath)throw new Error("Backup requires a valid storage path");const a=T(this.document.uri)+this._backupCounter++;return(0,R.joinPath)(this._storagePath,a)}updateBackup(a){this._backup?.delete(),this._backup=a}disposeBackup(){this._backup?.delete(),this._backup=void 0}getEdit(a){const l=this._edits.get(a,0);if(!l)throw new Error("No edit found");return l}}class g{constructor(){this._documents=new Map}get(a,l){return this._documents.get(this.key(a,l))}add(a,l,i){const c=this.key(a,l.uri);if(this._documents.has(c))throw new Error(`Document already exists for viewType:${a} resource:${l.uri}`);const _=new s(l,i);return this._documents.set(c,_),_}delete(a,l){const i=this.key(a,l.uri);this._documents.delete(i)}key(a,l){return`${a}@@@${l}`}}var C;(function(n){n[n.Text=0]="Text",n[n.Custom=1]="Custom"})(C||(C={}));class r{constructor(){this._providers=new Map}addTextProvider(a,l,i){return this.add(0,a,l,i)}addCustomProvider(a,l,i){return this.add(1,a,l,i)}get(a){return this._providers.get(a)}add(a,l,i,c){if(this._providers.has(l))throw new Error(`Provider for viewType:${l} already registered`);return this._providers.set(l,{type:a,extension:i,provider:c}),new t.Disposable(()=>this._providers.delete(l))}}class h{constructor(a,l,i,c,_){this._extHostDocuments=l,this._extensionStoragePaths=i,this._extHostWebview=c,this._extHostWebviewPanels=_,this._editorProviders=new r,this._documents=new g,this._proxy=a.getProxy(E.MainContext.MainThreadCustomEditors)}registerCustomEditorProvider(a,l,i,c){const _=new d.DisposableStore;return b(i)?(_.add(this._editorProviders.addTextProvider(l,a,i)),this._proxy.$registerTextEditorProvider((0,f.toExtensionData)(a),l,c.webviewOptions||{},{supportsMove:!!i.moveCustomTextEditor},(0,f.shouldSerializeBuffersForPostMessage)(a))):(_.add(this._editorProviders.addCustomProvider(l,a,i)),o(i)&&_.add(i.onDidChangeCustomDocument(S=>{const k=this.getCustomDocumentEntry(l,S.document.uri);if(P(S)){const m=k.addEdit(S);this._proxy.$onDidEdit(S.document.uri,l,m,S.label)}else this._proxy.$onContentChange(S.document.uri,l)})),this._proxy.$registerCustomEditorProvider((0,f.toExtensionData)(a),l,c.webviewOptions||{},!!c.supportsMultipleEditorsPerDocument,(0,f.shouldSerializeBuffersForPostMessage)(a))),t.Disposable.from(_,new t.Disposable(()=>{this._proxy.$unregisterEditorProvider(l)}))}async $createCustomDocument(a,l,i,c,_){const S=this._editorProviders.get(l);if(!S)throw new Error(`No provider found for '${l}'`);if(S.type!==1)throw new Error(`Invalid provide type for '${l}'`);const k=u.URI.revive(a),m=await S.provider.openCustomDocument(k,{backupId:i,untitledDocumentData:c?.buffer},_);let v;return o(S.provider)&&this._extensionStoragePaths&&(v=this._extensionStoragePaths.workspaceValue(S.extension)??this._extensionStoragePaths.globalValue(S.extension)),this._documents.add(l,m,v),{editable:o(S.provider)}}async $disposeCustomDocument(a,l){const i=this._editorProviders.get(l);if(!i)throw new Error(`No provider found for '${l}'`);if(i.type!==1)throw new Error(`Invalid provider type for '${l}'`);const c=u.URI.revive(a),{document:_}=this.getCustomDocumentEntry(l,c);this._documents.delete(l,_),_.dispose()}async $resolveCustomEditor(a,l,i,c,_,S){const k=this._editorProviders.get(i);if(!k)throw new Error(`No provider found for '${i}'`);const m=p.ViewColumn.to(_),v=this._extHostWebview.createNewWebview(l,c.contentOptions,k.extension),D=this._extHostWebviewPanels.createNewWebviewPanel(l,i,c.title,m,c.options,v,c.active),L=u.URI.revive(a);switch(k.type){case 1:{const{document:O}=this.getCustomDocumentEntry(i,L);return k.provider.resolveCustomEditor(O,D,S)}case 0:{const O=this._extHostDocuments.getDocument(L);return k.provider.resolveCustomTextEditor(O,D,S)}default:throw new Error("Unknown webview provider type")}}$disposeEdits(a,l,i){this.getCustomDocumentEntry(l,a).disposeEdits(i)}async $onMoveCustomEditor(a,l,i){const c=this._editorProviders.get(i);if(!c)throw new Error(`No provider found for '${i}'`);if(!c.provider.moveCustomTextEditor)throw new Error(`Provider does not implement move '${i}'`);const _=this._extHostWebviewPanels.getWebviewPanel(a);if(!_)throw new Error("No webview found");const S=u.URI.revive(l),k=this._extHostDocuments.getDocument(S);await c.provider.moveCustomTextEditor(k,_,w.CancellationToken.None)}async $undo(a,l,i,c){return this.getCustomDocumentEntry(l,a).undo(i,c)}async $redo(a,l,i,c){return this.getCustomDocumentEntry(l,a).redo(i,c)}async $revert(a,l,i){const c=this.getCustomDocumentEntry(l,a);await this.getCustomEditorProvider(l).revertCustomDocument(c.document,i),c.disposeBackup()}async $onSave(a,l,i){const c=this.getCustomDocumentEntry(l,a);await this.getCustomEditorProvider(l).saveCustomDocument(c.document,i),c.disposeBackup()}async $onSaveAs(a,l,i,c){const _=this.getCustomDocumentEntry(l,a);return this.getCustomEditorProvider(l).saveCustomDocumentAs(_.document,u.URI.revive(i),c)}async $backup(a,l,i){const c=this.getCustomDocumentEntry(l,a),S=await this.getCustomEditorProvider(l).backupCustomDocument(c.document,{destination:c.getNewBackupUri()},i);return c.updateBackup(S),S.id}getCustomDocumentEntry(a,l){const i=this._documents.get(a,u.URI.revive(l));if(!i)throw new Error("No custom document found");return i}getCustomEditorProvider(a){const i=this._editorProviders.get(a)?.provider;if(!i||!o(i))throw new Error("Custom document is not editable");return i}}e.ExtHostCustomEditors=h;function o(n){return!!n.onDidChangeCustomDocument}function b(n){return typeof n.resolveCustomTextEditor=="function"}function P(n){return typeof n.undo=="function"&&typeof n.redo=="function"}function T(n){const a=n.scheme===A.Schemas.file||n.scheme===A.Schemas.untitled?n.fsPath:n.toString();return(0,M.hash)(a)+""}}),define(ye[352],Ce([1,0,4,5,2,29,11,91,3,7]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostWebviewPanels=void 0;class y extends M.Disposable{#e;#t;#i;#u;#c;#n;#s;#r;#o;#a;#l;#h;#d;constructor(g,C,r,h){super(),this.#r=void 0,this.#o=!0,this.#l=!1,this.#h=this._register(new w.Emitter),this.onDidDispose=this.#h.event,this.#d=this._register(new w.Emitter),this.onDidChangeViewState=this.#d.event,this.#e=g,this.#t=C,this.#u=r,this.#i=h.viewType,this.#c=h.panelOptions,this.#r=h.viewColumn,this.#n=h.title,this.#a=h.active}dispose(){this.#l||(this.#l=!0,this.#h.fire(),this.#t.$disposeWebview(this.#e),this.#u.dispose(),super.dispose())}get webview(){return this.assertNotDisposed(),this.#u}get viewType(){return this.assertNotDisposed(),this.#i}get title(){return this.assertNotDisposed(),this.#n}set title(g){this.assertNotDisposed(),this.#n!==g&&(this.#n=g,this.#t.$setTitle(this.#e,g))}get iconPath(){return this.assertNotDisposed(),this.#s}set iconPath(g){this.assertNotDisposed(),this.#s!==g&&(this.#s=g,this.#t.$setIconPath(this.#e,d.URI.isUri(g)?{light:g,dark:g}:g))}get options(){return this.#c}get viewColumn(){if(this.assertNotDisposed(),!(typeof this.#r=="number"&&this.#r<0))return this.#r}get active(){return this.assertNotDisposed(),this.#a}get visible(){return this.assertNotDisposed(),this.#o}_updateViewState(g){this.#l||(this.active!==g.active||this.visible!==g.visible||this.viewColumn!==g.viewColumn)&&(this.#a=g.active,this.#o=g.visible,this.#r=g.viewColumn,this.#d.fire({webviewPanel:this}))}reveal(g,C){this.assertNotDisposed(),this.#t.$reveal(this.#e,{viewColumn:typeof g>"u"?void 0:R.ViewColumn.from(g),preserveFocus:!!C})}assertNotDisposed(){if(this.#l)throw new Error("Webview is disposed")}}class E{static newHandle(){return(0,A.generateUuid)()}constructor(g,C,r){this.webviews=C,this.workspace=r,this._webviewPanels=new Map,this._serializers=new Map,this._proxy=g.getProxy(p.MainContext.MainThreadWebviewPanels)}createWebviewPanel(g,C,r,h,o={}){const b=typeof h=="object"?h.viewColumn:h,P={viewColumn:R.ViewColumn.from(b),preserveFocus:typeof h=="object"&&!!h.preserveFocus},T=(0,u.shouldSerializeBuffersForPostMessage)(g),n=E.newHandle();this._proxy.$createWebviewPanel((0,u.toExtensionData)(g),n,C,{title:r,panelOptions:t(o),webviewOptions:(0,u.serializeWebviewOptions)(g,this.workspace,o),serializeBuffersForPostMessage:T},P);const a=this.webviews.createNewWebview(n,o,g);return this.createNewWebviewPanel(n,C,r,b,o,a,!0)}$onDidChangeWebviewPanelViewStates(g){const C=Object.keys(g);C.sort((r,h)=>{const o=g[r],b=g[h];return o.active?1:b.active?-1:+o.visible-+b.visible});for(const r of C){const h=this.getWebviewPanel(r);if(!h)continue;const o=g[r];h._updateViewState({active:o.active,visible:o.visible,viewColumn:R.ViewColumn.to(o.position)})}}async $onDidDisposeWebviewPanel(g){this.getWebviewPanel(g)?.dispose(),this._webviewPanels.delete(g),this.webviews.deleteWebview(g)}registerWebviewPanelSerializer(g,C,r){if(this._serializers.has(C))throw new Error(`Serializer for '${C}' already registered`);return this._serializers.set(C,{serializer:r,extension:g}),this._proxy.$registerSerializer(C,{serializeBuffersForPostMessage:(0,u.shouldSerializeBuffersForPostMessage)(g)}),new f.Disposable(()=>{this._serializers.delete(C),this._proxy.$unregisterSerializer(C)})}async $deserializeWebviewPanel(g,C,r,h){const o=this._serializers.get(C);if(!o)throw new Error(`No serializer found for '${C}'`);const{serializer:b,extension:P}=o,T=this.webviews.createNewWebview(g,r.webviewOptions,P),n=this.createNewWebviewPanel(g,C,r.title,h,r.panelOptions,T,r.active);await b.deserializeWebviewPanel(n,r.state)}createNewWebviewPanel(g,C,r,h,o,b,P){const T=new y(g,this._proxy,b,{viewType:C,title:r,viewColumn:h,panelOptions:o,active:P});return this._webviewPanels.set(g,T),T}getWebviewPanel(g){return this._webviewPanels.get(g)}}e.ExtHostWebviewPanels=E;function t(s){return{enableFindWidget:s.enableFindWidget,retainContextWhenHidden:s.retainContextWhenHidden}}}),define(ye[353],Ce([1,0,4,5,91,11,3,7]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostWebviewViews=void 0;class p extends M.Disposable{#e;#t;#i;#u;#c;#n;#s;#r;#o;constructor(E,t,s,g,C,r){super(),this.#c=!1,this.#a=this._register(new w.Emitter),this.onDidChangeVisibility=this.#a.event,this.#l=this._register(new w.Emitter),this.onDidDispose=this.#l.event,this.#i=s,this.#s=g,this.#e=E,this.#t=t,this.#u=C,this.#n=r}dispose(){this.#c||(this.#c=!0,this.#l.fire(),this.#u.dispose(),super.dispose())}#a;#l;get title(){return this.assertNotDisposed(),this.#s}set title(E){this.assertNotDisposed(),this.#s!==E&&(this.#s=E,this.#t.$setWebviewViewTitle(this.#e,E))}get description(){return this.assertNotDisposed(),this.#r}set description(E){this.assertNotDisposed(),this.#r!==E&&(this.#r=E,this.#t.$setWebviewViewDescription(this.#e,E))}get visible(){return this.#n}get webview(){return this.#u}get viewType(){return this.#i}_setVisible(E){E===this.#n||this.#c||(this.#n=E,this.#a.fire())}get badge(){return this.assertNotDisposed(),this.#o}set badge(E){this.assertNotDisposed(),!(E?.value===this.#o?.value&&E?.tooltip===this.#o?.tooltip)&&(this.#o=A.ViewBadge.from(E),this.#t.$setWebviewViewBadge(this.#e,E))}show(E){this.assertNotDisposed(),this.#t.$show(this.#e,!!E)}assertNotDisposed(){if(this.#c)throw new Error("Webview is disposed")}}class f{constructor(E,t){this._extHostWebview=t,this._viewProviders=new Map,this._webviewViews=new Map,this._proxy=E.getProxy(R.MainContext.MainThreadWebviewViews)}registerWebviewViewProvider(E,t,s,g){if(this._viewProviders.has(t))throw new Error(`View provider for '${t}' already registered`);return this._viewProviders.set(t,{provider:s,extension:E}),this._proxy.$registerWebviewViewProvider((0,d.toExtensionData)(E),t,{retainContextWhenHidden:g?.retainContextWhenHidden,serializeBuffersForPostMessage:(0,d.shouldSerializeBuffersForPostMessage)(E)}),new u.Disposable(()=>{this._viewProviders.delete(t),this._proxy.$unregisterWebviewViewProvider(t)})}async $resolveWebviewView(E,t,s,g,C){const r=this._viewProviders.get(t);if(!r)throw new Error(`No view provider found for '${t}'`);const{provider:h,extension:o}=r,b=this._extHostWebview.createNewWebview(E,{},o),P=new p(E,this._proxy,t,s,b,!0);this._webviewViews.set(E,P),await h.resolveWebviewView(P,{state:g},C)}async $onDidChangeWebviewViewVisibility(E,t){this.getWebviewView(E)._setVisible(t)}async $disposeWebviewView(E){const t=this.getWebviewView(E);this._webviewViews.delete(E),t.dispose(),this._extHostWebview.deleteWebview(E)}getWebviewView(E){const t=this._webviewViews.get(E);if(!t)throw new Error("No webview found");return t}}e.ExtHostWebviewViews=f}),define(ye[150],Ce([1,0,4,3,2,15,16,6,20,27]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";var y;Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostWindow=e.ExtHostWindow=void 0;let E=class{static{y=this}static{this.InitialState={focused:!0,active:!0}}getState(s){const g=this._state;return{get focused(){return g.focused},get active(){return(0,f.checkProposedApiEnabled)(s,"windowActivity"),g.active}}}constructor(s){this._onDidChangeWindowState=new w.Emitter,this.onDidChangeWindowState=this._onDidChangeWindowState.event,this._state=y.InitialState,this._proxy=s.getProxy(M.MainContext.MainThreadWindow),this._proxy.$getInitialState().then(({isFocused:g,isActive:C})=>{this.onDidChangeWindowProperty("focused",g),this.onDidChangeWindowProperty("active",C)})}$onDidChangeWindowFocus(s){this.onDidChangeWindowProperty("focused",s)}$onDidChangeWindowActive(s){this.onDidChangeWindowProperty("active",s)}onDidChangeWindowProperty(s,g){g!==this._state[s]&&(this._state={...this._state,[s]:g},this._onDidChangeWindowState.fire(this._state))}openUri(s,g){let C;if(typeof s=="string"){C=s;try{s=d.URI.parse(s)}catch{return Promise.reject(`Invalid uri - '${s}'`)}}return(0,R.isFalsyOrWhitespace)(s.scheme)?Promise.reject("Invalid scheme - cannot be empty"):s.scheme===A.Schemas.command?Promise.reject(`Invalid scheme '${s.scheme}'`):this._proxy.$openUri(s,C,g)}async asExternalUri(s,g){if((0,R.isFalsyOrWhitespace)(s.scheme))return Promise.reject("Invalid scheme - cannot be empty");const C=await this._proxy.$asExternalUri(s,g);return d.URI.from(C)}};e.ExtHostWindow=E,e.ExtHostWindow=E=y=je([He(0,p.IExtHostRpcService)],E),e.IExtHostWindow=(0,u.createDecorator)("IExtHostWindow")}),define(ye[354],Ce([1,0,323,26,20]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostConsoleForwarder=void 0;const A=1024*1024;let R=class extends w.AbstractExtHostConsoleForwarder{constructor(p,f){super(p,f),this._isMakingConsoleCall=!1,this._wrapStream("stderr","error"),this._wrapStream("stdout","log")}_nativeConsoleLogMessage(p,f,y){const E=p==="error"||p==="warn"?process.stderr:process.stdout;this._isMakingConsoleCall=!0,E.write(`
START_NATIVE_LOG
`),f.apply(console,y),E.write(`
END_NATIVE_LOG
`),this._isMakingConsoleCall=!1}_wrapStream(p,f){const y=process[p],E=y.write;let t="";Object.defineProperty(y,"write",{set:()=>{},get:()=>(s,g,C)=>{if(!this._isMakingConsoleCall){t+=s.toString(g);const r=t.length>A?t.length:t.lastIndexOf(`
`);r!==-1&&(console[f](t.slice(0,r)),t=t.slice(r+1))}E.call(y,s,g,C)}})}};e.ExtHostConsoleForwarder=R,e.ExtHostConsoleForwarder=R=je([He(0,d.IExtHostRpcService),He(1,M.IExtHostInitDataService)],R)}),define(ye[355],Ce([1,0,66,15,12,241,30,14]),function(ge,e,w,M,d,A,R,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDiskFileSystemProvider=void 0;let p=class{constructor(E,t){E.addFileSystemProvider(M.Schemas.file,new f(t),{isCaseSensitive:u.isLinux})}};e.ExtHostDiskFileSystemProvider=p,e.ExtHostDiskFileSystemProvider=p=je([He(0,w.IExtHostConsumerFileSystem),He(1,d.ILogService)],p);class f{constructor(E){this.logService=E,this.impl=new A.DiskFileSystemProvider(this.logService)}async stat(E){const t=await this.impl.stat(E);return{type:t.type,ctime:t.ctime,mtime:t.mtime,size:t.size,permissions:t.permissions===R.FilePermission.Readonly?1:void 0}}readDirectory(E){return this.impl.readdir(E)}createDirectory(E){return this.impl.mkdir(E)}readFile(E){return this.impl.readFile(E)}writeFile(E,t,s){return this.impl.writeFile(E,t,{...s,unlock:!1,atomic:!1})}delete(E,t){return this.impl.delete(E,{...t,useTrash:!1,atomic:!1})}rename(E,t,s){return this.impl.rename(E,t,s)}copy(E,t,s){return this.impl.copy(E,t,s)}get onDidChangeFile(){throw new Error("Method not implemented.")}watch(E,t){throw new Error("Method not implemented.")}}}),define(ye[356],Ce([1,0,17,60,29,32,5,3,2,20]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostDownloadService=void 0;let y=class extends R.Disposable{constructor(t,s){super();const g=t.getProxy(u.MainContext.MainThreadDownloadService);s.registerCommand(!1,"_workbench.downloadResource",async C=>{const r=p.URI.file((0,w.join)((0,M.tmpdir)(),(0,d.generateUuid)()));return await g.$download(C,r),r})}};e.ExtHostDownloadService=y,e.ExtHostDownloadService=y=je([He(0,f.IExtHostRpcService),He(1,A.IExtHostCommands)],y)}),define(ye[357],Ce([1,0,149,15,243,29]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostLoggerService=void 0;class R extends w.ExtHostLoggerService{doCreateLogger(p,f,y){return p.scheme===M.Schemas.file?new d.SpdLogLogger(y?.name||(0,A.generateUuid)(),p.fsPath,!y?.donotRotate,!!y?.donotUseFormatters,f):super.doCreateLogger(p,f,y)}registerLogger(p){super.registerLogger(p),this._proxy.$registerLogger(p)}deregisterLogger(p){super.deregisterLogger(p),this._proxy.$deregisterLogger(p)}}e.ExtHostLoggerService=R}),define(ye[358],Ce([1,0,52,17,2,90,5,15,13,31]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionStoragePaths=void 0;class y extends A.ExtensionStoragePaths{constructor(){super(...arguments),this._workspaceStorageLock=null}async _getWorkspaceStorageURI(n){const a=await super._getWorkspaceStorageURI(n);if(a.scheme!==u.Schemas.file)return a;if(this._environment.skipWorkspaceStorageLock)return this._logService.info(`Skipping acquiring lock for ${a.fsPath}.`),a;const l=a.fsPath;let i=0;do{let c;i===0?c=l:c=/[/\\]$/.test(l)?`${l.substr(0,l.length-1)}-${i}`:`${l}-${i}`,await E(c);const _=M.join(c,"vscode.lock"),S=await C(this._logService,_,!1);if(S)return this._workspaceStorageLock=S,process.on("exit",()=>{S.dispose()}),d.URI.file(c);i++}while(i<10);return a}onWillDeactivateAll(){this._workspaceStorageLock?.setWillRelease(6e3)}}e.ExtensionStoragePaths=y;async function E(T){try{await f.Promises.stat(T);return}catch{}try{await f.Promises.mkdir(T,{recursive:!0})}catch{}}const t=1e3,s=10*60*1e3;class g extends R.Disposable{constructor(n,a){super(),this.logService=n,this.filename=a,this._timer=this._register(new p.IntervalTimer),this._timer.cancelAndSet(async()=>{const l=await r(n,a);(!l||l.pid!==process.pid)&&(n.info(`Lock '${a}': The lock was lost unexpectedly.`),this._timer.cancel());try{await f.Promises.utimes(a,new Date,new Date)}catch(i){n.error(i),n.info(`Lock '${a}': Could not update mtime.`)}},t)}dispose(){super.dispose();try{w.unlinkSync(this.filename)}catch{}}async setWillRelease(n){this.logService.info(`Lock '${this.filename}': Marking the lockfile as scheduled to be released in ${n} ms.`);try{const a={pid:process.pid,willReleaseAt:Date.now()+n};await f.Promises.writeFile(this.filename,JSON.stringify(a),{flag:"w"})}catch(a){this.logService.error(a)}}}async function C(T,n,a){try{const i={pid:process.pid,willReleaseAt:0};await f.Promises.writeFile(n,JSON.stringify(i),{flag:"wx"})}catch(i){T.error(i)}const l=await r(T,n);return!l||l.pid!==process.pid?a?(T.info(`Lock '${n}': Could not acquire lock, giving up.`),null):(T.info(`Lock '${n}': Could not acquire lock, checking if the file is stale.`),b(T,n)):(T.info(`Lock '${n}': Lock acquired.`),new g(T,n))}async function r(T,n){let a;try{a=await f.Promises.readFile(n)}catch(l){return T.error(l),null}try{return JSON.parse(String(a))}catch(l){return T.error(l),null}}async function h(T,n){let a;try{a=await f.Promises.stat(n)}catch(l){return T.error(l),0}return a.mtime.getTime()}function o(T){try{return process.kill(T,0),!0}catch{return!1}}async function b(T,n){const a=await r(T,n);if(!a)return T.info(`Lock '${n}': Could not read pid of lock holder.`),P(T,n);if(a.willReleaseAt){let S=a.willReleaseAt-Date.now();if(S<5e3){for(S>0?T.info(`Lock '${n}': The lockfile is scheduled to be released in ${S} ms.`):T.info(`Lock '${n}': The lockfile is scheduled to have been released.`);S>0;){if(await(0,p.timeout)(Math.min(100,S)),await h(T,n)===0)return P(T,n);S=a.willReleaseAt-Date.now()}return P(T,n)}}if(!o(a.pid))return T.info(`Lock '${n}': The pid ${a.pid} appears to be gone.`),P(T,n);const l=await h(T,n),i=Date.now()-l;if(i<=s)return T.info(`Lock '${n}': The lock does not look stale, elapsed: ${i} ms, giving up.`),null;T.info(`Lock '${n}': The lock looks stale, waiting for 2s.`),await(0,p.timeout)(2e3);const c=await h(T,n),_=Date.now()-c;return _<=s?(T.info(`Lock '${n}': The lock does not look stale, elapsed: ${_} ms, giving up.`),null):(T.info(`Lock '${n}': The lock looks stale even after waiting for 2s.`),P(T,n))}async function P(T,n){T.info(`Lock '${n}': Deleting a stale lock.`);try{await f.Promises.unlink(n)}catch{}return C(T,n,!0)}}),define(ye[359],Ce([1,0,29,20,48,32]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTerminalService=void 0;let R=class extends d.BaseExtHostTerminalService{constructor(p,f){super(!0,p,f)}createTerminal(p,f,y){return this.createTerminalFromOptions({name:p,shellPath:f,shellArgs:y})}createTerminalFromOptions(p,f){const y=new d.ExtHostTerminal(this._proxy,(0,w.generateUuid)(),p,p.name);return this._terminals.push(y),y.create(p,this._serializeParentTerminal(p,f)),y.value}};e.ExtHostTerminalService=R,e.ExtHostTerminalService=R=je([He(0,A.IExtHostCommands),He(1,M.IExtHostRpcService)],R)}),define(ye[360],Ce([1,0,13,21,22,8,4,5,128,292,64]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";var E;Object.defineProperty(e,"__esModule",{value:!0}),e.RPCProtocol=e.ResponsiveState=e.RequestInitiator=e.parseJsonAndRestoreBufferRefs=e.stringifyJsonWithBufferRefs=void 0;function t(v,D){try{return JSON.stringify(v,D)}catch{return"null"}}const s="$$ref$$",g={[s]:-1};class C{constructor(D,L){this.jsonString=D,this.referencedBuffers=L}}function r(v,D=null,L=!1){const O=[];return{jsonString:(L?t:JSON.stringify)(v,(N,$)=>{if(typeof $>"u")return g;if(typeof $=="object"){if($ instanceof M.VSBuffer){const U=O.push($)-1;return{[s]:U}}if(D)return D(N,$)}return $}),referencedBuffers:O}}e.stringifyJsonWithBufferRefs=r;function h(v,D,L){return JSON.parse(v,(O,H)=>{if(H){const N=H[s];if(typeof N=="number")return D[N];if(L&&H.$mid===1)return L.transformIncoming(H)}return H})}e.parseJsonAndRestoreBufferRefs=h;function o(v,D){return JSON.stringify(v,D)}function b(v){return v?(D,L)=>L&&L.$mid===1?v.transformOutgoing(L):L:null}var P;(function(v){v[v.LocalSide=0]="LocalSide",v[v.OtherSide=1]="OtherSide"})(P||(e.RequestInitiator=P={}));var T;(function(v){v[v.Responsive=0]="Responsive",v[v.Unresponsive=1]="Unresponsive"})(T||(e.ResponsiveState=T={}));const n=()=>{},a=Symbol.for("rpcProtocol"),l=Symbol.for("rpcProxy");class i extends u.Disposable{static{E=a}static{this.UNRESPONSIVE_TIME=3*1e3}constructor(D,L=null,O=null){super(),this[E]=!0,this._onDidChangeResponsiveState=this._register(new R.Emitter),this.onDidChangeResponsiveState=this._onDidChangeResponsiveState.event,this._protocol=D,this._logger=L,this._uriTransformer=O,this._uriReplacer=b(this._uriTransformer),this._isDisposed=!1,this._locals=[],this._proxies=[];for(let H=0,N=y.ProxyIdentifier.count;H<N;H++)this._locals[H]=null,this._proxies[H]=null;this._lastMessageId=0,this._cancelInvokedHandlers=Object.create(null),this._pendingRPCReplies={},this._responsiveState=0,this._unacknowledgedCount=0,this._unresponsiveTime=0,this._asyncCheckUresponsive=this._register(new w.RunOnceScheduler(()=>this._checkUnresponsive(),1e3)),this._protocol.onMessage(H=>this._receiveOneMessage(H))}dispose(){this._isDisposed=!0,Object.keys(this._pendingRPCReplies).forEach(D=>{this._pendingRPCReplies[D].resolveErr(A.canceled())})}drain(){return typeof this._protocol.drain=="function"?this._protocol.drain():Promise.resolve()}_onWillSendRequest(D){this._unacknowledgedCount===0&&(this._unresponsiveTime=Date.now()+i.UNRESPONSIVE_TIME),this._unacknowledgedCount++,this._asyncCheckUresponsive.isScheduled()||this._asyncCheckUresponsive.schedule()}_onDidReceiveAcknowledge(D){this._unresponsiveTime=Date.now()+i.UNRESPONSIVE_TIME,this._unacknowledgedCount--,this._unacknowledgedCount===0&&this._asyncCheckUresponsive.cancel(),this._setResponsiveState(0)}_checkUnresponsive(){this._unacknowledgedCount!==0&&(Date.now()>this._unresponsiveTime?this._setResponsiveState(1):this._asyncCheckUresponsive.schedule())}_setResponsiveState(D){this._responsiveState!==D&&(this._responsiveState=D,this._onDidChangeResponsiveState.fire(this._responsiveState))}get responsiveState(){return this._responsiveState}transformIncomingURIs(D){return this._uriTransformer?(0,p.transformIncomingURIs)(D,this._uriTransformer):D}getProxy(D){const{nid:L,sid:O}=D;return this._proxies[L]||(this._proxies[L]=this._createProxy(L,O)),this._proxies[L]}_createProxy(D,L){const O={get:(H,N)=>(typeof N=="string"&&!H[N]&&N.charCodeAt(0)===36&&(H[N]=(...$)=>this._remoteCall(D,N,$)),N===l?L:H[N])};return new Proxy(Object.create(null),O)}set(D,L){return this._locals[D.nid]=L,L}assertRegistered(D){for(let L=0,O=D.length;L<O;L++){const H=D[L];if(!this._locals[H.nid])throw new Error(`Missing proxy instance ${H.sid}`)}}_receiveOneMessage(D){if(this._isDisposed)return;const L=D.byteLength,O=c.read(D,0),H=O.readUInt8(),N=O.readUInt32();switch(H){case 1:case 2:{let{rpcId:$,method:U,args:x}=S.deserializeRequestJSONArgs(O);this._uriTransformer&&(x=(0,p.transformIncomingURIs)(x,this._uriTransformer)),this._receiveRequest(L,N,$,U,x,H===2);break}case 3:case 4:{let{rpcId:$,method:U,args:x}=S.deserializeRequestMixedArgs(O);this._uriTransformer&&(x=(0,p.transformIncomingURIs)(x,this._uriTransformer)),this._receiveRequest(L,N,$,U,x,H===4);break}case 5:{this._logger?.logIncoming(L,N,0,"ack"),this._onDidReceiveAcknowledge(N);break}case 6:{this._receiveCancel(L,N);break}case 7:{this._receiveReply(L,N,void 0);break}case 9:{let $=S.deserializeReplyOKJSON(O);this._uriTransformer&&($=(0,p.transformIncomingURIs)($,this._uriTransformer)),this._receiveReply(L,N,$);break}case 10:{const $=S.deserializeReplyOKJSONWithBuffers(O,this._uriTransformer);this._receiveReply(L,N,$);break}case 8:{const $=S.deserializeReplyOKVSBuffer(O);this._receiveReply(L,N,$);break}case 11:{let $=S.deserializeReplyErrError(O);this._uriTransformer&&($=(0,p.transformIncomingURIs)($,this._uriTransformer)),this._receiveReplyErr(L,N,$);break}case 12:{this._receiveReplyErr(L,N,void 0);break}default:console.error("received unexpected message"),console.error(D)}}_receiveRequest(D,L,O,H,N,$){this._logger?.logIncoming(D,L,1,`receiveRequest ${(0,y.getStringIdentifierForProxy)(O)}.${H}(`,N);const U=String(L);let x,X;if($){const pe=new d.CancellationTokenSource;N.push(pe.token),x=this._invokeHandler(O,H,N),X=()=>pe.cancel()}else x=this._invokeHandler(O,H,N),X=n;this._cancelInvokedHandlers[U]=X;const K=S.serializeAcknowledged(L);this._logger?.logOutgoing(K.byteLength,L,1,"ack"),this._protocol.send(K),x.then(pe=>{delete this._cancelInvokedHandlers[U];const le=S.serializeReplyOK(L,pe,this._uriReplacer);this._logger?.logOutgoing(le.byteLength,L,1,"reply:",pe),this._protocol.send(le)},pe=>{delete this._cancelInvokedHandlers[U];const le=S.serializeReplyErr(L,pe);this._logger?.logOutgoing(le.byteLength,L,1,"replyErr:",pe),this._protocol.send(le)})}_receiveCancel(D,L){this._logger?.logIncoming(D,L,1,"receiveCancel");const O=String(L);this._cancelInvokedHandlers[O]?.()}_receiveReply(D,L,O){this._logger?.logIncoming(D,L,0,"receiveReply:",O);const H=String(L);if(!this._pendingRPCReplies.hasOwnProperty(H))return;const N=this._pendingRPCReplies[H];delete this._pendingRPCReplies[H],N.resolveOk(O)}_receiveReplyErr(D,L,O){this._logger?.logIncoming(D,L,0,"receiveReplyErr:",O);const H=String(L);if(!this._pendingRPCReplies.hasOwnProperty(H))return;const N=this._pendingRPCReplies[H];delete this._pendingRPCReplies[H];let $;O&&(O.$isError?($=new Error,$.name=O.name,$.message=O.message,$.stack=O.stack,$.errorCode=O.errorCode,$.data=O.data):$=O),N.resolveErr($)}_invokeHandler(D,L,O){try{return Promise.resolve(this._doInvokeHandler(D,L,O))}catch(H){return Promise.reject(H)}}_doInvokeHandler(D,L,O){const H=this._locals[D];if(!H)throw new Error("Unknown actor "+(0,y.getStringIdentifierForProxy)(D));const N=H[L];if(typeof N!="function")throw new Error("Unknown method "+L+" on actor "+(0,y.getStringIdentifierForProxy)(D));return N.apply(H,O)}_remoteCall(D,L,O){if(this._isDisposed)return new f.CanceledLazyPromise;let H=null;if(O.length>0&&d.CancellationToken.isCancellationToken(O[O.length-1])&&(H=O.pop()),H&&H.isCancellationRequested)return Promise.reject(A.canceled());const N=S.serializeRequestArguments(O,this._uriReplacer),$=++this._lastMessageId,U=String($),x=new f.LazyPromise;H&&H.onCancellationRequested(()=>{const K=S.serializeCancel($);this._logger?.logOutgoing(K.byteLength,$,0,"cancel"),this._protocol.send(S.serializeCancel($))}),this._pendingRPCReplies[U]=x,this._onWillSendRequest($);const X=S.serializeRequest($,D,L,N,!!H);return this._logger?.logOutgoing(X.byteLength,$,0,`request: ${(0,y.getStringIdentifierForProxy)(D)}.${L}(`,O),this._protocol.send(X),x}}e.RPCProtocol=i;class c{static alloc(D,L,O){const H=new c(M.VSBuffer.alloc(O+1+4),0);return H.writeUInt8(D),H.writeUInt32(L),H}static read(D,L){return new c(D,L)}get buffer(){return this._buff}constructor(D,L){this._buff=D,this._offset=L}static sizeUInt8(){return 1}static{this.sizeUInt32=4}writeUInt8(D){this._buff.writeUInt8(D,this._offset),this._offset+=1}readUInt8(){const D=this._buff.readUInt8(this._offset);return this._offset+=1,D}writeUInt32(D){this._buff.writeUInt32BE(D,this._offset),this._offset+=4}readUInt32(){const D=this._buff.readUInt32BE(this._offset);return this._offset+=4,D}static sizeShortString(D){return 1+D.byteLength}writeShortString(D){this._buff.writeUInt8(D.byteLength,this._offset),this._offset+=1,this._buff.set(D,this._offset),this._offset+=D.byteLength}readShortString(){const D=this._buff.readUInt8(this._offset);this._offset+=1;const O=this._buff.slice(this._offset,this._offset+D).toString();return this._offset+=D,O}static sizeLongString(D){return 4+D.byteLength}writeLongString(D){this._buff.writeUInt32BE(D.byteLength,this._offset),this._offset+=4,this._buff.set(D,this._offset),this._offset+=D.byteLength}readLongString(){const D=this._buff.readUInt32BE(this._offset);this._offset+=4;const O=this._buff.slice(this._offset,this._offset+D).toString();return this._offset+=D,O}writeBuffer(D){this._buff.writeUInt32BE(D.byteLength,this._offset),this._offset+=4,this._buff.set(D,this._offset),this._offset+=D.byteLength}static sizeVSBuffer(D){return 4+D.byteLength}writeVSBuffer(D){this._buff.writeUInt32BE(D.byteLength,this._offset),this._offset+=4,this._buff.set(D,this._offset),this._offset+=D.byteLength}readVSBuffer(){const D=this._buff.readUInt32BE(this._offset);this._offset+=4;const L=this._buff.slice(this._offset,this._offset+D);return this._offset+=D,L}static sizeMixedArray(D){let L=0;L+=1;for(let O=0,H=D.length;O<H;O++){const N=D[O];switch(L+=1,N.type){case 1:L+=this.sizeLongString(N.value);break;case 2:L+=this.sizeVSBuffer(N.value);break;case 3:L+=this.sizeUInt32,L+=this.sizeLongString(N.value);for(let $=0;$<N.buffers.length;++$)L+=this.sizeVSBuffer(N.buffers[$]);break;case 4:break}}return L}writeMixedArray(D){this._buff.writeUInt8(D.length,this._offset),this._offset+=1;for(let L=0,O=D.length;L<O;L++){const H=D[L];switch(H.type){case 1:this.writeUInt8(1),this.writeLongString(H.value);break;case 2:this.writeUInt8(2),this.writeVSBuffer(H.value);break;case 3:this.writeUInt8(3),this.writeUInt32(H.buffers.length),this.writeLongString(H.value);for(let N=0;N<H.buffers.length;++N)this.writeBuffer(H.buffers[N]);break;case 4:this.writeUInt8(4);break}}}readMixedArray(){const D=this._buff.readUInt8(this._offset);this._offset+=1;const L=new Array(D);for(let O=0;O<D;O++)switch(this.readUInt8()){case 1:L[O]=this.readLongString();break;case 2:L[O]=this.readVSBuffer();break;case 3:{const N=this.readUInt32(),$=this.readLongString(),U=[];for(let x=0;x<N;++x)U.push(this.readVSBuffer());L[O]=new y.SerializableObjectWithBuffers(h($,U,null));break}case 4:L[O]=void 0;break}return L}}var _;(function(v){v[v.Simple=0]="Simple",v[v.Mixed=1]="Mixed"})(_||(_={}));class S{static _useMixedArgSerialization(D){for(let L=0,O=D.length;L<O;L++)if(D[L]instanceof M.VSBuffer||D[L]instanceof y.SerializableObjectWithBuffers||typeof D[L]>"u")return!0;return!1}static serializeRequestArguments(D,L){if(this._useMixedArgSerialization(D)){const O=[];for(let H=0,N=D.length;H<N;H++){const $=D[H];if($ instanceof M.VSBuffer)O[H]={type:2,value:$};else if(typeof $>"u")O[H]={type:4};else if($ instanceof y.SerializableObjectWithBuffers){const{jsonString:U,referencedBuffers:x}=r($.value,L);O[H]={type:3,value:M.VSBuffer.fromString(U),buffers:x}}else O[H]={type:1,value:M.VSBuffer.fromString(o($,L))}}return{type:1,args:O}}return{type:0,args:o(D,L)}}static serializeRequest(D,L,O,H,N){switch(H.type){case 0:return this._requestJSONArgs(D,L,O,H.args,N);case 1:return this._requestMixedArgs(D,L,O,H.args,N)}}static _requestJSONArgs(D,L,O,H,N){const $=M.VSBuffer.fromString(O),U=M.VSBuffer.fromString(H);let x=0;x+=c.sizeUInt8(),x+=c.sizeShortString($),x+=c.sizeLongString(U);const X=c.alloc(N?2:1,D,x);return X.writeUInt8(L),X.writeShortString($),X.writeLongString(U),X.buffer}static deserializeRequestJSONArgs(D){const L=D.readUInt8(),O=D.readShortString(),H=D.readLongString();return{rpcId:L,method:O,args:JSON.parse(H)}}static _requestMixedArgs(D,L,O,H,N){const $=M.VSBuffer.fromString(O);let U=0;U+=c.sizeUInt8(),U+=c.sizeShortString($),U+=c.sizeMixedArray(H);const x=c.alloc(N?4:3,D,U);return x.writeUInt8(L),x.writeShortString($),x.writeMixedArray(H),x.buffer}static deserializeRequestMixedArgs(D){const L=D.readUInt8(),O=D.readShortString(),H=D.readMixedArray(),N=new Array(H.length);for(let $=0,U=H.length;$<U;$++){const x=H[$];typeof x=="string"?N[$]=JSON.parse(x):N[$]=x}return{rpcId:L,method:O,args:N}}static serializeAcknowledged(D){return c.alloc(5,D,0).buffer}static serializeCancel(D){return c.alloc(6,D,0).buffer}static serializeReplyOK(D,L,O){if(typeof L>"u")return this._serializeReplyOKEmpty(D);if(L instanceof M.VSBuffer)return this._serializeReplyOKVSBuffer(D,L);if(L instanceof y.SerializableObjectWithBuffers){const{jsonString:H,referencedBuffers:N}=r(L.value,O,!0);return this._serializeReplyOKJSONWithBuffers(D,H,N)}else return this._serializeReplyOKJSON(D,t(L,O))}static _serializeReplyOKEmpty(D){return c.alloc(7,D,0).buffer}static _serializeReplyOKVSBuffer(D,L){let O=0;O+=c.sizeVSBuffer(L);const H=c.alloc(8,D,O);return H.writeVSBuffer(L),H.buffer}static deserializeReplyOKVSBuffer(D){return D.readVSBuffer()}static _serializeReplyOKJSON(D,L){const O=M.VSBuffer.fromString(L);let H=0;H+=c.sizeLongString(O);const N=c.alloc(9,D,H);return N.writeLongString(O),N.buffer}static _serializeReplyOKJSONWithBuffers(D,L,O){const H=M.VSBuffer.fromString(L);let N=0;N+=c.sizeUInt32,N+=c.sizeLongString(H);for(const U of O)N+=c.sizeVSBuffer(U);const $=c.alloc(10,D,N);$.writeUInt32(O.length),$.writeLongString(H);for(const U of O)$.writeBuffer(U);return $.buffer}static deserializeReplyOKJSON(D){const L=D.readLongString();return JSON.parse(L)}static deserializeReplyOKJSONWithBuffers(D,L){const O=D.readUInt32(),H=D.readLongString(),N=[];for(let $=0;$<O;++$)N.push(D.readVSBuffer());return new y.SerializableObjectWithBuffers(h(H,N,L))}static serializeReplyErr(D,L){const O=L?t(A.transformErrorForSerialization(L),null):void 0;if(typeof O!="string")return this._serializeReplyErrEmpty(D);const H=M.VSBuffer.fromString(O);let N=0;N+=c.sizeLongString(H);const $=c.alloc(11,D,N);return $.writeLongString(H),$.buffer}static deserializeReplyErrError(D){const L=D.readLongString();return JSON.parse(L)}static _serializeReplyErrEmpty(D){return c.alloc(12,D,0).buffer}}var k;(function(v){v[v.RequestJSONArgs=1]="RequestJSONArgs",v[v.RequestJSONArgsWithCancellation=2]="RequestJSONArgsWithCancellation",v[v.RequestMixedArgs=3]="RequestMixedArgs",v[v.RequestMixedArgsWithCancellation=4]="RequestMixedArgsWithCancellation",v[v.Acknowledged=5]="Acknowledged",v[v.Cancel=6]="Cancel",v[v.ReplyOKEmpty=7]="ReplyOKEmpty",v[v.ReplyOKVSBuffer=8]="ReplyOKVSBuffer",v[v.ReplyOKJSON=9]="ReplyOKJSON",v[v.ReplyOKJSONWithBuffers=10]="ReplyOKJSONWithBuffers",v[v.ReplyErrError=11]="ReplyErrError",v[v.ReplyErrEmpty=12]="ReplyErrEmpty"})(k||(k={}));var m;(function(v){v[v.String=1]="String",v[v.VSBuffer=2]="VSBuffer",v[v.SerializedObjectWithBuffers=3]="SerializedObjectWithBuffers",v[v.Undefined=4]="Undefined"})(m||(m={}))}),define(ye[361],Ce([1,0,4,38,45,6]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ACTIVE_OUTPUT_CHANNEL_CONTEXT=e.Extensions=e.OutputChannelUpdateMode=e.IOutputService=e.CONTEXT_OUTPUT_SCROLL_LOCK=e.CONTEXT_ACTIVE_LOG_OUTPUT=e.CONTEXT_IN_OUTPUT=e.OUTPUT_VIEW_ID=e.LOG_MODE_ID=e.LOG_SCHEME=e.LOG_MIME=e.OUTPUT_MODE_ID=e.OUTPUT_SCHEME=e.OUTPUT_MIME=void 0,e.OUTPUT_MIME="text/x-code-output",e.OUTPUT_SCHEME="output",e.OUTPUT_MODE_ID="Log",e.LOG_MIME="text/x-code-log-output",e.LOG_SCHEME="log",e.LOG_MODE_ID="log",e.OUTPUT_VIEW_ID="workbench.panel.output",e.CONTEXT_IN_OUTPUT=new d.RawContextKey("inOutput",!1),e.CONTEXT_ACTIVE_LOG_OUTPUT=new d.RawContextKey("activeLogOutput",!1),e.CONTEXT_OUTPUT_SCROLL_LOCK=new d.RawContextKey("outputView.scrollLock",!1),e.IOutputService=(0,A.createDecorator)("outputService");var R;(function(p){p[p.Append=1]="Append",p[p.Replace=2]="Replace",p[p.Clear=3]="Clear"})(R||(e.OutputChannelUpdateMode=R={})),e.Extensions={OutputChannels:"workbench.contributions.outputChannels"};class u{constructor(){this.channels=new Map,this._onDidRegisterChannel=new w.Emitter,this.onDidRegisterChannel=this._onDidRegisterChannel.event,this._onDidRemoveChannel=new w.Emitter,this.onDidRemoveChannel=this._onDidRemoveChannel.event}registerChannel(f){this.channels.has(f.id)||(this.channels.set(f.id,f),this._onDidRegisterChannel.fire(f.id))}getChannels(){const f=[];return this.channels.forEach(y=>f.push(y)),f}getChannel(f){return this.channels.get(f)}removeChannel(f){this.channels.delete(f),this._onDidRemoveChannel.fire(f)}}M.Registry.add(e.Extensions.OutputChannels,new u),e.ACTIVE_OUTPUT_CHANNEL_CONTEXT=new d.RawContextKey("activeOutputChannel","")}),define(ye[151],Ce([1,0,3,6,20,23,12,361,66,26,55,188,21,18,30,4,5]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostOutputService=e.ExtHostOutputService=void 0;class h extends R.AbstractMessageLogger{get disposed(){return this._disposed}constructor(T,n,a,l,i){super(),this.id=T,this.name=n,this.logger=a,this.proxy=l,this.extension=i,this.offset=0,this._disposed=!1,this.visible=!1,this.setLevel(a.getLevel()),this._register(a.onDidChangeLogLevel(c=>this.setLevel(c)))}get logLevel(){return this.getLevel()}appendLine(T){this.append(T+`
`)}append(T){this.info(T)}clear(){const T=this.offset;this.logger.flush(),this.proxy.$update(this.id,u.OutputChannelUpdateMode.Clear,T)}replace(T){const n=this.offset;this.info(T),this.proxy.$update(this.id,u.OutputChannelUpdateMode.Replace,n),this.visible&&this.logger.flush()}show(T,n){this.logger.flush(),this.proxy.$reveal(this.id,!!(typeof T=="boolean"?T:n))}hide(){this.proxy.$close(this.id)}log(T,n){this.offset+=t.VSBuffer.fromString(n).byteLength,(0,R.log)(this.logger,T,n),this.visible&&(this.logger.flush(),this.proxy.$update(this.id,u.OutputChannelUpdateMode.Append))}dispose(){super.dispose(),this._disposed||(this.proxy.$dispose(this.id),this._disposed=!0)}}class o extends h{appendLine(T){this.append(T)}}let b=class{constructor(T,n,a,l,i,c){this.initData=n,this.extHostFileSystem=a,this.extHostFileSystemInfo=l,this.loggerService=i,this.logService=c,this.extensionLogDirectoryPromise=new Map,this.namePool=1,this.channels=new Map,this.visibleChannelId=null,this.proxy=T.getProxy(w.MainContext.MainThreadOutputService),this.outputsLocation=this.extHostFileSystemInfo.extUri.joinPath(n.logsLocation,`output_logging_${(0,E.toLocalISOString)(new Date).replace(/-|:|\.\d+Z$/g,"")}`)}$setVisibleChannel(T){this.visibleChannelId=T;for(const[n,a]of this.channels)a.visible=n===this.visibleChannelId}createOutputChannel(T,n,a){if(T=T.trim(),!T)throw new Error("illegal argument `name`. must not be falsy");const l=typeof n=="object"&&n.log,i=(0,s.isString)(n)?n:void 0;if((0,s.isString)(i)&&!i.trim())throw new Error("illegal argument `languageId`. must not be empty");let c;const _=this.initData.environment.extensionLogLevel?.find(([k])=>A.ExtensionIdentifier.equals(a.identifier,k))?.[1];_&&(c=(0,R.parseLogLevel)(_));const S=l?this.doCreateLogOutputChannel(T,c,a):this.doCreateOutputChannel(T,i,a);return S.then(k=>{this.channels.set(k.id,k),k.visible=k.id===this.visibleChannelId}),l?this.createExtHostLogOutputChannel(T,c??this.logService.getLevel(),S):this.createExtHostOutputChannel(T,S)}async doCreateOutputChannel(T,n,a){this.outputDirectoryPromise||(this.outputDirectoryPromise=this.extHostFileSystem.value.createDirectory(this.outputsLocation).then(()=>this.outputsLocation));const l=await this.outputDirectoryPromise,i=this.extHostFileSystemInfo.extUri.joinPath(l,`${this.namePool++}-${T.replace(/[\\/:\*\?"<>\|]/g,"")}.log`),c=this.loggerService.createLogger(i,{logLevel:"always",donotRotate:!0,donotUseFormatters:!0,hidden:!0}),_=await this.proxy.$register(T,i,n,a.identifier.value);return new h(_,T,c,this.proxy,a)}async doCreateLogOutputChannel(T,n,a){const l=await this.createExtensionLogDirectory(a),i=T.replace(/[\\/:\*\?"<>\|]/g,""),c=this.extHostFileSystemInfo.extUri.joinPath(l,`${i}.log`),_=`${a.identifier.value}.${i}`,S=this.loggerService.createLogger(c,{id:_,name:T,logLevel:n,extensionId:a.identifier.value});return new o(_,T,S,this.proxy,a)}createExtensionLogDirectory(T){let n=this.extensionLogDirectoryPromise.get(T.identifier.value);if(!n){const a=this.extHostFileSystemInfo.extUri.joinPath(this.initData.logsLocation,T.identifier.value);this.extensionLogDirectoryPromise.set(T.identifier.value,n=(async()=>{try{await this.extHostFileSystem.value.createDirectory(a)}catch(l){if((0,g.toFileSystemProviderErrorCode)(l)!==g.FileSystemProviderErrorCode.FileExists)throw l}return a})())}return n}createExtHostOutputChannel(T,n){let a=!1;const l=()=>{if(a)throw new Error("Channel has been closed")};return{get name(){return T},append(i){l(),n.then(c=>c.append(i))},appendLine(i){l(),n.then(c=>c.appendLine(i))},clear(){l(),n.then(i=>i.clear())},replace(i){l(),n.then(c=>c.replace(i))},show(i,c){l(),n.then(_=>_.show(i,c))},hide(){l(),n.then(i=>i.hide())},dispose(){a=!0,n.then(i=>i.dispose())}}}createExtHostLogOutputChannel(T,n,a){const l=new r.DisposableStore,i=()=>{if(l.isDisposed)throw new Error("Channel has been closed")},c=l.add(new C.Emitter);function _(S){n=S,c.fire(S)}return a.then(S=>{l.add(S),S.logLevel!==n&&_(S.logLevel),l.add(S.onDidChangeLogLevel(k=>_(k)))}),{...this.createExtHostOutputChannel(T,a),get logLevel(){return n},onDidChangeLogLevel:c.event,trace(S,...k){i(),a.then(m=>m.trace(S,...k))},debug(S,...k){i(),a.then(m=>m.debug(S,...k))},info(S,...k){i(),a.then(m=>m.info(S,...k))},warn(S,...k){i(),a.then(m=>m.warn(S,...k))},error(S,...k){i(),a.then(m=>m.error(S,...k))},dispose(){l.dispose()}}}};e.ExtHostOutputService=b,e.ExtHostOutputService=b=je([He(0,d.IExtHostRpcService),He(1,f.IExtHostInitDataService),He(2,p.IExtHostConsumerFileSystem),He(3,y.IExtHostFileSystemInfo),He(4,R.ILoggerService),He(5,R.ILogService)],b),e.IExtHostOutputService=(0,M.createDecorator)("IExtHostOutputService")}),define(ye[362],Ce([1,0,6,13]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.remoteConnectionLatencyMeasurer=e.IRemoteAgentService=void 0,e.IRemoteAgentService=(0,w.createDecorator)("remoteAgentService"),e.remoteConnectionLatencyMeasurer=new class{constructor(){this.maxSampleCount=5,this.sampleDelay=2e3,this.initial=[],this.maxInitialCount=3,this.average=[],this.maxAverageCount=100,this.highLatencyMultiple=2,this.highLatencyMinThreshold=500,this.highLatencyMaxThreshold=1500,this.lastMeasurement=void 0}get latency(){return this.lastMeasurement}async measure(d){let A=1/0;for(let u=0;u<this.maxSampleCount;u++){const p=await d.getRoundTripTime();if(p===void 0)return;A=Math.min(A,p/2),await(0,M.timeout)(this.sampleDelay)}this.average.push(A),this.average.length>this.maxAverageCount&&this.average.shift();let R;return this.initial.length<this.maxInitialCount?this.initial.push(A):R=this.initial.reduce((u,p)=>u+p,0)/this.initial.length,this.lastMeasurement={initial:R,current:A,average:this.average.reduce((u,p)=>u+p,0)/this.average.length,high:(()=>typeof R>"u"?!1:A>this.highLatencyMaxThreshold||A>this.highLatencyMinThreshold&&A>R*this.highLatencyMultiple)()},this.lastMeasurement}}}),define(ye[363],Ce([1,0,33,15,17,14,25,2,6,259,54,284,362]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPathService=e.IPathService=void 0,e.IPathService=(0,p.createDecorator)("pathService");let g=s=class{constructor(r,h,o,b){this.localUserHome=r,this.remoteAgentService=h,this.environmentService=o,this.contextService=b,this.resolveOS=(async()=>(await this.remoteAgentService.getEnvironment())?.os||A.OS)(),this.resolveUserHome=(async()=>{const P=await this.remoteAgentService.getEnvironment();return this.maybeUnresolvedUserHome=P?.userHome??r})()}hasValidBasename(r,h,o){return typeof h=="string"||typeof h>"u"?this.resolveOS.then(b=>this.doHasValidBasename(r,b,h)):this.doHasValidBasename(r,h,o)}doHasValidBasename(r,h,o){return r.scheme===M.Schemas.file||r.scheme===M.Schemas.vscodeRemote?(0,w.isValidBasename)(o??(0,R.basename)(r),h===1):!0}get defaultUriScheme(){return s.findDefaultUriScheme(this.environmentService,this.contextService)}static findDefaultUriScheme(r,h){if(r.remoteAuthority)return M.Schemas.vscodeRemote;const o=(0,f.getVirtualWorkspaceScheme)(h.getWorkspace());if(o)return o;const b=h.getWorkspace().folders[0];if(b)return b.uri.scheme;const P=h.getWorkspace().configuration;return P?P.scheme:M.Schemas.file}userHome(r){return r?.preferLocal?this.localUserHome:this.resolveUserHome}get resolvedUserHome(){return this.maybeUnresolvedUserHome}get path(){return this.resolveOS.then(r=>r===1?d.win32:d.posix)}async fileURI(r){let h="";if(await this.resolveOS===1&&(r=r.replace(/\\/g,"/")),r[0]==="/"&&r[1]==="/"){const b=r.indexOf("/",2);b===-1?(h=r.substring(2),r="/"):(h=r.substring(2,b),r=r.substring(b)||"/")}return u.URI.from({scheme:M.Schemas.file,authority:h,path:r,query:"",fragment:""})}};e.AbstractPathService=g,e.AbstractPathService=g=s=je([He(1,t.IRemoteAgentService),He(2,E.IWorkbenchEnvironmentService),He(3,y.IWorkspaceContextService)],g)}),define(ye[92],Ce([1,0]),function(ge,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextSearchCompleteMessageType=e.Range=e.Position=void 0;class w{constructor(R,u){this.line=R,this.character=u}isBefore(R){return!1}isBeforeOrEqual(R){return!1}isAfter(R){return!1}isAfterOrEqual(R){return!1}isEqual(R){return!1}compareTo(R){return 0}translate(R,u){return new w(0,0)}with(R){return new w(0,0)}}e.Position=w;class M{constructor(R,u,p,f){this.isEmpty=!1,this.isSingleLine=!1,this.start=new w(R,u),this.end=new w(p,f)}contains(R){return!1}isEqual(R){return!1}intersection(R){}union(R){return new M(0,0,0,0)}with(R){return new M(0,0,0,0)}}e.Range=M;var d;(function(A){A[A.Information=1]="Information",A[A.Warning=2]="Warning"})(d||(e.TextSearchCompleteMessageType=d={}))}),define(ye[35],Ce([1,0,19,34,24,33,16,6,17,8,92,13]),function(ge,e,w,M,d,A,R,u,p,f,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasSiblingFn=e.hasSiblingPromiseFn=e.QueryGlobTester=e.resolvePatternsForProvider=e.SerializableFileMatch=e.isFilePatternMatch=e.isSerializedFileMatch=e.isSerializedSearchSuccess=e.isSerializedSearchComplete=e.serializeSearchError=e.deserializeSearchError=e.SearchError=e.SearchErrorCode=e.pathIncludedInQuery=e.getExcludes=e.SearchSortOrder=e.ViewMode=e.OneLineRange=e.SearchRange=e.TextSearchMatch=e.FileMatch=e.SearchCompletionExitCode=e.isProgressMessage=e.isFileMatch=e.resultIsMatch=e.QueryType=e.SearchProviderType=e.ISearchService=e.SEARCH_EXCLUDE_CONFIG=e.VIEW_ID=e.PANEL_ID=e.VIEWLET_ID=e.TextSearchCompleteMessageType=void 0,Object.defineProperty(e,"TextSearchCompleteMessageType",{enumerable:!0,get:function(){return y.TextSearchCompleteMessageType}}),e.VIEWLET_ID="workbench.view.search",e.PANEL_ID="workbench.panel.search",e.VIEW_ID="workbench.view.search",e.SEARCH_EXCLUDE_CONFIG="search.exclude";const t="\u27EA ",s=" characters skipped \u27EB",g=(t.length+s.length+5)*2;e.ISearchService=(0,u.createDecorator)("searchService");var C;(function(q){q[q.file=0]="file",q[q.text=1]="text"})(C||(e.SearchProviderType=C={}));var r;(function(q){q[q.File=1]="File",q[q.Text=2]="Text"})(r||(e.QueryType=r={}));function h(q){return!!q.preview}e.resultIsMatch=h;function o(q){return!!q.resource}e.isFileMatch=o;function b(q){return!!q.message}e.isProgressMessage=b;var P;(function(q){q[q.Normal=0]="Normal",q[q.NewSearchStarted=1]="NewSearchStarted"})(P||(e.SearchCompletionExitCode=P={}));class T{constructor(oe){this.resource=oe,this.results=[]}}e.FileMatch=T;class n{constructor(oe,ve,ce,se){this.ranges=ve,this.webviewIndex=se;const te=Array.isArray(ve)?ve:[ve];if(ce&&ce.matchLines===1&&a(te)){oe=(0,R.getNLines)(oe,ce.matchLines);let B="",G=0,fe=0;const _e=Math.floor(ce.charsPerLine/5),Ee=[];for(const F of te){const J=Math.max(F.startColumn-_e,0),I=F.startColumn+ce.charsPerLine;if(J>fe+_e+g){const V=t+(J-fe)+s;B+=V+oe.slice(J,I),G+=J-(fe+V.length)}else B+=oe.slice(fe,I);Ee.push(new i(0,F.startColumn-G,F.endColumn-G)),fe=I}this.preview={text:B,matches:Array.isArray(this.ranges)?Ee:Ee[0]}}else{const B=Array.isArray(ve)?ve[0].startLineNumber:ve.startLineNumber;this.preview={text:oe,matches:(0,w.mapArrayOrNot)(ve,G=>new l(G.startLineNumber-B,G.startColumn,G.endLineNumber-B,G.endColumn))}}}}e.TextSearchMatch=n;function a(q){const oe=q[0].startLineNumber;for(const ve of q)if(ve.startLineNumber!==oe||ve.endLineNumber!==oe)return!1;return!0}class l{constructor(oe,ve,ce,se){this.startLineNumber=oe,this.startColumn=ve,this.endLineNumber=ce,this.endColumn=se}}e.SearchRange=l;class i extends l{constructor(oe,ve,ce){super(oe,ve,oe,ce)}}e.OneLineRange=i;var c;(function(q){q.List="list",q.Tree="tree"})(c||(e.ViewMode=c={}));var _;(function(q){q.Default="default",q.FileNames="fileNames",q.Type="type",q.Modified="modified",q.CountDescending="countDescending",q.CountAscending="countAscending"})(_||(e.SearchSortOrder=_={}));function S(q,oe=!0){const ve=q&&q.files&&q.files.exclude,ce=oe&&q&&q.search&&q.search.exclude;if(!ve&&!ce)return;if(!ve||!ce)return ve||ce;let se=Object.create(null);return se=d.mixin(se,d.deepClone(ve)),se=d.mixin(se,d.deepClone(ce),!0),se}e.getExcludes=S;function k(q,oe){return q.excludePattern&&M.match(q.excludePattern,oe)?!1:q.includePattern||q.usingSearchPaths?q.includePattern&&M.match(q.includePattern,oe)?!0:q.usingSearchPaths?!!q.folderQueries&&q.folderQueries.some(ve=>{const ce=ve.folder.fsPath;if(A.isEqualOrParent(oe,ce)){const se=p.relative(ce,oe);return!ve.includePattern||!!M.match(ve.includePattern,se)}else return!1}):!1:!0}e.pathIncludedInQuery=k;var m;(function(q){q[q.unknownEncoding=1]="unknownEncoding",q[q.regexParseError=2]="regexParseError",q[q.globParseError=3]="globParseError",q[q.invalidLiteral=4]="invalidLiteral",q[q.rgProcessError=5]="rgProcessError",q[q.other=6]="other",q[q.canceled=7]="canceled"})(m||(e.SearchErrorCode=m={}));class v extends Error{constructor(oe,ve){super(oe),this.code=ve}}e.SearchError=v;function D(q){const oe=q.message;if((0,f.isCancellationError)(q))return new v(oe,m.canceled);try{const ve=JSON.parse(oe);return new v(ve.message,ve.code)}catch{return new v(oe,m.other)}}e.deserializeSearchError=D;function L(q){const oe={message:q.message,code:q.code};return new Error(JSON.stringify(oe))}e.serializeSearchError=L;function O(q){return q.type==="error"?!0:q.type==="success"}e.isSerializedSearchComplete=O;function H(q){return q.type==="success"}e.isSerializedSearchSuccess=H;function N(q){return!!q.path}e.isSerializedFileMatch=N;function $(q,oe){const ve=q.searchPath?q.searchPath:q.relativePath;return(0,R.fuzzyContains)(ve,oe)}e.isFilePatternMatch=$;class U{constructor(oe){this.path=oe,this.results=[]}addMatch(oe){this.results.push(oe)}serialize(){return{path:this.path,results:this.results,numMatches:this.results.length}}}e.SerializableFileMatch=U;function x(q,oe){const ve={...q||{},...oe||{}};return Object.keys(ve).filter(ce=>{const se=ve[ce];return typeof se=="boolean"&&se})}e.resolvePatternsForProvider=x;class X{constructor(oe,ve){this._parsedIncludeExpression=null,this._excludeExpression={...oe.excludePattern||{},...ve.excludePattern||{}},this._parsedExcludeExpression=M.parse(this._excludeExpression);let ce=oe.includePattern;ve.includePattern&&(ce?ce={...ce,...ve.includePattern}:ce=ve.includePattern),ce&&(this._parsedIncludeExpression=M.parse(ce))}matchesExcludesSync(oe,ve,ce){return!!(this._parsedExcludeExpression&&this._parsedExcludeExpression(oe,ve,ce))}includedInQuerySync(oe,ve,ce){return!(this._parsedExcludeExpression&&this._parsedExcludeExpression(oe,ve,ce)||this._parsedIncludeExpression&&!this._parsedIncludeExpression(oe,ve,ce))}includedInQuery(oe,ve,ce){const se=this._parsedExcludeExpression(oe,ve,ce),te=()=>this._parsedIncludeExpression?!!this._parsedIncludeExpression(oe,ve,ce):!0;return(0,E.isThenable)(se)?se.then(B=>B?!1:te()):te()}hasSiblingExcludeClauses(){return K(this._excludeExpression)}}e.QueryGlobTester=X;function K(q){for(const oe in q)if(typeof q[oe]!="boolean")return!0;return!1}function pe(q){if(!q)return;let oe;return ve=>(oe||(oe=(q()||Promise.resolve([])).then(ce=>ce?re(ce):{})),oe.then(ce=>!!ce[ve]))}e.hasSiblingPromiseFn=pe;function le(q){if(!q)return;let oe;return ve=>{if(!oe){const ce=q();oe=ce?re(ce):{}}return!!oe[ve]}}e.hasSiblingFn=le;function re(q){const oe={};for(const ve of q)oe[ve]=!0;return oe}}),define(ye[49],Ce([1,0,19,13,22,4,5,73,15,118,25,16,2,220,6,12,244,54,55,26,20,11,7,56,35,3]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a,l,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostWorkspace=e.ExtHostWorkspace=void 0;function c(O,H,N){return new y.ExtUri($=>m($,N)).isEqual(O,H)}function _(O,H,N){return c(O.uri,H.uri,N)?0:(0,E.compare)(O.uri.toString(),H.uri.toString())}function S(O,H,N){return O.index!==H.index?O.index<H.index?-1:1:c(O.uri,H.uri,N)?(0,E.compare)(O.name,H.name):(0,E.compare)(O.uri.toString(),H.uri.toString())}function k(O,H,N,$){const U=O.slice(0).sort((X,K)=>N(X,K,$)),x=H.slice(0).sort((X,K)=>N(X,K,$));return(0,w.delta)(U,x,(X,K)=>N(X,K,$))}function m(O,H){const N=H.getCapabilities(O.scheme);return!(N&&N&1024)}class v extends h.Workspace{static toExtHostWorkspace(H,N,$,U){if(!H)return{workspace:null,added:[],removed:[]};const{id:x,name:X,folders:K,configuration:pe,transient:le,isUntitled:re}=H,q=[],oe=N;N?K.forEach((te,B)=>{const G=t.URI.revive(te.uri),fe=v._findFolder($||N,G,U);fe?(fe.name=te.name,fe.index=te.index,q.push(fe)):q.push({uri:G,name:te.name,index:B})}):q.push(...K.map(({uri:te,name:B,index:G})=>({uri:t.URI.revive(te),name:B,index:G}))),q.sort((te,B)=>te.index<B.index?-1:1);const ve=new v(x,X,q,!!le,pe?t.URI.revive(pe):null,!!re,te=>m(te,U)),{added:ce,removed:se}=k(oe?oe.workspaceFolders:[],ve.workspaceFolders,_,U);return{workspace:ve,added:ce,removed:se}}static _findFolder(H,N,$){for(let U=0;U<H.folders.length;U++){const x=H.workspaceFolders[U];if(c(x.uri,N,$))return x}}constructor(H,N,$,U,x,X,K){super(H,$.map(pe=>new h.WorkspaceFolder(pe)),U,x,K),this._name=N,this._isUntitled=X,this._workspaceFolders=[],this._structure=u.TernarySearchTree.forUris(K),$.forEach(pe=>{this._workspaceFolders.push(pe),this._structure.set(pe.uri,pe)})}get name(){return this._name}get isUntitled(){return this._isUntitled}get workspaceFolders(){return this._workspaceFolders.slice(0)}getWorkspaceFolder(H,N){return N&&this._structure.get(H)&&(H=(0,y.dirname)(H)),this._structure.findSubstr(H)}resolveWorkspaceFolder(H){return this._structure.get(H)}}let D=class{constructor(H,N,$,U,x){this._onDidChangeWorkspace=new A.Emitter,this.onDidChangeWorkspace=this._onDidChangeWorkspace.event,this._onDidGrantWorkspaceTrust=new A.Emitter,this.onDidGrantWorkspaceTrust=this._onDidGrantWorkspaceTrust.event,this._activeSearchCallbacks=[],this._trusted=!1,this._editSessionIdentityProviders=new Map,this._providerHandlePool=0,this._onWillCreateEditSessionIdentityEvent=new A.AsyncEmitter,this._canonicalUriProviders=new Map,this._logService=U,this._extHostFileSystemInfo=$,this._uriTransformerService=x,this._requestIdProvider=new f.Counter,this._barrier=new M.Barrier,this._proxy=H.getProxy(i.MainContext.MainThreadWorkspace),this._messageService=H.getProxy(i.MainContext.MainThreadMessageService);const X=N.workspace;this._confirmedWorkspace=X?new v(X.id,X.name,[],!!X.transient,X.configuration?t.URI.revive(X.configuration):null,!!X.isUntitled,K=>m(K,$)):void 0}$initializeWorkspace(H,N){this._trusted=N,this.$acceptWorkspaceData(H),this._barrier.open()}waitForInitializeCall(){return this._barrier.wait()}get workspace(){return this._actualWorkspace}get name(){return this._actualWorkspace?this._actualWorkspace.name:void 0}get workspaceFile(){if(this._actualWorkspace&&this._actualWorkspace.configuration)return this._actualWorkspace.isUntitled?t.URI.from({scheme:p.Schemas.untitled,path:(0,y.basename)((0,y.dirname)(this._actualWorkspace.configuration))}):this._actualWorkspace.configuration}get _actualWorkspace(){return this._unconfirmedWorkspace||this._confirmedWorkspace}getWorkspaceFolders(){if(this._actualWorkspace)return this._actualWorkspace.workspaceFolders.slice(0)}async getWorkspaceFolders2(){if(await this._barrier.wait(),!!this._actualWorkspace)return this._actualWorkspace.workspaceFolders.slice(0)}updateWorkspaceFolders(H,N,$,...U){const x=[];if(Array.isArray(U)&&U.forEach(re=>{t.URI.isUri(re.uri)&&!x.some(q=>c(q.uri,re.uri,this._extHostFileSystemInfo))&&x.push({uri:re.uri,name:re.name||(0,y.basenameOrAuthority)(re.uri)})}),this._unconfirmedWorkspace||[N,$].some(re=>typeof re!="number"||re<0)||$===0&&x.length===0)return!1;const X=this._actualWorkspace?this._actualWorkspace.workspaceFolders:[];if(N+$>X.length)return!1;const K=X.slice(0);K.splice(N,$,...x.map(re=>({uri:re.uri,name:re.name||(0,y.basenameOrAuthority)(re.uri),index:void 0})));for(let re=0;re<K.length;re++){const q=K[re];if(K.some((oe,ve)=>ve!==re&&c(q.uri,oe.uri,this._extHostFileSystemInfo)))return!1}K.forEach((re,q)=>re.index=q);const{added:pe,removed:le}=k(X,K,S,this._extHostFileSystemInfo);if(pe.length===0&&le.length===0)return!1;if(this._proxy){const re=H.displayName||H.name;this._proxy.$updateWorkspaceFolders(re,N,$,x).then(void 0,q=>{this._unconfirmedWorkspace=void 0;const oe={source:{identifier:H.identifier,label:H.displayName||H.name}};this._messageService.$showMessage(r.Severity.Error,(0,s.localize)(0,null,re,q.toString()),oe,[])})}return this.trySetWorkspaceFolders(K),!0}getWorkspaceFolder(H,N){if(this._actualWorkspace)return this._actualWorkspace.getWorkspaceFolder(H,N)}async getWorkspaceFolder2(H,N){if(await this._barrier.wait(),!!this._actualWorkspace)return this._actualWorkspace.getWorkspaceFolder(H,N)}async resolveWorkspaceFolder(H){if(await this._barrier.wait(),!!this._actualWorkspace)return this._actualWorkspace.resolveWorkspaceFolder(H)}getPath(){if(!this._actualWorkspace)return;const{folders:H}=this._actualWorkspace;if(H.length!==0)return H[0].uri.fsPath}getRelativePath(H,N){let $,U="";if(typeof H=="string"?($=t.URI.file(H),U=H):typeof H<"u"&&($=H,U=H.fsPath),!$)return U;const x=this.getWorkspaceFolder($,!0);if(!x)return U;typeof N>"u"&&this._actualWorkspace&&(N=this._actualWorkspace.folders.length>1);let X=(0,y.relativePath)(x.uri,$);return N&&x.name&&(X=`${x.name}/${X}`),X}trySetWorkspaceFolders(H){this._actualWorkspace&&(this._unconfirmedWorkspace=v.toExtHostWorkspace({id:this._actualWorkspace.id,name:this._actualWorkspace.name,configuration:this._actualWorkspace.configuration,folders:H,isUntitled:this._actualWorkspace.isUntitled},this._actualWorkspace,void 0,this._extHostFileSystemInfo).workspace||void 0)}$acceptWorkspaceData(H){const{workspace:N,added:$,removed:U}=v.toExtHostWorkspace(H,this._confirmedWorkspace,this._unconfirmedWorkspace,this._extHostFileSystemInfo);this._confirmedWorkspace=N||void 0,this._unconfirmedWorkspace=void 0,this._onDidChangeWorkspace.fire(Object.freeze({added:$,removed:U}))}findFiles(H,N,$,U,x=d.CancellationToken.None){this._logService.trace(`extHostWorkspace#findFiles: fileSearch, extension: ${U.value}, entryPoint: findFiles`);let X;if(N===null?X=!1:N&&(typeof N=="string"?X=N:X=N.pattern),x&&x.isCancellationRequested)return Promise.resolve([]);const{includePattern:K,folder:pe}=L(T.GlobPattern.from(H));return this._proxy.$startFileSearch(K??null,pe??null,X??null,$??null,x).then(le=>Array.isArray(le)?le.map(re=>t.URI.revive(re)):[])}async findTextInFiles(H,N,$,U,x=d.CancellationToken.None){this._logService.trace(`extHostWorkspace#findTextInFiles: textSearch, extension: ${U.value}, entryPoint: findTextInFiles`);const X=this._requestIdProvider.getNext(),K=typeof N.previewOptions>"u"?{matchLines:100,charsPerLine:1e4}:N.previewOptions,{includePattern:pe,folder:le}=L(T.GlobPattern.from(N.include)),re=typeof N.exclude=="string"?N.exclude:N.exclude?N.exclude.pattern:void 0,q={ignoreSymlinks:typeof N.followSymlinks=="boolean"?!N.followSymlinks:void 0,disregardIgnoreFiles:typeof N.useIgnoreFiles=="boolean"?!N.useIgnoreFiles:void 0,disregardGlobalIgnoreFiles:typeof N.useGlobalIgnoreFiles=="boolean"?!N.useGlobalIgnoreFiles:void 0,disregardParentIgnoreFiles:typeof N.useParentIgnoreFiles=="boolean"?!N.useParentIgnoreFiles:void 0,disregardExcludeSettings:typeof N.useDefaultExcludes=="boolean"?!N.useDefaultExcludes:!0,fileEncoding:N.encoding,maxResults:N.maxResults,previewOptions:K,afterContext:N.afterContext,beforeContext:N.beforeContext,includePattern:pe,excludePattern:re},oe=!1;if(this._activeSearchCallbacks[X]=ve=>{if(oe)return;const ce=t.URI.revive(ve.resource);ve.results.forEach(se=>{(0,l.resultIsMatch)(se)?$({uri:ce,preview:{text:se.preview.text,matches:(0,w.mapArrayOrNot)(se.preview.matches,te=>new n.Range(te.startLineNumber,te.startColumn,te.endLineNumber,te.endColumn))},ranges:(0,w.mapArrayOrNot)(se.ranges,te=>new n.Range(te.startLineNumber,te.startColumn,te.endLineNumber,te.endColumn))}):$({uri:ce,text:se.text,lineNumber:se.lineNumber})})},x.isCancellationRequested)return{};try{const ve=await this._proxy.$startTextSearch(H,le??null,q,X,x);return delete this._activeSearchCallbacks[X],ve||{}}catch(ve){throw delete this._activeSearchCallbacks[X],ve}}$handleTextSearchResult(H,N){this._activeSearchCallbacks[N]?.(H)}async save(H){const N=await this._proxy.$save(H,{saveAs:!1});return t.URI.revive(N)}async saveAs(H){const N=await this._proxy.$save(H,{saveAs:!0});return t.URI.revive(N)}saveAll(H){return this._proxy.$saveAll(H)}resolveProxy(H){return this._proxy.$resolveProxy(H)}get trusted(){return this._trusted}requestWorkspaceTrust(H){return this._proxy.$requestWorkspaceTrust(H)}$onDidGrantWorkspaceTrust(){this._trusted||(this._trusted=!0,this._onDidGrantWorkspaceTrust.fire())}registerEditSessionIdentityProvider(H,N){if(this._editSessionIdentityProviders.has(H))throw new Error(`A provider has already been registered for scheme ${H}`);this._editSessionIdentityProviders.set(H,N);const $=this._uriTransformerService.transformOutgoingScheme(H),U=this._providerHandlePool++;return this._proxy.$registerEditSessionIdentityProvider(U,$),(0,R.toDisposable)(()=>{this._editSessionIdentityProviders.delete(H),this._proxy.$unregisterEditSessionIdentityProvider(U)})}async $getEditSessionIdentifier(H,N){this._logService.info("Getting edit session identifier for workspaceFolder",H);const $=await this.resolveWorkspaceFolder(t.URI.revive(H));if(!$){this._logService.warn("Unable to resolve workspace folder");return}this._logService.info("Invoking #provideEditSessionIdentity for workspaceFolder",$);const U=this._editSessionIdentityProviders.get($.uri.scheme);if(this._logService.info(`Provider for scheme ${$.uri.scheme} is defined: `,!!U),!U)return;const x=await U.provideEditSessionIdentity($,N);if(this._logService.info("Provider returned edit session identifier: ",x),!!x)return x}async $provideEditSessionIdentityMatch(H,N,$,U){this._logService.info("Getting edit session identifier for workspaceFolder",H);const x=await this.resolveWorkspaceFolder(t.URI.revive(H));if(!x){this._logService.warn("Unable to resolve workspace folder");return}this._logService.info("Invoking #provideEditSessionIdentity for workspaceFolder",x);const X=this._editSessionIdentityProviders.get(x.uri.scheme);if(this._logService.info(`Provider for scheme ${x.uri.scheme} is defined: `,!!X),!X)return;const K=await X.provideEditSessionIdentityMatch?.(N,$,U);if(this._logService.info("Provider returned edit session identifier match result: ",K),!!K)return K}getOnWillCreateEditSessionIdentityEvent(H){return(N,$,U)=>{const x=function(K){N.call($,K)};return x.extension=H,this._onWillCreateEditSessionIdentityEvent.event(x,void 0,U)}}async $onWillCreateEditSessionIdentity(H,N,$){const U=await this.resolveWorkspaceFolder(t.URI.revive(H));if(U===void 0)throw new Error("Unable to resolve workspace folder");await this._onWillCreateEditSessionIdentityEvent.fireAsync({workspaceFolder:U},N,async(x,X)=>{const K=Date.now();await Promise.resolve(x),Date.now()-K>$&&this._logService.warn("SLOW edit session create-participant",X.extension.identifier)}),N.isCancellationRequested}registerCanonicalUriProvider(H,N){if(this._canonicalUriProviders.has(H))throw new Error(`A provider has already been registered for scheme ${H}`);this._canonicalUriProviders.set(H,N);const $=this._uriTransformerService.transformOutgoingScheme(H),U=this._providerHandlePool++;return this._proxy.$registerCanonicalUriProvider(U,$),(0,R.toDisposable)(()=>{this._canonicalUriProviders.delete(H),this._proxy.$unregisterCanonicalUriProvider(U)})}async provideCanonicalUri(H,N,$){const U=this._canonicalUriProviders.get(H.scheme);if(!U)return;const x=await U.provideCanonicalUri?.(t.URI.revive(H),N,$);if(x)return x}async $provideCanonicalUri(H,N,$){return this.provideCanonicalUri(t.URI.revive(H),{targetScheme:N},$)}};e.ExtHostWorkspace=D,e.ExtHostWorkspace=D=je([He(0,P.IExtHostRpcService),He(1,b.IExtHostInitDataService),He(2,o.IExtHostFileSystemInfo),He(3,C.ILogService),He(4,a.IURITransformerService)],D),e.IExtHostWorkspace=(0,g.createDecorator)("IExtHostWorkspace");function L(O){let H,N;return O&&(typeof O=="string"?H=O:(H=O.pattern,N=t.URI.revive(O.baseUri))),{includePattern:H,folder:N}}}),define(ye[50],Ce([1,0,24,4,49,3,7,246,137,18,13,6,20,12,2]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostConfiguration=e.ExtHostConfigProvider=e.ExtHostConfiguration=void 0;function C(a,l){if(l){const i=l.split(".");let c=a;for(let _=0;c&&_<i.length;_++)c=c[i[_]];return c}}function r(a){return a instanceof g.URI}function h(a){return a&&a.uri instanceof g.URI&&a.languageId&&typeof a.languageId=="string"}function o(a){return a&&!a.uri&&a.languageId&&typeof a.languageId=="string"}function b(a){return a&&a.uri instanceof g.URI&&(!a.name||typeof a.name=="string")&&(!a.index||typeof a.index=="number")}function P(a){if(r(a))return{resource:a};if(h(a))return{resource:a.uri,overrideIdentifier:a.languageId};if(o(a))return{overrideIdentifier:a.languageId};if(b(a))return{resource:a.uri};if(a===null)return{resource:null}}let T=class{constructor(l,i,c){this._proxy=l.getProxy(A.MainContext.MainThreadConfiguration),this._extHostWorkspace=i,this._logService=c,this._barrier=new y.Barrier,this._actual=null}getConfigProvider(){return this._barrier.wait().then(l=>this._actual)}$initializeConfiguration(l){this._actual=new n(this._proxy,this._extHostWorkspace,l,this._logService),this._barrier.open()}$acceptConfigurationChanged(l,i){this.getConfigProvider().then(c=>c.$acceptConfigurationChanged(l,i))}};e.ExtHostConfiguration=T,e.ExtHostConfiguration=T=je([He(0,t.IExtHostRpcService),He(1,d.IExtHostWorkspace),He(2,s.ILogService)],T);class n{constructor(l,i,c,_){this._onDidChangeConfiguration=new M.Emitter,this._proxy=l,this._logService=_,this._extHostWorkspace=i,this._configuration=u.Configuration.parse(c),this._configurationScopes=this._toMap(c.configurationScopes)}get onDidChangeConfiguration(){return this._onDidChangeConfiguration&&this._onDidChangeConfiguration.event}$acceptConfigurationChanged(l,i){const c={data:this._configuration.toData(),workspace:this._extHostWorkspace.workspace};this._configuration=u.Configuration.parse(l),this._configurationScopes=this._toMap(l.configurationScopes),this._onDidChangeConfiguration.fire(this._toConfigurationChangeEvent(i,c))}getConfiguration(l,i,c){const _=P(i)||{},S=this._toReadonlyValue(l?C(this._configuration.getValue(void 0,_,this._extHostWorkspace.workspace),l):this._configuration.getValue(void 0,_,this._extHostWorkspace.workspace));l&&this._validateConfigurationAccess(l,_,c?.identifier);function k(v){if(v==null)return null;if(typeof v=="boolean")return v?2:5;switch(v){case R.ConfigurationTarget.Global:return 2;case R.ConfigurationTarget.Workspace:return 5;case R.ConfigurationTarget.WorkspaceFolder:return 6}}const m={has(v){return typeof C(S,v)<"u"},get:(v,D)=>{this._validateConfigurationAccess(l?`${l}.${v}`:v,_,c?.identifier);let L=C(S,v);if(typeof L>"u")L=D;else{let O;const H=(N,$)=>{if((0,f.isObject)(N)){let U;const x=()=>{O=O||(0,w.deepClone)(S),U=U||C(O,$)};return new Proxy(N,{get:(X,K)=>{if(typeof K=="string"&&K.toLowerCase()==="tojson")return x(),()=>U;if(O)return U=U||C(O,$),U[K];const pe=X[K];return typeof K=="string"?H(pe,`${$}.${K}`):pe},set:(X,K,pe)=>(x(),U&&(U[K]=pe),!0),deleteProperty:(X,K)=>(x(),U&&delete U[K],!0),defineProperty:(X,K,pe)=>(x(),U&&Object.defineProperty(U,K,pe),!0)})}return Array.isArray(N)?(0,w.deepClone)(N):N};L=H(L,v)}return L},update:(v,D,L,O)=>{v=l?`${l}.${v}`:v;const H=k(L);return D!==void 0?this._proxy.$updateConfigurationOption(H,v,D,_,O):this._proxy.$removeConfigurationOption(H,v,_,O)},inspect:v=>{v=l?`${l}.${v}`:v;const D=this._configuration.inspect(v,_,this._extHostWorkspace.workspace);if(D)return{key:v,defaultValue:(0,w.deepClone)(D.policy?.value??D.default?.value),globalValue:(0,w.deepClone)(D.user?.value??D.application?.value),workspaceValue:(0,w.deepClone)(D.workspace?.value),workspaceFolderValue:(0,w.deepClone)(D.workspaceFolder?.value),defaultLanguageValue:(0,w.deepClone)(D.default?.override),globalLanguageValue:(0,w.deepClone)(D.user?.override??D.application?.override),workspaceLanguageValue:(0,w.deepClone)(D.workspace?.override),workspaceFolderLanguageValue:(0,w.deepClone)(D.workspaceFolder?.override),languageIds:(0,w.deepClone)(D.overrideIdentifiers)}}};return typeof S=="object"&&(0,w.mixin)(m,S,!1),Object.freeze(m)}_toReadonlyValue(l){const i=c=>(0,f.isObject)(c)?new Proxy(c,{get:(_,S)=>i(_[S]),set:(_,S,k)=>{throw new Error(`TypeError: Cannot assign to read only property '${String(S)}' of object`)},deleteProperty:(_,S)=>{throw new Error(`TypeError: Cannot delete read only property '${String(S)}' of object`)},defineProperty:(_,S)=>{throw new Error(`TypeError: Cannot define property '${String(S)}' for a readonly object`)},setPrototypeOf:_=>{throw new Error("TypeError: Cannot set prototype for a readonly object")},isExtensible:()=>!1,preventExtensions:()=>!0}):c;return i(l)}_validateConfigurationAccess(l,i,c){const _=p.OVERRIDE_PROPERTY_REGEX.test(l)?4:this._configurationScopes.get(l),S=c?`[${c.value}] `:"";if(_===4){typeof i?.resource>"u"&&this._logService.warn(`${S}Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '${l}', provide the URI of a resource or 'null' for any resource.`);return}if(_===3){i?.resource&&this._logService.warn(`${S}Accessing a window scoped configuration for a resource is not expected. To associate '${l}' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.`);return}}_toConfigurationChangeEvent(l,i){const c=new u.ConfigurationChangeEvent(l,i,this._configuration,this._extHostWorkspace.workspace);return Object.freeze({affectsConfiguration:(_,S)=>c.affectsConfiguration(_,P(S))})}_toMap(l){return l.reduce((i,c)=>(i.set(c[0],c[1]),i),new Map)}}e.ExtHostConfigProvider=n,e.IExtHostConfiguration=(0,E.createDecorator)("IExtHostConfiguration")}),define(ye[93],Ce([1,0,2,13,4,3,7,49,65,50,22,48,20,26,6,15,14,12,89,291,8]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtHostTask=e.WorkerExtHostTask=e.ExtHostTaskBase=e.TaskDTO=e.TaskHandleDTO=e.CustomExecutionDTO=void 0;var T;(function(H){function N(U){if(U!=null)return U}H.from=N;function $(U){if(U!=null)return U}H.to=$})(T||(T={}));var n;(function(H){function N(U){if(U!=null)return U}H.from=N;function $(U){if(U!=null)return U}H.to=$})(n||(n={}));var a;(function(H){function N(U){if(U!=null)return U}H.from=N;function $(U){if(U!=null)return U}H.to=$})(a||(a={}));var l;(function(H){function N(x){if(x){const X=x;return X&&!!X.process}else return!1}H.is=N;function $(x){if(x==null)return;const X={process:x.process,args:x.args};return x.options&&(X.options=a.from(x.options)),X}H.from=$;function U(x){if(x!=null)return new R.ProcessExecution(x.process,x.args,x.options)}H.to=U})(l||(l={}));var i;(function(H){function N(U){if(U!=null)return U}H.from=N;function $(U){if(U!=null)return U}H.to=$})(i||(i={}));var c;(function(H){function N(x){if(x){const X=x;return X&&(!!X.commandLine||!!X.command)}else return!1}H.is=N;function $(x){if(x==null)return;const X={};return x.commandLine!==void 0?X.commandLine=x.commandLine:(X.command=x.command,X.args=x.args),x.options&&(X.options=i.from(x.options)),X}H.from=$;function U(x){if(!(x==null||x.command===void 0&&x.commandLine===void 0))return x.commandLine?new R.ShellExecution(x.commandLine,x.options):new R.ShellExecution(x.command,x.args?x.args:[],x.options)}H.to=U})(c||(c={}));var _;(function(H){function N(x){if(x){const X=x;return X&&X.customExecution==="customExecution"}else return!1}H.is=N;function $(x){return{customExecution:"customExecution"}}H.from=$;function U(x,X){return X.get(x)}H.to=U})(_||(e.CustomExecutionDTO=_={}));var S;(function(H){function N($,U){let x;return $.scope!==void 0&&typeof $.scope!="number"?x=$.scope.uri:$.scope!==void 0&&typeof $.scope=="number"&&($.scope===R.TaskScope.Workspace&&U&&U.workspaceFile?x=U.workspaceFile:x=b.USER_TASKS_GROUP_KEY),{id:$._id,workspaceFolder:x}}H.from=N})(S||(e.TaskHandleDTO=S={}));var k;(function(H){function N($){if($!=null)return{_id:$.id,isDefault:$.isDefault}}H.from=N})(k||(k={}));var m;(function(H){function N(x,X){if(x==null)return[];const K=[];for(const pe of x){const le=$(pe,X);le&&K.push(le)}return K}H.fromMany=N;function $(x,X){if(x==null)return;let K;x.execution instanceof R.ProcessExecution?K=l.from(x.execution):x.execution instanceof R.ShellExecution?K=c.from(x.execution):x.execution&&x.execution instanceof R.CustomExecution&&(K=_.from(x.execution));const pe=T.from(x.definition);let le;return x.scope?typeof x.scope=="number"?le=x.scope:le=x.scope.uri:le=R.TaskScope.Workspace,!pe||!le?void 0:{_id:x._id,definition:pe,name:x.name,source:{extensionId:X.identifier.value,label:x.source,scope:le},execution:K,isBackground:x.isBackground,group:k.from(x.group),presentationOptions:n.from(x.presentationOptions),problemMatchers:x.problemMatchers,hasDefinedMatchers:x.hasDefinedMatchers,runOptions:x.runOptions?x.runOptions:{reevaluateOnRerun:!0},detail:x.detail}}H.from=$;async function U(x,X,K){if(x==null)return;let pe;l.is(x.execution)?pe=l.to(x.execution):c.is(x.execution)?pe=c.to(x.execution):_.is(x.execution)&&(pe=_.to(x._id,K));const le=T.to(x.definition);let re;if(x.source&&(x.source.scope!==void 0?typeof x.source.scope=="number"?re=x.source.scope:re=await X.resolveWorkspaceFolder(w.URI.revive(x.source.scope)):re=R.TaskScope.Workspace),!le||!re)return;const q=new R.Task(le,re,x.name,x.source.label,pe,x.problemMatchers);return x.isBackground!==void 0&&(q.isBackground=x.isBackground),x.group!==void 0&&(q.group=R.TaskGroup.from(x.group._id),q.group&&x.group.isDefault&&(q.group=new R.TaskGroup(q.group.id,q.group.label),x.group.isDefault===!0&&(q.group.isDefault=x.group.isDefault))),x.presentationOptions&&(q.presentationOptions=n.to(x.presentationOptions)),x._id&&(q._id=x._id),x.detail&&(q.detail=x.detail),q}H.to=U})(m||(e.TaskDTO=m={}));var v;(function(H){function N(U){return U}H.from=N;function $(U){if(U)return Object.assign(Object.create(null),U)}H.to=$})(v||(v={}));class D{#e;constructor(N,$,U){this._id=$,this._task=U,this.#e=N}get task(){return this._task}terminate(){this.#e.terminateTask(this)}fireDidStartProcess(N){}fireDidEndProcess(N){}}let L=class{constructor(N,$,U,x,X,K,pe,le){this._onDidExecuteTask=new d.Emitter,this._onDidTerminateTask=new d.Emitter,this._onDidTaskProcessStarted=new d.Emitter,this._onDidTaskProcessEnded=new d.Emitter,this._proxy=N.getProxy(A.MainContext.MainThreadTask),this._workspaceProvider=U,this._editorService=x,this._configurationService=X,this._terminalService=K,this._handleCounter=0,this._handlers=new Map,this._taskExecutions=new Map,this._taskExecutionPromises=new Map,this._providedCustomExecutions2=new Map,this._notProvidedCustomExecutions=new Set,this._activeCustomExecutions2=new Map,this._logService=pe,this._deprecationService=le,this._proxy.$registerSupportedExecutions(!0)}registerTaskProvider(N,$,U){if(!U)return new R.Disposable(()=>{});const x=this.nextHandle();return this._handlers.set(x,{type:$,provider:U,extension:N}),this._proxy.$registerTaskProvider(x,$),new R.Disposable(()=>{this._handlers.delete(x),this._proxy.$unregisterTaskProvider(x)})}registerTaskSystem(N,$){this._proxy.$registerTaskSystem(N,$)}fetchTasks(N){return this._proxy.$fetchTasks(v.from(N)).then(async $=>{const U=[];for(const x of $){const X=await m.to(x,this._workspaceProvider,this._providedCustomExecutions2);X&&U.push(X)}return U})}get taskExecutions(){const N=[];return this._taskExecutions.forEach($=>N.push($)),N}terminateTask(N){if(!(N instanceof D))throw new Error("No valid task execution provided");return this._proxy.$terminateTask(N._id)}get onDidStartTask(){return this._onDidExecuteTask.event}async $onDidStartTask(N,$,U){const x=this._providedCustomExecutions2.get(N.id);x&&(this._activeCustomExecutions2.set(N.id,x),this._terminalService.attachPtyToTerminal($,await x.callback(U))),this._lastStartedTask=N.id,this._onDidExecuteTask.fire({execution:await this.getTaskExecution(N)})}get onDidEndTask(){return this._onDidTerminateTask.event}async $OnDidEndTask(N){const $=await this.getTaskExecution(N);this._taskExecutionPromises.delete(N.id),this._taskExecutions.delete(N.id),this.customExecutionComplete(N),this._onDidTerminateTask.fire({execution:$})}get onDidStartTaskProcess(){return this._onDidTaskProcessStarted.event}async $onDidStartTaskProcess(N){const $=await this.getTaskExecution(N.id);this._onDidTaskProcessStarted.fire({execution:$,processId:N.processId})}get onDidEndTaskProcess(){return this._onDidTaskProcessEnded.event}async $onDidEndTaskProcess(N){const $=await this.getTaskExecution(N.id);this._onDidTaskProcessEnded.fire({execution:$,exitCode:N.exitCode})}$provideTasks(N,$){const U=this._handlers.get(N);if(!U)return Promise.reject(new Error("no handler found"));const x=[],X=(0,M.asPromise)(()=>U.provider.provideTasks(y.CancellationToken.None)).then(K=>this.provideTasksInternal($,x,U,K));return new Promise(K=>{X.then(pe=>{Promise.all(x).then(()=>{K(pe)})})})}async $resolveTask(N,$){const U=this._handlers.get(N);if(!U)return Promise.reject(new Error("no handler found"));if($.definition.type!==U.type)throw new Error(`Unexpected: Task of type [${$.definition.type}] cannot be resolved by provider of type [${U.type}].`);const x=await m.to($,this._workspaceProvider,this._providedCustomExecutions2);if(!x)throw new Error("Unexpected: Task cannot be resolved.");const X=await U.provider.resolveTask(x,y.CancellationToken.None);if(!X)return;this.checkDeprecation(X,U);const K=m.from(X,U.extension);if(!K)throw new Error("Unexpected: Task cannot be resolved.");if(X.definition!==x.definition)throw new Error("Unexpected: The resolved task definition must be the same object as the original task definition. The task definition cannot be changed.");return _.is(K.execution)&&await this.addCustomExecution(K,X,!0),await this.resolveTaskInternal(K)}nextHandle(){return this._handleCounter++}async addCustomExecution(N,$,U){const x=await this._proxy.$createTaskId(N);!U&&!this._providedCustomExecutions2.has(x)&&(this._notProvidedCustomExecutions.add(x),this._activeCustomExecutions2.set(x,$.execution)),this._providedCustomExecutions2.set(x,$.execution)}async getTaskExecution(N,$){if(typeof N=="string"){const X=this._taskExecutionPromises.get(N);if(!X)throw new P.ErrorNoTelemetry("Unexpected: The specified task is missing an execution");return X}const U=this._taskExecutionPromises.get(N.id);if(U)return U;const x=new Promise((X,K)=>{function pe(le,re,q){q?X(new D(le,re.id,q)):K("Unexpected: Task does not exist.")}$?pe(this,N,$):m.to(N.task,this._workspaceProvider,this._providedCustomExecutions2).then(le=>pe(this,N,le))});return this._taskExecutionPromises.set(N.id,x),x.then(X=>(this._taskExecutions.set(N.id,X),X),X=>Promise.reject(X))}checkDeprecation(N,$){N._deprecated&&this._deprecationService.report("Task.constructor",$.extension,"Use the Task constructor that takes a `scope` instead.")}customExecutionComplete(N){this._activeCustomExecutions2.get(N.id)&&this._activeCustomExecutions2.delete(N.id),this._notProvidedCustomExecutions.has(N.id)&&this._lastStartedTask!==N.id&&(this._providedCustomExecutions2.delete(N.id),this._notProvidedCustomExecutions.delete(N.id));const U=this._notProvidedCustomExecutions.values();let x=U.next();for(;!x.done;)!this._activeCustomExecutions2.has(x.value)&&this._lastStartedTask!==x.value&&(this._providedCustomExecutions2.delete(x.value),this._notProvidedCustomExecutions.delete(x.value)),x=U.next()}};e.ExtHostTaskBase=L,e.ExtHostTaskBase=L=je([He(0,t.IExtHostRpcService),He(1,s.IExtHostInitDataService),He(2,u.IExtHostWorkspace),He(3,p.IExtHostDocumentsAndEditors),He(4,f.IExtHostConfiguration),He(5,E.IExtHostTerminalService),He(6,h.ILogService),He(7,o.IExtHostApiDeprecationService)],L);let O=class extends L{constructor(N,$,U,x,X,K,pe,le){super(N,$,U,x,X,K,pe,le),this.registerTaskSystem(C.Schemas.vscodeRemote,{scheme:C.Schemas.vscodeRemote,authority:"",platform:r.PlatformToString(0)})}async executeTask(N,$){if(!$.execution)throw new Error("Tasks to execute must include an execution");const U=m.from($,N);if(U===void 0)throw new Error("Task is not valid");if(_.is(U.execution))await this.addCustomExecution(U,$,!1);else throw new P.NotSupportedError;const x=await this.getTaskExecution(await this._proxy.$getTaskExecution(U),$);return this._proxy.$executeTask(U).catch(X=>{throw new Error(X)}),x}provideTasksInternal(N,$,U,x){const X=[];if(x)for(const K of x){this.checkDeprecation(K,U),(!K.definition||!N[K.definition.type])&&this._logService.warn(`The task [${K.source}, ${K.name}] uses an undefined task type. The task will be ignored in the future.`);const pe=m.from(K,U.extension);pe&&_.is(pe.execution)?(X.push(pe),$.push(this.addCustomExecution(pe,K,!0))):this._logService.warn("Only custom execution tasks supported.")}return{tasks:X,extension:U.extension}}async resolveTaskInternal(N){if(_.is(N.execution))return N;this._logService.warn("Only custom execution tasks supported.")}async $resolveVariables(N,$){return{process:void 0,variables:Object.create(null)}}async $jsonTasksSupported(){return!1}async $findExecutable(N,$,U){}};e.WorkerExtHostTask=O,e.WorkerExtHostTask=O=je([He(0,t.IExtHostRpcService),He(1,s.IExtHostInitDataService),He(2,u.IExtHostWorkspace),He(3,p.IExtHostDocumentsAndEditors),He(4,f.IExtHostConfiguration),He(5,E.IExtHostTerminalService),He(6,h.ILogService),He(7,o.IExtHostApiDeprecationService)],O),e.IExtHostTask=(0,g.createDecorator)("IExtHostTask")}),define(ye[364],Ce([1,0,17,22,47,34,25,36,35]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileSearchManager=void 0;class f{constructor(t,s,g){this.config=t,this.provider=s,this.sessionToken=g,this.isLimitHit=!1,this.resultCount=0,this.isCanceled=!1,this.filePattern=t.filePattern,this.includePattern=t.includePattern&&A.parse(t.includePattern),this.maxResults=t.maxResults||void 0,this.exists=t.exists,this.activeCancellationTokens=new Set,this.globalExcludePattern=t.excludePattern&&A.parse(t.excludePattern)}cancel(){this.isCanceled=!0,this.activeCancellationTokens.forEach(t=>t.cancel()),this.activeCancellationTokens=new Set}search(t){const s=this.config.folderQueries||[];return new Promise((g,C)=>{const r=h=>{this.resultCount++,t(h)};if(this.isCanceled)return g({limitHit:this.isLimitHit});this.config.extraFileResources&&this.config.extraFileResources.forEach(h=>{const o=h.toString(),b=w.basename(o);this.globalExcludePattern&&this.globalExcludePattern(o,b)||this.matchFile(r,{base:h,basename:b})}),Promise.all(s.map(h=>this.searchInFolder(h,r))).then(h=>{g({limitHit:this.isLimitHit,stats:h[0]||void 0})},h=>{C(new Error((0,d.toErrorMessage)(h)))})})}async searchInFolder(t,s){const g=new M.CancellationTokenSource,C=this.getSearchOptionsForFolder(t),r=this.initDirectoryTree(),h=new p.QueryGlobTester(this.config,t),o=!h.hasSiblingExcludeClauses();let b;try{this.activeCancellationTokens.add(g),b=u.StopWatch.create();const P=await this.provider.provideFileSearchResults({pattern:this.config.filePattern||""},C,g.token),T=b.elapsed(),n=u.StopWatch.create();return this.isCanceled&&!this.isLimitHit||(P&&P.forEach(a=>{const l=w.posix.relative(t.folder.path,a.path);if(o){const i=w.basename(a.path);this.matchFile(s,{base:t.folder,relativePath:l,basename:i});return}this.addDirectoryEntries(r,t.folder,l,s)}),this.isCanceled&&!this.isLimitHit)?null:(this.matchDirectoryTree(r,h,s),{providerTime:T,postProcessTime:n.elapsed()})}finally{g.dispose(),this.activeCancellationTokens.delete(g)}}getSearchOptionsForFolder(t){const s=(0,p.resolvePatternsForProvider)(this.config.includePattern,t.includePattern),g=(0,p.resolvePatternsForProvider)(this.config.excludePattern,t.excludePattern);return{folder:t.folder,excludes:g,includes:s,useIgnoreFiles:!t.disregardIgnoreFiles,useGlobalIgnoreFiles:!t.disregardGlobalIgnoreFiles,useParentIgnoreFiles:!t.disregardParentIgnoreFiles,followSymlinks:!t.ignoreSymlinks,maxResults:this.config.maxResults,session:this.sessionToken}}initDirectoryTree(){const t={rootEntries:[],pathToEntries:Object.create(null)};return t.pathToEntries["."]=t.rootEntries,t}addDirectoryEntries({pathToEntries:t},s,g,C){if(g===this.filePattern){const h=w.basename(this.filePattern);this.matchFile(C,{base:s,relativePath:this.filePattern,basename:h})}function r(h){const o=w.basename(h),b=w.dirname(h);let P=t[b];P||(P=t[b]=[],r(b)),P.push({base:s,relativePath:h,basename:o})}r(g)}matchDirectoryTree({rootEntries:t,pathToEntries:s},g,C){const r=this,h=this.filePattern;function o(b){const P=(0,p.hasSiblingFn)(()=>b.map(T=>T.basename));for(let T=0,n=b.length;T<n;T++){const a=b[T],{relativePath:l,basename:i}=a;if(g.matchesExcludesSync(l,i,h!==i?P:void 0))continue;const c=s[l];if(c)o(c);else{if(l===h)continue;r.matchFile(C,a)}if(r.isLimitHit)break}}o(t)}matchFile(t,s){(!this.includePattern||s.relativePath&&this.includePattern(s.relativePath,s.basename))&&((this.exists||this.maxResults&&this.resultCount>=this.maxResults)&&(this.isLimitHit=!0,this.cancel()),this.isLimitHit||t(s))}}class y{constructor(){this.sessions=new Map}static{this.BATCH_SIZE=512}fileSearch(t,s,g,C){const r=this.getSessionTokenSource(t.cacheKey),h=new f(t,s,r&&r.token);let o=0;const b=P=>{o+=P.length,g(P.map(T=>this.rawMatchToSearchItem(T)))};return this.doSearch(h,y.BATCH_SIZE,b,C).then(P=>({limitHit:P.limitHit,stats:{fromCache:!1,type:"fileSearchProvider",resultCount:o,detailStats:P.stats}}))}clearCache(t){this.getSessionTokenSource(t)?.cancel()}getSessionTokenSource(t){if(t)return this.sessions.has(t)||this.sessions.set(t,new M.CancellationTokenSource),this.sessions.get(t)}rawMatchToSearchItem(t){return t.relativePath?{resource:R.joinPath(t.base,t.relativePath)}:{resource:t.base}}doSearch(t,s,g,C){C.onCancellationRequested(()=>{t.cancel()});const r=o=>{o&&(h.push(o),s>0&&h.length>=s&&(g(h),h=[]))};let h=[];return t.search(r).then(o=>(h.length&&g(h),o),o=>(h.length&&g(h),Promise.reject(o)))}}e.FileSearchManager=y}),define(ye[365],Ce([1,0,19,41,34,127,28,15,17,25,16,18,2,174,228,53,12,54,142,363,35]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveResourcesForSearchIncludes=e.QueryBuilder=void 0;let T=class{constructor(v,D,L,O,H){this.configurationService=v,this.workspaceContextService=D,this.editorGroupsService=L,this.logService=O,this.pathService=H}text(v,D,L={}){v=this.getContentPattern(v,L);const O=this.configurationService.getValue(),H=D&&D.some($=>!this.configurationService.getValue({resource:$}).search.useRipgrep);return{...this.commonQuery(D?.map(h.toWorkspaceFolder),L),type:2,contentPattern:v,previewOptions:L.previewOptions,maxFileSize:L.maxFileSize,usePCRE2:O.search.usePCRE2||H||!1,beforeContext:L.beforeContext,afterContext:L.afterContext,userDisabledExcludesAndIgnoreFiles:L.disregardExcludeSettings&&L.disregardIgnoreFiles}}getContentPattern(v,D){const L=this.configurationService.getValue();v.isRegExp&&(v.pattern=v.pattern.replace(/\r?\n/g,"\\n"));const O={...v,wordSeparators:L.editor.wordSeparators};return this.isCaseSensitive(v,D)&&(O.isCaseSensitive=!0),this.isMultiline(v)&&(O.isMultiline=!0),D.notebookSearchConfig?.includeMarkupInput&&(O.notebookInfo||(O.notebookInfo={}),O.notebookInfo.isInNotebookMarkdownInput=D.notebookSearchConfig.includeMarkupInput),D.notebookSearchConfig?.includeMarkupPreview&&(O.notebookInfo||(O.notebookInfo={}),O.notebookInfo.isInNotebookMarkdownPreview=D.notebookSearchConfig.includeMarkupPreview),D.notebookSearchConfig?.includeCodeInput&&(O.notebookInfo||(O.notebookInfo={}),O.notebookInfo.isInNotebookCellInput=D.notebookSearchConfig.includeCodeInput),D.notebookSearchConfig?.includeOutput&&(O.notebookInfo||(O.notebookInfo={}),O.notebookInfo.isInNotebookCellOutput=D.notebookSearchConfig.includeOutput),O}file(v,D={}){return{...this.commonQuery(v,D),type:1,filePattern:D.filePattern?D.filePattern.trim():D.filePattern,exists:D.exists,sortByScore:D.sortByScore,cacheKey:D.cacheKey}}handleIncludeExclude(v,D){return v?(v=Array.isArray(v)?v.map(c):c(v),D?this.parseSearchPaths(v):{pattern:a(...Array.isArray(v)?v:[v])}):{}}commonQuery(v=[],D={}){const L=this.handleIncludeExclude(D.includePattern,D.expandPatterns),O=this.handleIncludeExclude(D.excludePattern,D.expandPatterns),H=v.length>1,N=(L.searchPaths&&L.searchPaths.length?L.searchPaths.map(x=>this.getFolderQueryForSearchPath(x,D,O)):v.map(x=>this.getFolderQueryForRoot(x,D,O,H))).filter(x=>!!x),$={_reason:D._reason,folderQueries:N,usingSearchPaths:!!(L.searchPaths&&L.searchPaths.length),extraFileResources:D.extraFileResources,excludePattern:O.pattern,includePattern:L.pattern,onlyOpenEditors:D.onlyOpenEditors,maxResults:D.maxResults};if(D.onlyOpenEditors){const x=w.coalesce(w.flatten(this.editorGroupsService.groups.map(pe=>pe.editors.map(le=>le.resource))));this.logService.trace("QueryBuilder#commonQuery - openEditor URIs",JSON.stringify(x));const X=x.filter(pe=>(0,P.pathIncludedInQuery)($,pe.fsPath)),K=this.commonQueryFromFileList(X);return this.logService.trace("QueryBuilder#commonQuery - openEditor Query",JSON.stringify(K)),{...$,...K}}const U=D.extraFileResources&&D.extraFileResources.filter(x=>(0,P.pathIncludedInQuery)($,x.fsPath));return $.extraFileResources=U&&U.length?U:void 0,$}commonQueryFromFileList(v){const D=[],L=new R.ResourceMap,O={};let H=!1;return v.forEach(N=>{if(N.scheme===u.Schemas.walkThrough)return;if((0,f.isAbsolutePath)(N)){const U=this.workspaceContextService.getWorkspaceFolder(N)?.uri??N.with({path:p.dirname(N.fsPath)});let x=L.get(U);x||(H=!0,x={folder:U,includePattern:{}},D.push(x),L.set(U,x));const X=p.relative(U.fsPath,N.fsPath);(0,E.assertIsDefined)(x.includePattern)[X.replace(/\\/g,"/")]=!0}else N.fsPath&&(H=!0,O[N.fsPath]=!0)}),{folderQueries:D,includePattern:O,usingSearchPaths:!0,excludePattern:H?void 0:{"**/*":!0}}}isCaseSensitive(v,D){if(D.isSmartCase){if(v.isRegExp){if(y.containsUppercaseCharacter(v.pattern,!0))return!0}else if(y.containsUppercaseCharacter(v.pattern))return!0}return!!v.isCaseSensitive}isMultiline(v){return v.isMultiline||v.isRegExp&&(0,s.isMultilineRegexSource)(v.pattern)||v.pattern.indexOf(`
`)>=0?!0:!!v.isMultiline}parseSearchPaths(v){const D=K=>p.isAbsolute(K)||/^\.\.?([\/\\]|$)/.test(K),O=(Array.isArray(v)?v:l(v)).map(K=>{const pe=this.pathService.resolvedUserHome;return pe?(0,A.untildify)(K,pe.scheme===u.Schemas.file?pe.fsPath:pe.path):K}),H=M.groupBy(O,K=>D(K)?"searchPaths":"exprSegments"),N=(H.exprSegments||[]).map(K=>y.rtrim(K,"/")).map(K=>y.rtrim(K,"\\")).map(K=>(K[0]==="."&&(K="*"+K),i(K))),$={},U=this.expandSearchPathPatterns(H.searchPaths||[]);U&&U.length&&($.searchPaths=U);const x=w.flatten(N),X=a(...x);return X&&($.pattern=X),$}getExcludesForFolder(v,D){return D.disregardExcludeSettings?void 0:(0,P.getExcludes)(v,!D.disregardSearchExcludeSettings)}expandSearchPathPatterns(v){if(!v||!v.length)return[];const D=v.flatMap(O=>{let{pathPortion:H,globPortion:N}=n(O);return N&&(N=_(N)),this.expandOneSearchPath(H).flatMap(U=>this.resolveOneSearchPathPattern(U,N))}),L=new Map;return D.forEach(O=>{const H=O.searchPath.toString(),N=L.get(H);N?O.pattern&&(N.pattern=N.pattern||{},N.pattern[O.pattern]=!0):L.set(H,{searchPath:O.searchPath,pattern:O.pattern?a(O.pattern):void 0})}),Array.from(L.values())}expandOneSearchPath(v){if(p.isAbsolute(v)){const D=this.workspaceContextService.getWorkspace().folders;return D[0]&&D[0].uri.scheme!==u.Schemas.file?[{searchPath:D[0].uri.with({path:v})}]:[{searchPath:t.URI.file(p.normalize(v))}]}if(this.workspaceContextService.getWorkbenchState()===2){const D=this.workspaceContextService.getWorkspace().folders[0].uri;if(v=c(v),v.startsWith("../")||v===".."){const O=p.posix.resolve(D.path,v);return[{searchPath:D.with({path:O})}]}const L=_(v);return[{searchPath:D,pattern:L}]}else{if(v==="./"||v===".\\")return[];{const D=v.replace(/^\.[\/\\]/,""),O=this.workspaceContextService.getWorkspace().folders.map(H=>{const N=D.match(new RegExp(`^${y.escapeRegExpCharacters(H.name)}(?:/(.*)|$)`));return N?{match:N,folder:H}:null}).filter(E.isDefined);if(O.length)return O.map(H=>{const N=H.match[1];return{searchPath:H.folder.uri,pattern:N&&_(N)}});{const H=v.match(/\.[\/\\](.+)[\/\\]?/),N=H?H[1]:v,$=g.localize(0,null,N);throw new Error($)}}}}resolveOneSearchPathPattern(v,D){const L=v.pattern&&D?`${v.pattern}/${D}`:v.pattern||D,O=[{searchPath:v.searchPath,pattern:L}];return L&&!L.endsWith("**")&&O.push({searchPath:v.searchPath,pattern:L+"/**"}),O}getFolderQueryForSearchPath(v,D,L){const O=this.getFolderQueryForRoot((0,h.toWorkspaceFolder)(v.searchPath),D,L,!1);return O?{...O,includePattern:v.pattern}:null}getFolderQueryForRoot(v,D,L,O){let H;const N=t.URI.isUri(v)?v:v.uri;if(L.searchPaths){const K=L.searchPaths.filter(pe=>(0,f.isEqual)(pe.searchPath,N))[0];if(K&&!K.pattern)return null;K&&(H=K.pattern)}const $=this.configurationService.getValue({resource:N}),x={...this.getExcludesForFolder($,D)||{},...H||{}},X=t.URI.isUri(v)?(0,f.basename)(v):v.name;return{folder:N,folderName:O?X:void 0,excludePattern:Object.keys(x).length>0?x:void 0,fileEncoding:$.files&&$.files.encoding,disregardIgnoreFiles:typeof D.disregardIgnoreFiles=="boolean"?D.disregardIgnoreFiles:!$.search.useIgnoreFiles,disregardGlobalIgnoreFiles:typeof D.disregardGlobalIgnoreFiles=="boolean"?D.disregardGlobalIgnoreFiles:!$.search.useGlobalIgnoreFiles,disregardParentIgnoreFiles:typeof D.disregardParentIgnoreFiles=="boolean"?D.disregardParentIgnoreFiles:!$.search.useParentIgnoreFiles,ignoreSymlinks:typeof D.ignoreSymlinks=="boolean"?D.ignoreSymlinks:!$.search.followSymlinks}}};e.QueryBuilder=T,e.QueryBuilder=T=je([He(0,C.IConfigurationService),He(1,h.IWorkspaceContextService),He(2,o.IEditorGroupsService),He(3,r.ILogService),He(4,b.IPathService)],T);function n(m){const v=m.match(/[\*\{\}\(\)\[\]\?]/);if(v){const D=v.index,L=m.substr(0,D).match(/[/|\\][^/\\]*$/);if(L){let O=m.substr(0,L.index);return O.match(/[/\\]/)||(O+="/"),{pathPortion:O,globPortion:m.substr((L.index||0)+1)}}}return{pathPortion:m}}function a(...m){return m.length?m.reduce((v,D)=>(v[D]=!0,v),Object.create(null)):void 0}function l(m){return d.splitGlobAware(m,",").map(v=>v.trim()).filter(v=>!!v.length)}function i(m){return[`**/${m}/**`,`**/${m}`].map(D=>D.replace(/\*\*\/\*\*/g,"**"))}function c(m){return m.replace(/\\/g,"/")}function _(m){return c(m).replace(/^\.\//,"").replace(/\/+$/g,"")}function S(m){return m.replace(/([?*[\]])/g,"[$1]")}function k(m,v){m=w.distinct(m,O=>O.toString());const D=[],L=v.getWorkspace();return m&&m.forEach(O=>{let H;if(v.getWorkbenchState()===2)H=(0,f.relativePath)(L.folders[0].uri,O),H&&H!=="."&&(H="./"+H);else{const N=v.getWorkspaceFolder(O);if(N){const $=N.name;if(L.folders.filter(x=>x.name===$).length===1){const x=(0,f.relativePath)(N.uri,O);x===""?H=`./${N.name}`:H=`./${N.name}/${x}`}else H=O.fsPath}}H&&D.push(S(H))}),D}e.resolveResourcesForSearchIncludes=k}),define(ye[366],Ce([1,0,25,2,22,8,6,365,35,54]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkGlobFileExists=e.checkActivateWorkspaceContainsExtension=void 0;const y=7e3;function E(C,r){const h=r.activationEvents;if(!h)return Promise.resolve(void 0);const o=[],b=[];for(const i of h)if(/^workspaceContains:/.test(i)){const c=i.substr(18);c.indexOf("*")>=0||c.indexOf("?")>=0||C.forceUsingSearch?b.push(c):o.push(c)}if(o.length===0&&b.length===0)return Promise.resolve(void 0);let P;const T=new Promise((i,c)=>{P=i}),n=i=>P({activationEvent:i}),a=Promise.all(o.map(i=>t(C,i,n))).then(()=>{}),l=s(C,r.identifier,b,n);return Promise.all([a,l]).then(()=>{P(void 0)}),T}e.checkActivateWorkspaceContainsExtension=E;async function t(C,r,h){for(const o of C.folders)if(await C.exists(w.joinPath(M.URI.revive(o),r))){h(`workspaceContains:${r}`);return}}async function s(C,r,h,o){if(h.length===0)return Promise.resolve(void 0);const b=new d.CancellationTokenSource,P=C.checkExists(C.folders,h,b.token),T=setTimeout(async()=>{b.cancel(),C.logService.info(`Not activating extension '${r.value}': Timed out while searching for 'workspaceContains' pattern ${h.join(",")}`)},y);let n=!1;try{n=await P}catch(a){A.isCancellationError(a)||A.onUnexpectedError(a)}b.dispose(),clearTimeout(T),n&&o(`workspaceContains:${h.join(",")}`)}function g(C,r,h,o){const b=C.get(R.IInstantiationService),P=C.get(p.ISearchService),n=b.createInstance(u.QueryBuilder).file(r.map(a=>(0,f.toWorkspaceFolder)(M.URI.revive(a))),{_reason:"checkExists",includePattern:h,exists:!0});return P.fileSearch(n,o).then(a=>!!a.limitHit,a=>A.isCancellationError(a)?!1:Promise.reject(a))}e.checkGlobFileExists=g}),define(ye[39],Ce([1,0,210,17,62,25,13,5,73,2,12,3,50,287,113,49,27,146,8,23,21,261,7,84,6,26,90,20,101,67,48,4,366,112,263,15,110,36,14,111]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a,l,i,c,_,S,k,m,v,D,L,O,H,N,$,U,x){"use strict";var X;Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionPaths=e.Extension=e.IExtHostExtensionService=e.AbstractExtHostExtensionService=e.IHostUtils=void 0,e.IHostUtils=(0,l.createDecorator)("IHostUtils");let K=X=class extends u.Disposable{constructor(se,te,B,G,fe,_e,Ee,F,J,I,V,j){super(),this._extHostManagedSockets=j,this._onDidChangeRemoteConnectionData=this._register(new v.Emitter),this.onDidChangeRemoteConnectionData=this._onDidChangeRemoteConnectionData.event,this._isTerminating=!1,this._hostUtils=te,this._extHostContext=B,this._initData=Ee,this._extHostWorkspace=G,this._extHostConfiguration=fe,this._logService=_e,this._extHostTunnelService=J,this._extHostTerminalService=I,this._extHostLocalizationService=V,this._mainThreadWorkspaceProxy=this._extHostContext.getProxy(E.MainContext.MainThreadWorkspace),this._mainThreadTelemetryProxy=this._extHostContext.getProxy(E.MainContext.MainThreadTelemetry),this._mainThreadExtensionsProxy=this._extHostContext.getProxy(E.MainContext.MainThreadExtensionService),this._almostReadyToRunExtensions=new R.Barrier,this._readyToStartExtensionHost=new R.Barrier,this._readyToRunExtensions=new R.Barrier,this._eagerExtensionsActivated=new R.Barrier,this._activationEventsReader=new ve(this._initData.activationEvents),this._globalRegistry=new h.ExtensionDescriptionRegistry(this._activationEventsReader,this._initData.allExtensions);const Z=new b.ExtensionIdentifierSet(this._initData.myExtensions);this._myRegistry=new h.ExtensionDescriptionRegistry(this._activationEventsReader,q(this._globalRegistry,Z)),this._storage=new g.ExtHostStorage(this._extHostContext,this._logService),this._secretState=new L.ExtHostSecretState(this._extHostContext),this._storagePath=F,this._instaService=se.createChild(new S.ServiceCollection([g.IExtHostStorage,this._storage],[L.IExtHostSecretState,this._secretState])),this._activator=this._register(new s.ExtensionsActivator(this._myRegistry,this._globalRegistry,{onExtensionActivationError:(he,Pe,z)=>{this._mainThreadExtensionsProxy.$onExtensionActivationError(he,o.transformErrorForSerialization(Pe),z)},actualActivateExtension:async(he,Pe)=>{if(h.ExtensionDescriptionRegistry.isHostExtension(he,this._myRegistry,this._globalRegistry))return await this._mainThreadExtensionsProxy.$activateExtension(he,Pe),new s.HostExtension;const z=this._myRegistry.getExtensionDescription(he);return this._activateExtension(z,Pe)}},this._logService)),this._extensionPathIndex=null,this._resolvers=Object.create(null),this._started=!1,this._remoteConnectionData=this._initData.remote.connectionData}getRemoteConnectionData(){return this._remoteConnectionData}async initialize(){try{await this._beforeAlmostReadyToRunExtensions(),this._almostReadyToRunExtensions.open(),await this._extHostWorkspace.waitForInitializeCall(),d.mark("code/extHost/ready"),this._readyToStartExtensionHost.open(),this._initData.autoStart&&this._startExtensionHost()}catch(se){o.onUnexpectedError(se)}}async _deactivateAll(){this._storagePath.onWillDeactivateAll();let se=[];try{se=this._myRegistry.getAllExtensionDescriptions().map(fe=>fe.identifier).filter(fe=>this.isActivated(fe)).map(fe=>this._deactivate(fe))}catch{}await Promise.all(se)}terminate(se,te=0){if(this._isTerminating)return;this._isTerminating=!0,this._logService.info(`Extension host terminating: ${se}`),this._logService.flush(),this._extHostTerminalService.dispose(),this._activator.dispose(),o.setUnexpectedErrorHandler(G=>{this._logService.error(G)}),this._extHostContext.dispose();const B=this._deactivateAll();Promise.race([(0,R.timeout)(5e3),B]).finally(()=>{this._hostUtils.pid?this._logService.info(`Extension host with pid ${this._hostUtils.pid} exiting with code ${te}`):this._logService.info(`Extension host exiting with code ${te}`),this._logService.flush(),this._logService.dispose(),this._hostUtils.exit(te)})}isActivated(se){return this._readyToRunExtensions.isOpen()?this._activator.isActivated(se):!1}async getExtension(se){const te=await this._mainThreadExtensionsProxy.$getExtension(se);return te&&{...te,identifier:new b.ExtensionIdentifier(te.identifier.value),extensionLocation:f.URI.revive(te.extensionLocation)}}_activateByEvent(se,te){return this._activator.activateByEvent(se,te)}_activateById(se,te){return this._activator.activateById(se,te)}activateByIdWithErrors(se,te){return this._activateById(se,te).then(()=>{const B=this._activator.getActivatedExtension(se);if(B.activationFailed)return Promise.reject(B.activationFailedError)})}getExtensionRegistry(){return this._readyToRunExtensions.wait().then(se=>this._myRegistry)}getExtensionExports(se){if(this._readyToRunExtensions.isOpen())return this._activator.getActivatedExtension(se).exports;try{return this._activator.getActivatedExtension(se).exports}catch{return null}}async _realPathExtensionUri(se){if(se.scheme===H.Schemas.file&&this._hostUtils.fsRealpath){const te=await this._hostUtils.fsRealpath(se.fsPath);return f.URI.file(te)}return se}async getExtensionPathIndex(){return this._extensionPathIndex||(this._extensionPathIndex=this._createExtensionPathIndex(this._myRegistry.getAllExtensionDescriptions()).then(se=>new oe(se))),this._extensionPathIndex}async _createExtensionPathIndex(se){const te=p.TernarySearchTree.forUris(B=>A.extUriBiasedIgnorePathCase.ignorePathCasing(B));return await Promise.all(se.map(async B=>{if(this._getEntryPoint(B)){const G=await this._realPathExtensionUri(B.extensionLocation);te.set(G,B)}})),te}_deactivate(se){let te=Promise.resolve(void 0);if(!this._readyToRunExtensions.isOpen()||!this._activator.isActivated(se))return te;const B=this._activator.getActivatedExtension(se);if(!B)return te;try{typeof B.module.deactivate=="function"&&(te=Promise.resolve(B.module.deactivate()).then(void 0,G=>(this._logService.error(G),Promise.resolve(void 0))))}catch(G){this._logService.error(`An error occurred when deactivating the extension '${se.value}':`),this._logService.error(G)}try{(0,u.dispose)(B.subscriptions)}catch(G){this._logService.error(`An error occurred when deactivating the subscriptions for extension '${se.value}':`),this._logService.error(G)}return te}async _activateExtension(se,te){return this._initData.remote.isRemote?this._mainThreadExtensionsProxy.$onWillActivateExtension(se.identifier):await this._mainThreadExtensionsProxy.$onWillActivateExtension(se.identifier),this._doActivateExtension(se,te).then(B=>{const G=B.activationTimes;return this._mainThreadExtensionsProxy.$onDidActivateExtension(se.identifier,G.codeLoadingTime,G.activateCallTime,G.activateResolvedTime,te),this._logExtensionActivationTimes(se,te,"success",G),B},B=>{throw this._logExtensionActivationTimes(se,te,"failure"),B})}_logExtensionActivationTimes(se,te,B,G){const fe=le(se,te);this._mainThreadTelemetryProxy.$publicLog2("extensionActivationTimes",{...fe,...G||{},outcome:B})}_doActivateExtension(se,te){const B=le(se,te);this._mainThreadTelemetryProxy.$publicLog2("activatePlugin",B);const G=this._getEntryPoint(se);if(!G)return Promise.resolve(new s.EmptyExtension(s.ExtensionActivationTimes.NONE));this._logService.info(`ExtensionService#_doActivateExtension ${se.identifier.value}, startup: ${te.startup}, activationEvent: '${te.activationEvent}'${se.identifier.value!==te.extensionId.value?`, root cause: ${te.extensionId.value}`:""}`),this._logService.flush();const fe=new s.ExtensionActivationTimesBuilder(te.startup);return Promise.all([this._loadCommonJSModule(se,(0,A.joinPath)(se.extensionLocation,G),fe),this._loadExtensionContext(se)]).then(_e=>(d.mark(`code/extHost/willActivateExtension/${se.identifier.value}`),X._callActivate(this._logService,se.identifier,_e[0],_e[1],fe))).then(_e=>(d.mark(`code/extHost/didActivateExtension/${se.identifier.value}`),_e))}_loadExtensionContext(se){const te=new T.ExtensionGlobalMemento(se,this._storage),B=new T.ExtensionMemento(se.identifier.value,!1,this._storage),G=new O.ExtensionSecrets(se,this._secretState),fe=se.isUnderDevelopment?this._initData.environment.extensionTestsLocationURI?n.ExtensionMode.Test:n.ExtensionMode.Development:n.ExtensionMode.Production,_e=this._initData.remote.isRemote?n.ExtensionKind.Workspace:n.ExtensionKind.UI;return this._logService.trace(`ExtensionService#loadExtensionContext ${se.identifier.value}`),Promise.all([te.whenReady,B.whenReady,this._storagePath.whenReady]).then(()=>{const Ee=this;let F,J;const I=(0,r.isProposedApiEnabled)(se,"ipc")?this._initData.messagePorts?.get(b.ExtensionIdentifier.toKey(se.identifier)):void 0;return Object.freeze({globalState:te,workspaceState:B,secrets:G,subscriptions:[],get extensionUri(){return se.extensionLocation},get extensionPath(){return se.extensionLocation.fsPath},asAbsolutePath(V){return M.join(se.extensionLocation.fsPath,V)},get storagePath(){return Ee._storagePath.workspaceValue(se)?.fsPath},get globalStoragePath(){return Ee._storagePath.globalValue(se).fsPath},get logPath(){return M.join(Ee._initData.logsLocation.fsPath,se.identifier.value)},get logUri(){return f.URI.joinPath(Ee._initData.logsLocation,se.identifier.value)},get storageUri(){return Ee._storagePath.workspaceValue(se)},get globalStorageUri(){return Ee._storagePath.globalValue(se)},get extensionMode(){return fe},get extension(){return F===void 0&&(F=new re(Ee,se.identifier,se,_e,!1)),F},get extensionRuntime(){return(0,r.checkProposedApiEnabled)(se,"extensionRuntime"),Ee.extensionRuntime},get environmentVariableCollection(){return Ee._extHostTerminalService.getEnvironmentVariableCollection(se)},get messagePassingProtocol(){if(!J){if(!I)return;const V=v.Event.buffer(v.Event.fromDOMEventEmitter(I,"message",j=>j.data));I.start(),J={onDidReceiveMessage:V,postMessage:I.postMessage.bind(I)}}return J}})})}static _callActivate(se,te,B,G,fe){return B=B||{activate:void 0,deactivate:void 0},this._callActivateOptional(se,te,B,G,fe).then(_e=>new s.ActivatedExtension(!1,null,fe.build(),B,_e,G.subscriptions))}static _callActivateOptional(se,te,B,G,fe){if(typeof B.activate=="function")try{fe.activateCallStart(),se.trace(`ExtensionService#_callActivateOptional ${te.value}`);const _e=typeof global=="object"?global:self,Ee=B.activate.apply(_e,[G]);return fe.activateCallStop(),fe.activateResolveStart(),Promise.resolve(Ee).then(F=>(fe.activateResolveStop(),F))}catch(_e){return Promise.reject(_e)}else return Promise.resolve(B)}_activateOneStartupFinished(se,te){this._activateById(se.identifier,{startup:!1,extensionId:se.identifier,activationEvent:te}).then(void 0,B=>{this._logService.error(B)})}_activateAllStartupFinishedDeferred(se,te=0){const G=Date.now();(0,U.setTimeout0)(()=>{for(let fe=te;fe<se.length;fe+=1){const _e=se[fe];for(const Ee of _e.activationEvents??[])if(Ee==="onStartupFinished")if(Date.now()-G>50){this._activateAllStartupFinishedDeferred(se,fe);break}else this._activateOneStartupFinished(_e,Ee)}})}_activateAllStartupFinished(){this._mainThreadExtensionsProxy.$setPerformanceMarks(d.getMarks()),this._extHostConfiguration.getConfigProvider().then(se=>{const te=se.getConfiguration("extensions.experimental").get("deferredStartupFinishedActivation"),B=this._myRegistry.getAllExtensionDescriptions();if(te)this._activateAllStartupFinishedDeferred(B);else for(const G of B)if(G.activationEvents)for(const fe of G.activationEvents)fe==="onStartupFinished"&&this._activateOneStartupFinished(G,fe)})}_handleEagerExtensions(){const se=this._activateByEvent("*",!0).then(void 0,_e=>{this._logService.error(_e)});this._register(this._extHostWorkspace.onDidChangeWorkspace(_e=>this._handleWorkspaceContainsEagerExtensions(_e.added)));const te=this._extHostWorkspace.workspace?this._extHostWorkspace.workspace.folders:[],B=this._handleWorkspaceContainsEagerExtensions(te),G=this._handleRemoteResolverEagerExtensions(),fe=Promise.all([G,se,B]).then(()=>{});return Promise.race([fe,(0,R.timeout)(1e4)]).then(()=>{this._activateAllStartupFinished()}),fe}_handleWorkspaceContainsEagerExtensions(se){return se.length===0?Promise.resolve(void 0):Promise.all(this._myRegistry.getAllExtensionDescriptions().map(te=>this._handleWorkspaceContainsEagerExtension(se,te))).then(()=>{})}async _handleWorkspaceContainsEagerExtension(se,te){if(this.isActivated(te.identifier))return;const B=!this._initData.remote.isRemote&&!!this._initData.remote.authority,G={logService:this._logService,folders:se.map(_e=>_e.uri),forceUsingSearch:B||!this._hostUtils.fsExists,exists:_e=>this._hostUtils.fsExists(_e.fsPath),checkExists:(_e,Ee,F)=>this._mainThreadWorkspaceProxy.$checkExists(_e,Ee,F)},fe=await(0,D.checkActivateWorkspaceContainsExtension)(G,te);if(fe)return this._activateById(te.identifier,{startup:!0,extensionId:te.identifier,activationEvent:fe.activationEvent}).then(void 0,_e=>this._logService.error(_e))}async _handleRemoteResolverEagerExtensions(){if(this._initData.remote.authority)return this._activateByEvent(`onResolveRemoteAuthority:${this._initData.remote.authority}`,!1)}async $extensionTestsExecute(){await this._eagerExtensionsActivated.wait();try{return await this._doHandleExtensionTests()}catch(se){throw console.error(se),se}}async _doHandleExtensionTests(){const{extensionDevelopmentLocationURI:se,extensionTestsLocationURI:te}=this._initData.environment;if(!se||!te)throw new Error(w.localize(0,null));const B=await this._loadCommonJSModule(null,te,new s.ExtensionActivationTimesBuilder(!1));if(!B||typeof B.run!="function")throw new Error(w.localize(1,null,te.toString()));return new Promise((G,fe)=>{const _e=(J,I)=>{J?fe(J):G(typeof I=="number"&&I>0?1:0)},Ee=(0,A.originalFSPath)(te),F=B.run(Ee,_e);F&&F.then&&F.then(()=>{G(0)}).catch(J=>{fe(J instanceof Error&&J.stack?J.stack:String(J))})})}_startExtensionHost(){if(this._started)throw new Error("Extension host is already started!");return this._started=!0,this._readyToStartExtensionHost.wait().then(()=>this._readyToRunExtensions.open()).then(()=>Promise.race([this._activator.waitForActivatingExtensions(),(0,R.timeout)(1e3)])).then(()=>this._handleEagerExtensions()).then(()=>{this._eagerExtensionsActivated.open(),this._logService.info("Eager extensions activated")})}registerRemoteAuthorityResolver(se,te){return this._resolvers[se]=te,(0,u.toDisposable)(()=>{delete this._resolvers[se]})}async getRemoteExecServer(se){const{resolver:te}=await this._activateAndGetResolver(se);return te?.resolveExecServer?.(se,{resolveAttempt:0})}async _activateAndGetResolver(se){const te=se.indexOf("+");if(te===-1)throw new n.RemoteAuthorityResolverError("Not an authority that can be resolved!",a.RemoteAuthorityResolverErrorCode.InvalidAuthority);const B=se.substr(0,te);return await this._almostReadyToRunExtensions.wait(),await this._activateByEvent(`onResolveRemoteAuthority:${B}`,!1),{authorityPrefix:B,resolver:this._resolvers[B]}}async $resolveAuthority(se,te){const B=$.StopWatch.create(!1),G=()=>`[resolveAuthority(${(0,a.getRemoteAuthorityPrefix)(se)},${te})][${B.elapsed()}ms] `,fe=ie=>this._logService.info(`${G()}${ie}`),_e=ie=>this._logService.warn(`${G()}${ie}`),Ee=(ie,ue=void 0)=>this._logService.error(`${G()}${ie}`,ue),F=ie=>{if(ie instanceof n.RemoteAuthorityResolverError)return{type:"error",error:{code:ie._code,message:ie._message,detail:ie._detail}};throw ie},J=async ie=>{fe(`activating resolver for ${ie}...`);const{resolver:ue,authorityPrefix:Y}=await this._activateAndGetResolver(ie);if(!ue)throw Ee(`no resolver for ${Y}`),new n.RemoteAuthorityResolverError(`No remote extension installed to resolve ${Y}.`,a.RemoteAuthorityResolverErrorCode.NoResolverFound);return{resolver:ue,authorityPrefix:Y,remoteAuthority:ie}},I=se.split(/@|%40/g).reverse();fe(`activating remote resolvers ${I.join(" -> ")}`);let V;try{V=await Promise.all(I.map(J)).catch(async ie=>{if(!(ie instanceof n.RemoteAuthorityResolverError)||ie._code!==a.RemoteAuthorityResolverErrorCode.InvalidAuthority)throw ie;return _e(`resolving nested authorities failed: ${ie.message}`),[await J(se)]})}catch(ie){return F(ie)}const j=new R.IntervalTimer;j.cancelAndSet(()=>fe("waiting..."),1e3);let Z,he;for(const[ie,{authorityPrefix:ue,resolver:Y,remoteAuthority:me}]of V.entries())try{if(ie===V.length-1)fe("invoking final resolve()..."),d.mark(`code/extHost/willResolveAuthority/${ue}`),Z=await Y.resolve(me,{resolveAttempt:te,execServer:he}),d.mark(`code/extHost/didResolveAuthorityOK/${ue}`),fe("setting tunnel factory..."),this._register(await this._extHostTunnelService.setTunnelFactory(Y,n.ManagedResolvedAuthority.isManagedResolvedAuthority(Z)?Z:void 0));else{if(fe(`invoking resolveExecServer() for ${me}`),d.mark(`code/extHost/willResolveExecServer/${ue}`),he=await Y.resolveExecServer?.(me,{resolveAttempt:te,execServer:he}),!he)throw new n.RemoteAuthorityResolverError(`Exec server was not available for ${me}`,a.RemoteAuthorityResolverErrorCode.NoResolverFound);d.mark(`code/extHost/didResolveExecServerOK/${ue}`)}}catch(Se){return d.mark(`code/extHost/didResolveAuthorityError/${ue}`),Ee("returned an error",Se),j.dispose(),F(Se)}j.dispose();const Pe={environmentTunnels:Z.environmentTunnels,features:Z.tunnelFeatures},z={extensionHostEnv:Z.extensionHostEnv,isTrusted:Z.isTrusted,authenticationSession:Z.authenticationSessionForInitializingExtensions?{id:Z.authenticationSessionForInitializingExtensions.id,providerId:Z.authenticationSessionForInitializingExtensions.providerId}:void 0};fe(`returned ${n.ManagedResolvedAuthority.isManagedResolvedAuthority(Z)?"managed authority":`${Z.host}:${Z.port}`}`);let ee;if(n.ManagedResolvedAuthority.isManagedResolvedAuthority(Z)){const ie=te;this._extHostManagedSockets.setFactory(ie,Z.makeConnection),ee={authority:se,connectTo:new a.ManagedRemoteConnection(ie),connectionToken:Z.connectionToken}}else ee={authority:se,connectTo:new a.WebSocketRemoteConnection(Z.host,Z.port),connectionToken:Z.connectionToken};return{type:"ok",value:{authority:ee,options:z,tunnelInformation:Pe}}}async $getCanonicalURI(se,te){this._logService.info(`$getCanonicalURI invoked for authority (${(0,a.getRemoteAuthorityPrefix)(se)})`);const{resolver:B}=await this._activateAndGetResolver(se);if(!B)return null;const G=f.URI.revive(te);if(typeof B.getCanonicalURI>"u")return G;const fe=await(0,R.asPromise)(()=>B.getCanonicalURI(G));return fe||G}$startExtensionHost(se){se.toAdd.forEach(G=>G.extensionLocation=f.URI.revive(G.extensionLocation));const{globalRegistry:te,myExtensions:B}=pe(this._activationEventsReader,this._globalRegistry,this._myRegistry,se);return this._globalRegistry.set(te.getAllExtensionDescriptions()),this._myRegistry.set(B),this._startExtensionHost()}$activateByEvent(se,te){return te===1?this._almostReadyToRunExtensions.wait().then(B=>this._activateByEvent(se,!1)):this._readyToRunExtensions.wait().then(B=>this._activateByEvent(se,!1))}async $activate(se,te){return await this._readyToRunExtensions.wait(),this._myRegistry.getExtensionDescription(se)?(await this._activateById(se,te),!0):!1}async $deltaExtensions(se){se.toAdd.forEach(_e=>_e.extensionLocation=f.URI.revive(_e.extensionLocation));const{globalRegistry:te,myExtensions:B}=pe(this._activationEventsReader,this._globalRegistry,this._myRegistry,se),G=await this._createExtensionPathIndex(B);return(await this.getExtensionPathIndex()).setSearchTree(G),this._globalRegistry.set(te.getAllExtensionDescriptions()),this._myRegistry.set(B),Promise.resolve(void 0)}async $test_latency(se){return se}async $test_up(se){return se.byteLength}async $test_down(se){const te=P.VSBuffer.alloc(se),B=Math.random()%256;for(let G=0;G<se;G++)te.writeUInt8(B,G);return te}async $updateRemoteConnectionData(se){this._remoteConnectionData=se,this._onDidChangeRemoteConnectionData.fire()}};e.AbstractExtHostExtensionService=K,e.AbstractExtHostExtensionService=K=X=je([He(0,l.IInstantiationService),He(1,e.IHostUtils),He(2,_.IExtHostRpcService),He(3,C.IExtHostWorkspace),He(4,t.IExtHostConfiguration),He(5,y.ILogService),He(6,i.IExtHostInitDataService),He(7,c.IExtensionStoragePaths),He(8,k.IExtHostTunnelService),He(9,m.IExtHostTerminalService),He(10,N.IExtHostLocalizationService),He(11,x.IExtHostManagedSockets)],K);function pe(ce,se,te,B){ce.addActivationEvents(B.addActivationEvents);const G=new h.ExtensionDescriptionRegistry(ce,se.getAllExtensionDescriptions());G.deltaExtensions(B.toAdd,B.toRemove);const fe=new b.ExtensionIdentifierSet(te.getAllExtensionDescriptions().map(Ee=>Ee.identifier));for(const Ee of B.myToRemove)fe.delete(Ee);for(const Ee of B.myToAdd)fe.add(Ee);const _e=q(G,fe);return{globalRegistry:G,myExtensions:_e}}function le(ce,se){return{id:ce.identifier.value,name:ce.name,extensionVersion:ce.version,publisherDisplayName:ce.publisher,activationEvents:ce.activationEvents?ce.activationEvents.join(","):null,isBuiltin:ce.isBuiltin,reason:se.activationEvent,reasonId:se.extensionId.value}}e.IExtHostExtensionService=(0,l.createDecorator)("IExtHostExtensionService");class re{#e;#t;#i;constructor(se,te,B,G,fe){this.#e=se,this.#t=te,this.#i=B.identifier,this.id=B.identifier.value,this.extensionUri=B.extensionLocation,this.extensionPath=M.normalize((0,A.originalFSPath)(B.extensionLocation)),this.packageJSON=B,this.extensionKind=G,this.isFromDifferentExtensionHost=fe}get isActive(){return this.#e.isActivated(this.#i)}get exports(){if(!(this.packageJSON.api==="none"||this.isFromDifferentExtensionHost))return this.#e.getExtensionExports(this.#i)}async activate(){if(this.isFromDifferentExtensionHost)throw new Error("Cannot activate foreign extension");return await this.#e.activateByIdWithErrors(this.#i,{startup:!1,extensionId:this.#t,activationEvent:"api"}),this.exports}}e.Extension=re;function q(ce,se){return ce.getAllExtensionDescriptions().filter(te=>se.has(te.identifier))}class oe{constructor(se){this._searchTree=se}setSearchTree(se){this._searchTree=se}findSubstr(se){return this._searchTree.findSubstr(se)}forEach(se){return this._searchTree.forEach(se)}}e.ExtensionPaths=oe;class ve{constructor(se){this._map=new b.ExtensionIdentifierMap,this.addActivationEvents(se)}readActivationEvents(se){return this._map.get(se.identifier)}addActivationEvents(se){for(const te of Object.keys(se))this._map.set(te,se[te])}}}),define(ye[367],Ce([1,0,40,23,39]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostAzureAccount=void 0;let A=class extends w.ExtHostAzureAccountShape{constructor(u){super(),this._extHostExtensionService=u}$getSubscriptions(u,p,f){return this.getApi().getSubscriptions(u,p,f)}$getStorageAccounts(u,p,f){return this.getApi().getStorageAccounts(u,p,f)}$getBlobContainers(u,p,f,y){return this.getApi().getBlobContainers(u,p,f)}$getBlobs(u,p,f,y,E){return this.getApi().getBlobs(u,p,f,y,E)}$getStorageAccountAccessKey(u,p,f,y){return this.getApi().getStorageAccountAccessKey(u,p,f,y)}getApi(){return this._extHostExtensionService.getExtensionExports(new M.ExtensionIdentifier("Microsoft.azurecore"))}};e.ExtHostAzureAccount=A,e.ExtHostAzureAccount=A=je([He(0,d.IExtHostExtensionService)],A)}),define(ye[368],Ce([1,0,40,23,39]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostAzureBlob=void 0;let A=class extends w.ExtHostAzureBlobShape{constructor(u){super(),this._extHostExtensionService=u}$createSas(u,p,f,y,E){return this.getApi().azureBlob.createSas(u,p,f,y,E)}getApi(){return this._extHostExtensionService.getExtensionExports(new M.ExtensionIdentifier("Microsoft.mssql"))}};e.ExtHostAzureBlob=A,e.ExtHostAzureBlob=A=je([He(0,d.IExtHostExtensionService)],A)}),define(ye[369],Ce([1,0,62,2,3,50,27,23,20,26,6,39,44,12,16,286]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.RequireInterceptor=void 0;let h=class{constructor(a,l,i,c,_,S,k){this._apiFactory=a,this._extensionRegistry=l,this._instaService=i,this._extHostConfiguration=c,this._extHostExtensionService=_,this._initData=S,this._logService=k,this._factories=new Map,this._alternatives=[]}async install(){this._installInterceptor(),w.mark("code/extHost/willWaitForConfig");const a=await this._extHostConfiguration.getConfigProvider();w.mark("code/extHost/didWaitForConfig");const l=await this._extHostExtensionService.getExtensionPathIndex();this.register(new b(this._apiFactory.vscode,l,this._extensionRegistry,a,this._logService)),this.register(new C.AzdataNodeModuleFactory(this._apiFactory.azdata,l,this._logService)),this.register(this._instaService.createInstance(P,l)),this.register(this._instaService.createInstance(o)),this._initData.remote.isRemote&&this.register(this._instaService.createInstance(T,l,this._initData.environment.appUriScheme))}register(a){if("nodeModuleName"in a)if(Array.isArray(a.nodeModuleName))for(const l of a.nodeModuleName)this._factories.set(l,a);else this._factories.set(a.nodeModuleName,a);typeof a.alternativeModuleName=="function"&&this._alternatives.push(l=>a.alternativeModuleName(l))}};e.RequireInterceptor=h,e.RequireInterceptor=h=je([He(2,y.IInstantiationService),He(3,A.IExtHostConfiguration),He(4,E.IExtHostExtensionService),He(5,f.IExtHostInitDataService),He(6,s.ILogService)],h);let o=class{static{r=this}static{this.aliased=new Map([["vscode-ripgrep","@vscode/ripgrep"],["vscode-windows-registry","@vscode/windows-registry"]])}constructor(a){if(a.environment.appRoot&&r.aliased.size){const l=(0,g.escapeRegExpCharacters)(this.forceForwardSlashes(a.environment.appRoot.fsPath)),i="[a-z0-9_.-]",c=`@${i}+\\/${i}+|${i}+`,_="node_modules|node_modules\\.asar(?:\\.unpacked)?";this.re=new RegExp(`^(${l}/${_}\\/)(${c})(.*)$`,"i")}}alternativeModuleName(a){if(!this.re)return;const l=this.re.exec(this.forceForwardSlashes(a));if(!l)return;const[,i,c,_]=l,S=r.aliased.get(c);if(S!==void 0)return console.warn(`${c} as been renamed to ${S}, please update your imports`),i+S+_}forceForwardSlashes(a){return a.replace(/\\/g,"/")}};o=r=je([He(0,f.IExtHostInitDataService)],o);class b{constructor(a,l,i,c,_){this._apiFactory=a,this._extensionPaths=l,this._extensionRegistry=i,this._configProvider=c,this._logService=_,this.nodeModuleName="vscode",this._extApiImpl=new u.ExtensionIdentifierMap}load(a,l){const i=this._extensionPaths.findSubstr(l);if(i){let c=this._extApiImpl.get(i.identifier);return c||(c=this._apiFactory(i,this._extensionRegistry,this._configProvider),this._extApiImpl.set(i.identifier,c)),c}if(!this._defaultApiImpl){let c="";this._extensionPaths.forEach((_,S)=>c+=`	${S} -> ${_.identifier.value}
`),this._logService.warn(`Could not identify extension for 'vscode' require call from ${l}. These are the extension path mappings: 
${c}`),this._defaultApiImpl=this._apiFactory(R.nullExtensionDescription,this._extensionRegistry,this._configProvider)}return this._defaultApiImpl}}let P=class{constructor(a,l,i){this._extensionPaths=a,this.nodeModuleName="keytar",this._mainThreadTelemetry=l.getProxy(d.MainContext.MainThreadTelemetry);const{environment:c}=i,_=l.getProxy(d.MainContext.MainThreadKeytar);if(c.appRoot){let S=c.appRoot.fsPath;t.platform==="win32"&&(S=S.replace(/\\/g,"/")),S[S.length-1]==="/"&&(S=S.substr(0,S.length-1)),this.alternativeNames=new Set,this.alternativeNames.add(`${S}/node_modules.asar/keytar`),this.alternativeNames.add(`${S}/node_modules/keytar`)}this._impl={getPassword:(S,k)=>_.$getPassword(S,k),setPassword:(S,k,m)=>_.$setPassword(S,k,m),deletePassword:(S,k)=>_.$deletePassword(S,k),findPassword:S=>_.$findPassword(S),findCredentials(S){return _.$findCredentials(S)}}}load(a,l){const i=this._extensionPaths.findSubstr(l);return this._mainThreadTelemetry.$publicLog2("shimming.keytar",{extension:i?.identifier.value??"unknown_extension"}),this._impl}alternativeModuleName(a){const l=a.length;if(l<=7||!this.alternativeNames)return;const i=l-7;if((a.charAt(i)==="/"||a.charAt(i)==="\\")&&a.endsWith("keytar")&&(a=a.replace(/\\/g,"/"),this.alternativeNames.has(a)))return"keytar"}};P=je([He(1,p.IExtHostRpcService),He(2,f.IExtHostInitDataService)],P);let T=class{constructor(a,l,i){this._extensionPaths=a,this._appUriScheme=l,this.nodeModuleName=["open","opn"],this._mainThreadTelemetry=i.getProxy(d.MainContext.MainThreadTelemetry);const c=i.getProxy(d.MainContext.MainThreadWindow);this._impl=(_,S)=>{const k=M.URI.parse(_);return S?this.callOriginal(_,S):k.scheme==="http"||k.scheme==="https"?c.$openUri(k,_,{allowTunneling:!0}):k.scheme==="mailto"||k.scheme===this._appUriScheme?c.$openUri(k,_,{}):this.callOriginal(_,S)}}load(a,l,i){const c=this._extensionPaths.findSubstr(l);return c&&(this._extensionId=c.identifier.value,this.sendShimmingTelemetry()),this._original=i(a),this._impl}callOriginal(a,l){return this.sendNoForwardTelemetry(),this._original(a,l)}sendShimmingTelemetry(){this._extensionId&&this._mainThreadTelemetry.$publicLog2("shimming.open",{extension:this._extensionId})}sendNoForwardTelemetry(){this._extensionId&&this._mainThreadTelemetry.$publicLog2("shimming.open.call.noForward",{extension:this._extensionId})}};T=je([He(2,p.IExtHostRpcService)],T)}),define(ye[94],Ce([1,0,57,5,17,44,6,65,109,39,7,49,276,50]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostVariableResolverProviderService=e.IExtHostVariableResolverProvider=void 0,e.IExtHostVariableResolverProvider=(0,R.createDecorator)("IExtHostVariableResolverProvider");class g extends t.AbstractVariableResolverService{constructor(h,o,b,P,T,n,a){function l(){if(b){const i=b.activeEditor();if(i)return i.document.uri;const c=P.tabGroups.all.find(_=>_.isActive)?.activeTab;if(c!==void 0){if(c.input instanceof y.TextDiffTabInput||c.input instanceof y.NotebookDiffEditorTabInput)return c.input.modified;if(c.input instanceof y.TextTabInput||c.input instanceof y.NotebookEditorTabInput||c.input instanceof y.CustomEditorTabInput)return c.input.uri}}}super({getFolderUri:i=>{const c=n.folders.filter(_=>_.name===i);if(c&&c.length>0)return c[0].uri},getWorkspaceFolderCount:()=>n.folders.length,getConfigurationValue:(i,c)=>T.getConfiguration(void 0,i).get(c),getAppRoot:()=>A.cwd(),getExecPath:()=>A.env.VSCODE_EXEC_PATH,getFilePath:()=>{const i=l();if(i)return d.normalize(i.fsPath)},getWorkspaceFolderPathForFile:()=>{if(o){const i=l();if(i){const c=o.getWorkspaceFolder(i);if(c)return d.normalize(c.uri.fsPath)}}},getSelectedText:()=>{if(b){const i=b.activeEditor();if(i&&!i.selection.isEmpty)return i.document.getText(i.selection)}},getLineNumber:()=>{if(b){const i=b.activeEditor();if(i)return String(i.selection.end.line+1)}},getExtension:i=>h.getExtension(i)},void 0,a?Promise.resolve(a):void 0,Promise.resolve(A.env))}}let C=class extends M.Disposable{constructor(h,o,b,P,T){super(),this.extensionService=h,this.workspaceService=o,this.editorService=b,this.configurationService=P,this.editorTabs=T,this._resolver=new w.Lazy(async()=>{const n=await this.configurationService.getConfigProvider(),l={folders:await this.workspaceService.getWorkspaceFolders2()||[]};return this._register(this.workspaceService.onDidChangeWorkspace(async i=>{l.folders=await this.workspaceService.getWorkspaceFolders2()||[]})),new g(this.extensionService,this.workspaceService,this.editorService,this.editorTabs,n,l,this.homeDir())})}getResolver(){return this._resolver.value}homeDir(){}};e.ExtHostVariableResolverProviderService=C,e.ExtHostVariableResolverProviderService=C=je([He(0,f.IExtHostExtensionService),He(1,E.IExtHostWorkspace),He(2,u.IExtHostDocumentsAndEditors),He(3,s.IExtHostConfiguration),He(4,p.IExtHostEditorTabs)],C)}),define(ye[370],Ce([1,0,8,62,2,3,360,12,100,101,26,239,20,56,39,88]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionHostMain=e.ErrorHandler=void 0;class r{static async installEarlyHandler(b){Error.stackTraceLimit=100;const P=b.get(u.ILogService),n=b.get(t.IExtHostRpcService).getProxy(A.MainContext.MainThreadErrors);w.setUnexpectedErrorHandler(a=>{P.error(a);const l=w.transformErrorForSerialization(a);n.$onUnexpectedError(l)})}static async installFullHandler(b){const P=b.get(u.ILogService),T=b.get(t.IExtHostRpcService),n=b.get(g.IExtHostExtensionService),a=b.get(C.IExtHostTelemetry),l=T.getProxy(A.MainContext.MainThreadExtensionService),i=T.getProxy(A.MainContext.MainThreadErrors),c=await n.getExtensionPathIndex(),_=new WeakMap;function S(v,D){if(_.has(v))return _.get(v).stack;let L="",O,H;for(const $ of D)L+=`
	at ${$.toString()}`,H=$.getFileName(),!O&&H&&(O=c.findSubstr(d.URI.file(H)));const N=`${v.name||"Error"}: ${v.message||""}${L}`;return _.set(v,{extensionIdentifier:O?.identifier,stack:N}),N}const k=Symbol("prepareStackTrace wrapped");let m=S;Object.defineProperty(Error,"prepareStackTrace",{configurable:!1,get(){return m},set(v){if(v===S||!v||v[k]){m=v||S;return}m=function(D,L){return S(D,L),v.call(Error,D,L)},Object.assign(m,{[k]:!0})}}),w.setUnexpectedErrorHandler(v=>{P.error(v);const D=w.transformErrorForSerialization(v),L=_.get(v);if(!L?.extensionIdentifier){i.$onUnexpectedError(D);return}l.$onExtensionRuntimeError(L.extensionIdentifier,D);const O=a.onExtensionError(L.extensionIdentifier,v);P.trace("forwarded error to extension?",O,L)})}}e.ErrorHandler=r;class h{constructor(b,P,T,n,a){this._hostUtils=T,this._rpcProtocol=new R.RPCProtocol(b,null,n),P=h._transform(P,this._rpcProtocol);const l=new f.ServiceCollection(...(0,p.getSingletonServiceDescriptors)());l.set(y.IExtHostInitDataService,{_serviceBrand:void 0,...P,messagePorts:a}),l.set(t.IExtHostRpcService,new t.ExtHostRpcService(this._rpcProtocol)),l.set(s.IURITransformerService,new s.URITransformerService(n)),l.set(g.IHostUtils,T);const i=new E.InstantiationService(l,!0);i.invokeFunction(r.installEarlyHandler),this._logService=i.invokeFunction(c=>c.get(u.ILogService)),M.mark("code/extHost/didCreateServices"),this._hostUtils.pid?this._logService.info(`Extension host with pid ${this._hostUtils.pid} started`):this._logService.info("Extension host started"),this._logService.trace("initData",P),this._extensionService=i.invokeFunction(c=>c.get(g.IExtHostExtensionService)),this._extensionService.initialize(),i.invokeFunction(r.installFullHandler)}async asBrowserUri(b){const P=this._rpcProtocol.getProxy(A.MainContext.MainThreadExtensionService);return d.URI.revive(await P.$asBrowserUri(b))}terminate(b){this._extensionService.terminate(b)}static _transform(b,P){b.allExtensions.forEach(n=>{n.extensionLocation=d.URI.revive(P.transformIncomingURIs(n.extensionLocation))}),b.environment.appRoot=d.URI.revive(P.transformIncomingURIs(b.environment.appRoot));const T=b.environment.extensionDevelopmentLocationURI;return T&&(b.environment.extensionDevelopmentLocationURI=T.map(n=>d.URI.revive(P.transformIncomingURIs(n)))),b.environment.extensionTestsLocationURI=d.URI.revive(P.transformIncomingURIs(b.environment.extensionTestsLocationURI)),b.environment.globalStorageHome=d.URI.revive(P.transformIncomingURIs(b.environment.globalStorageHome)),b.environment.workspaceStorageHome=d.URI.revive(P.transformIncomingURIs(b.environment.workspaceStorageHome)),b.environment.extensionTelemetryLogResource=d.URI.revive(P.transformIncomingURIs(b.environment.extensionTelemetryLogResource)),b.nlsBaseUrl=d.URI.revive(P.transformIncomingURIs(b.nlsBaseUrl)),b.logsLocation=d.URI.revive(P.transformIncomingURIs(b.logsLocation)),b.workspace=P.transformIncomingURIs(b.workspace),b}}e.ExtensionHostMain=h}),define(ye[371],Ce([1,0,17,2,129,49,65,50,54,48,20,26,93,15,12,89,25,60,94]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTask=void 0;let b=class extends t.ExtHostTaskBase{constructor(T,n,a,l,i,c,_,S,k){super(T,n,a,l,i,c,_,S),this.workspaceService=a,this.variableResolver=k,n.remote.isRemote&&n.remote.authority?this.registerTaskSystem(s.Schemas.vscodeRemote,{scheme:s.Schemas.vscodeRemote,authority:n.remote.authority,platform:process.platform}):this.registerTaskSystem(s.Schemas.file,{scheme:s.Schemas.file,authority:"",platform:process.platform}),this._proxy.$registerSupportedExecutions(!0,!0,!0)}async executeTask(T,n){const a=n;if(!n.execution&&a._id===void 0)throw new Error("Tasks to execute must include an execution");if(a._id!==void 0){const l=t.TaskHandleDTO.from(a,this.workspaceService),i=await this._proxy.$getTaskExecution(l);if(i.task===void 0)throw new Error("Task from execution DTO is undefined");const c=await this.getTaskExecution(i,n);return this._proxy.$executeTask(l).catch(()=>{}),c}else{const l=t.TaskDTO.from(n,T);if(l===void 0)return Promise.reject(new Error("Task is not valid"));t.CustomExecutionDTO.is(l.execution)&&await this.addCustomExecution(l,n,!1);const i=await this.getTaskExecution(await this._proxy.$getTaskExecution(l),n);return this._proxy.$executeTask(l).catch(()=>{}),i}}provideTasksInternal(T,n,a,l){const i=[];if(l)for(const c of l){this.checkDeprecation(c,a),(!c.definition||!T[c.definition.type])&&this._logService.warn(`The task [${c.source}, ${c.name}] uses an undefined task type. The task will be ignored in the future.`);const _=t.TaskDTO.from(c,a.extension);_&&(i.push(_),t.CustomExecutionDTO.is(_.execution)&&n.push(this.addCustomExecution(_,c,!0)))}return{tasks:i,extension:a.extension}}async resolveTaskInternal(T){return T}async getAFolder(T){let n=T&&T.length>0?T[0]:void 0;if(!n){const a=M.URI.file((0,h.homedir)());n=new p.WorkspaceFolder({uri:a,name:r.basename(a),index:0})}return{uri:n.uri,name:n.name,index:n.index,toResource:()=>{throw new Error("Not implemented")}}}async $resolveVariables(T,n){const a=M.URI.revive(T),l={process:void 0,variables:Object.create(null)},i=await this._workspaceProvider.resolveWorkspaceFolder(a),c=await this._workspaceProvider.getWorkspaceFolders2()??[],_=await this.variableResolver.getResolver(),S=i?{uri:i.uri,name:i.name,index:i.index,toResource:()=>{throw new Error("Not implemented")}}:await this.getAFolder(c);for(const k of n.variables)l.variables[k]=await _.resolveAsync(S,k);if(n.process!==void 0){let k;if(n.process.path!==void 0){k=n.process.path.split(w.delimiter);for(let m=0;m<k.length;m++)k[m]=await _.resolveAsync(S,k[m])}l.process=await d.win32.findExecutable(await _.resolveAsync(S,n.process.name),n.process.cwd!==void 0?await _.resolveAsync(S,n.process.cwd):void 0,k)}return l}async $jsonTasksSupported(){return!0}async $findExecutable(T,n,a){return d.win32.findExecutable(T,n,a)}};e.ExtHostTask=b,e.ExtHostTask=b=je([He(0,y.IExtHostRpcService),He(1,E.IExtHostInitDataService),He(2,A.IExtHostWorkspace),He(3,R.IExtHostDocumentsAndEditors),He(4,u.IExtHostConfiguration),He(5,f.IExtHostTerminalService),He(6,g.ILogService),He(7,C.IExtHostApiDeprecationService),He(8,o.IExtHostVariableResolverProvider)],b)}),define(ye[372],Ce([1,0,60,94]),function(ge,e,w,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeExtHostVariableResolverProviderService=void 0;class d extends M.ExtHostVariableResolverProviderService{homeDir(){return(0,w.homedir)()}}e.NodeExtHostVariableResolverProviderService=d}),define(ye[152],Ce([1,0,19,13,22,47,15,17,25,2,35]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchedCollector=e.extensionResultIsMatch=e.TextSearchResultsCollector=e.TextSearchManager=void 0;class E{constructor(o,b,P,T){this.query=o,this.provider=b,this.fileUtils=P,this.processType=T,this.collector=null,this.isLimitHit=!1,this.resultCount=0}search(o,b){const P=this.query.folderQueries||[],T=new d.CancellationTokenSource;return b.onCancellationRequested(()=>T.cancel()),new Promise((n,a)=>{this.collector=new s(o);let l=!1;const i=(c,_)=>{if(!l&&!this.isLimitHit){const S=this.resultSize(c);C(c)&&typeof this.query.maxResults=="number"&&this.resultCount+S>this.query.maxResults&&(this.isLimitHit=!0,l=!0,T.cancel(),c=this.trimResultToSize(c,this.query.maxResults-this.resultCount));const k=this.resultSize(c);this.resultCount+=k,(k>0||!C(c))&&this.collector.add(c,_)}};Promise.all(P.map((c,_)=>this.searchInFolder(c,S=>i(S,_),T.token))).then(c=>{T.dispose(),this.collector.flush();const _=c.some(S=>!!S&&!!S.limitHit);n({limitHit:this.isLimitHit||_,messages:(0,w.flatten)(c.map(S=>S?.message?Array.isArray(S.message)?S.message:[S.message]:[])),stats:{type:this.processType}})},c=>{T.dispose();const _=(0,A.toErrorMessage)(c);a(new Error(_))})})}resultSize(o){return C(o)?Array.isArray(o.ranges)?o.ranges.length:1:0}trimResultToSize(o,b){const P=Array.isArray(o.ranges)?o.ranges:[o.ranges],T=Array.isArray(o.preview.matches)?o.preview.matches:[o.preview.matches];return{ranges:P.slice(0,b),preview:{matches:T.slice(0,b),text:o.preview.text},uri:o.uri}}async searchInFolder(o,b,P){const T=new y.QueryGlobTester(this.query,o),n=[],a={report:c=>{if(!this.validateProviderResult(c))return;const _=o.folder.scheme===R.Schemas.file?(0,y.hasSiblingPromiseFn)(()=>this.fileUtils.readdir(p.dirname(c.uri))):void 0,S=p.relativePath(o.folder,c.uri);if(S){const k=T.includedInQuery(S,u.basename(S),_);(0,M.isThenable)(k)?n.push(k.then(m=>{m&&b(c)})):k&&b(c)}}},l=this.getSearchOptionsForFolder(o),i=await this.provider.provideTextSearchResults(t(this.query.contentPattern),l,a,P);return n.length&&await Promise.all(n),i}validateProviderResult(o){if(C(o)){if(Array.isArray(o.ranges)){if(!Array.isArray(o.preview.matches))return console.warn("INVALID - A text search provider match's`ranges` and`matches` properties must have the same type."),!1;if(o.preview.matches.length!==o.ranges.length)return console.warn("INVALID - A text search provider match's`ranges` and`matches` properties must have the same length."),!1}else if(Array.isArray(o.preview.matches))return console.warn("INVALID - A text search provider match's`ranges` and`matches` properties must have the same length."),!1}return!0}getSearchOptionsForFolder(o){const b=(0,y.resolvePatternsForProvider)(this.query.includePattern,o.includePattern),P=(0,y.resolvePatternsForProvider)(this.query.excludePattern,o.excludePattern),T={folder:f.URI.from(o.folder),excludes:P,includes:b,useIgnoreFiles:!o.disregardIgnoreFiles,useGlobalIgnoreFiles:!o.disregardGlobalIgnoreFiles,useParentIgnoreFiles:!o.disregardParentIgnoreFiles,followSymlinks:!o.ignoreSymlinks,encoding:o.fileEncoding&&this.fileUtils.toCanonicalName(o.fileEncoding),maxFileSize:this.query.maxFileSize,maxResults:this.query.maxResults,previewOptions:this.query.previewOptions,afterContext:this.query.afterContext,beforeContext:this.query.beforeContext};return T.usePCRE2=this.query.usePCRE2,T}}e.TextSearchManager=E;function t(h){return{isCaseSensitive:h.isCaseSensitive||!1,isRegExp:h.isRegExp||!1,isWordMatch:h.isWordMatch||!1,isMultiline:h.isMultiline||!1,pattern:h.pattern}}class s{constructor(o){this._onResult=o,this._currentFolderIdx=-1,this._currentFileMatch=null,this._batchedCollector=new r(512,b=>this.sendItems(b))}add(o,b){this._currentFileMatch&&(this._currentFolderIdx!==b||!p.isEqual(this._currentUri,o.uri))&&(this.pushToCollector(),this._currentFileMatch=null),this._currentFileMatch||(this._currentFolderIdx=b,this._currentFileMatch={resource:o.uri,results:[]}),this._currentFileMatch.results.push(g(o))}pushToCollector(){const o=this._currentFileMatch&&this._currentFileMatch.results?this._currentFileMatch.results.length:0;this._batchedCollector.addItem(this._currentFileMatch,o)}flush(){this.pushToCollector(),this._batchedCollector.flush()}sendItems(o){this._onResult(o)}}e.TextSearchResultsCollector=s;function g(h){return C(h)?{preview:{matches:(0,w.mapArrayOrNot)(h.preview.matches,o=>({startLineNumber:o.start.line,startColumn:o.start.character,endLineNumber:o.end.line,endColumn:o.end.character})),text:h.preview.text},ranges:(0,w.mapArrayOrNot)(h.ranges,o=>({startLineNumber:o.start.line,startColumn:o.start.character,endLineNumber:o.end.line,endColumn:o.end.character}))}:{text:h.text,lineNumber:h.lineNumber}}function C(h){return!!h.preview}e.extensionResultIsMatch=C;class r{static{this.TIMEOUT=4e3}static{this.START_BATCH_AFTER_COUNT=50}constructor(o,b){this.maxBatchSize=o,this.cb=b,this.totalNumberCompleted=0,this.batch=[],this.batchSize=0}addItem(o,b){o&&this.addItemToBatch(o,b)}addItems(o,b){o&&this.addItemsToBatch(o,b)}addItemToBatch(o,b){this.batch.push(o),this.batchSize+=b,this.onUpdate()}addItemsToBatch(o,b){this.batch=this.batch.concat(o),this.batchSize+=b,this.onUpdate()}onUpdate(){this.totalNumberCompleted<r.START_BATCH_AFTER_COUNT?this.flush():this.batchSize>=this.maxBatchSize?this.flush():this.timeoutHandle||(this.timeoutHandle=setTimeout(()=>{this.flush()},r.TIMEOUT))}flush(){this.batchSize&&(this.totalNumberCompleted+=this.batchSize,this.cb(this.batch),this.batch=[],this.batchSize=0,this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=0))}}e.BatchedCollector=r}),define(ye[95],Ce([1,0,5,3,6,364,20,56,12,2,152]),function(ge,e,w,M,d,A,R,u,p,f,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reviveQuery=e.ExtHostSearch=e.IExtHostSearch=void 0,e.IExtHostSearch=(0,d.createDecorator)("IExtHostSearch");let E=class{constructor(C,r,h){this.extHostRpc=C,this._uriTransformer=r,this._logService=h,this._proxy=this.extHostRpc.getProxy(M.MainContext.MainThreadSearch),this._handlePool=0,this._textSearchProvider=new Map,this._textSearchUsedSchemes=new Set,this._fileSearchProvider=new Map,this._fileSearchUsedSchemes=new Set,this._fileSearchManager=new A.FileSearchManager}_transformScheme(C){return this._uriTransformer.transformOutgoingScheme(C)}registerTextSearchProvider(C,r){if(this._textSearchUsedSchemes.has(C))throw new Error(`a text search provider for the scheme '${C}' is already registered`);this._textSearchUsedSchemes.add(C);const h=this._handlePool++;return this._textSearchProvider.set(h,r),this._proxy.$registerTextSearchProvider(h,this._transformScheme(C)),(0,w.toDisposable)(()=>{this._textSearchUsedSchemes.delete(C),this._textSearchProvider.delete(h),this._proxy.$unregisterProvider(h)})}registerFileSearchProvider(C,r){if(this._fileSearchUsedSchemes.has(C))throw new Error(`a file search provider for the scheme '${C}' is already registered`);this._fileSearchUsedSchemes.add(C);const h=this._handlePool++;return this._fileSearchProvider.set(h,r),this._proxy.$registerFileSearchProvider(h,this._transformScheme(C)),(0,w.toDisposable)(()=>{this._fileSearchUsedSchemes.delete(C),this._fileSearchProvider.delete(h),this._proxy.$unregisterProvider(h)})}$provideFileSearchResults(C,r,h,o){const b=t(h),P=this._fileSearchProvider.get(C);if(P)return this._fileSearchManager.fileSearch(b,P,T=>{this._proxy.$handleFileMatch(C,r,T.map(n=>n.resource))},o);throw new Error("unknown provider: "+C)}$clearCache(C){return this._fileSearchManager.clearCache(C),Promise.resolve(void 0)}$provideTextSearchResults(C,r,h,o){const b=this._textSearchProvider.get(C);if(!b||!b.provideTextSearchResults)throw new Error(`Unknown provider ${C}`);const P=t(h);return this.createTextSearchManager(P,b).search(n=>this._proxy.$handleTextMatch(C,r,n),o)}$enableExtensionHostSearch(){}createTextSearchManager(C,r){return new y.TextSearchManager(C,r,{readdir:h=>Promise.resolve([]),toCanonicalName:h=>h},"textSearchProvider")}};e.ExtHostSearch=E,e.ExtHostSearch=E=je([He(0,R.IExtHostRpcService),He(1,u.IURITransformerService),He(2,p.ILogService)],E);function t(g){return{...g,folderQueries:g.folderQueries&&g.folderQueries.map(s),extraFileResources:g.extraFileResources&&g.extraFileResources.map(C=>f.URI.revive(C))}}e.reviveQuery=t;function s(g){return{...g,folder:f.URI.revive(g.folder)}}}),define(ye[373],Ce([1,0,22,8,4,43,2,131,123,170,194,30,3,108,321,320,32,322,50,324,325,326,279,327,65,39,329,330,334,335,336,151,283,342,343,345,113,48,347,147,11,7,85,350,91,150,49,23,41,274,333,61,148,93,95,12,56,20,26,337,272,67,89,314,348,90,66,353,351,352,315,55,346,349,112,109,88,338,92,339,15,134,282,262,5,27,269,110,258,340,341,316,331,281,332,111,344,317,318,319,313,328,232]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a,l,i,c,_,S,k,m,v,D,L,O,H,N,$,U,x,X,K,pe,le,re,q,oe,ve,ce,se,te,B,G,fe,_e,Ee,F,J,I,V,j,Z,he,Pe,z,ee,ie,ue,Y,me,Se,Ue,ze,et,Ye,at,it,rt,Ae,xe,Te,Ve,de,ae,De,Me,qe,Je,st,ct,pt,It,xt,zt,yt,Lt,Mt,Wt,Tt,Rt,Ft,Ut,$t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createApiFactoryAndRegisterActors=void 0;function Bt(ht){const ut=ht.get(I.IExtHostInitDataService),Vt=ht.get(Ue.IExtHostFileSystemInfo),Ne=ht.get(ie.IExtHostConsumerFileSystem),Ge=ht.get(i.IExtHostExtensionService),tt=ht.get(oe.IExtHostWorkspace),vt=ht.get(it.IExtHostTelemetry),Pt=ht.get(o.IExtHostConfiguration),St=ht.get(F.IURITransformerService),Ke=ht.get(J.IExtHostRpcService),Le=ht.get(N.IExtHostStorage),Fe=ht.get(ee.IExtensionStoragePaths),ke=ht.get(Ee.ILoggerService),ne=ht.get(Ee.ILogService),Oe=ht.get(Z.IExtHostTunnelService),We=ht.get(he.IExtHostApiDeprecationService),Ze=ht.get(q.IExtHostWindow),Qe=ht.get(Ye.IExtHostSecretState),ot=ht.get(at.IExtHostEditorTabs),bt=ht.get(Lt.IExtHostManagedSockets);Ke.set(t.ExtHostContext.ExtHostFileSystemInfo,Vt),Ke.set(t.ExtHostContext.ExtHostLogLevelServiceShape,ke),Ke.set(t.ExtHostContext.ExtHostWorkspace,tt),Ke.set(t.ExtHostContext.ExtHostConfiguration,Pt),Ke.set(t.ExtHostContext.ExtHostExtensionService,Ge),Ke.set(t.ExtHostContext.ExtHostStorage,Le),Ke.set(t.ExtHostContext.ExtHostTunnelService,Oe),Ke.set(t.ExtHostContext.ExtHostWindow,Ze),Ke.set(t.ExtHostContext.ExtHostSecretState,Qe),Ke.set(t.ExtHostContext.ExtHostTelemetry,vt),Ke.set(t.ExtHostContext.ExtHostEditorTabs,ot),Ke.set(t.ExtHostContext.ExtHostManagedSockets,bt);const Ct=Ke.set(t.ExtHostContext.ExtHostDecorations,ht.get(G.IExtHostDecorations)),_t=Ke.set(t.ExtHostContext.ExtHostDocumentsAndEditors,ht.get(l.IExtHostDocumentsAndEditors)),ft=Ke.set(t.ExtHostContext.ExtHostCommands,ht.get(r.IExtHostCommands)),wt=Ke.set(t.ExtHostContext.ExtHostTerminalService,ht.get($.IExtHostTerminalService)),qi=Ke.set(t.ExtHostContext.ExtHostSearch,ht.get(_e.IExtHostSearch)),jt=Ke.set(t.ExtHostContext.ExtHostTask,ht.get(fe.IExtHostTask)),Si=Ke.set(t.ExtHostContext.ExtHostOutputService,ht.get(v.IExtHostOutputService)),ri=Ke.set(t.ExtHostContext.ExtHostLocalization,ht.get(Je.IExtHostLocalizationService)),qt=Ke.set(t.ExtHostContext.ExtHostUrls,new le.ExtHostUrls(Ke)),At=Ke.set(t.ExtHostContext.ExtHostDocuments,new a.ExtHostDocuments(Ke,_t)),Gi=Ke.set(t.ExtHostContext.ExtHostDocumentContentProviders,new T.ExtHostDocumentContentProvider(Ke,_t,ne)),_i=Ke.set(t.ExtHostContext.ExtHostDocumentSaveParticipant,new n.ExtHostDocumentSaveParticipant(ne,At,Ke.getProxy(t.MainContext.MainThreadBulkEdits))),kt=Ke.set(t.ExtHostContext.ExtHostNotebook,new V.ExtHostNotebookController(Ke,ft,_t,At,Ne)),Ki=Ke.set(t.ExtHostContext.ExtHostNotebookDocuments,new ae.ExtHostNotebookDocuments(kt)),ei=Ke.set(t.ExtHostContext.ExtHostNotebookEditors,new de.ExtHostNotebookEditors(ne,kt)),si=Ke.set(t.ExtHostContext.ExtHostNotebookKernels,new rt.ExtHostNotebookKernels(Ke,ut,kt,ft,ne)),yi=Ke.set(t.ExtHostContext.ExtHostNotebookRenderers,new xe.ExtHostNotebookRenderers(Ke,kt)),Ci=Ke.set(t.ExtHostContext.ExtHostNotebookDocumentSaveParticipant,new zt.ExtHostNotebookDocumentSaveParticipant(ne,kt,Ke.getProxy(t.MainContext.MainThreadBulkEdits))),Nt=Ke.set(t.ExtHostContext.ExtHostEditors,new U.ExtHostEditors(Ke,_t)),mi=Ke.set(t.ExtHostContext.ExtHostTreeViews,new x.ExtHostTreeViews(Ke.getProxy(t.MainContext.MainThreadTreeViews),ft,ne)),Di=Ke.set(t.ExtHostContext.ExtHostEditorInsets,new se.ExtHostEditorInsets(Ke.getProxy(t.MainContext.MainThreadEditorInsets),Nt,ut.remote)),oi=Ke.set(t.ExtHostContext.ExtHostDiagnostics,new b.ExtHostDiagnostics(Ke,ne,Vt,_t)),ai=Ke.set(t.ExtHostContext.ExtHostLanguages,new k.ExtHostLanguages(Ke,At,ft.converter,St)),mt=Ke.set(t.ExtHostContext.ExtHostLanguageFeatures,new S.ExtHostLanguageFeatures(Ke,St,At,ft,oi,ne,We,vt)),Ii=Ke.set(t.ExtHostContext.ExtHostFileSystem,new c.ExtHostFileSystem(Ke,mt)),Yt=Ke.set(t.ExtHostContext.ExtHostFileSystemEventService,new _.ExtHostFileSystemEventService(Ke,ne,_t)),ti=Ke.set(t.ExtHostContext.ExtHostQuickOpen,(0,L.createExtHostQuickOpen)(Ke,tt,ft)),gi=Ke.set(t.ExtHostContext.ExtHostSCM,new O.ExtHostSCM(Ke,ft,At,ne)),Pi=Ke.set(t.ExtHostContext.ExtHostQuickDiff,new pt.ExtHostQuickDiff(Ke,St)),ki=Ke.set(t.ExtHostContext.ExtHostShare,new Mt.ExtHostShare(Ke,St)),Qi=Ke.set(t.ExtHostContext.ExtHostComments,(0,h.createExtHostComments)(Ke,ft,At)),pi=Ke.set(t.ExtHostContext.ExtHostProgress,new D.ExtHostProgress(Ke.getProxy(t.MainContext.MainThreadProgress))),Ai=Ke.set(t.ExtHostContext.ExtHosLabelService,new te.ExtHostLabelService(Ke)),Ti=Ke.set(t.ExtHostContext.ExtHostTheming,new j.ExtHostTheming(Ke)),li=Ke.set(t.ExtHostContext.ExtHostAuthentication,new Pe.ExtHostAuthentication(Ke)),Xi=Ke.set(t.ExtHostContext.ExtHostTimeline,new z.ExtHostTimeline(Ke,ft)),vi=Ke.set(t.ExtHostContext.ExtHostWebviews,new re.ExtHostWebviews(Ke,ut.remote,tt,ne,We)),Ei=Ke.set(t.ExtHostContext.ExtHostWebviewPanels,new me.ExtHostWebviewPanels(Ke,vi,tt)),on=Ke.set(t.ExtHostContext.ExtHostCustomEditors,new Y.ExtHostCustomEditors(Ke,At,Fe,vi,Ei)),an=Ke.set(t.ExtHostContext.ExtHostWebviewViews,new ue.ExtHostWebviewViews(Ke,vi)),ii=Ke.set(t.ExtHostContext.ExtHostTesting,new ze.ExtHostTesting(Ke,ft,_t)),Ri=Ke.set(t.ExtHostContext.ExtHostUriOpeners,new et.ExtHostUriOpeners(Ke)),ln=Ke.set(t.ExtHostContext.ExtHostProfileContentHandlers,new ct.ExtHostProfileContentHandlers(Ke)),cn=Ke.set(t.ExtHostContext.ExtHostInlineChat,new xt.ExtHostInteractiveEditor(Ke,ft,At,ne)),wi=Ke.set(t.ExtHostContext.ExtHostChatProvider,new Wt.ExtHostChatProvider(Ke,ne)),Li=Ke.set(t.ExtHostContext.ExtHostChatSlashCommands,new Tt.ExtHostChatSlashCommands(Ke,wi,ne)),Yi=Ke.set(t.ExtHostContext.ExtHostChatVariables,new Rt.ExtHostChatVariables(Ke)),ci=Ke.set(t.ExtHostContext.ExtHostChat,new It.ExtHostChat(Ke,ne)),Mi=Ke.set(t.ExtHostContext.ExtHostAiRelatedInformation,new Ft.ExtHostRelatedInformation(Ke)),un=Ke.set(t.ExtHostContext.ExtHostAiEmbeddingVector,new Ut.ExtHostAiEmbeddingVector(Ke)),Fi=Ke.set(t.ExtHostContext.ExtHostIssueReporter,new yt.ExtHostIssueReporter(Ke)),Ni=Ke.set(t.ExtHostContext.ExtHostStatusBar,new H.ExtHostStatusBar(Ke,ft.converter)),Jt=new Set([t.ExtHostContext.ExtHostDebugService,t.ExtHostContext.ExtHostInteractive]),bi=(0,ce.values)(t.ExtHostContext).filter($e=>!Jt.has($e));Ke.assertRegistered(bi);const dn=new Se.ExtHostBulkEdits(Ke,_t),Gt=new C.ExtHostClipboard(Ke),ui=new m.ExtHostMessageService(Ke,ne),Oi=new P.ExtHostDialogs(Ke);return g.ExtHostApiCommands.register(ft),function($e,Qt,hi){const hn=we=>{const Ie=hi.getConfiguration($t.CONFIG_WORKBENCH_ENABLEPREVIEWFEATURES),Be=hi.getConfiguration($t.CONFIG_WORKBENCH_USEVSCODENOTEBOOKS);if(!(Ie&&Be))throw new Error(`Notebook extension '${we.identifier.value}' is not supported. VS Code notebook functionality is currently disabled.`)},Et=function(){let we=!$e.isUnderDevelopment;function Ie(){we||(ne.info(`Extension '${$e.identifier.value}' uses a document selector without scheme. Learn more about this: https://go.microsoft.com/fwlink/?linkid=872305`),we=!0)}return function Be(lt){if(Array.isArray(lt))lt.forEach(Be);else if(typeof lt=="string")Ie();else{const Dt=lt;typeof Dt.scheme>"u"&&Ie(),typeof Dt.exclusive=="boolean"&&(0,Me.checkProposedApiEnabled)($e,"documentFiltersExclusive")}return lt}}(),Ji={getSession(we,Ie,Be){return li.getSession($e,we,Ie,Be)},getSessions(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"authGetSessions"),li.getSessions($e,we,Ie)},async hasSession(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"authSession"),!!await li.getSession($e,we,Ie,{silent:!0})},get onDidChangeSessions(){return li.onDidChangeSessions},registerAuthenticationProvider(we,Ie,Be,lt){return li.registerAuthenticationProvider(we,Ie,Be,lt)}},fn={registerCommand(we,Ie,Be){return ft.registerCommand(!0,we,Ie,Be,void 0,$e)},registerTextEditorCommand(we,Ie,Be){return ft.registerCommand(!0,we,(...lt)=>{const Dt=Nt.getActiveTextEditor();if(!Dt){ne.warn("Cannot execute "+we+" because there is no active text editor.");return}return Dt.edit(Ot=>{Ie.apply(Be,[Dt,Ot,...lt])}).then(Ot=>{Ot||ne.warn("Edits from command "+we+" were not applied.")},Ot=>{ne.warn("An error occurred while running command "+we,Ot)})},void 0,void 0,$e)},registerDiffInformationCommand:(we,Ie,Be)=>((0,Me.checkProposedApiEnabled)($e,"diffCommand"),ft.registerCommand(!0,we,async(...lt)=>{const Dt=_t.activeEditor(!0);if(!Dt){ne.warn("Cannot execute "+we+" because there is no active text editor.");return}const Ot=await Nt.getDiffInformation(Dt.id);Ie.apply(Be,[Ot,...lt])},void 0,void 0,$e)),executeCommand(we,...Ie){return ft.executeCommand(we,...Ie)},getCommands(we=!1){return ft.getCommands(we)}},Zi={get machineId(){return ut.telemetryInfo.machineId},get sessionId(){return ut.telemetryInfo.sessionId},get language(){return ut.environment.appLanguage},get appName(){return ut.environment.appName},get appRoot(){return ut.environment.appRoot?.fsPath??""},get appHost(){return ut.environment.appHost},get uriScheme(){return ut.environment.appUriScheme},get clipboard(){return Gt.value},get shell(){return wt.getDefaultShell(!1)},get onDidChangeShell(){return(0,Me.checkProposedApiEnabled)($e,"envShellEvent"),wt.onDidChangeShell},get isTelemetryEnabled(){return vt.getTelemetryConfiguration()},get onDidChangeTelemetryEnabled(){return vt.onDidChangeTelemetryEnabled},get telemetryConfiguration(){return(0,Me.checkProposedApiEnabled)($e,"telemetry"),vt.getTelemetryDetails()},get onDidChangeTelemetryConfiguration(){return(0,Me.checkProposedApiEnabled)($e,"telemetry"),vt.onDidChangeTelemetryConfiguration},get isNewAppInstall(){return(0,it.isNewAppInstall)(ut.telemetryInfo.firstSessionDate)},createTelemetryLogger(we,Ie){return it.ExtHostTelemetryLogger.validateSender(we),vt.instantiateLogger($e,we,Ie)},openExternal(we,Ie){return Ze.openUri(we,{allowTunneling:!!ut.remote.authority,allowContributedOpeners:Ie?.allowContributedOpeners})},async asExternalUri(we){if(we.scheme===ut.environment.appUriScheme)return qt.createAppUri(we);try{return await Ze.asExternalUri(we,{allowTunneling:!!ut.remote.authority})}catch(Ie){if((0,Ve.matchesScheme)(we,Te.Schemas.http)||(0,Ve.matchesScheme)(we,Te.Schemas.https))return we;throw Ie}},get remoteName(){return(0,B.getRemoteName)(ut.remote.authority)},get remoteAuthority(){return(0,Me.checkProposedApiEnabled)($e,"resolvers"),ut.remote.authority},get uiKind(){return ut.uiKind},get logLevel(){return ne.getLevel()},get onDidChangeLogLevel(){return ne.onDidChangeLogLevel},registerIssueUriRequestHandler(we){return(0,Me.checkProposedApiEnabled)($e,"handleIssueUri"),Fi.registerIssueUriRequestHandler($e,we)},get appQuality(){return(0,Me.checkProposedApiEnabled)($e,"resolvers"),ut.quality},get appCommit(){return(0,Me.checkProposedApiEnabled)($e,"resolvers"),ut.commit}};ut.environment.extensionTestsLocationURI||Object.freeze(Zi);const xi={createTestController(we,Ie,Be){return ii.createTestController($e,we,Ie,Be)},createTestObserver(){return(0,Me.checkProposedApiEnabled)($e,"testObserver"),ii.createTestObserver()},runTests(we){return(0,Me.checkProposedApiEnabled)($e,"testObserver"),ii.runTests(we)},get onDidChangeTestResults(){return(0,Me.checkProposedApiEnabled)($e,"testObserver"),ii.onResultsChanged},get testResults(){return(0,Me.checkProposedApiEnabled)($e,"testObserver"),ii.results}},fi=ut.remote.isRemote?K.ExtensionKind.Workspace:K.ExtensionKind.UI,en={getExtension(we,Ie){(0,Me.isProposedApiEnabled)($e,"extensionsAny")||(Ie=!1);const Be=Qt.mine.getExtensionDescription(we);if(Be)return new i.Extension(Ge,$e.identifier,Be,fi,!1);if(Ie){const lt=Qt.all.getExtensionDescription(we);if(lt)return new i.Extension(Ge,$e.identifier,lt,fi,!0)}},get all(){const we=[];for(const Ie of Qt.mine.getAllExtensionDescriptions())we.push(new i.Extension(Ge,$e.identifier,Ie,fi,!1));return we},get allAcrossExtensionHosts(){(0,Me.checkProposedApiEnabled)($e,"extensionsAny");const we=new ve.ExtensionIdentifierSet(Qt.mine.getAllExtensionDescriptions().map(Be=>Be.identifier)),Ie=[];for(const Be of Qt.all.getAllExtensionDescriptions()){const lt=!we.has(Be.identifier);Ie.push(new i.Extension(Ge,$e.identifier,Be,fi,lt))}return Ie},get onDidChange(){return(0,Me.isProposedApiEnabled)($e,"extensionsAny")?d.Event.any(Qt.mine.onDidChange,Qt.all.onDidChange):Qt.mine.onDidChange}},tn={createDiagnosticCollection(we){return oi.createDiagnosticCollection($e.identifier,we)},get onDidChangeDiagnostics(){return oi.onDidChangeDiagnostics},getDiagnostics:we=>oi.getDiagnostics(we),getLanguages(){return ai.getLanguages()},setTextDocumentLanguage(we,Ie){return ai.changeLanguage(we.uri,Ie)},match(we,Ie){const Be=At.getDocumentData(Ie.uri)?.notebook;return(0,y.score)(X.LanguageSelector.from(we),Ie.uri,Ie.languageId,!0,Be?.uri,Be?.notebookType)},registerCodeActionsProvider(we,Ie,Be){return mt.registerCodeActionProvider($e,Et(we),Ie,Be)},registerDocumentPasteEditProvider(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"documentPaste"),mt.registerDocumentPasteEditProvider($e,Et(we),Ie,Be)},registerCodeLensProvider(we,Ie){return mt.registerCodeLensProvider($e,Et(we),Ie)},registerDefinitionProvider(we,Ie){return mt.registerDefinitionProvider($e,Et(we),Ie)},registerDeclarationProvider(we,Ie){return mt.registerDeclarationProvider($e,Et(we),Ie)},registerImplementationProvider(we,Ie){return mt.registerImplementationProvider($e,Et(we),Ie)},registerTypeDefinitionProvider(we,Ie){return mt.registerTypeDefinitionProvider($e,Et(we),Ie)},registerHoverProvider(we,Ie){return mt.registerHoverProvider($e,Et(we),Ie,$e.identifier)},registerEvaluatableExpressionProvider(we,Ie){return mt.registerEvaluatableExpressionProvider($e,Et(we),Ie,$e.identifier)},registerInlineValuesProvider(we,Ie){return mt.registerInlineValuesProvider($e,Et(we),Ie,$e.identifier)},registerDocumentHighlightProvider(we,Ie){return mt.registerDocumentHighlightProvider($e,Et(we),Ie)},registerLinkedEditingRangeProvider(we,Ie){return mt.registerLinkedEditingRangeProvider($e,Et(we),Ie)},registerReferenceProvider(we,Ie){return mt.registerReferenceProvider($e,Et(we),Ie)},registerRenameProvider(we,Ie){return mt.registerRenameProvider($e,Et(we),Ie)},registerDocumentSymbolProvider(we,Ie,Be){return mt.registerDocumentSymbolProvider($e,Et(we),Ie,Be)},registerWorkspaceSymbolProvider(we){return mt.registerWorkspaceSymbolProvider($e,we)},registerDocumentFormattingEditProvider(we,Ie){return mt.registerDocumentFormattingEditProvider($e,Et(we),Ie)},registerDocumentRangeFormattingEditProvider(we,Ie){return mt.registerDocumentRangeFormattingEditProvider($e,Et(we),Ie)},registerOnTypeFormattingEditProvider(we,Ie,Be,...lt){return mt.registerOnTypeFormattingEditProvider($e,Et(we),Ie,[Be].concat(lt))},registerDocumentSemanticTokensProvider(we,Ie,Be){return mt.registerDocumentSemanticTokensProvider($e,Et(we),Ie,Be)},registerDocumentRangeSemanticTokensProvider(we,Ie,Be){return mt.registerDocumentRangeSemanticTokensProvider($e,Et(we),Ie,Be)},registerSignatureHelpProvider(we,Ie,Be,...lt){return typeof Be=="object"?mt.registerSignatureHelpProvider($e,Et(we),Ie,Be):mt.registerSignatureHelpProvider($e,Et(we),Ie,typeof Be>"u"?[]:[Be,...lt])},registerCompletionItemProvider(we,Ie,...Be){return mt.registerCompletionItemProvider($e,Et(we),Ie,Be)},registerInlineCompletionItemProvider(we,Ie,Be){return Ie.handleDidShowCompletionItem&&(0,Me.checkProposedApiEnabled)($e,"inlineCompletionsAdditions"),Ie.handleDidPartiallyAcceptCompletionItem&&(0,Me.checkProposedApiEnabled)($e,"inlineCompletionsAdditions"),Be&&(0,Me.checkProposedApiEnabled)($e,"inlineCompletionsAdditions"),mt.registerInlineCompletionsProvider($e,Et(we),Ie,Be)},registerDocumentLinkProvider(we,Ie){return mt.registerDocumentLinkProvider($e,Et(we),Ie)},registerColorProvider(we,Ie){return mt.registerColorProvider($e,Et(we),Ie)},registerFoldingRangeProvider(we,Ie){return mt.registerFoldingRangeProvider($e,Et(we),Ie)},registerSelectionRangeProvider(we,Ie){return mt.registerSelectionRangeProvider($e,we,Ie)},registerCallHierarchyProvider(we,Ie){return mt.registerCallHierarchyProvider($e,we,Ie)},registerTypeHierarchyProvider(we,Ie){return mt.registerTypeHierarchyProvider($e,we,Ie)},setLanguageConfiguration:(we,Ie)=>mt.setLanguageConfiguration($e,we,Ie),getTokenInformationAtPosition(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"tokenInformation"),ai.tokenAtPosition(we,Ie)},registerInlayHintsProvider(we,Ie){return mt.registerInlayHintsProvider($e,we,Ie)},createLanguageStatusItem(we,Ie){return ai.createLanguageStatusItem($e,we,Ie)},registerDocumentDropEditProvider(we,Ie,Be){return mt.registerDocumentOnDropEditProvider($e,we,Ie,(0,Me.isProposedApiEnabled)($e,"dropMetadata")?Be:void 0)}},mn={get activeTextEditor(){return Nt.getActiveTextEditor()},get visibleTextEditors(){return Nt.getVisibleTextEditors()},get activeTerminal(){return wt.activeTerminal},get terminals(){return wt.terminals},async showTextDocument(we,Ie,Be){const lt=await(R.URI.isUri(we)?Promise.resolve(nn.openTextDocument(we)):Promise.resolve(we));return Nt.showTextDocument(lt,Ie,Be)},createTextEditorDecorationType(we){return Nt.createTextEditorDecorationType($e,we)},onDidChangeActiveTextEditor(we,Ie,Be){return Nt.onDidChangeActiveTextEditor(we,Ie,Be)},onDidChangeVisibleTextEditors(we,Ie,Be){return Nt.onDidChangeVisibleTextEditors(we,Ie,Be)},onDidChangeTextEditorSelection(we,Ie,Be){return Nt.onDidChangeTextEditorSelection(we,Ie,Be)},onDidChangeTextEditorOptions(we,Ie,Be){return Nt.onDidChangeTextEditorOptions(we,Ie,Be)},onDidChangeTextEditorVisibleRanges(we,Ie,Be){return Nt.onDidChangeTextEditorVisibleRanges(we,Ie,Be)},onDidChangeTextEditorViewColumn(we,Ie,Be){return Nt.onDidChangeTextEditorViewColumn(we,Ie,Be)},onDidCloseTerminal(we,Ie,Be){return wt.onDidCloseTerminal(we,Ie,Be)},onDidOpenTerminal(we,Ie,Be){return wt.onDidOpenTerminal(we,Ie,Be)},onDidChangeActiveTerminal(we,Ie,Be){return wt.onDidChangeActiveTerminal(we,Ie,Be)},onDidChangeTerminalDimensions(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"terminalDimensions"),wt.onDidChangeTerminalDimensions(we,Ie,Be)},onDidChangeTerminalState(we,Ie,Be){return wt.onDidChangeTerminalState(we,Ie,Be)},onDidWriteTerminalData(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"terminalDataWriteEvent"),wt.onDidWriteTerminalData(we,Ie,Be)},onDidExecuteTerminalCommand(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"terminalExecuteCommandEvent"),wt.onDidExecuteTerminalCommand(we,Ie,Be)},get state(){return Ze.getState($e)},onDidChangeWindowState(we,Ie,Be){return Ze.onDidChangeWindowState(we,Ie,Be)},showInformationMessage(we,...Ie){return ui.showMessage($e,A.default.Info,we,Ie[0],Ie.slice(1))},showWarningMessage(we,...Ie){return ui.showMessage($e,A.default.Warning,we,Ie[0],Ie.slice(1))},showErrorMessage(we,...Ie){return ui.showMessage($e,A.default.Error,we,Ie[0],Ie.slice(1))},showQuickPick(we,Ie,Be){return ti.showQuickPick($e,we,Ie,Be)},showWorkspaceFolderPick(we){return ti.showWorkspaceFolderPick(we)},showInputBox(we,Ie){return ti.showInput(we,Ie)},showOpenDialog(we){return Oi.showOpenDialog($e,we)},showSaveDialog(we){return Oi.showSaveDialog(we)},createStatusBarItem(we,Ie,Be){let lt,Dt,Ot;return typeof we=="string"?(lt=we,Dt=Ie,Ot=Be):(Dt=we,Ot=Ie),Ni.createStatusBarEntry($e,lt,Dt,Ot)},setStatusBarMessage(we,Ie){return Ni.setStatusBarMessage(we,Ie)},withScmProgress(we){return We.report("window.withScmProgress",$e,"Use 'withProgress' instead."),pi.withProgress($e,{location:K.ProgressLocation.SourceControl},(Ie,Be)=>we({report(lt){}}))},withProgress(we,Ie){return pi.withProgress($e,we,Ie)},createOutputChannel(we,Ie){return Si.createOutputChannel(we,Ie,$e)},createWebviewPanel(we,Ie,Be,lt){return Ei.createWebviewPanel($e,we,Ie,Be,lt)},createWebviewTextEditorInset(we,Ie,Be,lt){return(0,Me.checkProposedApiEnabled)($e,"editorInsets"),Di.createWebviewEditorInset(we,Ie,Be,lt,$e)},createTerminal(we,Ie,Be){return typeof we=="object"?"pty"in we?wt.createExtensionTerminal(we):wt.createTerminalFromOptions(we):wt.createTerminal(we,Ie,Be)},registerTerminalLinkProvider(we){return wt.registerLinkProvider(we)},registerTerminalProfileProvider(we,Ie){return wt.registerProfileProvider($e,we,Ie)},registerTerminalQuickFixProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"terminalQuickFixProvider"),wt.registerTerminalQuickFixProvider(we,$e.identifier.value,Ie)},registerTreeDataProvider(we,Ie){return mi.registerTreeDataProvider(we,Ie,$e)},createTreeView(we,Ie){return mi.createTreeView(we,Ie,$e)},registerWebviewPanelSerializer:(we,Ie)=>Ei.registerWebviewPanelSerializer($e,we,Ie),registerCustomEditorProvider:(we,Ie,Be={})=>on.registerCustomEditorProvider($e,we,Ie,Be),registerFileDecorationProvider(we){return Ct.registerFileDecorationProvider(we,$e)},registerUriHandler(we){return qt.registerUriHandler($e,we)},createQuickPick(){return ti.createQuickPick($e)},createInputBox(){return ti.createInputBox($e)},get activeColorTheme(){return Ti.activeColorTheme},onDidChangeActiveColorTheme(we,Ie,Be){return Ti.onDidChangeActiveColorTheme(we,Ie,Be)},registerWebviewViewProvider(we,Ie,Be){return an.registerWebviewViewProvider($e,we,Ie,Be?.webviewOptions)},get activeNotebookEditor(){return kt.activeNotebookEditor},onDidChangeActiveNotebookEditor(we,Ie,Be){return kt.onDidChangeActiveNotebookEditor(we,Ie,Be)},get visibleNotebookEditors(){return kt.visibleNotebookEditors},get onDidChangeVisibleNotebookEditors(){return kt.onDidChangeVisibleNotebookEditors},onDidChangeNotebookEditorSelection(we,Ie,Be){return ei.onDidChangeNotebookEditorSelection(we,Ie,Be)},onDidChangeNotebookEditorVisibleRanges(we,Ie,Be){return ei.onDidChangeNotebookEditorVisibleRanges(we,Ie,Be)},showNotebookDocument(we,Ie){return hn($e),kt.showNotebookDocument(we,Ie)},registerExternalUriOpener(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"externalUriOpener"),Ri.registerExternalUriOpener($e.identifier,we,Ie,Be)},registerProfileContentHandler(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"profileContentHandlers"),ln.registrProfileContentHandler($e,we,Ie)},registerQuickDiffProvider(we,Ie,Be,lt){return(0,Me.checkProposedApiEnabled)($e,"quickDiffProvider"),Pi.registerQuickDiffProvider(Et(we),Ie,Be,lt)},get tabGroups(){return ot.tabGroups},registerShareProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"shareProvider"),ki.registerShareProvider(Et(we),Ie)}},nn={get rootPath(){return We.report("workspace.rootPath",$e,"Please use 'workspace.workspaceFolders' instead. More details: https://aka.ms/vscode-eliminating-rootpath"),tt.getPath()},set rootPath(we){throw M.readonly()},getWorkspaceFolder(we){return tt.getWorkspaceFolder(we)},get workspaceFolders(){return tt.getWorkspaceFolders()},get name(){return tt.name},set name(we){throw M.readonly()},get workspaceFile(){return tt.workspaceFile},set workspaceFile(we){throw M.readonly()},updateWorkspaceFolders:(we,Ie,...Be)=>tt.updateWorkspaceFolders($e,we,Ie||0,...Be),onDidChangeWorkspaceFolders:function(we,Ie,Be){return tt.onDidChangeWorkspace(we,Ie,Be)},asRelativePath:(we,Ie)=>tt.getRelativePath(we,Ie),findFiles:(we,Ie,Be,lt)=>tt.findFiles(we,Ie,Be,$e.identifier,lt),findTextInFiles:(we,Ie,Be,lt)=>{(0,Me.checkProposedApiEnabled)($e,"findTextInFiles");let Dt,Ot;return typeof Ie=="object"?(Dt=Ie,Ot=Be):(Dt={},Ot=Ie,lt=Be),tt.findTextInFiles(we,Dt||{},Ot,$e.identifier,lt)},save:we=>((0,Me.checkProposedApiEnabled)($e,"saveEditor"),tt.save(we)),saveAs:we=>((0,Me.checkProposedApiEnabled)($e,"saveEditor"),tt.saveAs(we)),saveAll:we=>tt.saveAll(we),applyEdit(we,Ie){return dn.applyWorkspaceEdit(we,$e,Ie)},createFileSystemWatcher:(we,Ie,Be,lt)=>Yt.createFileSystemWatcher(tt,$e,we,Ie,Be,lt),get textDocuments(){return At.getAllDocumentData().map(we=>we.document)},set textDocuments(we){throw M.readonly()},openTextDocument(we){let Ie;const Be=we;if(typeof we=="string")Ie=Promise.resolve(R.URI.file(we));else if(R.URI.isUri(we))Ie=Promise.resolve(we);else if(!Be||typeof Be=="object")Ie=At.createDocumentData(Be);else throw new Error("illegal argument - uriOrFileNameOrOptions");return Ie.then(lt=>At.ensureDocumentData(lt).then(Dt=>Dt.document))},onDidOpenTextDocument:(we,Ie,Be)=>At.onDidAddDocument(we,Ie,Be),onDidCloseTextDocument:(we,Ie,Be)=>At.onDidRemoveDocument(we,Ie,Be),onDidChangeTextDocument:(we,Ie,Be)=>At.onDidChangeDocument(we,Ie,Be),onDidSaveTextDocument:(we,Ie,Be)=>At.onDidSaveDocument(we,Ie,Be),onWillSaveTextDocument:(we,Ie,Be)=>_i.getOnWillSaveTextDocumentEvent($e)(we,Ie,Be),get notebookDocuments(){return kt.notebookDocuments.map(we=>we.apiNotebook)},async openNotebookDocument(we,Ie){let Be;if(R.URI.isUri(we))Be=we,await kt.openNotebookDocument(we);else if(typeof we=="string")Be=R.URI.revive(await kt.createNotebookDocument({viewType:we,content:Ie}));else throw new Error("Invalid arguments");return kt.getNotebookDocument(Be).apiNotebook},onDidSaveNotebookDocument(we,Ie,Be){return Ki.onDidSaveNotebookDocument(we,Ie,Be)},onDidChangeNotebookDocument(we,Ie,Be){return Ki.onDidChangeNotebookDocument(we,Ie,Be)},onWillSaveNotebookDocument(we,Ie,Be){return Ci.getOnWillSaveNotebookDocumentEvent($e)(we,Ie,Be)},get onDidOpenNotebookDocument(){return kt.onDidOpenNotebookDocument},get onDidCloseNotebookDocument(){return kt.onDidCloseNotebookDocument},registerNotebookSerializer(we,Ie,Be,lt){return kt.registerNotebookSerializer($e,we,Ie,Be,(0,Me.isProposedApiEnabled)($e,"notebookLiveShare")?lt:void 0)},onDidChangeConfiguration:(we,Ie,Be)=>hi.onDidChangeConfiguration(we,Ie,Be),getConfiguration(we,Ie){return Ie=arguments.length===1?void 0:Ie,hi.getConfiguration(we,Ie,$e)},registerTextDocumentContentProvider(we,Ie){return Gi.registerTextDocumentContentProvider(we,Ie)},registerTaskProvider:(we,Ie)=>(We.report("window.registerTaskProvider",$e,"Use the corresponding function on the 'tasks' namespace instead"),jt.registerTaskProvider($e,we,Ie)),registerFileSystemProvider(we,Ie,Be){return(0,De.combinedDisposable)(Ii.registerFileSystemProvider($e,we,Ie,Be),Ne.addFileSystemProvider(we,Ie,Be))},get fs(){return Ne.value},registerFileSearchProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"fileSearchProvider"),qi.registerFileSearchProvider(we,Ie)),registerTextSearchProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"textSearchProvider"),qi.registerTextSearchProvider(we,Ie)),registerRemoteAuthorityResolver:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"resolvers"),Ge.registerRemoteAuthorityResolver(we,Ie)),registerResourceLabelFormatter:we=>((0,Me.checkProposedApiEnabled)($e,"resolvers"),Ai.$registerResourceLabelFormatter(we)),getRemoteExecServer:we=>((0,Me.checkProposedApiEnabled)($e,"resolvers"),Ge.getRemoteExecServer(we)),onDidCreateFiles:(we,Ie,Be)=>Yt.onDidCreateFile(we,Ie,Be),onDidDeleteFiles:(we,Ie,Be)=>Yt.onDidDeleteFile(we,Ie,Be),onDidRenameFiles:(we,Ie,Be)=>Yt.onDidRenameFile(we,Ie,Be),onWillCreateFiles:(we,Ie,Be)=>Yt.getOnWillCreateFileEvent($e)(we,Ie,Be),onWillDeleteFiles:(we,Ie,Be)=>Yt.getOnWillDeleteFileEvent($e)(we,Ie,Be),onWillRenameFiles:(we,Ie,Be)=>Yt.getOnWillRenameFileEvent($e)(we,Ie,Be),openTunnel:we=>((0,Me.checkProposedApiEnabled)($e,"tunnels"),Oe.openTunnel($e,we).then(Ie=>{if(!Ie)throw new Error("cannot open tunnel");return Ie})),get tunnels(){return(0,Me.checkProposedApiEnabled)($e,"tunnels"),Oe.getTunnels()},onDidChangeTunnels:(we,Ie,Be)=>((0,Me.checkProposedApiEnabled)($e,"tunnels"),Oe.onDidChangeTunnels(we,Ie,Be)),registerPortAttributesProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"portsAttributes"),Oe.registerPortsAttributesProvider(we,Ie)),registerTunnelProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"tunnelFactory"),Oe.registerTunnelProvider(we,Ie)),registerTimelineProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"timeline"),Xi.registerTimelineProvider(we,Ie,$e.identifier,ft.converter)),get isTrusted(){return tt.trusted},requestWorkspaceTrust:we=>((0,Me.checkProposedApiEnabled)($e,"workspaceTrust"),tt.requestWorkspaceTrust(we)),onDidGrantWorkspaceTrust:(we,Ie,Be)=>tt.onDidGrantWorkspaceTrust(we,Ie,Be),registerEditSessionIdentityProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"editSessionIdentityProvider"),tt.registerEditSessionIdentityProvider(we,Ie)),onWillCreateEditSessionIdentity:(we,Ie,Be)=>((0,Me.checkProposedApiEnabled)($e,"editSessionIdentityProvider"),tt.getOnWillCreateEditSessionIdentityEvent($e)(we,Ie,Be)),registerCanonicalUriProvider:(we,Ie)=>((0,Me.checkProposedApiEnabled)($e,"canonicalUriProvider"),tt.registerCanonicalUriProvider(we,Ie)),getCanonicalUri:(we,Ie,Be)=>((0,Me.checkProposedApiEnabled)($e,"canonicalUriProvider"),tt.provideCanonicalUri(we,Ie,Be))},rn={get inputBox(){return We.report("scm.inputBox",$e,"Use 'SourceControl.inputBox' instead"),gi.getLastInputBox($e)},createSourceControl(we,Ie,Be){return gi.createSourceControl($e,we,Ie,Be)}},sn={createCommentController(we,Ie){return Qi.createCommentController($e,we,Ie)}},Ui={get activeDebugSession(){ne.warn("Debug API is disabled in Azure Data Studio")},get activeDebugConsole(){ne.warn("Debug API is disabled in Azure Data Studio")},get breakpoints(){ne.warn("Debug API is disabled in Azure Data Studio")},get stackFrameFocus(){ne.warn("Debug API is disabled in Azure Data Studio")},onDidStartDebugSession(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},onDidTerminateDebugSession(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},onDidChangeActiveDebugSession(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},onDidReceiveDebugSessionCustomEvent(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},onDidChangeBreakpoints(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},onDidChangeStackFrameFocus(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},registerDebugConfigurationProvider(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},registerDebugAdapterDescriptorFactory(we,Ie){ne.warn("Debug API is disabled in Azure Data Studio")},registerDebugAdapterTrackerFactory(we,Ie){ne.warn("Debug API is disabled in Azure Data Studio")},startDebugging(we,Ie,Be){ne.warn("Debug API is disabled in Azure Data Studio")},stopDebugging(we){ne.warn("Debug API is disabled in Azure Data Studio")},addBreakpoints(we){ne.warn("Debug API is disabled in Azure Data Studio")},removeBreakpoints(we){ne.warn("Debug API is disabled in Azure Data Studio")},asDebugSourceUri(we,Ie){ne.warn("Debug API is disabled in Azure Data Studio")}},$i={registerTaskProvider:(we,Ie)=>jt.registerTaskProvider($e,we,Ie),fetchTasks:we=>jt.fetchTasks(we),executeTask:we=>jt.executeTask($e,we),get taskExecutions(){return jt.taskExecutions},onDidStartTask:(we,Ie,Be)=>jt.onDidStartTask(we,Ie,Be),onDidEndTask:(we,Ie,Be)=>jt.onDidEndTask(we,Ie,Be),onDidStartTaskProcess:(we,Ie,Be)=>jt.onDidStartTaskProcess(we,Ie,Be),onDidEndTaskProcess:(we,Ie,Be)=>jt.onDidEndTaskProcess(we,Ie,Be)},Bi={createNotebookController(we,Ie,Be,lt,Dt){return si.createNotebookController($e,we,Ie,Be,lt,(0,Me.isProposedApiEnabled)($e,"notebookMessaging")?Dt:void 0)},registerNotebookCellStatusBarItemProvider:(we,Ie)=>kt.registerNotebookCellStatusBarItemProvider($e,we,Ie),createRendererMessaging(we){return yi.createRendererMessaging($e,we)},createNotebookControllerDetectionTask(we){return(0,Me.checkProposedApiEnabled)($e,"notebookKernelSource"),si.createNotebookControllerDetectionTask($e,we)},registerKernelSourceActionProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"notebookKernelSource"),si.registerKernelSourceActionProvider($e,we,Ie)},onDidChangeNotebookCellExecutionState(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"notebookCellExecutionState"),si.onDidChangeNotebookCellExecutionState(we,Ie,Be)}},di={t(...we){if(typeof we[0]=="string"){const Ie=we.shift(),Be=!we||typeof we[0]!="object"?we:we[0];return ri.getMessage($e.identifier.value,{message:Ie,args:Be})}return ri.getMessage($e.identifier.value,we[0])},get bundle(){return ri.getBundle($e.identifier.value)},get uri(){return ri.getBundleUri($e.identifier.value)}},zi={_version:1,registerInteractiveEditorSessionProvider(we){return(0,Me.checkProposedApiEnabled)($e,"interactive"),cn.registerProvider($e,we)},registerInteractiveSessionProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"interactive"),ci.registerChatProvider($e,we,Ie)},addInteractiveRequest(we){return(0,Me.checkProposedApiEnabled)($e,"interactive"),ci.addChatRequest(we)},sendInteractiveRequestToProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"interactive"),ci.sendInteractiveRequestToProvider(we,Ie)},get onDidPerformUserAction(){return(0,Me.checkProposedApiEnabled)($e,"interactiveUserActions"),ci.onDidPerformUserAction},transferChatSession(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"interactive"),ci.transferChatSession(we,Ie)}},Hi={getRelatedInformation(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"aiRelatedInformation"),Mi.getRelatedInformation($e,we,Ie)},registerRelatedInformationProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"aiRelatedInformation"),Mi.registerRelatedInformationProvider($e,we,Ie)},registerEmbeddingVectorProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"aiRelatedInformation"),un.registerEmbeddingVectorProvider($e,we,Ie)}},Wi={registerChatResponseProvider(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"chatProvider"),wi.registerProvider($e.identifier,we,Ie,Be)},registerSlashCommand(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"chatSlashCommands"),Li.registerCommand($e.identifier,we,Ie,Be??{description:""})},requestChatAccess(we){return(0,Me.checkProposedApiEnabled)($e,"chatRequestAccess"),wi.requestChatResponseProvider($e.identifier,we)},registerVariable(we,Ie,Be){return(0,Me.checkProposedApiEnabled)($e,"chatVariables"),Yi.registerVariableResolver($e,we,Ie,Be)},registerMappedEditsProvider(we,Ie){return(0,Me.checkProposedApiEnabled)($e,"mappedEditsProvider"),mt.registerMappedEditsProvider($e,we,Ie)}};return{version:ut.vscodeVersion,ai:Hi,authentication:Ji,commands:fn,comments:sn,chat:Wi,debug:Ui,env:Zi,extensions:en,interactive:zi,l10n:di,languages:tn,notebooks:Bi,scm:rn,tasks:$i,tests:xi,window:mn,workspace:nn,Breakpoint:K.Breakpoint,TerminalOutputAnchor:K.TerminalOutputAnchor,ChatMessage:K.ChatMessage,ChatMessageRole:K.ChatMessageRole,ChatVariableLevel:K.ChatVariableLevel,CallHierarchyIncomingCall:K.CallHierarchyIncomingCall,CallHierarchyItem:K.CallHierarchyItem,CallHierarchyOutgoingCall:K.CallHierarchyOutgoingCall,CancellationError:M.CancellationError,CancellationTokenSource:w.CancellationTokenSource,CandidatePortSource:t.CandidatePortSource,CodeAction:K.CodeAction,CodeActionKind:K.CodeActionKind,CodeActionTriggerKind:K.CodeActionTriggerKind,CodeLens:K.CodeLens,Color:K.Color,ColorInformation:K.ColorInformation,ColorPresentation:K.ColorPresentation,ColorThemeKind:K.ColorThemeKind,CommentMode:K.CommentMode,CommentState:K.CommentState,CommentThreadCollapsibleState:K.CommentThreadCollapsibleState,CommentThreadState:K.CommentThreadState,CompletionItem:K.CompletionItem,CompletionItemKind:K.CompletionItemKind,CompletionItemTag:K.CompletionItemTag,CompletionList:K.CompletionList,CompletionTriggerKind:K.CompletionTriggerKind,ConfigurationTarget:K.ConfigurationTarget,CustomExecution:K.CustomExecution,DebugAdapterExecutable:K.DebugAdapterExecutable,DebugAdapterInlineImplementation:K.DebugAdapterInlineImplementation,DebugAdapterNamedPipeServer:K.DebugAdapterNamedPipeServer,DebugAdapterServer:K.DebugAdapterServer,DebugConfigurationProviderTriggerKind:qe.DebugConfigurationProviderTriggerKind,DebugConsoleMode:K.DebugConsoleMode,DecorationRangeBehavior:K.DecorationRangeBehavior,Diagnostic:K.Diagnostic,DiagnosticRelatedInformation:K.DiagnosticRelatedInformation,DiagnosticSeverity:K.DiagnosticSeverity,DiagnosticTag:K.DiagnosticTag,Disposable:K.Disposable,DocumentHighlight:K.DocumentHighlight,DocumentHighlightKind:K.DocumentHighlightKind,DocumentLink:K.DocumentLink,DocumentSymbol:K.DocumentSymbol,EndOfLine:K.EndOfLine,EnvironmentVariableMutatorType:K.EnvironmentVariableMutatorType,EvaluatableExpression:K.EvaluatableExpression,InlineValueText:K.InlineValueText,InlineValueVariableLookup:K.InlineValueVariableLookup,InlineValueEvaluatableExpression:K.InlineValueEvaluatableExpression,InlineCompletionTriggerKind:K.InlineCompletionTriggerKind,EventEmitter:d.Emitter,ExtensionKind:K.ExtensionKind,ExtensionMode:K.ExtensionMode,ExternalUriOpenerPriority:K.ExternalUriOpenerPriority,FileChangeType:K.FileChangeType,FileDecoration:K.FileDecoration,FileDecoration2:K.FileDecoration,FileSystemError:K.FileSystemError,FileType:E.FileType,FilePermission:E.FilePermission,FoldingRange:K.FoldingRange,FoldingRangeKind:K.FoldingRangeKind,FunctionBreakpoint:K.FunctionBreakpoint,InlineCompletionItem:K.InlineSuggestion,InlineCompletionList:K.InlineSuggestionList,Hover:K.Hover,IndentAction:f.IndentAction,Location:K.Location,MarkdownString:K.MarkdownString,OverviewRulerLane:p.OverviewRulerLane,ParameterInformation:K.ParameterInformation,PortAutoForwardAction:K.PortAutoForwardAction,Position:K.Position,ProcessExecution:K.ProcessExecution,ProgressLocation:K.ProgressLocation,QuickInputButtons:K.QuickInputButtons,Range:K.Range,RelativePattern:K.RelativePattern,Selection:K.Selection,SelectionRange:K.SelectionRange,SemanticTokens:K.SemanticTokens,SemanticTokensBuilder:K.SemanticTokensBuilder,SemanticTokensEdit:K.SemanticTokensEdit,SemanticTokensEdits:K.SemanticTokensEdits,SemanticTokensLegend:K.SemanticTokensLegend,ShellExecution:K.ShellExecution,ShellQuoting:K.ShellQuoting,SignatureHelp:K.SignatureHelp,SignatureHelpTriggerKind:K.SignatureHelpTriggerKind,SignatureInformation:K.SignatureInformation,SnippetString:K.SnippetString,SourceBreakpoint:K.SourceBreakpoint,StandardTokenType:K.StandardTokenType,StatusBarAlignment:K.StatusBarAlignment,SymbolInformation:K.SymbolInformation,SymbolKind:K.SymbolKind,SymbolTag:K.SymbolTag,Task:K.Task,TaskGroup:K.TaskGroup,TaskPanelKind:K.TaskPanelKind,TaskRevealKind:K.TaskRevealKind,TaskScope:K.TaskScope,TerminalLink:K.TerminalLink,TerminalQuickFixExecuteTerminalCommand:K.TerminalQuickFixCommand,TerminalQuickFixOpener:K.TerminalQuickFixOpener,TerminalLocation:K.TerminalLocation,TerminalProfile:K.TerminalProfile,TerminalExitReason:K.TerminalExitReason,TextDocumentSaveReason:K.TextDocumentSaveReason,TextEdit:K.TextEdit,SnippetTextEdit:K.SnippetTextEdit,TextEditorCursorStyle:u.TextEditorCursorStyle,TextEditorLineNumbersStyle:K.TextEditorLineNumbersStyle,TextEditorRevealType:K.TextEditorRevealType,TextEditorSelectionChangeKind:K.TextEditorSelectionChangeKind,TextDocumentChangeReason:K.TextDocumentChangeReason,ThemeColor:K.ThemeColor,ThemeIcon:K.ThemeIcon,TreeItem:K.TreeItem,TreeItemCheckboxState:K.TreeItemCheckboxState,TreeItemCollapsibleState:K.TreeItemCollapsibleState,TypeHierarchyItem:K.TypeHierarchyItem,UIKind:s.UIKind,Uri:R.URI,ViewColumn:K.ViewColumn,WorkspaceEdit:K.WorkspaceEdit,DocumentDropEdit:K.DocumentDropEdit,DocumentPasteEdit:K.DocumentPasteEdit,InlayHint:K.InlayHint,InlayHintLabelPart:K.InlayHintLabelPart,InlayHintKind:K.InlayHintKind,RemoteAuthorityResolverError:K.RemoteAuthorityResolverError,ResolvedAuthority:K.ResolvedAuthority,ManagedResolvedAuthority:K.ManagedResolvedAuthority,SourceControlInputBoxValidationType:K.SourceControlInputBoxValidationType,ExtensionRuntime:K.ExtensionRuntime,TimelineItem:K.TimelineItem,NotebookRange:K.NotebookRange,NotebookCellKind:K.NotebookCellKind,NotebookCellExecutionState:K.NotebookCellExecutionState,NotebookCellData:K.NotebookCellData,NotebookData:K.NotebookData,NotebookRendererScript:K.NotebookRendererScript,NotebookCellStatusBarAlignment:K.NotebookCellStatusBarAlignment,NotebookEditorRevealType:K.NotebookEditorRevealType,NotebookCellOutput:K.NotebookCellOutput,NotebookCellOutputItem:K.NotebookCellOutputItem,NotebookCellStatusBarItem:K.NotebookCellStatusBarItem,NotebookControllerAffinity:K.NotebookControllerAffinity,NotebookControllerAffinity2:K.NotebookControllerAffinity2,NotebookEdit:K.NotebookEdit,NotebookKernelSourceAction:K.NotebookKernelSourceAction,PortAttributes:K.PortAttributes,LinkedEditingRanges:K.LinkedEditingRanges,TestResultState:K.TestResultState,TestRunRequest:K.TestRunRequest,TestMessage:K.TestMessage,TestMessage2:K.TestMessage,TestTag:K.TestTag,TestRunProfileKind:K.TestRunProfileKind,TextSearchCompleteMessageType:Ae.TextSearchCompleteMessageType,DataTransfer:K.DataTransfer,DataTransferItem:K.DataTransferItem,CoveredCount:K.CoveredCount,FileCoverage:K.FileCoverage,StatementCoverage:K.StatementCoverage,BranchCoverage:K.BranchCoverage,FunctionCoverage:K.FunctionCoverage,WorkspaceTrustState:K.WorkspaceTrustState,LanguageStatusSeverity:K.LanguageStatusSeverity,QuickPickItemKind:K.QuickPickItemKind,InputBoxValidationSeverity:K.InputBoxValidationSeverity,TabInputText:K.TextTabInput,TabInputTextDiff:K.TextDiffTabInput,TabInputTextMerge:K.TextMergeTabInput,TabInputCustom:K.CustomEditorTabInput,TabInputNotebook:K.NotebookEditorTabInput,TabInputNotebookDiff:K.NotebookDiffEditorTabInput,TabInputWebview:K.WebviewEditorTabInput,TabInputTerminal:K.TerminalEditorTabInput,TabInputInteractiveWindow:K.InteractiveWindowInput,TelemetryTrustedValue:pe.TelemetryTrustedValue,LogLevel:Ee.LogLevel,EditSessionIdentityMatch:st.EditSessionIdentityMatch,InteractiveSessionVoteDirection:K.InteractiveSessionVoteDirection,InteractiveSessionCopyKind:K.InteractiveSessionCopyKind,InteractiveEditorResponseFeedbackKind:K.InteractiveEditorResponseFeedbackKind,StackFrameFocus:K.StackFrameFocus,ThreadFocus:K.ThreadFocus,NotebookCodeActionKind:K.NotebookCodeActionKind,RelatedInformationType:K.RelatedInformationType}}}e.createApiFactoryAndRegisterActors=Bt}),define(ye[374],Ce([1,0,3,293,296,298,309,299,46,301,310,297,302,295,160,307,303,304,308,294,305,306,300,56,20,12,373,32,312,26,368,367,39,116,311]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a,l,i,c,_,S,k,m,v,D,L,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAdsApiFactory=e.createApiFactoryAndRegisterActors=void 0;function H($){const{azdata:U}=N($);return{azdata:U,vscode:(0,c.createApiFactoryAndRegisterActors)($)}}e.createApiFactoryAndRegisterActors=H;function N($){const U=$.get(k.IExtHostInitDataService),x=$.get(a.IURITransformerService),X=$.get(l.IExtHostRpcService),K=$.get(i.ILogService),pe=$.get(i.ILogService),le=$.get(_.IExtHostCommands),re=X.set(w.SqlExtHostContext.ExtHostAccountManagement,new M.ExtHostAccountManagement(X));X.set(w.SqlExtHostContext.ExtHostAzureAccount,new v.ExtHostAzureAccount($.get(D.IExtHostExtensionService)));const q=X.set(w.SqlExtHostContext.ExtHostConnectionManagement,new s.ExtHostConnectionManagement(X)),oe=X.set(w.SqlExtHostContext.ExtHostCredentialManagement,new d.ExtHostCredentialManagement(X));X.set(w.SqlExtHostContext.ExtHostAzureBlob,new m.ExtHostAzureBlob($.get(D.IExtHostExtensionService))),X.set(w.SqlExtHostContext.ExtHostAzureAccount,new v.ExtHostAzureAccount($.get(D.IExtHostExtensionService)));const ve=X.set(w.SqlExtHostContext.ExtHostDataProtocol,new A.ExtHostDataProtocol(X,x)),ce=X.set(w.SqlExtHostContext.ExtHostObjectExplorer,new C.ExtHostObjectExplorer(X,le)),se=X.set(w.SqlExtHostContext.ExtHostResourceProvider,new R.ExtHostResourceProvider(X)),te=X.set(w.SqlExtHostContext.ExtHostErrorDiagnostics,new u.ExtHostErrorDiagnostics(X)),B=X.set(w.SqlExtHostContext.ExtHostModalDialogs,new f.ExtHostModalDialogs(X)),G=X.set(w.SqlExtHostContext.ExtHostTasks,new y.ExtHostTasks(X,K)),fe=X.set(w.SqlExtHostContext.ExtHostBackgroundTaskManagement,new b.ExtHostBackgroundTaskManagement(X)),_e=X.set(w.SqlExtHostContext.ExtHostDashboardWebviews,new E.ExtHostDashboardWebviews(X)),Ee=X.set(w.SqlExtHostContext.ExtHostModelViewTreeViews,new h.ExtHostModelViewTreeViews(X,pe)),F=X.set(w.SqlExtHostContext.ExtHostModelView,new t.ExtHostModelView(X,Ee,pe)),J=X.set(w.SqlExtHostContext.ExtHostDashboard,new g.ExtHostDashboard(X)),I=X.set(w.SqlExtHostContext.ExtHostModelViewDialog,new r.ExtHostModelViewDialog(X,F,fe)),V=X.set(w.SqlExtHostContext.ExtHostQueryEditor,new o.ExtHostQueryEditor(X)),j=X.set(w.SqlExtHostContext.ExtHostNotebookDocumentsAndEditors,new T.ExtHostNotebookDocumentsAndEditors(X)),Z=X.set(w.SqlExtHostContext.ExtHostNotebook,new P.ExtHostNotebook(X)),he=X.set(w.SqlExtHostContext.ExtHostExtensionManagement,new n.ExtHostExtensionManagement(X)),Pe=X.set(w.SqlExtHostContext.ExtHostWorkspace,new S.ExtHostWorkspace(X)),z=X.set(w.SqlExtHostContext.ExtHostWindow,new O.ExtHostWindow(X));return{azdata:function(ee){const ie={AuthenticationType:L.AuthenticationType,ConnectionProfile:p.ConnectionProfile,getCurrentConnection(){return q.$getCurrentConnection()},getConnections(Ne){return q.$getConnections(Ne)},registerConnectionEventListener(Ne){return q.$registerConnectionEventListener(Ne)},getConnection(Ne){return q.$getConnection(Ne)},getActiveConnections(){return pe.warn("the method azdata.connection.getActiveConnections has been deprecated, replace it with azdata.connection.getConnections"),q.$getActiveConnections()},getCredentials(Ne){return q.$getCredentials(Ne)},getServerInfo(Ne){return q.$getServerInfo(Ne)},openConnectionDialog(Ne,Ge,tt){return q.$openConnectionDialog(Ne,Ge,tt)},openChangePasswordDialog(Ne){return q.$openChangePasswordDialog(Ne)},getNonDefaultOptions(Ne){return q.$getNonDefaultOptions(Ne)},listDatabases(Ne){return q.$listDatabases(Ne)},getConnectionString(Ne,Ge){return q.$getConnectionString(Ne,Ge)},getUriForConnection(Ne){return q.$getUriForConnection(Ne)},connect(Ne,Ge,tt){return q.$connect(Ne,Ge,tt)}},ue={registerAccountProvider(Ne,Ge){return re.$registerAccountProvider(Ne,Ge)},beginAutoOAuthDeviceCode(Ne,Ge,tt,vt,Pt){return re.$beginAutoOAuthDeviceCode(Ne,Ge,tt,vt,Pt)},endAutoOAuthDeviceCode(){return re.$endAutoOAuthDeviceCode()},accountUpdated(Ne){return re.$accountUpdated(Ne)},getAllAccounts(){return re.$getAllAccounts()},getSecurityToken(Ne,Ge){return re.$getSecurityToken(Ne,Ge)},getAccountSecurityToken(Ne,Ge,tt){return re.$getAccountSecurityToken(Ne,Ge,tt)},onDidChangeAccounts(Ne,Ge,tt){return re.onDidChangeAccounts(Ne,Ge,tt)}},Y={registerProvider(Ne){return oe.$registerCredentialProvider(Ne)},getProvider(Ne){return oe.$getCredentialProvider(Ne)}},me={getNode(Ne,Ge){return ce.$getNode(Ne,Ge)},getActiveConnectionNodes(){return ce.$getActiveConnectionNodes()},findNodes(Ne,Ge,tt,vt,Pt,St){return ce.$findNodes(Ne,Ge,tt,vt,Pt,St)},getNodeActions(Ne,Ge){return ce.$getNodeActions(Ne,Ge)},getSessionConnectionProfile(Ne){return ce.$getSessionConnectionProfile(Ne)}},Se={registerResourceProvider(Ne,Ge){return se.$registerResourceProvider(Ne,Ge)}},Ue={registerDiagnosticsProvider:(Ne,Ge)=>te.$registerDiagnosticsProvider(Ne,Ge)},zt={registerBackupProvider:Ne=>ve.$registerBackupProvider(Ne),registerConnectionProvider:Ne=>(Ne.registerOnConnectionComplete(Ge=>{ve.$onConnectComplete(Ne.handle,Ge)}),Ne.registerOnIntelliSenseCacheComplete(Ge=>{ve.$onIntelliSenseCacheComplete(Ne.handle,Ge)}),Ne.registerOnConnectionChanged(Ge=>{ve.$onConnectionChanged(Ne.handle,Ge)}),ve.$registerConnectionProvider(Ne)),registerFileBrowserProvider:Ne=>(Ne.registerOnFileBrowserOpened(Ge=>{ve.$onFileBrowserOpened(Ne.handle,Ge)}),Ne.registerOnFolderNodeExpanded(Ge=>{ve.$onFolderNodeExpanded(Ne.handle,Ge)}),Ne.registerOnFilePathsValidated(Ge=>{ve.$onFilePathsValidated(Ne.handle,Ge)}),ve.$registerFileBrowserProvider(Ne)),registerMetadataProvider:Ne=>ve.$registerMetadataProvider(Ne),registerObjectExplorerProvider:Ne=>(Ne.registerOnSessionCreated(Ge=>{ve.$onObjectExplorerSessionCreated(Ne.handle,Ge)}),Ne.registerOnSessionDisconnected&&Ne.registerOnSessionDisconnected(Ge=>{ve.$onObjectExplorerSessionDisconnected(Ne.handle,Ge)}),Ne.registerOnExpandCompleted(Ge=>{ve.$onObjectExplorerNodeExpanded(Ne.providerId,Ge)}),ve.$registerObjectExplorerProvider(Ne)),registerObjectExplorerNodeProvider:Ne=>(Ne.registerOnExpandCompleted(Ge=>{ve.$onObjectExplorerNodeExpanded(Ne.providerId,Ge)}),ve.$registerObjectExplorerNodeProvider(Ne)),registerIconProvider:Ne=>ve.$registerIconProvider(Ne),registerProfilerProvider:Ne=>(Ne.registerOnSessionEventsAvailable(Ge=>{ve.$onSessionEventsAvailable(Ne.handle,Ge)}),Ne.registerOnSessionStopped(Ge=>{ve.$onSessionStopped(Ne.handle,Ge)}),Ne.registerOnProfilerSessionCreated(Ge=>{ve.$onProfilerSessionCreated(Ne.handle,Ge)}),ve.$registerProfilerProvider(Ne)),registerRestoreProvider:Ne=>ve.$registerRestoreProvider(Ne),registerScriptingProvider:Ne=>(Ne.registerOnScriptingComplete(Ge=>{ve.$onScriptingComplete(Ne.handle,Ge)}),ve.$registerScriptingProvider(Ne)),registerTaskServicesProvider:Ne=>(Ne.registerOnTaskCreated(Ge=>{ve.$onTaskCreated(Ne.handle,Ge)}),Ne.registerOnTaskStatusChanged(Ge=>{ve.$onTaskStatusChanged(Ne.handle,Ge)}),ve.$registerTaskServicesProvider(Ne)),registerQueryProvider:Ne=>(Ne.registerOnQueryComplete(Ge=>{ve.$onQueryComplete(Ne.handle,Ge)}),Ne.registerOnBatchStart(Ge=>{ve.$onBatchStart(Ne.handle,Ge)}),Ne.registerOnBatchComplete(Ge=>{ve.$onBatchComplete(Ne.handle,Ge)}),Ne.registerOnResultSetAvailable(Ge=>{ve.$onResultSetAvailable(Ne.handle,Ge)}),Ne.registerOnResultSetUpdated(Ge=>{ve.$onResultSetUpdated(Ne.handle,Ge)}),Ne.registerOnMessage(Ge=>{ve.$onQueryMessage(Ge)}),Ne.registerOnEditSessionReady((Ge,tt,vt)=>{ve.$onEditSessionReady(Ne.handle,Ge,tt,vt)}),ve.$registerQueryProvider(Ne)),registerAdminServicesProvider:Ne=>ve.$registerAdminServicesProvider(Ne),registerAgentServicesProvider:Ne=>(Ne.registerOnUpdated(()=>{ve.$onJobDataUpdated(Ne.handle)}),ve.$registerAgentServiceProvider(Ne)),registerCapabilitiesServiceProvider:Ne=>ve.$registerCapabilitiesServiceProvider(Ne),registerSerializationProvider:Ne=>ve.$registerSerializationProvider(Ne),registerSqlAssessmentServicesProvider:Ne=>ve.$registerSqlAssessmentServiceProvider(Ne),registerDataGridProvider:Ne=>ve.$registerDataGridProvider(Ne),registerTableDesignerProvider:Ne=>ve.$registerTableDesignerProvider(Ne),registerExecutionPlanProvider:Ne=>ve.$registerExecutionPlanProvider(Ne),registerServerContextualizationProvider:Ne=>ve.$registerServerContextualizationProvider(Ne),onDidChangeLanguageFlavor(Ne,Ge,tt){return ve.onDidChangeLanguageFlavor(Ne,Ge,tt)},getProvider(Ne,Ge){return ve.getProvider(Ne,Ge)},getProvidersByType(Ne){return ve.getProvidersByType(Ne)}},yt={createWebViewDialog(Ne){return B.createDialog(Ne)},createModelViewDialog(Ne,Ge,tt,vt,Pt,St,Ke,Le){let Fe;return typeof tt=="boolean"?Fe=tt===!0?"wide":"narrow":Fe=tt,vt===void 0&&(vt="flyout"),I.createDialog(Ne,Ge,ee,Fe,vt,Pt,St,Ke,Le)},createTab(Ne){return I.createTab(Ne,ee)},createButton(Ne,Ge="right"){return I.createButton(Ne,Ge)},openDialog(Ne){return I.openDialog(Ne)},closeDialog(Ne){return I.closeDialog(Ne)},createWizardPage(Ne,Ge){return I.createWizardPage(Ne,ee,Ge)},createWizard(Ne,Ge,tt){return I.createWizard(Ne,Ge,tt)},createModelViewDashboard(Ne,Ge,tt){return I.createModelViewDashboard(Ne,Ge,tt,ee)},MessageLevel:p.MessageLevel,openCustomErrorDialog(Ne){return I.openCustomErrorDialog(Ne)},openServerFileBrowserDialog(Ne,Ge,tt,vt){return z.$openServerFileBrowserDialog(Ne,Ge,tt,vt)},openBackupUrlBrowserDialog(Ne,Ge,tt){return z.$openBackupUrlBrowserDialog(Ne,Ge,tt)}},Lt={registerTask(Ne,Ge,tt){return G.registerTask(Ne,Ge,tt)},startBackgroundOperation(Ne){fe.$registerTask(Ne)}},Mt={onDidOpenDashboard:J.onDidOpenDashboard,onDidChangeToDashboard:J.onDidChangeToDashboard,createModelViewEditor(Ne,Ge,tt){return I.createModelViewEditor(Ne,ee,tt,Ge)},createAndEnterWorkspace(Ne,Ge){return Pe.$createAndEnterWorkspace(Ne,Ge)},enterWorkspace(Ne){return Pe.$enterWorkspace(Ne)},saveAndEnterWorkspace(Ne){return Pe.$saveAndEnterWorkspace(Ne)}},Wt={registerWebviewProvider(Ne,Ge){_e.$registerProvider(Ne,Ge)}},Tt={registerModelViewProvider(Ne,Ge){F.$registerProvider(Ne,Ge,ee)}},Rt={connect(Ne,Ge){return V.$connect(Ne,Ge)},runQuery(Ne,Ge,tt=!0){V.$runQuery(Ne,tt)},registerQueryEventListener(Ne){return V.$registerQueryInfoListener(Ne)},getQueryDocument(Ne){return V.$getQueryDocument(Ne)},openQueryDocument(Ne,Ge){let tt;return tt=V.createQueryDocument(Ne,Ge),tt.then(vt=>V.$getQueryDocument(vt.toString()))}},Ft={install(Ne){return he.$install(Ne)}},Ut={get notebookDocuments(){return j.getAllDocuments().map(Ne=>Ne.document)},get activeNotebookEditor(){return j.getActiveEditor()},get visibleNotebookEditors(){return j.getAllEditors()},get onDidOpenNotebookDocument(){return j.onDidOpenNotebookDocument},get onDidCloseNotebookDocument(){return j.onDidCloseNotebookDocument},get onDidChangeActiveNotebookEditor(){return j.onDidChangeActiveNotebookEditor},get onDidChangeNotebookCell(){return j.onDidChangeNotebookCell},showNotebookDocument(Ne,Ge){return j.showNotebookDocument(Ne,Ge)},registerSerializationProvider(Ne){return Z.registerSerializationProvider(Ne)},registerExecuteProvider(Ne){return Z.registerExecuteProvider(Ne)},registerNavigationProvider(Ne){return j.registerNavigationProvider(Ne)},CellRange:p.CellRange,NotebookChangeKind:p.NotebookChangeKind},$t={SqlAssessmentResultItemKind:p.SqlAssessmentResultItemKind,SqlAssessmentTargetType:p.SqlAssessmentTargetType},Bt={TableProperty:p.designers.TableProperty,TableColumnProperty:p.designers.TableColumnProperty,TableForeignKeyProperty:p.designers.TableForeignKeyProperty,ForeignKeyColumnMappingProperty:p.designers.ForeignKeyColumnMappingProperty,TableCheckConstraintProperty:p.designers.TableCheckConstraintProperty,TableIndexProperty:p.designers.TableIndexProperty,TableIndexColumnSpecificationProperty:p.designers.TableIndexColumnSpecificationProperty,DesignerEditType:p.designers.DesignerEditType,TableIcon:p.designers.TableIcon,openTableDesigner(Ne,Ge,tt,vt){return ve.$openTableDesigner(Ne,Ge,tt,vt)}},ht={BadgeType:p.executionPlan.BadgeType,ExecutionPlanGraphElementPropertyDataType:p.executionPlan.ExecutionPlanGraphElementPropertyDataType,ExecutionPlanGraphElementPropertyBetterValue:p.executionPlan.ExecutionPlanGraphElementPropertyBetterValue};let ut=U.quality||"dev";ut=ut==="rc1"?"stable":ut;const Vt={AppQuality:p.env.AppQuality,quality:ut};return{version:U.version,accounts:ue,ButtonType:p.ButtonType,connection:ie,credentials:Y,objectexplorer:me,resources:Se,dataprotocol:zt,DataProviderType:p.DataProviderType,DeclarativeDataType:p.DeclarativeDataType,ServiceOptionType:p.ServiceOptionType,ConnectionOptionSpecialType:p.ConnectionOptionSpecialType,EditRowState:p.EditRowState,MetadataType:p.MetadataType,TaskStatus:p.TaskStatus,TaskExecutionMode:p.TaskExecutionMode,ScriptOperation:p.ScriptOperation,WeekDays:p.WeekDays,NotifyMethods:p.NotifyMethods,JobCompletionActionCondition:p.JobCompletionActionCondition,JobExecutionStatus:p.JobExecutionStatus,AlertType:p.AlertType,FrequencyTypes:p.FrequencyTypes,FrequencySubDayTypes:p.FrequencySubDayTypes,FrequencyRelativeIntervals:p.FrequencyRelativeIntervals,NodeFilterPropertyDataType:p.NodeFilterPropertyDataType,NodeFilterOperator:p.NodeFilterOperator,window:yt,tasks:Lt,dashboard:Wt,workspace:Mt,queryeditor:Rt,ui:Tt,StatusIndicator:p.StatusIndicator,CardType:p.CardType,Orientation:p.Orientation,SqlThemeIcon:p.SqlThemeIcon,TreeComponentItem:p.TreeComponentItem,nb:Ut,AzureResource:p.AzureResource,TreeItem:p.TreeItem,extensions:Ft,ColumnType:p.ColumnType,ActionOnCellCheckboxCheck:p.ActionOnCellCheckboxCheck,StepCompletionAction:p.StepCompletionAction,AgentSubSystem:p.AgentSubSystem,ExtensionNodeType:p.ExtensionNodeType,ColumnSizingMode:p.ColumnSizingMode,DatabaseEngineEdition:p.DatabaseEngineEdition,TabOrientation:p.TabOrientation,sqlAssessment:$t,TextType:p.TextType,designers:Bt,executionPlan:ht,diagnostics:Ue,env:Vt,ProfilingSessionType:p.ProfilingSessionType}}}}e.createAdsApiFactory=N}),define(ye[375],Ce([1,0,100,151,49,148,50,32,65,48,93,95,113,67,89,150,66,55,112,88,109,149,12,94,110,111]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n,a,l,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,w.registerSingleton)(l.IExtHostLocalizationService,l.ExtHostLocalizationService,1),(0,w.registerSingleton)(n.ILoggerService,T.ExtHostLoggerService,1),(0,w.registerSingleton)(g.IExtHostApiDeprecationService,g.ExtHostApiDeprecationService,1),(0,w.registerSingleton)(u.IExtHostCommands,u.ExtHostCommands,0),(0,w.registerSingleton)(R.IExtHostConfiguration,R.ExtHostConfiguration,0),(0,w.registerSingleton)(r.IExtHostConsumerFileSystem,r.ExtHostConsumerFileSystem,0),(0,w.registerSingleton)(A.IExtHostDecorations,A.ExtHostDecorations,0),(0,w.registerSingleton)(p.IExtHostDocumentsAndEditors,p.ExtHostDocumentsAndEditors,0),(0,w.registerSingleton)(i.IExtHostManagedSockets,i.ExtHostManagedSockets,0),(0,w.registerSingleton)(h.IExtHostFileSystemInfo,h.ExtHostFileSystemInfo,0),(0,w.registerSingleton)(M.IExtHostOutputService,M.ExtHostOutputService,1),(0,w.registerSingleton)(E.IExtHostSearch,E.ExtHostSearch,0),(0,w.registerSingleton)(t.IExtHostStorage,t.ExtHostStorage,0),(0,w.registerSingleton)(y.IExtHostTask,y.WorkerExtHostTask,0),(0,w.registerSingleton)(f.IExtHostTerminalService,f.WorkerExtHostTerminalService,0),(0,w.registerSingleton)(s.IExtHostTunnelService,s.ExtHostTunnelService,0),(0,w.registerSingleton)(C.IExtHostWindow,C.ExtHostWindow,0),(0,w.registerSingleton)(d.IExtHostWorkspace,d.ExtHostWorkspace,0),(0,w.registerSingleton)(o.IExtHostSecretState,o.ExtHostSecretState,0),(0,w.registerSingleton)(b.IExtHostTelemetry,b.ExtHostTelemetry,0),(0,w.registerSingleton)(P.IExtHostEditorTabs,P.ExtHostEditorTabs,0),(0,w.registerSingleton)(a.IExtHostVariableResolverProvider,a.ExtHostVariableResolverProviderService,0)}),define(ye[114],Ce([1,0,19,12,35,92]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputChannel=e.createTextSearchResult=e.anchorGlob=void 0;function R(E){return E.startsWith("**")||E.startsWith("/")?E:`/${E}`}e.anchorGlob=R;function u(E,t,s,g){const C=(0,w.mapArrayOrNot)(s,p),r=new d.TextSearchMatch(t,C,g),h=r.preview.matches;return{ranges:(0,w.mapArrayOrNot)(C,f),uri:E,preview:{text:r.preview.text,matches:(0,w.mapArrayOrNot)(h,f)}}}e.createTextSearchResult=u;function p(E){return new d.SearchRange(E.start.line,E.start.character,E.end.line,E.end.character)}function f(E){return new A.Range(E.startLineNumber,E.startColumn,E.endLineNumber,E.endColumn)}let y=class{constructor(t,s){this.prefix=t,this.logService=s}appendLine(t){this.logService.debug(`${this.prefix}#search`,t)}};e.OutputChannel=y,e.OutputChannel=y=je([He(1,M.ILogService)],y)}),define(ye[376],Ce([1,0,80,17,71,33,14,16,114,377]),function(ge,e,w,M,d,A,R,u,p,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixDriveC=e.getAbsoluteGlob=e.spawnRipgrepCmd=void 0;const y=f.rgPath.replace(/\bnode_modules\.asar\b/,"node_modules.asar.unpacked");function E(b,P,T,n){const a=t(b,P,T,n),l=P.folder.fsPath;return{cmd:w.spawn(y,a.args,{cwd:l}),rgDiskPath:y,siblingClauses:a.siblingClauses,rgArgs:a,cwd:l}}e.spawnRipgrepCmd=E;function t(b,P,T,n){const a=["--files","--hidden","--case-sensitive","--no-require-git"];g([P],T,!1).forEach(i=>{const c=(0,p.anchorGlob)(i);if(a.push("-g",c),R.isMacintosh){const _=(0,d.normalizeNFD)(c);_!==c&&a.push("-g",_)}});const l=s([P],n,void 0,!1);return l.globArgs.forEach(i=>{const c=`!${(0,p.anchorGlob)(i)}`;if(a.push("-g",c),R.isMacintosh){const _=(0,d.normalizeNFD)(c);_!==c&&a.push("-g",_)}}),P.disregardIgnoreFiles!==!1?a.push("--no-ignore"):P.disregardParentIgnoreFiles!==!1&&a.push("--no-ignore-parent"),P.ignoreSymlinks||a.push("--follow"),b.exists&&a.push("--quiet"),a.push("--no-config"),P.disregardGlobalIgnoreFiles&&a.push("--no-ignore-global"),{args:a,siblingClauses:l.siblingClauses}}function s(b,P,T,n=!0){const a=[];let l={};return b.forEach(i=>{const c=Object.assign({},i.excludePattern||{},P||{}),_=C(c,n?i.folder.fsPath:void 0,T);a.push(..._.globArgs),_.siblingClauses&&(l=Object.assign(l,_.siblingClauses))}),{globArgs:a,siblingClauses:l}}function g(b,P,T=!0){const n=[];return b.forEach(a=>{const l=Object.assign({},P||{},a.includePattern||{}),i=C(l,T?a.folder.fsPath:void 0);n.push(...i.globArgs)}),n}function C(b,P,T){const n=[],a={};return Object.keys(b).forEach(l=>{if(T&&T.has(l)||!l)return;const i=b[l];l=h(P?r(P,l):l),l.startsWith("\\\\")?l="\\\\"+l.substr(2).replace(/\\/g,"/"):l=l.replace(/\\/g,"/"),typeof i=="boolean"&&i?(l.startsWith("\\\\")&&(l+="**"),n.push(o(l))):i&&i.when&&(a[l]=i)}),{globArgs:n,siblingClauses:a}}function r(b,P){return M.isAbsolute(P)?P:M.join(b,P)}e.getAbsoluteGlob=r;function h(b){return b=u.rtrim(b,"\\"),u.rtrim(b,"/")}function o(b){return A.getRoot(b).toLowerCase()==="c:/"?b.replace(/^c:[/\\]/i,"/"):b}e.fixDriveC=o}),define(ye[378],Ce([1,0,80,52,17,379,19,47,34,71,33,14,36,16,18,31,35,376,125]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Engine=e.FileWalker=void 0;const b=new Set;process.on("exit",()=>{b.forEach(l=>l())});class P{constructor(i){this.normalizedFilePatternLowercase=null,this.maxFilesize=null,this.isCanceled=!1,this.fileWalkSW=null,this.cmdSW=null,this.cmdResultCount=0,this.config=i,this.filePattern=i.filePattern||"",this.includePattern=i.includePattern&&p.parse(i.includePattern),this.maxResults=i.maxResults||null,this.exists=!!i.exists,this.walkedPaths=Object.create(null),this.resultCount=0,this.isLimitHit=!1,this.directoriesWalked=0,this.filesWalked=0,this.errors=[],this.filePattern&&(this.normalizedFilePatternLowercase=(0,o.prepareQuery)(this.filePattern).normalizedLowercase),this.globalExcludePattern=i.excludePattern&&p.parse(i.excludePattern),this.folderExcludePatterns=new Map,i.folderQueries.forEach(c=>{const _=Object.assign({},c.excludePattern||{},this.config.excludePattern||{}),S=c.folder.fsPath;i.folderQueries.map(k=>k.folder.fsPath).filter(k=>k!==S).forEach(k=>{(0,y.isEqualOrParent)(k,S)&&(_[d.relative(S,k)]=!0)}),this.folderExcludePatterns.set(S,new n(_,S))})}cancel(){this.isCanceled=!0,b.forEach(i=>i())}walk(i,c,_,S,k){if(this.fileWalkSW=t.StopWatch.create(!1),this.isCanceled)return k(null,this.isLimitHit);c.forEach(m=>{const v=d.basename(m.fsPath);this.globalExcludePattern&&this.globalExcludePattern(m.fsPath,v)||this.matchFile(_,{relativePath:m.fsPath,searchPath:void 0})}),this.cmdSW=t.StopWatch.create(!1),this.parallel(i,(m,v)=>{this.call(this.cmdTraversal,this,m,_,S,D=>{if(D){const L=(0,u.toErrorMessage)(D);console.error(L),this.errors.push(L),v(D,void 0)}else v(null,void 0)})},(m,v)=>{this.fileWalkSW.stop();const D=m?R.coalesce(m)[0]:null;k(D,this.isLimitHit)})}parallel(i,c,_){const S=new Array(i.length),k=new Array(i.length);let m=!1,v=0;if(i.length===0)return _(null,[]);i.forEach((D,L)=>{c(D,(O,H)=>{if(O?(m=!0,S[L]=null,k[L]=O):(S[L]=H,k[L]=null),++v===i.length)return _(m?k:null,S)})})}call(i,c,..._){try{i.apply(c,_)}catch(S){_[_.length-1](S)}}cmdTraversal(i,c,_,S){const k=i.folder.fsPath,m=E.isMacintosh,v=()=>N&&N.kill();b.add(v);let D=X=>{b.delete(v),D=()=>{},S(X)},L="";const O=this.initDirectoryTree(),H=(0,h.spawnRipgrepCmd)(this.config,i,this.config.includePattern,this.folderExcludePatterns.get(i.folder.fsPath).expression),N=H.cmd,$=!Object.keys(H.siblingClauses).length,U=H.rgArgs.args.map(X=>X.match(/^-/)?X:`'${X}'`).join(" ");let x=`${H.rgDiskPath} ${U}
 - cwd: ${H.cwd}`;H.rgArgs.siblingClauses&&(x+=`
 - Sibling clauses: ${JSON.stringify(H.rgArgs.siblingClauses)}`),_({message:x}),this.cmdResultCount=0,this.collectStdout(N,"utf8",_,(X,K,pe)=>{if(X){D(X);return}if(this.isLimitHit){D();return}const re=(L+(m?f.normalizeNFC(K||""):K)).split(`
`);if(pe){const q=re.length;re[q-1]=re[q-1].trim(),re[q-1]||re.pop()}else L=re.pop()||"";if(re.length&&re[0].indexOf(`
`)!==-1){D(new Error("Splitting up files failed"));return}if(this.cmdResultCount+=re.length,$){for(const q of re)if(this.matchFile(c,{base:k,relativePath:q,searchPath:this.getSearchPath(i,q)}),this.isLimitHit){v();break}(pe||this.isLimitHit)&&D();return}this.addDirectoryEntries(i,O,k,re,c),pe&&(this.matchDirectoryTree(O,k,c),D())})}spawnFindCmd(i){const c=this.folderExcludePatterns.get(i.folder.fsPath),_=c.getBasenameTerms(),S=c.getPathTerms(),k=["-L","."];if(_.length||S.length){k.push("-not","(","(");for(const m of _)k.push("-name",m),k.push("-o");for(const m of S)k.push("-path",m),k.push("-o");k.pop(),k.push(")","-prune",")")}return k.push("-type","f"),w.spawn("find",k,{cwd:i.folder.fsPath})}readStdout(i,c,_){let S="";this.collectStdout(i,c,()=>{},(k,m,v)=>{if(k){_(k);return}S+=m,v&&_(null,S)})}collectStdout(i,c,_,S){let k=(D,L,O)=>{(D||O)&&(k=()=>{},this.cmdSW?.stop()),S(D,L,O)},m=!1;i.stdout?(this.forwardData(i.stdout,c,k),i.stdout.once("data",()=>m=!0)):_({message:"stdout is null"});let v;i.stderr?v=this.collectData(i.stderr):_({message:"stderr is null"}),i.on("error",D=>{k(D)}),i.on("close",D=>{let L;!m&&(L=this.decodeData(v,c))&&a(L)?k(new Error(`command failed with error code ${D}: ${this.decodeData(v,c)}`)):(this.exists&&D===0&&(this.isLimitHit=!0),k(null,"",!0))})}forwardData(i,c,_){const S=new A.StringDecoder(c);return i.on("data",k=>{_(null,S.write(k))}),S}collectData(i){const c=[];return i.on("data",_=>{c.push(_)}),c}decodeData(i,c){const _=new A.StringDecoder(c);return i.map(S=>_.write(S)).join("")}initDirectoryTree(){const i={rootEntries:[],pathToEntries:Object.create(null)};return i.pathToEntries["."]=i.rootEntries,i}addDirectoryEntries(i,{pathToEntries:c},_,S,k){S.indexOf(this.filePattern)!==-1&&this.matchFile(k,{base:_,relativePath:this.filePattern,searchPath:this.getSearchPath(i,this.filePattern)});const m=v=>{const D=d.basename(v),L=d.dirname(v);let O=c[L];O||(O=c[L]=[],m(L)),O.push({base:_,relativePath:v,basename:D,searchPath:this.getSearchPath(i,v)})};S.forEach(m)}matchDirectoryTree({rootEntries:i,pathToEntries:c},_,S){const k=this,m=this.folderExcludePatterns.get(_),v=this.filePattern;function D(L){k.directoriesWalked++;const O=(0,r.hasSiblingFn)(()=>L.map(H=>H.basename));for(let H=0,N=L.length;H<N;H++){const $=L[H],{relativePath:U,basename:x}=$;if(m.test(U,x,v!==x?O:void 0))continue;const X=c[U];if(X)D(X);else{if(k.filesWalked++,U===v)continue;k.matchFile(S,$)}if(k.isLimitHit)break}}D(i)}getStats(){return{cmdTime:this.cmdSW.elapsed(),fileWalkTime:this.fileWalkSW.elapsed(),directoriesWalked:this.directoriesWalked,filesWalked:this.filesWalked,cmdResultCount:this.cmdResultCount}}doWalk(i,c,_,S,k){const m=i.folder,v=(0,r.hasSiblingFn)(()=>_);this.parallel(_,(D,L)=>{if(this.isCanceled||this.isLimitHit)return L(null);const O=c?[c,D].join(d.sep):D;if(this.folderExcludePatterns.get(i.folder.fsPath).test(O,D,this.config.filePattern!==D?v:void 0))return L(null);const H=[m.fsPath,O].join(d.sep);M.lstat(H,(N,$)=>{if(N||this.isCanceled||this.isLimitHit)return L(null);this.statLinkIfNeeded(H,$,(U,x)=>U||this.isCanceled||this.isLimitHit?L(null):x.isDirectory()?(this.directoriesWalked++,this.realPathIfNeeded(H,$,(X,K)=>X||this.isCanceled||this.isLimitHit||(K=K||"",this.walkedPaths[K])?L(null):(this.walkedPaths[K]=!0,C.Promises.readdir(H).then(pe=>{if(this.isCanceled||this.isLimitHit)return L(null);this.doWalk(i,O,pe,S,le=>L(le||null))},pe=>{L(null)})))):(this.filesWalked++,O===this.filePattern||this.maxFilesize&&g.isNumber(x.size)&&x.size>this.maxFilesize||this.matchFile(S,{base:m.fsPath,relativePath:O,searchPath:this.getSearchPath(i,O)}),L(null,void 0)))})},D=>{const L=D&&R.coalesce(D);return k(L&&L.length>0?L[0]:void 0)})}matchFile(i,c){this.isFileMatch(c)&&(!this.includePattern||this.includePattern(c.relativePath,d.basename(c.relativePath)))&&(this.resultCount++,(this.exists||this.maxResults&&this.resultCount>this.maxResults)&&(this.isLimitHit=!0),this.isLimitHit||i(c))}isFileMatch(i){if(this.filePattern){if(this.filePattern==="*")return!0;if(this.normalizedFilePatternLowercase)return(0,r.isFilePatternMatch)(i,this.normalizedFilePatternLowercase)}return!0}statLinkIfNeeded(i,c,_){return c.isSymbolicLink()?M.stat(i,_):_(null,c)}realPathIfNeeded(i,c,_){return c.isSymbolicLink()?M.realpath(i,(S,k)=>S?_(S):_(null,k)):_(null,i)}getSearchPath(i,c){return i.folderName?d.join(i.folderName,c):c}}e.FileWalker=P;class T{constructor(i){this.folderQueries=i.folderQueries,this.extraFiles=i.extraFileResources||[],this.walker=new P(i)}search(i,c,_){this.walker.walk(this.folderQueries,this.extraFiles,i,c,(S,k)=>{_(S,{limitHit:k,stats:this.walker.getStats(),messages:[]})})}cancel(){this.walker.cancel()}}e.Engine=T;class n{constructor(i,c){this.expression=i,this.root=c,this.init(i)}init(i){let c,_;Object.keys(i).filter(S=>i[S]).forEach(S=>{d.isAbsolute(S)?(c=c||p.getEmptyExpression(),c[S]=i[S]):(_=_||p.getEmptyExpression(),_[S]=i[S])}),this.absoluteParsedExpr=c&&p.parse(c,{trimForExclusions:!0}),this.relativeParsedExpr=_&&p.parse(_,{trimForExclusions:!0})}test(i,c,_){return this.relativeParsedExpr&&this.relativeParsedExpr(i,c,_)||this.absoluteParsedExpr&&this.absoluteParsedExpr(d.join(this.root,i),c,_)}getBasenameTerms(){const i=[];return this.absoluteParsedExpr&&i.push(...p.getBasenameTerms(this.absoluteParsedExpr)),this.relativeParsedExpr&&i.push(...p.getBasenameTerms(this.relativeParsedExpr)),i}getPathTerms(){const i=[];return this.absoluteParsedExpr&&i.push(...p.getPathTerms(this.absoluteParsedExpr)),this.relativeParsedExpr&&i.push(...p.getPathTerms(this.relativeParsedExpr)),i}}function a(l){const i=l.trim().split(`
`),c=i[0].trim();if(c.startsWith("Error parsing regex"))return c;if(c.startsWith("regex parse error"))return s.uppercaseFirstLetter(i[i.length-1].trim());if(c.startsWith("error parsing glob")||c.startsWith("unsupported encoding"))return c.charAt(0).toUpperCase()+c.substr(1);if(c==="Literal '\\n' not allowed.")return"Literal '\\n' currently not supported";if(c.startsWith("Literal "))return c}}),define(ye[380],Ce([1,0,96,21,192,22]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORTED_ENCODINGS=e.detectEncodingFromBuffer=e.toCanonicalName=e.detectEncodingByBOMFromBuffer=e.toNodeEncoding=e.encodingExists=e.toEncodeReadable=e.toDecodeStream=e.DecodeStreamError=e.DecodeStreamErrorKind=e.UTF8_BOM=e.UTF16le_BOM=e.UTF16be_BOM=e.isUTFEncoding=e.UTF16le=e.UTF16be=e.UTF8_with_bom=e.UTF8=void 0,e.UTF8="utf8",e.UTF8_with_bom="utf8bom",e.UTF16be="utf16be",e.UTF16le="utf16le";function R(c){return[e.UTF8,e.UTF8_with_bom,e.UTF16be,e.UTF16le].some(_=>_===c)}e.isUTFEncoding=R,e.UTF16be_BOM=[254,255],e.UTF16le_BOM=[255,254],e.UTF8_BOM=[239,187,191];const u=512,p=512,f=512*8,y=512*128;var E;(function(c){c[c.STREAM_IS_BINARY=1]="STREAM_IS_BINARY"})(E||(e.DecodeStreamErrorKind=E={}));class t extends Error{constructor(_,S){super(_),this.decodeStreamErrorKind=S}}e.DecodeStreamError=t;class s{static async create(_){let S;if(_!==e.UTF8)S=(await(0,d.importAMDNodeModule)("@vscode/iconv-lite-umd","lib/iconv-lite-umd.js")).getDecoder(h(_));else{const k=new TextDecoder;S={write(m){return k.decode(m,{stream:!0})},end(){return k.decode()}}}return new s(S)}constructor(_){this.iconvLiteDecoder=_}write(_){return this.iconvLiteDecoder.write(_)}end(){return this.iconvLiteDecoder.end()}}function g(c,_){const S=_.minBytesRequiredForDetection??_.guessEncoding?f:p;return new Promise((k,m)=>{const v=(0,w.newWriteableStream)($=>$.join("")),D=[];let L=0,O;const H=new A.CancellationTokenSource,N=async()=>{try{const $=await i({buffer:M.VSBuffer.concat(D),bytesRead:L},_.guessEncoding);if($.seemsBinary&&_.acceptTextOnly)throw new t("Stream is binary but only text is accepted for decoding",1);$.encoding=await _.overwriteEncoding($.encoding),O=await s.create($.encoding);const U=O.write(M.VSBuffer.concat(D).buffer);v.write(U),D.length=0,L=0,k({stream:v,detected:$})}catch($){H.cancel(),v.destroy(),m($)}};(0,w.listenStream)(c,{onData:async $=>{O?v.write(O.write($.buffer)):(D.push($),L+=$.byteLength,L>=S&&(c.pause(),await N(),setTimeout(()=>c.resume())))},onError:$=>v.error($),onEnd:async()=>{O||await N(),v.end(O?.end())}},H.token)})}e.toDecodeStream=g;async function C(c,_,S){const m=(await(0,d.importAMDNodeModule)("@vscode/iconv-lite-umd","lib/iconv-lite-umd.js")).getEncoder(h(_),S);let v=!1,D=!1;return{read(){if(D)return null;const L=c.read();if(typeof L!="string"){if(D=!0,!v&&S?.addBOM)switch(_){case e.UTF8:case e.UTF8_with_bom:return M.VSBuffer.wrap(Uint8Array.from(e.UTF8_BOM));case e.UTF16be:return M.VSBuffer.wrap(Uint8Array.from(e.UTF16be_BOM));case e.UTF16le:return M.VSBuffer.wrap(Uint8Array.from(e.UTF16le_BOM))}const O=m.end();return O&&O.length>0?(v=!0,M.VSBuffer.wrap(O)):null}return v=!0,M.VSBuffer.wrap(m.write(L))}}}e.toEncodeReadable=C;async function r(c){return(await(0,d.importAMDNodeModule)("@vscode/iconv-lite-umd","lib/iconv-lite-umd.js")).encodingExists(h(c))}e.encodingExists=r;function h(c){return c===e.UTF8_with_bom||c===null?e.UTF8:c}e.toNodeEncoding=h;function o(c,_){if(!c||_<e.UTF16be_BOM.length)return null;const S=c.readUInt8(0),k=c.readUInt8(1);if(S===e.UTF16be_BOM[0]&&k===e.UTF16be_BOM[1])return e.UTF16be;if(S===e.UTF16le_BOM[0]&&k===e.UTF16le_BOM[1])return e.UTF16le;if(_<e.UTF8_BOM.length)return null;const m=c.readUInt8(2);return S===e.UTF8_BOM[0]&&k===e.UTF8_BOM[1]&&m===e.UTF8_BOM[2]?e.UTF8_with_bom:null}e.detectEncodingByBOMFromBuffer=o;const b=["ascii","utf-16","utf-32"];async function P(c){const _=await(0,d.importAMDNodeModule)("jschardet","dist/jschardet.min.js"),S=c.slice(0,y),k=a(S.buffer),m=_.detect(k);if(!m||!m.encoding)return null;const v=m.encoding.toLowerCase();return 0<=b.indexOf(v)?null:n(m.encoding)}const T={ibm866:"cp866",big5:"cp950"};function n(c){const _=c.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return T[_]||_}function a(c){let _="";for(let S=0;S<c.length;S++)_+=String.fromCharCode(c[S]);return _}function l(c){switch(c){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:{const _=c.match(/windows(\d+)/);return _?"windows-"+_[1]:c}}}e.toCanonicalName=l;function i({buffer:c,bytesRead:_},S){let k=o(c,_),m=!1;if(k!==e.UTF16be&&k!==e.UTF16le&&c){let v=!0,D=!0,L=!1;for(let O=0;O<_&&O<u;O++){const H=O%2===1,N=c.readUInt8(O)===0;if(N&&(L=!0),v&&(H&&!N||!H&&N)&&(v=!1),D&&(H&&N||!H&&!N)&&(D=!1),N&&!v&&!D)break}L&&(v?k=e.UTF16le:D?k=e.UTF16be:m=!0)}return S&&!m&&!k&&c?P(c.slice(0,_)).then(v=>({seemsBinary:!1,encoding:v})):{seemsBinary:m,encoding:k}}e.detectEncodingFromBuffer=i,e.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Simplified Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Simplified Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},koi8ru:{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},koi8t:{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},gb2312:{labelLong:"Simplified Chinese (GB 2312)",labelShort:"GB 2312",order:45},cp865:{labelLong:"Nordic DOS (CP 865)",labelShort:"CP 865",order:46},cp850:{labelLong:"Western European DOS (CP 850)",labelShort:"CP 850",order:47}}}),define(ye[153],Ce([1,0,380,31,152]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeTextSearchManager=void 0;class A extends d.TextSearchManager{constructor(u,p,f=M,y="searchProcess"){super(u,p,{readdir:E=>f.Promises.readdir(E.fsPath),toCanonicalName:E=>(0,w.toCanonicalName)(E)},y)}}e.NativeTextSearchManager=A}),define(ye[154],Ce([1,0,80,396,379,19,41,34,17,16,2,35,92,397,377,114]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performBraceExpansionForRipgrep=e.fixNewline=e.fixRegexNewline=e.unicodeEscapesToPCRE2=e.getRgArgs=e.RipgrepParser=e.RipgrepTextSearchEngine=void 0;const r=g.rgPath.replace(/\bnode_modules\.asar\b/,"node_modules.asar.unpacked");class h{constructor(D){this.outputChannel=D}provideTextSearchResults(D,L,O,H){return this.outputChannel.appendLine(`provideTextSearchResults ${D.pattern}, ${JSON.stringify({...L,folder:L.folder.toString()})}`),new Promise((N,$)=>{H.onCancellationRequested(()=>q());const U=a(D,L),x=L.folder.fsPath,X=U.map(te=>te.match(/^-/)?te:`'${te}'`).join(" ");this.outputChannel.appendLine(`${r} ${X}
 - cwd: ${x}`);let K=w.spawn(r,U,{cwd:x});K.on("error",te=>{console.error(te),this.outputChannel.appendLine("Error: "+(te&&te.message)),$((0,E.serializeSearchError)(new E.SearchError(te&&te.message,E.SearchErrorCode.rgProcessError)))});let pe=!1;const le=new P(L.maxResults,x,L.previewOptions);le.on("result",te=>{pe=!0,ve="",O.report(te)});let re=!1;const q=()=>{re=!0,K?.kill(),le?.cancel()};let oe=!1;le.on("hitLimit",()=>{oe=!0,q()});let ve="";K.stdout.on("data",te=>{le.handleData(te),pe||(ve+=te)});let ce=!1;K.stdout.once("data",()=>ce=!0);let se="";K.stderr.on("data",te=>{const B=te.toString();this.outputChannel.appendLine(B),se.length+B.length<1e6&&(se+=B)}),K.on("close",()=>{if(this.outputChannel.appendLine(ce?"Got data from stdout":"No data from stdout"),this.outputChannel.appendLine(pe?"Got result from parser":"No result from parser"),ve&&this.outputChannel.appendLine(`Got data without result: ${ve}`),this.outputChannel.appendLine(""),re)N({limitHit:oe});else{le.flush(),K=null;let te;se&&!ce&&(te=o(se))?$((0,E.serializeSearchError)(new E.SearchError(te.message,te.code))):N({limitHit:oe})}})})}}e.RipgrepTextSearchEngine=h;function o(v){const D=v.split(`
`),L=D[0].trim();if(D.some(H=>H.startsWith("regex parse error")))return new E.SearchError(b(D),E.SearchErrorCode.regexParseError);const O=L.match(/grep config error: unknown encoding: (.*)/);if(O)return new E.SearchError(`Unknown encoding: ${O[1]}`,E.SearchErrorCode.unknownEncoding);if(L.startsWith("error parsing glob"))return new E.SearchError(L.charAt(0).toUpperCase()+L.substr(1),E.SearchErrorCode.globParseError);if(L.startsWith("the literal"))return new E.SearchError(L.charAt(0).toUpperCase()+L.substr(1),E.SearchErrorCode.invalidLiteral);if(L.startsWith("PCRE2: error compiling pattern"))return new E.SearchError(L,E.SearchErrorCode.regexParseError)}function b(v){const D=["Regex parse error"],L=v.filter(O=>O.startsWith("PCRE2:"));if(L.length>=1){const O=L[0].replace("PCRE2:","");if(O.indexOf(":")!==-1&&O.split(":").length>=2){const H=O.split(":")[1];D.push(":"+H)}}return D.join("")}class P extends M.EventEmitter{constructor(D,L,O){super(),this.maxResults=D,this.rootFolder=L,this.previewOptions=O,this.remainder="",this.isDone=!1,this.hitLimit=!1,this.numResults=0,this.stringDecoder=new d.StringDecoder}cancel(){this.isDone=!0}flush(){this.handleDecodedData(this.stringDecoder.end())}on(D,L){return super.on(D,L),this}handleData(D){if(this.isDone)return;const L=typeof D=="string"?D:this.stringDecoder.write(D);this.handleDecodedData(L)}handleDecodedData(D){let L=D.indexOf(`
`);const O=this.remainder+D;if(L>=0)L+=this.remainder.length;else{this.remainder=O;return}let H=0;for(;L>=0;)this.handleLine(O.substring(H,L).trim()),H=L+1,L=O.indexOf(`
`,H);this.remainder=O.substring(H)}handleLine(D){if(this.isDone||!D)return;let L;try{L=JSON.parse(D)}catch{throw new Error(`malformed line from rg: ${D}`)}if(L.type==="match"){const O=T(L.data.path),H=y.URI.file(p.join(this.rootFolder,O)),N=this.createTextSearchMatch(L.data,H);this.onResult(N),this.hitLimit&&(this.cancel(),this.emit("hitLimit"))}else if(L.type==="context"){const O=T(L.data.path),H=y.URI.file(p.join(this.rootFolder,O));this.createTextSearchContext(L.data,H).forEach($=>this.onResult($))}}createTextSearchMatch(D,L){const O=D.line_number-1,H=T(D.lines),N=Buffer.from(H);let $=0,U=0,x=O;D.submatches.length===0&&D.submatches.push(H.length?{start:0,end:1,match:{text:H[0]}}:{start:0,end:0,match:{text:""}});const X=(0,A.coalesce)(D.submatches.map((K,pe)=>{if(this.hitLimit)return null;this.numResults++,this.numResults>=this.maxResults&&(this.hitLimit=!0);const le=T(K.match),re=N.slice($,K.start).toString(),q=n(re),oe=q.numLines>0?q.lastLineLength:q.lastLineLength+U,ve=n(le),ce=q.numLines+x,se=ve.numLines+ce,te=ve.numLines>0?ve.lastLineLength:ve.lastLineLength+oe;return $=K.end,U=te,x=se,new t.Range(ce,oe,se,te)}));return(0,C.createTextSearchResult)(L,H,X,this.previewOptions)}createTextSearchContext(D,L){const O=T(D.lines),H=D.line_number;return O.replace(/\r?\n$/,"").split(`
`).map((N,$)=>({text:N,uri:L,lineNumber:H+$}))}onResult(D){this.emit("result",D)}}e.RipgrepParser=P;function T(v){return v.bytes?Buffer.from(v.bytes,"base64").toString():v.text}function n(v){const D=/\n/g;let L=0,O=-1,H;for(;H=D.exec(v);)L++,O=H.index;const N=O>=0?v.length-O-1:v.length;return{numLines:L,lastLineLength:N}}function a(v,D){const L=["--hidden","--no-require-git"];L.push(v.isCaseSensitive?"--case-sensitive":"--ignore-case");const{doubleStarIncludes:O,otherIncludes:H}=(0,R.groupBy)(D.includes,$=>$.startsWith("**")?"doubleStarIncludes":"otherIncludes");if(H&&H.length){const $=new Set;H.forEach(U=>{$.add(U)}),L.push("-g","!*"),$.forEach(U=>{l(U).map(C.anchorGlob).forEach(x=>{L.push("-g",x)})})}O&&O.length&&O.forEach($=>{L.push("-g",$)}),D.excludes.map(C.anchorGlob).forEach($=>L.push("-g",`!${$}`)),D.maxFileSize&&L.push("--max-filesize",D.maxFileSize+""),D.useIgnoreFiles?D.useParentIgnoreFiles||L.push("--no-ignore-parent"):L.push("--no-ignore"),D.followSymlinks&&L.push("--follow"),D.encoding&&D.encoding!=="utf8"&&L.push("--encoding",D.encoding),v.pattern==="--"&&(v.isRegExp=!0,v.pattern="\\-\\-"),v.isMultiline&&!v.isRegExp&&(v.pattern=(0,f.escapeRegExpCharacters)(v.pattern),v.isRegExp=!0),D.usePCRE2&&L.push("--pcre2"),L.push("--crlf"),v.isRegExp&&(v.pattern=i(v.pattern),L.push("--engine","auto"));let N;if(v.isWordMatch){const U=(0,f.createRegExp)(v.pattern,!!v.isRegExp,{wholeWord:v.isWordMatch}).source.replace(/\\\//g,"/");L.push("--regexp",U)}else if(v.isRegExp){let $=_(v.pattern);$=S($),L.push("--regexp",$)}else N=v.pattern,L.push("--fixed-strings");return L.push("--no-config"),D.useGlobalIgnoreFiles||L.push("--no-ignore-global"),L.push("--json"),v.isMultiline&&L.push("--multiline"),D.beforeContext&&L.push("--before-context",D.beforeContext+""),D.afterContext&&L.push("--after-context",D.afterContext+""),L.push("--"),N&&L.push(N),L.push("."),L}e.getRgArgs=a;function l(v){return m(v).flatMap(L=>{const O=(0,u.splitGlobAware)(L,"/");return O.map((H,N)=>O.slice(0,N+1).join("/"))})}function i(v){const D=/((?:[^\\]|^)(?:\\\\)*)\\u([a-z0-9]{4})/gi;for(;v.match(D);)v=v.replace(D,"$1\\x{$2}");const L=/((?:[^\\]|^)(?:\\\\)*)\\u\{([a-z0-9]{4})\}/gi;for(;v.match(L);)v=v.replace(L,"$1\\x{$2}");return v}e.unicodeEscapesToPCRE2=i;const c=v=>v.type==="Assertion"&&v.kind==="lookbehind";function _(v){let D;try{D=new s.RegExpParser().parsePattern(v)}catch{return v}let L="",O=0;const H=(U,x,X)=>{L+=v.slice(O,U)+X,O=x},N=[];return new s.RegExpVisitor({onCharacterEnter(U){if(U.raw!=="\\n")return;const x=N[0];if(!x)H(U.start,U.end,"\\r?\\n");else if(!N.some(c))if(x.type==="CharacterClass")if(x.negate){const X=v.slice(x.start+2,U.start)+v.slice(U.end,x.end-1);x.parent?.type==="Quantifier"?H(x.start,x.end,X?`[^${X}]`:"."):H(x.start,x.end,"(?!\\r?\\n"+(X?`|[${X}]`:"")+")")}else{const X=v.slice(x.start+1,U.start)+v.slice(U.end,x.end-1);H(x.start,x.end,X===""?"\\r?\\n":`(?:[${X}]|\\r?\\n)`)}else x.type==="Quantifier"&&H(U.start,U.end,"(?:\\r?\\n)")},onQuantifierEnter(U){N.unshift(U)},onQuantifierLeave(){N.shift()},onCharacterClassRangeEnter(U){N.unshift(U)},onCharacterClassRangeLeave(){N.shift()},onCharacterClassEnter(U){N.unshift(U)},onCharacterClassLeave(){N.shift()},onAssertionEnter(U){c(U)&&N.push(U)},onAssertionLeave(U){N[0]===U&&N.shift()}}).visit(D),L+=v.slice(O),L}e.fixRegexNewline=_;function S(v){return v.replace(/\n/g,"\\r?\\n")}e.fixNewline=S;function k(v){let D=!1,L=!1,O="",H="";for(let N=0;N<v.length;N++){const $=v[N];switch($){case"\\":L?(D?H+="\\"+$:O+="\\"+$,L=!1):L=!0;break;case"{":if(L)D?H+=$:O+=$,L=!1;else{if(D)return{strInBraces:O+"{"+H+"{"+v.substring(N+1)};D=!0}break;case"}":if(L)D?H+=$:O+=$,L=!1;else{if(D)return{fixedStart:O,strInBraces:H,fixedEnd:v.substring(N+1)};O+=$}break;default:D?H+=(L?"\\":"")+$:O+=(L?"\\":"")+$,L=!1;break}}return{strInBraces:O+(D?"{"+H:"")}}function m(v){const{fixedStart:D,strInBraces:L,fixedEnd:O}=k(v);if(D===void 0||O===void 0)return[L];let H=(0,u.splitGlobAware)(L,",");H.length||(H=[""]);const N=m(O);return H.flatMap($=>{const U=D+$;return N.map(x=>U+x)})}e.performBraceExpansionForRipgrep=m}),define(ye[381],Ce([1,0,22,154,83,15]),function(ge,e,w,M,d,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RipgrepSearchProvider=void 0;class R{constructor(f){this.outputChannel=f,this.inProgress=new Set,process.once("exit",()=>this.dispose())}provideTextSearchResults(f,y,E,t){const s=new M.RipgrepTextSearchEngine(this.outputChannel);if(y.folder.scheme===A.Schemas.vscodeUserData){const g={...y,folder:y.folder.with({scheme:A.Schemas.file})},C=new d.Progress(r=>E.report({...r,uri:r.uri.with({scheme:y.folder.scheme})}));return this.withToken(t,r=>s.provideTextSearchResults(f,g,C,r))}else return this.withToken(t,g=>s.provideTextSearchResults(f,y,E,g))}async withToken(f,y){const E=u(f);this.inProgress.add(E);const t=await y(E.token);return this.inProgress.delete(E),t}dispose(){this.inProgress.forEach(f=>f.cancel())}}e.RipgrepSearchProvider=R;function u(p){const f=new w.CancellationTokenSource;return p.onCancellationRequested(()=>f.cancel()),f}}),define(ye[382],Ce([1,0,31,154,153]),function(ge,e,w,M,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextSearchEngineAdapter=void 0;class A{constructor(p){this.query=p}search(p,f,y){if((!this.query.folderQueries||!this.query.folderQueries.length)&&(!this.query.extraFileResources||!this.query.extraFileResources.length))return Promise.resolve({type:"success",limitHit:!1,stats:{type:"searchProcess"}});const E={appendLine(s){y({message:s})}},t=new d.NativeTextSearchManager(this.query,new M.RipgrepTextSearchEngine(E),w);return new Promise((s,g)=>t.search(C=>{f(C.map(R))},p).then(C=>s({limitHit:C.limitHit,type:"success",stats:C.stats}),g))}}e.TextSearchEngineAdapter=A;function R(u){return{path:u.resource&&u.resource.fsPath,results:u.results,numMatches:(u.results||[]).reduce((p,f)=>{if(f.ranges){const y=f;return p+(Array.isArray(y.ranges)?y.ranges.length:1)}else return p+1},0)}}}),define(ye[383],Ce([1,0,19,13,8,4,125,17,36,2,30,35,378,382]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchService=void 0;class g{static{this.BATCH_SIZE=512}constructor(P="searchProcess"){this.processType=P,this.caches=Object.create(null)}fileSearch(P){let T;const n=h(P),a=new A.Emitter({onDidAddFirstListener:()=>{T=(0,M.createCancelablePromise)(l=>this.doFileSearchWithEngine(t.Engine,n,i=>a.fire(i),l)),T.then(l=>a.fire(l),l=>a.fire({type:"error",error:{message:l.message,stack:l.stack}}))},onDidRemoveLastListener:()=>{T.cancel()}});return a.event}textSearch(P){let T;const n=h(P),a=new A.Emitter({onDidAddFirstListener:()=>{T=(0,M.createCancelablePromise)(l=>this.ripgrepTextSearch(n,i=>a.fire(i),l)),T.then(l=>a.fire(l),l=>a.fire({type:"error",error:{message:l.message,stack:l.stack}}))},onDidRemoveLastListener:()=>{T.cancel()}});return a.event}ripgrepTextSearch(P,T,n){return P.maxFileSize=this.getPlatformFileLimits().maxFileSize,new s.TextSearchEngineAdapter(P).search(n,T,T)}getPlatformFileLimits(){return{maxFileSize:process.arch==="ia32"?300*y.ByteSize.MB:16*y.ByteSize.GB}}doFileSearch(P,T,n){return this.doFileSearchWithEngine(t.Engine,P,T,n)}doFileSearchWithEngine(P,T,n,a,l=g.BATCH_SIZE){let i=0;const c=S=>{Array.isArray(S)?(i+=S.length,n(S.map(k=>this.rawMatchToSearchItem(k)))):S.relativePath?(i++,n(this.rawMatchToSearchItem(S))):n(S)};if(T.sortByScore){let S=this.trySortedSearchFromCache(T,c,a);if(!S){const k=T.maxResults?Object.assign({},T,{maxResults:null}):T,m=new P(k);S=this.doSortedSearch(m,T,n,c,a)}return new Promise((k,m)=>{S.then(([v,D])=>{const L=D.map(O=>this.rawMatchToSearchItem(O));this.sendProgress(L,n,l),k(v)},m)})}const _=new P(T);return this.doSearch(_,c,l,a).then(S=>({limitHit:S.limitHit,type:"success",stats:{detailStats:S.stats,type:this.processType,fromCache:!1,resultCount:i,sortingTime:void 0}}))}rawMatchToSearchItem(P){return{path:P.base?(0,u.join)(P.base,P.relativePath):P.relativePath}}doSortedSearch(P,T,n,a,l){const i=new A.Emitter;let c=(0,M.createCancelablePromise)(S=>{let k=[];const m=v=>{Array.isArray(v)?k=v:(a(v),i.fire(v))};return this.doSearch(P,m,-1,S).then(v=>[v,k])}),_;if(T.cacheKey){_=this.getOrCreateCache(T.cacheKey);const S={promise:c,event:i.event,resolved:!1};_.resultsToSearchCache[T.filePattern||""]=S,c.then(()=>{S.resolved=!0},k=>{delete _.resultsToSearchCache[T.filePattern||""]}),c=this.preventCancellation(c)}return c.then(([S,k])=>{const m=_?_.scorerCache:Object.create(null),v=(typeof T.maxResults!="number"||T.maxResults>0)&&p.StopWatch.create(!1);return this.sortResults(T,k,m,l).then(D=>{const L=v?v.elapsed():-1;return[{type:"success",stats:{detailStats:S.stats,sortingTime:L,fromCache:!1,type:this.processType,workspaceFolderCount:T.folderQueries.length,resultCount:D.length},messages:S.messages,limitHit:S.limitHit||typeof T.maxResults=="number"&&k.length>T.maxResults},D]})})}getOrCreateCache(P){const T=this.caches[P];return T||(this.caches[P]=new C)}trySortedSearchFromCache(P,T,n){const a=P.cacheKey&&this.caches[P.cacheKey];if(!a)return;const l=this.getResultsFromCache(a,P.filePattern||"",T,n);if(l)return l.then(([i,c,_])=>{const S=p.StopWatch.create(!1);return this.sortResults(P,c,a.scorerCache,n).then(k=>{const m=S.elapsed(),v={fromCache:!0,detailStats:_,type:this.processType,resultCount:c.length,sortingTime:m};return[{type:"success",limitHit:i.limitHit||typeof P.maxResults=="number"&&c.length>P.maxResults,stats:v},k]})})}sortResults(P,T,n,a){const l=(0,R.prepareQuery)(P.filePattern||""),i=(_,S)=>(0,R.compareItemsByFuzzyScore)(_,S,l,!0,r,n),c=typeof P.maxResults=="number"?P.maxResults:Number.MAX_VALUE;return w.topAsync(T,i,c,1e4,a)}sendProgress(P,T,n){if(n&&n>0)for(let a=0;a<P.length;a+=n)T(P.slice(a,a+n));else T(P)}getResultsFromCache(P,T,n,a){const l=p.StopWatch.create(!1),i=T.indexOf(u.sep)>=0;let c;for(const m in P.resultsToSearchCache)if(T.startsWith(m)){if(i&&m.indexOf(u.sep)<0&&m!=="")continue;const v=P.resultsToSearchCache[m];c={promise:this.preventCancellation(v.promise),event:v.event,resolved:v.resolved};break}if(!c)return null;const _=l.elapsed(),S=p.StopWatch.create(!1),k=c.event(n);return a&&a.onCancellationRequested(()=>{k.dispose()}),c.promise.then(([m,v])=>{if(a&&a.isCancellationRequested)throw(0,d.canceled)();const D=[],L=(0,R.prepareQuery)(T).normalizedLowercase;for(const O of v)(0,E.isFilePatternMatch)(O,L)&&D.push(O);return[m,D,{cacheWasResolved:c.resolved,cacheLookupTime:_,cacheFilterTime:S.elapsed(),cacheEntryCount:v.length}]})}doSearch(P,T,n,a){return new Promise((l,i)=>{let c=[];a?.onCancellationRequested(()=>P.cancel()),P.search(_=>{_&&(n?(c.push(_),n>0&&c.length>=n&&(T(c),c=[])):T(_))},_=>{T(_)},(_,S)=>{c.length&&T(c),_?i(_):l(S)})})}clearCache(P){return delete this.caches[P],Promise.resolve(void 0)}preventCancellation(P){return new class{get[Symbol.toStringTag](){return this.toString()}cancel(){}then(T,n){return P.then(T,n)}catch(T){return this.then(void 0,T)}finally(T){return P.finally(T)}}}}e.SearchService=g;class C{constructor(){this.resultsToSearchCache=Object.create(null),this.scorerCache=Object.create(null)}}const r=new class{getItemLabel(b){return(0,u.basename)(b.relativePath)}getItemDescription(b){return(0,u.dirname)(b.relativePath)}getItemPath(b){return b.relativePath}};function h(b){return{...b,folderQueries:b.folderQueries&&b.folderQueries.map(o),extraFileResources:b.extraFileResources&&b.extraFileResources.map(P=>f.URI.revive(P))}}function o(b){return{...b,folder:f.URI.revive(b.folder)}}}),define(ye[384],Ce([1,0,5,15,2,31,12,26,20,95,56,35,383,381,114,153]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeExtHostSearch=void 0;let r=class extends f.ExtHostSearch{constructor(o,b,P,T){super(o,P,T),this._pfs=A,this._internalFileSearchHandle=-1,this._internalFileSearchProvider=null,this._registeredEHSearchProvider=!1;const n=new g.OutputChannel("RipgrepSearchUD",this._logService);this.registerTextSearchProvider(M.Schemas.vscodeUserData,new s.RipgrepSearchProvider(n)),b.remote.isRemote&&b.remote.authority&&this._registerEHSearchProviders()}$enableExtensionHostSearch(){this._registerEHSearchProviders()}_registerEHSearchProviders(){if(this._registeredEHSearchProvider)return;this._registeredEHSearchProvider=!0;const o=new g.OutputChannel("RipgrepSearchEH",this._logService);this.registerTextSearchProvider(M.Schemas.file,new s.RipgrepSearchProvider(o)),this.registerInternalFileSearchProvider(M.Schemas.file,new t.SearchService("fileSearchProvider"))}registerInternalFileSearchProvider(o,b){const P=this._handlePool++;return this._internalFileSearchProvider=b,this._internalFileSearchHandle=P,this._proxy.$registerFileSearchProvider(P,this._transformScheme(o)),(0,w.toDisposable)(()=>{this._internalFileSearchProvider=null,this._proxy.$unregisterProvider(P)})}$provideFileSearchResults(o,b,P,T){const n=(0,f.reviveQuery)(P);return o===this._internalFileSearchHandle?this.doInternalFileSearch(o,b,n,T):super.$provideFileSearchResults(o,b,P,T)}doInternalFileSearch(o,b,P,T){const n=a=>{if((0,E.isSerializedFileMatch)(a)&&(a=[a]),Array.isArray(a)){this._proxy.$handleFileMatch(o,b,a.map(l=>d.URI.file(l.path)));return}a.message&&this._logService.debug("ExtHostSearch",a.message)};if(!this._internalFileSearchProvider)throw new Error("No internal file search handler");return this._internalFileSearchProvider.doFileSearch(P,n,T)}$clearCache(o){return this._internalFileSearchProvider?.clearCache(o),super.$clearCache(o)}createTextSearchManager(o,b){return new C.NativeTextSearchManager(o,b,void 0,"textSearchProvider")}};e.NativeExtHostSearch=r,e.NativeExtHostSearch=r=je([He(0,p.IExtHostRpcService),He(1,u.IExtHostInitDataService),He(2,y.IURITransformerService),He(3,R.ILogService)],r)}),define(ye[115],Ce([1,0,398,75,60,399,21,8,4,5,17,14,29,78,79]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connect=e.serve=e.Server=e.createStaticIPCHandle=e.createRandomIPCHandle=e.XDG_RUNTIME_DIR=e.WebSocketNodeSocket=e.NodeSocket=void 0;class C{traceSocketEvent(v,D){g.SocketDiagnostics.traceSocketEvent(this.socket,this.debugLabel,v,D)}constructor(v,D=""){this._canWrite=!0,this.debugLabel=D,this.socket=v,this.traceSocketEvent("created",{type:"NodeSocket"}),this._errorListener=L=>{if(this.traceSocketEvent("error",{code:L?.code,message:L?.message}),L){if(L.code==="EPIPE")return;(0,u.onUnexpectedError)(L)}},this.socket.on("error",this._errorListener),this._closeListener=L=>{this.traceSocketEvent("close",{hadError:L}),this._canWrite=!1},this.socket.on("close",this._closeListener),this._endListener=()=>{this.traceSocketEvent("nodeEndReceived"),this._canWrite=!1},this.socket.on("end",this._endListener)}dispose(){this.socket.off("error",this._errorListener),this.socket.off("close",this._closeListener),this.socket.off("end",this._endListener),this.socket.destroy()}onData(v){const D=L=>{this.traceSocketEvent("read",L),v(R.VSBuffer.wrap(L))};return this.socket.on("data",D),{dispose:()=>this.socket.off("data",D)}}onClose(v){const D=L=>{v({type:0,hadError:L,error:void 0})};return this.socket.on("close",D),{dispose:()=>this.socket.off("close",D)}}onEnd(v){const D=()=>{v()};return this.socket.on("end",D),{dispose:()=>this.socket.off("end",D)}}write(v){if(!(this.socket.destroyed||!this._canWrite))try{this.traceSocketEvent("write",v),this.socket.write(v.buffer,D=>{if(D){if(D.code==="EPIPE")return;(0,u.onUnexpectedError)(D)}})}catch(D){if(D.code==="EPIPE")return;(0,u.onUnexpectedError)(D)}}end(){this.traceSocketEvent("nodeEndSent"),this.socket.end()}drain(){return this.traceSocketEvent("nodeDrainBegin"),new Promise((v,D)=>{if(this.socket.bufferSize===0){this.traceSocketEvent("nodeDrainEnd"),v();return}const L=()=>{this.socket.off("close",L),this.socket.off("end",L),this.socket.off("error",L),this.socket.off("timeout",L),this.socket.off("drain",L),this.traceSocketEvent("nodeDrainEnd"),v()};this.socket.on("close",L),this.socket.on("end",L),this.socket.on("error",L),this.socket.on("timeout",L),this.socket.on("drain",L)})}}e.NodeSocket=C;var r;(function(m){m[m.MinHeaderByteSize=2]="MinHeaderByteSize",m[m.MaxWebSocketMessageLength=262144]="MaxWebSocketMessageLength"})(r||(r={}));var h;(function(m){m[m.PeekHeader=1]="PeekHeader",m[m.ReadHeader=2]="ReadHeader",m[m.ReadBody=3]="ReadBody",m[m.Fin=4]="Fin"})(h||(h={}));class o extends f.Disposable{get permessageDeflate(){return this._flowManager.permessageDeflate}get recordedInflateBytes(){return this._flowManager.recordedInflateBytes}traceSocketEvent(v,D){this.socket.traceSocketEvent(v,D)}constructor(v,D,L,O){super(),this._onData=this._register(new p.Emitter),this._onClose=this._register(new p.Emitter),this._isEnded=!1,this._state={state:1,readLen:2,fin:0,compressed:!1,firstFrameOfMessage:!0,mask:0},this.socket=v,this.traceSocketEvent("created",{type:"WebSocketNodeSocket",permessageDeflate:D,inflateBytesLength:L?.byteLength||0,recordInflateBytes:O}),this._flowManager=this._register(new b(this,D,L,O,this._onData,(H,N)=>this._write(H,N))),this._register(this._flowManager.onError(H=>{console.error(H),(0,u.onUnexpectedError)(H),this._onClose.fire({type:0,hadError:!0,error:H})})),this._incomingData=new g.ChunkStream,this._register(this.socket.onData(H=>this._acceptChunk(H))),this._register(this.socket.onClose(async H=>{this._flowManager.isProcessingReadQueue()&&await p.Event.toPromise(this._flowManager.onDidFinishProcessingReadQueue),this._onClose.fire(H)}))}dispose(){this._flowManager.isProcessingWriteQueue()?this._register(this._flowManager.onDidFinishProcessingWriteQueue(()=>{this.dispose()})):(this.socket.dispose(),super.dispose())}onData(v){return this._onData.event(v)}onClose(v){return this._onClose.event(v)}onEnd(v){return this.socket.onEnd(v)}write(v){let D=0;for(;D<v.byteLength;)this._flowManager.writeMessage(v.slice(D,Math.min(D+262144,v.byteLength))),D+=262144}_write(v,D){if(this._isEnded)return;this.traceSocketEvent("webSocketNodeSocketWrite",v);let L=2;v.byteLength<126?L+=0:v.byteLength<2**16?L+=2:L+=8;const O=R.VSBuffer.alloc(L);if(D?O.writeUInt8(194,0):O.writeUInt8(130,0),v.byteLength<126)O.writeUInt8(v.byteLength,1);else if(v.byteLength<2**16){O.writeUInt8(126,1);let H=1;O.writeUInt8(v.byteLength>>>8&255,++H),O.writeUInt8(v.byteLength>>>0&255,++H)}else{O.writeUInt8(127,1);let H=1;O.writeUInt8(0,++H),O.writeUInt8(0,++H),O.writeUInt8(0,++H),O.writeUInt8(0,++H),O.writeUInt8(v.byteLength>>>24&255,++H),O.writeUInt8(v.byteLength>>>16&255,++H),O.writeUInt8(v.byteLength>>>8&255,++H),O.writeUInt8(v.byteLength>>>0&255,++H)}this.socket.write(R.VSBuffer.concat([O,v]))}end(){this._isEnded=!0,this.socket.end()}_acceptChunk(v){if(v.byteLength!==0){for(this._incomingData.acceptChunk(v);this._incomingData.byteLength>=this._state.readLen;)if(this._state.state===1){const D=this._incomingData.peek(this._state.readLen),L=D.readUInt8(0),O=(L&128)>>>7,H=(L&64)>>>6,N=D.readUInt8(1),$=(N&128)>>>7,U=N&127;this._state.state=2,this._state.readLen=2+($?4:0)+(U===126?2:0)+(U===127?8:0),this._state.fin=O,this._state.firstFrameOfMessage&&(this._state.compressed=!!H),this._state.firstFrameOfMessage=!!O,this._state.mask=0,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{headerSize:this._state.readLen,compressed:this._state.compressed,fin:this._state.fin})}else if(this._state.state===2){const D=this._incomingData.read(this._state.readLen),L=D.readUInt8(1),O=(L&128)>>>7;let H=L&127,N=1;H===126?H=D.readUInt8(++N)*2**8+D.readUInt8(++N):H===127&&(H=D.readUInt8(++N)*0+D.readUInt8(++N)*0+D.readUInt8(++N)*0+D.readUInt8(++N)*0+D.readUInt8(++N)*2**24+D.readUInt8(++N)*2**16+D.readUInt8(++N)*2**8+D.readUInt8(++N));let $=0;O&&($=D.readUInt8(++N)*2**24+D.readUInt8(++N)*2**16+D.readUInt8(++N)*2**8+D.readUInt8(++N)),this._state.state=3,this._state.readLen=H,this._state.mask=$,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{bodySize:this._state.readLen,compressed:this._state.compressed,fin:this._state.fin,mask:this._state.mask})}else if(this._state.state===3){const D=this._incomingData.read(this._state.readLen);this.traceSocketEvent("webSocketNodeSocketReadData",D),n(D,this._state.mask),this.traceSocketEvent("webSocketNodeSocketUnmaskedData",D),this._state.state=1,this._state.readLen=2,this._state.mask=0,this._flowManager.acceptFrame(D,this._state.compressed,!!this._state.fin)}}}async drain(){this.traceSocketEvent("webSocketNodeSocketDrainBegin"),this._flowManager.isProcessingWriteQueue()&&await p.Event.toPromise(this._flowManager.onDidFinishProcessingWriteQueue),await this.socket.drain(),this.traceSocketEvent("webSocketNodeSocketDrainEnd")}}e.WebSocketNodeSocket=o;class b extends f.Disposable{get permessageDeflate(){return!!(this._zlibInflateStream&&this._zlibDeflateStream)}get recordedInflateBytes(){return this._zlibInflateStream?this._zlibInflateStream.recordedInflateBytes:R.VSBuffer.alloc(0)}constructor(v,D,L,O,H,N){super(),this._tracer=v,this._onData=H,this._writeFn=N,this._onError=this._register(new p.Emitter),this.onError=this._onError.event,this._writeQueue=[],this._readQueue=[],this._onDidFinishProcessingReadQueue=this._register(new p.Emitter),this.onDidFinishProcessingReadQueue=this._onDidFinishProcessingReadQueue.event,this._onDidFinishProcessingWriteQueue=this._register(new p.Emitter),this.onDidFinishProcessingWriteQueue=this._onDidFinishProcessingWriteQueue.event,this._isProcessingWriteQueue=!1,this._isProcessingReadQueue=!1,D?(this._zlibInflateStream=this._register(new P(this._tracer,O,L,{windowBits:15})),this._zlibDeflateStream=this._register(new T(this._tracer,{windowBits:15})),this._register(this._zlibInflateStream.onError($=>this._onError.fire($))),this._register(this._zlibDeflateStream.onError($=>this._onError.fire($)))):(this._zlibInflateStream=null,this._zlibDeflateStream=null)}writeMessage(v){this._writeQueue.push(v),this._processWriteQueue()}async _processWriteQueue(){if(!this._isProcessingWriteQueue){for(this._isProcessingWriteQueue=!0;this._writeQueue.length>0;){const v=this._writeQueue.shift();if(this._zlibDeflateStream){const D=await this._deflateMessage(this._zlibDeflateStream,v);this._writeFn(D,!0)}else this._writeFn(v,!1)}this._isProcessingWriteQueue=!1,this._onDidFinishProcessingWriteQueue.fire()}}isProcessingWriteQueue(){return this._isProcessingWriteQueue}_deflateMessage(v,D){return new Promise((L,O)=>{v.write(D),v.flush(H=>L(H))})}acceptFrame(v,D,L){this._readQueue.push({data:v,isCompressed:D,isLastFrameOfMessage:L}),this._processReadQueue()}async _processReadQueue(){if(!this._isProcessingReadQueue){for(this._isProcessingReadQueue=!0;this._readQueue.length>0;){const v=this._readQueue.shift();if(this._zlibInflateStream&&v.isCompressed){const D=await this._inflateFrame(this._zlibInflateStream,v.data,v.isLastFrameOfMessage);this._onData.fire(D)}else this._onData.fire(v.data)}this._isProcessingReadQueue=!1,this._onDidFinishProcessingReadQueue.fire()}}isProcessingReadQueue(){return this._isProcessingReadQueue}_inflateFrame(v,D,L){return new Promise((O,H)=>{v.write(D),L&&v.write(R.VSBuffer.fromByteArray([0,0,255,255])),v.flush(N=>O(N))})}}class P extends f.Disposable{get recordedInflateBytes(){return this._recordInflateBytes?R.VSBuffer.concat(this._recordedInflateBytes):R.VSBuffer.alloc(0)}constructor(v,D,L,O){super(),this._tracer=v,this._recordInflateBytes=D,this._onError=this._register(new p.Emitter),this.onError=this._onError.event,this._recordedInflateBytes=[],this._pendingInflateData=[],this._zlibInflate=(0,A.createInflateRaw)(O),this._zlibInflate.on("error",H=>{this._tracer.traceSocketEvent("zlibInflateError",{message:H?.message,code:H?.code}),this._onError.fire(H)}),this._zlibInflate.on("data",H=>{this._tracer.traceSocketEvent("zlibInflateData",H),this._pendingInflateData.push(R.VSBuffer.wrap(H))}),L&&(this._tracer.traceSocketEvent("zlibInflateInitialWrite",L.buffer),this._zlibInflate.write(L.buffer),this._zlibInflate.flush(()=>{this._tracer.traceSocketEvent("zlibInflateInitialFlushFired"),this._pendingInflateData.length=0}))}write(v){this._recordInflateBytes&&this._recordedInflateBytes.push(v.clone()),this._tracer.traceSocketEvent("zlibInflateWrite",v),this._zlibInflate.write(v.buffer)}flush(v){this._zlibInflate.flush(()=>{this._tracer.traceSocketEvent("zlibInflateFlushFired");const D=R.VSBuffer.concat(this._pendingInflateData);this._pendingInflateData.length=0,v(D)})}}class T extends f.Disposable{constructor(v,D){super(),this._tracer=v,this._onError=this._register(new p.Emitter),this.onError=this._onError.event,this._pendingDeflateData=[],this._zlibDeflate=(0,A.createDeflateRaw)({windowBits:15}),this._zlibDeflate.on("error",L=>{this._tracer.traceSocketEvent("zlibDeflateError",{message:L?.message,code:L?.code}),this._onError.fire(L)}),this._zlibDeflate.on("data",L=>{this._tracer.traceSocketEvent("zlibDeflateData",L),this._pendingDeflateData.push(R.VSBuffer.wrap(L))})}write(v){this._tracer.traceSocketEvent("zlibDeflateWrite",v.buffer),this._zlibDeflate.write(v.buffer)}flush(v){this._zlibDeflate.flush(2,()=>{this._tracer.traceSocketEvent("zlibDeflateFlushFired");let D=R.VSBuffer.concat(this._pendingDeflateData);this._pendingDeflateData.length=0,D=D.slice(0,D.byteLength-4),v(D)})}}function n(m,v){if(v===0)return;const D=m.byteLength>>>2;for(let U=0;U<D;U++){const x=m.readUInt32BE(U*4);m.writeUInt32BE(x^v,U*4)}const L=D*4,O=m.byteLength-L,H=v>>>24&255,N=v>>>16&255,$=v>>>8&255;O>=1&&m.writeUInt8(m.readUInt8(L)^H,L),O>=2&&m.writeUInt8(m.readUInt8(L+1)^N,L+1),O>=3&&m.writeUInt8(m.readUInt8(L+2)^$,L+2)}e.XDG_RUNTIME_DIR=process.env.XDG_RUNTIME_DIR;const a={[2]:107,[1]:103};function l(){const m=(0,t.generateUuid)();if(process.platform==="win32")return`\\\\.\\pipe\\vscode-ipc-${m}-sock`;const v=process.platform!=="darwin"&&e.XDG_RUNTIME_DIR?e.XDG_RUNTIME_DIR:(0,d.tmpdir)(),D=(0,y.join)(v,`vscode-ipc-${m}.sock`);return c(D),D}e.createRandomIPCHandle=l;function i(m,v,D){const L=(0,w.createHash)("md5").update(m).digest("hex");if(process.platform==="win32")return`\\\\.\\pipe\\${L}-${D}-${v}-sock`;const O=D.substr(0,4),H=v.substr(0,6),N=L.substr(0,8);let $;return process.platform!=="darwin"&&e.XDG_RUNTIME_DIR&&!process.env.VSCODE_PORTABLE?$=(0,y.join)(e.XDG_RUNTIME_DIR,`vscode-${N}-${O}-${H}.sock`):$=(0,y.join)(m,`${O}-${H}.sock`),c($),$}e.createStaticIPCHandle=i;function c(m){const v=a[E.platform];typeof v=="number"&&m.length>=v&&console.warn(`WARNING: IPC handle "${m}" is longer than ${v} chars, try a shorter --user-data-dir`)}class _ extends s.IPCServer{static toClientConnectionEvent(v){const D=p.Event.fromNodeEventEmitter(v,"connection");return p.Event.map(D,L=>({protocol:new g.Protocol(new C(L,"ipc-server-connection")),onDidClientDisconnect:p.Event.once(p.Event.fromNodeEventEmitter(L,"close"))}))}constructor(v){super(_.toClientConnectionEvent(v)),this.server=v}dispose(){super.dispose(),this.server&&(this.server.close(),this.server=null)}}e.Server=_;function S(m){return new Promise((v,D)=>{const L=(0,M.createServer)();L.on("error",D),L.listen(m,()=>{L.removeListener("error",D),v(new _(L))})})}e.serve=S;function k(m,v){return new Promise((D,L)=>{const O=(0,M.createConnection)(m,()=>{O.removeListener("error",L),D(g.Client.fromSocket(new C(O,`ipc-client${v}`),v))});O.once("error",L)})}e.connect=k}),define(ye[385],Ce([1,0,75,60,165,115,13,5,14,53,12,136,248,249,103,104,21]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedTunnelsService=e.TunnelService=e.BaseTunnelService=e.NodeRemoteTunnel=void 0;async function h(n,a,l,i,c){let _;for(let S=3;S&&(_?.dispose(),_=await new o(n,a,l,i,c).waitForReady(),!(c&&d.BROWSER_RESTRICTED_PORTS[c]||!d.BROWSER_RESTRICTED_PORTS[_.tunnelLocalPort]));S--);return _}class o extends u.Disposable{constructor(a,l,i,c,_){super(),this.defaultTunnelHost=l,this.suggestedLocalPort=_,this.privacy=C.TunnelPrivacyId.Private,this._socketsDispose=new Map,this._options=a,this._server=w.createServer(),this._barrier=new R.Barrier,this._listeningListener=()=>this._barrier.open(),this._server.on("listening",this._listeningListener),this._connectionListener=S=>this._onConnection(S),this._server.on("connection",this._connectionListener),this._errorListener=()=>{},this._server.on("error",this._errorListener),this.tunnelRemotePort=c,this.tunnelRemoteHost=i}async dispose(){super.dispose(),this._server.removeListener("listening",this._listeningListener),this._server.removeListener("connection",this._connectionListener),this._server.removeListener("error",this._errorListener),this._server.close(),Array.from(this._socketsDispose.values()).forEach(l=>{l()})}async waitForReady(){const a=this.suggestedLocalPort??this.tunnelRemotePort,l=(0,C.isAllInterfaces)(this.defaultTunnelHost)?"0.0.0.0":"127.0.0.1";let i=await(0,d.findFreePortFaster)(a,2,1e3,l),c=null;return this._server.listen(i,this.defaultTunnelHost),await this._barrier.wait(),c=this._server.address(),c||(i=0,this._server.listen(i,this.defaultTunnelHost),await this._barrier.wait(),c=this._server.address()),this.tunnelLocalPort=c.port,this.localAddress=`${this.tunnelRemoteHost==="127.0.0.1"?"127.0.0.1":"localhost"}:${c.port}`,this}async _onConnection(a){a.pause();const l=(0,C.isLocalhost)(this.tunnelRemoteHost)||(0,C.isAllInterfaces)(this.tunnelRemoteHost)?"localhost":this.tunnelRemoteHost,i=await(0,t.connectRemoteAgentTunnel)(this._options,l,this.tunnelRemotePort),c=i.getSocket(),_=i.readEntireBuffer();i.dispose(),_.byteLength>0&&a.write(_.buffer),a.on("end",()=>{a.localAddress&&this._socketsDispose.delete(a.localAddress),c.end()}),a.on("close",()=>c.end()),a.on("error",()=>{a.localAddress&&this._socketsDispose.delete(a.localAddress),c instanceof A.NodeSocket?c.socket.destroy():c.end()}),c instanceof A.NodeSocket?this._mirrorNodeSocket(a,c):this._mirrorGenericSocket(a,c),a.localAddress&&this._socketsDispose.set(a.localAddress,()=>{a.end(),c.end()})}_mirrorGenericSocket(a,l){l.onClose(()=>a.destroy()),l.onEnd(()=>a.end()),l.onData(i=>a.write(i.buffer)),a.on("data",i=>l.write(r.VSBuffer.wrap(i))),a.resume()}_mirrorNodeSocket(a,l){const i=l.socket;i.on("end",()=>a.end()),i.on("close",()=>a.end()),i.on("error",()=>{a.destroy()}),i.pipe(a),a.pipe(i)}}e.NodeRemoteTunnel=o;let b=class extends C.AbstractTunnelService{constructor(a,l,i,c,_){super(l,_),this.remoteSocketFactoryService=a,this.signService=i,this.productService=c}isPortPrivileged(a){return(0,C.isPortPrivileged)(a,this.defaultTunnelHost,p.OS,M.release())}retainOrCreateTunnel(a,l,i,c,_,S,k,m){const v=this.getTunnelFromMap(l,i);if(v)return++v.refcount,v.value;if((0,C.isTunnelProvider)(a))return this.createWithProvider(a,l,i,_,S,k,m);{this.logService.trace(`ForwardedPorts: (TunnelService) Creating tunnel without provider ${l}:${i} on local port ${_}.`);const D={commit:this.productService.commit,quality:this.productService.quality,addressProvider:a,remoteSocketFactoryService:this.remoteSocketFactoryService,signService:this.signService,logService:this.logService,ipcLogger:null},L=h(D,c,l,i,_);return this.logService.trace("ForwardedPorts: (TunnelService) Tunnel created without provider."),this.addTunnelToMap(l,i,L),L}}};e.BaseTunnelService=b,e.BaseTunnelService=b=je([He(0,s.IRemoteSocketFactoryService),He(1,y.ILogService),He(2,g.ISignService),He(3,E.IProductService),He(4,f.IConfigurationService)],b);let P=class extends b{constructor(a,l,i,c,_){super(a,l,i,c,_)}};e.TunnelService=P,e.TunnelService=P=je([He(0,s.IRemoteSocketFactoryService),He(1,y.ILogService),He(2,g.ISignService),He(3,E.IProductService),He(4,f.IConfigurationService)],P);let T=class extends u.Disposable{constructor(a,l,i,c,_){super(),this.remoteSocketFactoryService=a,this.logService=l,this.productService=i,this.signService=c,this.configurationService=_,this._tunnelServices=new Map}async openTunnel(a,l,i,c,_,S,k,m,v){if(this.logService.trace(`ForwardedPorts: (SharedTunnelService) openTunnel request for ${i}:${c} on local port ${S}.`),!this._tunnelServices.has(a)){const D=new P(this.remoteSocketFactoryService,this.logService,this.signService,this.productService,this.configurationService);this._register(D),this._tunnelServices.set(a,D),D.onTunnelClosed(async()=>{(await D.tunnels).length===0&&(D.dispose(),this._tunnelServices.delete(a))})}return this._tunnelServices.get(a).openTunnel(l,i,c,_,S,k,m,v)}};e.SharedTunnelsService=T,e.SharedTunnelsService=T=je([He(0,s.IRemoteSocketFactoryService),He(1,y.ILogService),He(2,E.IProductService),He(3,g.ISignService),He(4,f.IConfigurationService)],T)}),define(ye[386],Ce([1,0,115,266,52,32,2,12,54]),function(ge,e,w,M,d,A,R,u,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CLIServer=e.CLIServerBase=void 0;class f{constructor(t,s,g){this._commands=t,this.logService=s,this._ipcHandlePath=g,this._server=M.createServer((C,r)=>this.onRequest(C,r)),this.setup().catch(C=>(s.error(C),""))}get ipcHandlePath(){return this._ipcHandlePath}async setup(){try{this._server.listen(this.ipcHandlePath),this._server.on("error",t=>this.logService.error(t))}catch{this.logService.error("Could not start open from terminal server.")}return this._ipcHandlePath}onRequest(t,s){const g=(r,h)=>{s.writeHead(r,{"content-type":"application/json"}),s.end(JSON.stringify(h||null),o=>o&&this.logService.error(o))},C=[];t.setEncoding("utf8"),t.on("data",r=>C.push(r)),t.on("end",async()=>{try{const r=JSON.parse(C.join(""));let h;switch(r.type){case"open":h=await this.open(r);break;case"openExternal":h=await this.openExternal(r);break;case"status":h=await this.getStatus(r);break;case"extensionManagement":h=await this.manageExtensions(r);break;default:g(404,`Unknown message type: ${r.type}`);break}g(200,h)}catch(r){const h=r instanceof Error?r.message:JSON.stringify(r);g(500,h),this.logService.error("Error while processing pipe request",r)}})}async open(t){const{fileURIs:s,folderURIs:g,forceNewWindow:C,diffMode:r,mergeMode:h,addMode:o,forceReuseWindow:b,gotoLineMode:P,waitMarkerFilePath:T,remoteAuthority:n}=t,a=[];if(Array.isArray(g))for(const _ of g)try{a.push({folderUri:R.URI.parse(_)})}catch{}if(Array.isArray(s))for(const _ of s)try{(0,p.hasWorkspaceFileExtension)(_)?a.push({workspaceUri:R.URI.parse(_)}):a.push({fileUri:R.URI.parse(_)})}catch{}const l=T?R.URI.file(T):void 0,c={forceNewWindow:C,diffMode:r,mergeMode:h,addMode:o,gotoLineMode:P,forceReuseWindow:b,preferNewWindow:!b&&!l&&!o,waitMarkerFileURI:l,remoteAuthority:n};this._commands.executeCommand("_remoteCLI.windowOpen",a,c)}async openExternal(t){for(const s of t.uris){const g=R.URI.parse(s),C=g.scheme==="file"?g:s;await this._commands.executeCommand("_remoteCLI.openExternal",C)}}async manageExtensions(t){const s=C=>C?.map(r=>/\.vsix$/i.test(r)?R.URI.parse(r):r),g={list:t.list,install:s(t.install),uninstall:s(t.uninstall),force:t.force};return await this._commands.executeCommand("_remoteCLI.manageExtensions",g)}async getStatus(t){return await this._commands.executeCommand("_remoteCLI.getSystemStatus")}dispose(){this._server.close(),this._ipcHandlePath&&process.platform!=="win32"&&d.existsSync(this._ipcHandlePath)&&d.unlinkSync(this._ipcHandlePath)}}e.CLIServerBase=f;let y=class extends f{constructor(t,s){super(t,s,(0,w.createRandomIPCHandle)())}};e.CLIServer=y,e.CLIServer=y=je([He(0,A.IExtHostCommands),He(1,u.ILogService)],y)}),define(ye[387],Ce([1,0,62,374,369,265,39,356,2,15,7,386,98,354,355]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostExtensionService=void 0;class C extends d.RequireInterceptor{_installInterceptor(){const o=this,b=globalThis._VSCODE_NODE_MODULES.module,P=b._load;b._load=function(l,i,c){return l=n(l),o._factories.has(l)?o._factories.get(l).load(l,p.URI.file((0,t.realpathSync)(i.filename)),_=>P.apply(this,[_,i,c])):P.apply(this,arguments)};const T=b._resolveLookupPaths;b._resolveLookupPaths=(a,l)=>T.call(this,n(a),l);const n=a=>{for(const l of o._alternatives){const i=l(a);if(i){a=i;break}}return a}}}class r extends R.AbstractExtHostExtensionService{constructor(){super(...arguments),this.extensionRuntime=y.ExtensionRuntime.Node}async _beforeAlmostReadyToRunExtensions(){this._instaService.createInstance(s.ExtHostConsoleForwarder);const o=this._instaService.invokeFunction(M.createApiFactoryAndRegisterActors);if(this._instaService.createInstance(u.ExtHostDownloadService),this._initData.remote.isRemote&&this._initData.remote.authority){const T=this._instaService.createInstance(E.CLIServer);process.env.VSCODE_IPC_HOOK_CLI=T.ipcHandlePath}this._instaService.createInstance(g.ExtHostDiskFileSystemProvider),await this._instaService.createInstance(C,o,{mine:this._myRegistry,all:this._globalRegistry}).install(),w.mark("code/extHost/didInitAPI");const P=await this._extHostConfiguration.getConfigProvider();await(0,A.connectProxyResolver)(this._extHostWorkspace,P,this,this._logService,this._mainThreadTelemetryProxy,this._initData),w.mark("code/extHost/didInitProxyResolver")}_getEntryPoint(o){return o.main}async _loadCommonJSModule(o,b,P){if(b.scheme!==f.Schemas.file)throw new Error(`Cannot load URI: '${b}', must be of file-scheme`);let T=null;P.codeLoadingStart(),this._logService.trace(`ExtensionService#loadCommonJSModule ${b.toString(!0)}`),this._logService.flush();const n=o?.identifier.value;o&&await this._extHostLocalizationService.initializeLocalizedMessages(o);try{n&&w.mark(`code/extHost/willLoadExtensionCode/${n}`),T=ge.__$__nodeRequire(b.fsPath)}finally{n&&w.mark(`code/extHost/didLoadExtensionCode/${n}`),P.codeLoadingStop()}return T}async $setRemoteEnvironment(o){if(this._initData.remote.isRemote)for(const b in o){const P=o[b];P===null?delete process.env[b]:process.env[b]=P}}}e.ExtHostExtensionService=r}),define(ye[388],Ce([1,0,80,21,4,5,118,14,25,2,31,12,247,84,103,104,385,26,20,67]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeExtHostTunnelService=e.tryFindRootPorts=e.findPorts=e.getRootProcesses=e.loadConnectionTable=e.parseIpAddress=e.loadListeningPorts=e.getSockets=void 0;function P(m){const v=m.trim().split(`
`),D=[];return v.forEach(O=>{const H=/\/proc\/(\d+)\/fd\/\d+ -> socket:\[(\d+)\]/.exec(O);H&&H.length>=3&&D.push({pid:parseInt(H[1],10),socket:parseInt(H[2],10)})}),D.reduce((O,H)=>(O[H.socket]=H,O),{})}e.getSockets=P;function T(...m){const v=[].concat(...m.map(a));return[...new Map(v.filter(D=>D.st==="0A").map(D=>{const L=D.local_address.split(":");return{socket:parseInt(D.inode,10),ip:n(L[0]),port:parseInt(L[1],16)}}).map(D=>[D.ip+":"+D.port,D])).values()]}e.loadListeningPorts=T;function n(m){let v="";if(m.length===8)for(let D=m.length-2;D>=0;D-=2)v+=parseInt(m.substr(D,2),16),D!==0&&(v+=".");else for(let D=0;D<m.length;D+=8){const L=m.substring(D,D+8);let O="";for(let H=8;H>=2;H-=2)O+=L.substring(H-2,H),(H===6||H===2)&&(O=parseInt(O,16).toString(16),v+=`${O}`,O="",D+H!==m.length-6&&(v+=":"))}return v}e.parseIpAddress=n;function a(m){const v=m.trim().split(`
`),D=v.shift().trim().split(/\s+/).filter(O=>O!=="rx_queue"&&O!=="tm->when");return v.map(O=>O.trim().split(/\s+/).reduce((H,N,$)=>(H[D[$]||$]=N,H),{}))}e.loadConnectionTable=a;function l(m){return!!m.match(/.*\.vscode-server-[a-zA-Z]+\/bin.*/)||m.indexOf("out/server-main.js")!==-1||m.indexOf("_productName=VSCode")!==-1}function i(m){const v=m.trim().split(`
`),D=[];return v.forEach(L=>{const O=/^\d+\s+\D+\s+root\s+(\d+)\s+(\d+).+\d+\:\d+\:\d+\s+(.+)$/.exec(L);O&&O.length>=4&&D.push({pid:parseInt(O[1],10),ppid:parseInt(O[2]),cmd:O[3]})}),D}e.getRootProcesses=i;async function c(m,v,D){const L=D.reduce((H,N)=>(H[N.pid]=N,H),{}),O=[];return m.forEach(({socket:H,ip:N,port:$})=>{const U=v[H]?v[H].pid:void 0,x=U?L[U]?.cmd:void 0;U&&x&&!l(x)&&O.push({host:N,port:$,detail:x,pid:U})}),O}e.findPorts=c;function _(m,v,D){const L=new Map,O=i(v);for(const H of m){const N=D.get(H.port);if(N){L.set(H.port,N);continue}const $=O.find(U=>U.cmd.includes(`${H.port}`));if($){let U=$,x;do x=O.find(X=>X.ppid===U.pid),x&&(U=x);while(x);L.set(H.port,{host:H.ip,port:H.port,pid:U.pid,detail:U.cmd,ppid:U.ppid})}else L.set(H.port,{host:H.ip,port:H.port,ppid:Number.MAX_VALUE})}return L}e.tryFindRootPorts=_;let S=class extends b.ExtHostTunnelService{constructor(v,D,L,O){super(v,D,L),this.initData=D,this.signService=O,this._initialCandidates=void 0,this._foundRootPorts=new Map,this._candidateFindingEnabled=!1,u.isLinux&&D.remote.isRemote&&D.remote.authority&&(this._proxy.$setRemoteTunnelService(process.pid),this.setInitialCandidates())}async $registerCandidateFinder(v){if(v&&this._candidateFindingEnabled)return;this._candidateFindingEnabled=v;let D;this._initialCandidates&&(D=this._initialCandidates,await this._proxy.$onFoundNewCandidates(this._initialCandidates));const L=new R.MovingAverage;let O=0;for(;this._candidateFindingEnabled;){const H=new Date().getTime(),N=(await this.findCandidatePorts()).filter(x=>(0,C.isLocalhost)(x.host)||(0,C.isAllInterfaces)(x.host));this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) found candidate ports ${N.map(x=>x.port).join(", ")}`);const $=new Date().getTime()-H;this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) candidate port scan took ${$} ms.`),O++>3&&L.update($),(!D||JSON.stringify(D)!==JSON.stringify(N))&&(D=N,await this._proxy.$onFoundNewCandidates(D));const U=this.calculateDelay(L.value);this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) next candidate port scan in ${U} ms.`),await new Promise(x=>setTimeout(()=>x(),U))}}calculateDelay(v){return Math.max(v*20,2e3)}async setInitialCandidates(){this._initialCandidates=await this.findCandidatePorts(),this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) Initial candidates found: ${this._initialCandidates.map(v=>v.port).join(", ")}`)}async findCandidatePorts(){let v="",D="";try{v=await y.Promises.readFile("/proc/net/tcp","utf8"),D=await y.Promises.readFile("/proc/net/tcp6","utf8")}catch{}const L=T(v,D),O=await new Promise(pe=>{(0,w.exec)("ls -l /proc/[0-9]*/fd/[0-9]* | grep socket:",(le,re,q)=>{pe(re)})}),H=P(O),N=await y.Promises.readdir("/proc"),$=[];for(const pe of N)try{const le=Number(pe),re=p.joinPath(f.URI.file("/proc"),pe);if((await y.Promises.stat(re.fsPath)).isDirectory()&&!isNaN(le)){const oe=await y.Promises.readlink(p.joinPath(re,"cwd").fsPath),ve=await y.Promises.readFile(p.joinPath(re,"cmdline").fsPath,"utf8");$.push({pid:le,cwd:oe,cmd:ve})}}catch{}const U=[],x=L.filter(pe=>{const le=H[pe.socket];return le||U.push(pe),le}),X=c(x,H,$);let K;if(this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) number of possible root ports ${U.length}`),U.length>0){const pe=await new Promise(le=>{(0,w.exec)("ps -F -A -l | grep root",(re,q,oe)=>{le(q)})});this._foundRootPorts=_(U,pe,this._foundRootPorts),K=Array.from(this._foundRootPorts.values()),this.logService.trace(`ForwardedPorts: (ExtHostTunnelService) heuristic ports ${K.map(le=>le.port).join(", ")}`)}return X.then(pe=>K?pe.concat(K):pe)}makeManagedTunnelFactory(v){return async D=>{const L=new r.NodeRemoteTunnel({commit:this.initData.commit,quality:this.initData.quality,logService:this.logService,ipcLogger:null,remoteSocketFactoryService:{_serviceBrand:void 0,async connect(H,N,$,U){const x=await v.makeConnection();return k.connect(x,N,$,U)},register(){throw new Error("not implemented")}},addressProvider:{getAddress(){return Promise.resolve({connectTo:new s.ManagedRemoteConnection(0),connectionToken:v.connectionToken})}},signService:this.signService},"localhost",D.remoteAddress.host||"localhost",D.remoteAddress.port,D.localAddressPort);await L.waitForReady();const O=new d.Emitter;return{localAddress:L.localAddress,remoteAddress:{port:L.tunnelRemotePort,host:L.tunnelRemoteHost},onDidDispose:O.event,dispose:()=>{L.dispose(),O.fire(),O.dispose()}}}}};e.NodeExtHostTunnelService=S,e.NodeExtHostTunnelService=S=je([He(0,o.IExtHostRpcService),He(1,h.IExtHostInitDataService),He(2,E.ILogService),He(3,g.ISignService)],S);class k extends t.ManagedSocket{static connect(v,D,L,O){const H=new A.DisposableStore,N={onClose:H.add(new d.Emitter),onData:H.add(new d.Emitter),onEnd:H.add(new d.Emitter)};H.add(v.onDidReceiveMessage(U=>N.onData.fire(M.VSBuffer.wrap(U)))),H.add(v.onDidEnd(()=>N.onEnd.fire())),H.add(v.onDidClose(U=>N.onClose.fire({type:0,error:U,hadError:!!U})));const $=new k(v,O,N);return $._register(H),(0,t.connectManagedSocket)($,D,L,O,N)}constructor(v,D,L){super(D,L),this.passing=v}write(v){this.passing.send(v.buffer)}closeRemote(){this.passing.end()}async drain(){await this.passing.drain?.()}}}),define(ye[389],Ce([1,0,100,359,371,384,387,388,39,95,93,48,67,90,358,357,12,372,94,260,99,103,251]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h,o,b,P,T,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(0,w.registerSingleton)(p.IExtHostExtensionService,R.ExtHostExtensionService,0),(0,w.registerSingleton)(r.ILoggerService,C.ExtHostLoggerService,1),(0,w.registerSingleton)(r.ILogService,new P.SyncDescriptor(b.ExtHostLogService,[!1],!0)),(0,w.registerSingleton)(T.ISignService,n.SignService,1),(0,w.registerSingleton)(s.IExtensionStoragePaths,g.ExtensionStoragePaths,0),(0,w.registerSingleton)(f.IExtHostSearch,A.NativeExtHostSearch,0),(0,w.registerSingleton)(y.IExtHostTask,d.ExtHostTask,0),(0,w.registerSingleton)(E.IExtHostTerminalService,M.ExtHostTerminalService,0),(0,w.registerSingleton)(t.IExtHostTunnelService,u.NodeExtHostTunnelService,0),(0,w.registerSingleton)(o.IExtHostVariableResolverProvider,h.NodeExtHostVariableResolverProviderService,0)}),define(ye[400],Ce([1,0,75,401,62,8,79,115,135,108,370,21,31,98,13,131,267,285,375,389]),function(ge,e,w,M,d,A,R,u,p,f,y,E,t,s,g,C,r,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(){for(let _=0;_<process.execArgv.length;_++)process.execArgv[_]==="--inspect-port=0"&&(process.execArgv.splice(_,1),_--)}();const o=M(process.argv.slice(2),{boolean:["transformURIs","skipWorkspaceStorageLock"],string:["useHostProxy"]});(function(){const c=globalThis._VSCODE_NODE_MODULES.module,_=c._load;c._load=function(S){if(S==="natives")throw new Error('Either the extension or an NPM dependency is using the [unsupported "natives" node module](https://go.microsoft.com/fwlink/?linkid=871887).');return _.apply(this,arguments)}})();const b=process.exit.bind(process);function P(c){process.exit=function(_){if(c)b(_);else{const S=new Error("An extension called process.exit() and this was prevented.");console.warn(S.stack)}},process.crash=function(){const _=new Error("An extension called process.crash() and this was prevented.");console.warn(_.stack)},process.env.ELECTRON_RUN_AS_NODE="1"}let T=function(c){b()};function n(){const c=(0,h.readExtHostConnection)(process.env);if(c.type===3)return new Promise((_,S)=>{const k=m=>{const v=m[0],D=new R.BufferedEmitter;v.on("message",L=>D.fire(E.VSBuffer.wrap(L.data))),v.on("close",()=>{T("renderer closed the MessagePort")}),v.start(),_({onMessage:D.event,send:L=>v.postMessage(L.buffer)})};process.parentPort.on("message",m=>k(m.ports))});if(c.type===2)return new Promise((_,S)=>{let k=null;const m=setTimeout(()=>{T("VSCODE_EXTHOST_IPC_SOCKET timeout")},6e4),v=108e5,D=3e5,L=new g.ProcessTimeRunOnceScheduler(()=>T("renderer disconnected for too long (1)"),v),O=new g.ProcessTimeRunOnceScheduler(()=>T("renderer disconnected for too long (2)"),D);process.on("message",(N,$)=>{if(N&&N.type==="VSCODE_EXTHOST_IPC_SOCKET"){$.setNoDelay(!0);const U=E.VSBuffer.wrap(Buffer.from(N.initialDataChunk,"base64"));let x;if(N.skipWebSocketFrames)x=new u.NodeSocket($,"extHost-socket");else{const X=E.VSBuffer.wrap(Buffer.from(N.inflateBytes,"base64"));x=new u.WebSocketNodeSocket(new u.NodeSocket($,"extHost-socket"),N.permessageDeflate,X,!1)}k?(L.cancel(),O.cancel(),k.beginAcceptReconnection(x,U),k.endAcceptReconnection(),k.sendResume()):(clearTimeout(m),k=new R.PersistentProtocol({socket:x,initialChunk:U}),k.sendResume(),k.onDidDispose(()=>T("renderer disconnected")),_(k),k.onSocketClose(()=>{L.schedule()}))}if(N&&N.type==="VSCODE_EXTHOST_IPC_REDUCE_GRACE_TIME"){if(O.isScheduled())return;L.isScheduled()&&O.schedule()}});const H={type:"VSCODE_EXTHOST_IPC_READY"};process.send?.(H)});{const _=c.pipeName;return new Promise((S,k)=>{const m=w.createConnection(_,()=>{m.removeListener("error",k);const v=new R.PersistentProtocol({socket:new u.NodeSocket(m,"extHost-renderer")});v.sendResume(),S(v)});m.once("error",k),m.on("close",()=>{T("renderer closed the socket")})})}}async function a(){const c=await n();return new class{constructor(){this._onMessage=new R.BufferedEmitter,this.onMessage=this._onMessage.event,this._terminating=!1,c.onMessage(_=>{(0,f.isMessageOfType)(_,2)?(this._terminating=!0,T("received terminate message from renderer")):this._onMessage.fire(_)})}send(_){this._terminating||c.send(_)}async drain(){if(c.drain)return c.drain()}}}function l(c){return new Promise(_=>{const S=c.onMessage(k=>{S.dispose();const m=JSON.parse(k.toString()),v=m.commit,D=p.default.commit;if(v&&D&&v!==D&&b(55),m.parentPid){let L=0;setInterval(function(){try{process.kill(m.parentPid,0),L=0}catch(H){H&&H.code==="EPERM"?(L++,L>=3&&T(`parent process ${m.parentPid} does not exist anymore (3 x EPERM): ${H.message} (code: ${H.code}) (errno: ${H.errno})`)):T(`parent process ${m.parentPid} does not exist anymore: ${H.message} (code: ${H.code}) (errno: ${H.errno})`)}},1e3);let O;try{O=globalThis._VSCODE_NODE_MODULES["native-watchdog"],O.start(m.parentPid)}catch(H){(0,A.onUnexpectedError)(H)}}c.send((0,f.createMessageOfType)(0)),_({protocol:c,initData:m})});c.send((0,f.createMessageOfType)(1))})}async function i(){const c=[];process.on("unhandledRejection",(L,O)=>{c.push(O),setTimeout(()=>{const H=c.indexOf(O);H>=0&&O.catch(N=>{c.splice(H,1),(0,A.isCancellationError)(N)||(console.warn(`rejected promise not handled within 1 second: ${N}`),N&&N.stack&&console.warn(`stack trace: ${N.stack}`),L&&(0,A.onUnexpectedError)(L))})},1e3)}),process.on("rejectionHandled",L=>{const O=c.indexOf(L);O>=0&&c.splice(O,1)}),process.on("uncaughtException",function(L){(0,A.isSigPipeError)(L)||(0,A.onUnexpectedError)(L)}),d.mark("code/extHost/willConnectToRenderer");const _=await a();d.mark("code/extHost/didConnectToRenderer");const S=await l(_);d.mark("code/extHost/didWaitForInitData");const{initData:k}=S;P(!!k.environment.extensionTestsLocationURI),k.environment.useHostProxy=o.useHostProxy!==void 0?o.useHostProxy!=="false":void 0,k.environment.skipWorkspaceStorageLock=(0,C.boolean)(o.skipWorkspaceStorageLock,!1);const m=new class{constructor(){this.pid=process.pid}exit(O){b(O)}fsExists(O){return t.Promises.exists(O)}fsRealpath(O){return(0,s.realpath)(O)}};let v=null;k.remote.authority&&o.transformURIs&&(v=(0,r.createURITransformer)(k.remote.authority));const D=new y.ExtensionHostMain(S.protocol,k,m,v);T=L=>D.terminate(L)}i().catch(c=>console.log(c))})}).call(this);

//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/82e35eb142bf0f4567ff8c6dd4f16f33abfc2d50/core/vs/workbench/api/node/extensionHostProcess.js.map