@opensumi/cli-engine 3.9.1-next-1766489160.0 → 3.9.1-next-1766569484.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/browser.js +1 -1
- package/package.json +10 -10
package/lib/browser/browser.js
CHANGED
|
@@ -33304,7 +33304,7 @@ ${y}`)}return this.keybindingsChanged.fire({affectsCommands:[f.command]}),{dispo
|
|
|
33304
33304
|
`)&&w.severity===D?(this.treeModel.root.unlinkItem(w),await this.insertItemWithAnsi(w.description+c.output,D,A,S)):await this.insertItemWithAnsi(c.output,D,A,S)}this.fireDidChange()}async clearConsole(){var u;const d=(u=this.treeModel.root.flattenedBranch)===null||u===void 0?void 0:u.map(E=>this.treeModel.root.getTreeNodeById(E));if(d)for(const E of d)this.treeModel.root.unlinkItem(E)}async insertItemWithAnsi(u,d,E,f){var c;const y=await(0,v.handleANSIOutput)(u,this.linkDetector,this.themeService,void 0);this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,(c=this.treeModel)===null||c===void 0?void 0:c.root,this.linkDetector,y,d,E,f))}async execute(u){var d;this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,this.treeModel.root,this.linkDetector,void 0,l.MessageType.Info));const E=new s.DebugConsoleNode({session:this.session},u,(d=this.treeModel)===null||d===void 0?void 0:d.root);await E.evaluate(),this.treeModel.root.insertItem(E),this.fireDidChange()}append(u){var d;if(!u)return;const E=this.resolveChildren().slice(-1)[0];E instanceof s.AnsiConsoleNode&&E.description===this.uncompletedItemContent?(this.resolveChildren().pop(),this.uncompletedItemContent+=u):this.uncompletedItemContent=u,this.treeModel.root.insertItem(new s.AnsiConsoleNode(this.uncompletedItemContent,(d=this.treeModel)===null||d===void 0?void 0:d.root,this.linkDetector,void 0,l.MessageType.Info)),this.fireDidChange()}appendLine(u){var d;this.treeModel.root.insertItem(new s.AnsiConsoleNode(u,(d=this.treeModel)===null||d===void 0?void 0:d.root,this.linkDetector,void 0,l.MessageType.Info)),this.fireDidChange()}};t.DebugConsoleSession=a,n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],a.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.LinkDetector),n.__metadata("design:type",m.LinkDetector)],a.prototype,"linkDetector",void 0),n.__decorate([(0,o.Autowired)(_.IThemeService),n.__metadata("design:type",Object)],a.prototype,"themeService",void 0),t.DebugConsoleSession=a=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__param(0,(0,o.Optional)()),n.__param(1,(0,o.Optional)()),n.__metadata("design:paramtypes",[p.DebugSession,h.DebugConsoleTreeModel])],a)},15153:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleModelService=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(93899),m=e(64582),p=e(58542),s=e(16170),h=e(98650),a=e(32756),g=e(17280),u=e(80390),d=e(75563),E=r.__importDefault(e(80315)),{Path:f}=_.path;let c=n=class{constructor(){this.debugSessionModelMap=new Map,this._changeEventDispatchQueue=[],this.selectedDecoration=new l.Decoration(E.default.mod_selected),this.contextMenuDecoration=new l.Decoration(E.default.mod_actived),this.loadingDecoration=new l.Decoration(E.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new _.Emitter,this.onDidUpdateTreeModelEmitter=new _.Emitter,this.treeModelDisposableCollection=new _.DisposableCollection,this.debugConsoleDisposableCollection=new _.DisposableCollection,this.activeNodeDecoration=(b,A=!0)=>{var S;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),b){if(this.selectedNodes.length>0)for(const D of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(D);this.focusedNode,this.selectedDecoration.addTarget(b),this._focusedNode=b,this._selectedNodes=[b],A&&((S=this.treeModel)===null||S===void 0||S.dispatchChange())}},this.activeNodeActivedDecoration=b=>{var A;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this._focusedNode=void 0),this.contextMenuDecoration.addTarget(b),this._contextMenuNode=b,(A=this.treeModel)===null||A===void 0||A.dispatchChange()},this.enactiveNodeDecoration=()=>{var b;this.focusedNode&&(this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(b=this.treeModel)===null||b===void 0||b.dispatchChange()},this.handleContextMenu=(b,A)=>{var S;b.stopPropagation(),b.preventDefault();const{x:D,y:I}=b.nativeEvent;this.debugContextKey.contextInDebugConsole.set(!0),A?this.activeNodeActivedDecoration(A):this.enactiveNodeDecoration();let w;A?w=A:w=(S=this.treeModel)===null||S===void 0?void 0:S.root;const T=this.contextMenuService.createMenu({id:v.MenuId.DebugConsoleContext,contextKeyService:this.debugContextKey.contextKeyScoped}),R=T.getMergedMenuNodes();T.dispose(),this.ctxMenuRenderer.show({anchor:{x:D,y:I},menuNodes:R,args:[w],onHide:()=>{window.requestAnimationFrame(()=>{this.debugContextKey.contextInDebugConsole.set(!1)})}})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=b=>{this.activeNodeDecoration(b)},this.handleTwistierClick=(b,A)=>{if(A===l.TreeNodeType.CompositeTreeNode){if(h.DebugConsoleNode.is(b)&&b.available){this.activeNodeDecoration(b,!1),this.toggleDirectory(b);return}else if(b.variablesReference){this.activeNodeDecoration(b,!1),this.toggleDirectory(b);return}}this.activeNodeDecoration(b)},this.toggleDirectory=async b=>{b.expanded?this.treeHandle.collapseNode(b):this.treeHandle.expandNode(b)},this.flushEventQueue=()=>{let b;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((S,D)=>{const I=f.pathDepth(S),w=f.pathDepth(D);return I-w});const A=[this._changeEventDispatchQueue[0]];for(const S of this._changeEventDispatchQueue)A.some(D=>S.indexOf(D)===0)||A.push(S);return b=(0,_.pSeries)(A.map(S=>async()=>{var D,I;const w=(I=(D=this.treeModel)===null||D===void 0?void 0:D.root)===null||I===void 0?void 0:I.getTreeNodeByPath(S);return w&&l.CompositeTreeNode.is(w)&&await w.refresh(),null})),this._changeEventDispatchQueue=[],b},this.init()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){var b;return(b=this._activeDebugSessionModel)===null||b===void 0?void 0:b.treeModel}get debugConsoleSession(){var b;return(b=this._activeDebugSessionModel)===null||b===void 0?void 0:b.debugConsoleSession}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}clear(){this.initTreeModel(this.manager.currentSession,!0)}collapseAll(){var b;(b=this.treeModel)===null||b===void 0||b.root.collapsedAll()}copyAll(){var b;let A="";if(!(!(!((b=this.treeModel)===null||b===void 0)&&b.root)||!this.treeModel.root.children)){for(const S of this.treeModel.root.children)A+=this.getValidText(S)+`
|
|
33305
33305
|
`;this.clipboardService.writeText(A.slice(0,-1))}}copy(b){b&&this.clipboardService.writeText(this.getValidText(b))}getValidText(b){return b.description.endsWith(`
|
|
33306
33306
|
`)?b.description.slice(0,-1):b.description}getConsoleModel(b){return this.debugSessionModelMap.get(b)}dispose(){this.disposeTreeModel(),this.disposeDebugConsole()}disposeTreeModel(){this.treeModelDisposableCollection.disposed||this.treeModelDisposableCollection.dispose()}disposeDebugConsole(){this.debugConsoleDisposableCollection.disposed||this.debugConsoleDisposableCollection.dispose()}async init(){this.debugConsoleDisposableCollection.push(this.manager.onDidDestroyDebugSession(b=>{this.debugSessionModelMap.delete(b.id),this.debugSessionModelMap.size>0&&this.initTreeModel(this.manager.currentSession)})),this.debugConsoleDisposableCollection.push(this.manager.onDidChangeActiveDebugSession(b=>{b.current&&this.initTreeModel(b.current)}))}listenTreeViewChange(){this.disposeTreeModel(),this.treeModel&&(this.treeModelDisposableCollection.push(this.treeModel.root.watcher.on(l.TreeNodeEvent.WillResolveChildren,b=>{this.loadingDecoration.addTarget(b)})),this.treeModelDisposableCollection.push(this.treeModel.root.watcher.on(l.TreeNodeEvent.DidResolveChildren,b=>{this.loadingDecoration.removeTarget(b)})))}async initTreeModel(b,A){if(!b){this._activeDebugSessionModel=void 0,this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel);return}const S=b.hasSeparateRepl()?b.id:b.parentSession.id;if(this.debugSessionModelMap.has(S)&&!A){const D=this.debugSessionModelMap.get(S);D?.debugConsoleSession.addChildSession(b),this._activeDebugSessionModel=D}else{const D=new h.DebugConsoleRoot({});if(!D)return;const I=this.injector.get(u.DebugConsoleTreeModel,[D]),w=this.injector.get(d.DebugConsoleSession,[b,I]);this._activeDebugSessionModel={treeModel:I,debugConsoleSession:w},w.onDidChange(async()=>{if(!I)return;const T=I.root.branchSize,R=w.resolveChildren();I.root.updatePresetChildren(R),T!==R.length&&(this.refresh(),I.isScrollBottom&&await this.treeHandle.ensureVisible(R[R.length-1]),I?.dispatchChange())}),this.debugSessionModelMap.set(S,this._activeDebugSessionModel),this.initDecorations(D),this.listenTreeViewChange()}return this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel),this._activeDebugSessionModel}initDecorations(b){this._decorations=new l.DecorationsManager(b),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(b){this._debugWatchTreeHandle=b}dispatchWatchEvent(b,A,S){const D=b.watchEvents.get(A);D&&D.callback&&D.callback(S)}collapsedAll(){var b;(b=this.treeModel)===null||b===void 0||b.root.collapsedAll()}async refresh(b){if(!b)if(this.treeModel)b=this.treeModel.root;else return;!h.ExpressionContainer.is(b)&&b.parent&&(b=b.parent),this.queueChangeEvent(b.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(b,A){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new _.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var S;await this.flushEventQueue(),(S=this.flushEventQueueDeferred)===null||S===void 0||S.resolve(),this.flushEventQueueDeferred=null,A()},n.DEFAULT_REFRESH_DELAY)),this._changeEventDispatchQueue.indexOf(b)===-1&&this._changeEventDispatchQueue.push(b)}async execute(b){if(!this.treeModel)return;const A=this.treeModel.root,S=new s.AnsiConsoleNode(b,A,this.linkDetector);this.dispatchWatchEvent(A,A.path,{type:l.WatchEvent.Added,node:S,id:A.id});const D=new h.DebugConsoleNode({session:this.manager.currentSession},b,A);await D.evaluate(),this.dispatchWatchEvent(A,A.path,{type:l.WatchEvent.Added,node:D,id:A.id}),this.treeHandle.ensureVisible(D,"end",!0)}};t.DebugConsoleModelService=c,c.DEFAULT_REFRESH_DELAY=200,r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],c.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),r.__metadata("design:type",v.ICtxMenuRenderer)],c.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),r.__metadata("design:type",v.AbstractContextMenuService)],c.prototype,"contextMenuService",void 0),r.__decorate([(0,o.Autowired)(a.DebugViewModel),r.__metadata("design:type",a.DebugViewModel)],c.prototype,"viewModel",void 0),r.__decorate([(0,o.Autowired)(_.IContextKeyService),r.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(m.IDebugSessionManager),r.__metadata("design:type",Object)],c.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(_.IClipboardService),r.__metadata("design:type",Object)],c.prototype,"clipboardService",void 0),r.__decorate([(0,o.Autowired)(p.LinkDetector),r.__metadata("design:type",p.LinkDetector)],c.prototype,"linkDetector",void 0),r.__decorate([(0,o.Autowired)(g.DebugContextKey),r.__metadata("design:type",g.DebugContextKey)],c.prototype,"debugContextKey",void 0),t.DebugConsoleModelService=c=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],c)},11456:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleContribution=t.DEBUG_CONSOLE_VIEW_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(98295),v=e(64582),m=e(17280),p=e(4983),s=e(1276),h=e(4161),a=e(35199),g=e(5131);t.DEBUG_CONSOLE_VIEW_ID="debug-console-view";let u=class{registerComponent(E){E.register("debug-console",{id:t.DEBUG_CONSOLE_VIEW_ID,component:g.DebugConsoleView},{title:(0,o.localize)("debug.console.panel.title"),priority:8,containerId:v.DEBUG_CONSOLE_CONTAINER_ID,iconClass:(0,o.getIcon)("debug"),titleComponent:h.DebugConsoleFilterView})}registerToolbarItems(E){E.registerItem({id:v.DEBUG_COMMANDS.CLEAR_CONSOLE.id,command:v.DEBUG_COMMANDS.CLEAR_CONSOLE.id,iconClass:(0,o.getIcon)("clear"),viewId:v.DEBUG_CONSOLE_CONTAINER_ID,tooltip:v.DEBUG_COMMANDS.CLEAR_CONSOLE.label})}registerCommands(E){E.registerCommand(v.DEBUG_COMMANDS.CLEAR_CONSOLE,{execute:()=>{this.debugConsoleModelService.clear()}}),E.registerCommand(v.DEBUG_COMMANDS.COPY_CONSOLE_ITEM,{execute:f=>{this.debugConsoleModelService.copy(f)}}),E.registerCommand(v.DEBUG_COMMANDS.COPY_CONSOLE_ALL,{execute:()=>{this.debugConsoleModelService.copyAll()}}),E.registerCommand(v.DEBUG_COMMANDS.COLLAPSE_ALL_CONSOLE_ITEM,{execute:()=>{this.debugConsoleModelService.collapseAll()},isEnabled:()=>this.debugContextKey.contextInDebugConsole.get()===!0}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_ENTER_EVALUATE,{execute:()=>{this.debugConsoleService.runExecute()}}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_INPUT_DOWN_ARROW,{execute:()=>{this.debugConsoleService.showNextValue()}}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_INPUT_UP_ARROW,{execute:()=>{this.debugConsoleService.showPreviousValue()}}),E.registerCommand(v.DEBUG_COMMANDS.CONSOLE_FILTER_FOCUS,{execute:()=>{this.debugConsoleFilterService.focusInput()}})}registerMenus(E){E.registerMenuItem(l.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.COPY_CONSOLE_ITEM.id,label:(0,o.localize)("debug.console.copy")},group:"copy"}),E.registerMenuItem(l.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.COPY_CONSOLE_ALL.id,label:(0,o.localize)("debug.console.copyAll")},group:"copy"}),E.registerMenuItem(l.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.CLEAR_CONSOLE.id,label:(0,o.localize)("debug.console.clear")},group:"other"}),E.registerMenuItem(l.MenuId.DebugConsoleContext,{command:{id:v.DEBUG_COMMANDS.COLLAPSE_ALL_CONSOLE_ITEM.id,label:(0,o.localize)("debug.console.collapseAll")},group:"other"})}registerKeybindings(E){E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_ENTER_EVALUATE.id,keybinding:"enter",when:`${p.CONTEXT_IN_DEBUG_REPL.raw} && ${p.CONTEXT_IN_DEBUG_MODE.raw}`}),E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_INPUT_DOWN_ARROW.id,keybinding:"down",when:`${p.CONTEXT_IN_DEBUG_REPL.raw} && ${p.CONTEXT_IN_DEBUG_MODE.raw}`}),E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_INPUT_UP_ARROW.id,keybinding:"up",when:`${p.CONTEXT_IN_DEBUG_REPL.raw} && ${p.CONTEXT_IN_DEBUG_MODE.raw}`}),E.registerKeybinding({command:v.DEBUG_COMMANDS.CONSOLE_FILTER_FOCUS.id,keybinding:"ctrlcmd+f",when:`${p.CONTEXT_IN_DEBUG_REPL.raw}`})}};t.DebugConsoleContribution=u,n.__decorate([(0,r.Autowired)(v.IDebugConsoleModelService),n.__metadata("design:type",Object)],u.prototype,"debugConsoleModelService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(a.DebugConsoleService),n.__metadata("design:type",a.DebugConsoleService)],u.prototype,"debugConsoleService",void 0),n.__decorate([(0,r.Autowired)(s.DebugConsoleFilterService),n.__metadata("design:type",s.DebugConsoleFilterService)],u.prototype,"debugConsoleFilterService",void 0),n.__decorate([(0,r.Autowired)(m.DebugContextKey),n.__metadata("design:type",m.DebugContextKey)],u.prototype,"debugContextKey",void 0),t.DebugConsoleContribution=u=n.__decorate([(0,_.Domain)(o.ComponentContribution,o.TabBarToolbarContribution,o.CommandContribution,l.MenuContribution,o.KeybindingContribution)],u)},35199:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConsoleService=void 0;const r=e(85608),o=e(76003),l=e(41869),_=e(43718),v=e(54414),m=e(57517),p=e(63067),s=r.__importStar(e(20868)),h=e(52902),a=e(52416),g=e(54114),u=e(64582),d=e(38029),E=e(17280),f=e(15153),c="consoleinputdecoration",y="debug.console.history",b=18,A=I=>I.replace(/^\S/,w=>w.toUpperCase()),S={...(0,m.getSimpleEditorOptions)(),scrollbar:{horizontal:"visible",vertical:"hidden",handleMouseWheel:!0},acceptSuggestionOnEnter:"on"};let D=n=class{constructor(){this._consoleInputElement=null,this._updateDisposable=null,this._onConsoleInputValueChange=new _.Emitter,this.onConsoleInputValueChange=this._onConsoleInputValueChange.event,this._onInputHeightChange=new _.Emitter,this.onInputHeightChange=this._onInputHeightChange.event}get _isReadonly(){const w=this.manager.currentSession;return!(w&&w.state!==u.DebugState.Inactive)}get isVisible(){const w=this.mainLayoutService.getTabbarHandler(u.DEBUG_CONSOLE_CONTAINER_ID);return w&&w.isVisible}get consoleModel(){return this.debugConsoleModelService}activate(){const w=this.mainLayoutService.getTabbarHandler(u.DEBUG_CONSOLE_CONTAINER_ID);w&&!w.isVisible&&w.activate()}focusInput(){this.inputEditor&&this.inputEditor.monacoEditor.focus()}async init(w){var T;if(!w)return;const R=await this.storageProvider(_.STORAGE_NAMESPACE.DEBUG);if(this.history=new g.HistoryNavigator(new Set(R.get(y,[])),50),!((T=this.inputEditor)===null||T===void 0)&&T.monacoEditor)return;this._consoleInputElement=w,this.inputEditor=this.editorService.createCodeEditor(this._consoleInputElement,{...S,readOnly:!this.contextKeyService.getContextKeyValue(u.CONTEXT_IN_DEBUG_MODE_KEY)}),this.debugContextKey=this.injector.get(E.DebugContextKey,[this.inputEditor.monacoEditor.contextKeyService]),this.contextKeyService.match(u.CONTEXT_IN_DEBUG_MODE_KEY)?this.debugContextKey.contextInDebugMode.set(!0):this.debugContextKey.contextInDebugMode.set(!1),this.contextKeyService.onDidChangeContext(O=>{O.payload.affectsSome(n.keySet)&&(this.contextKeyService.match(u.CONTEXT_IN_DEBUG_MODE_KEY)?(this.updateReadOnly(!1),this.updateInputDecoration(),this.debugContextKey.contextInDebugMode.set(!0)):(this.updateReadOnly(!0),this.debugContextKey&&this.debugContextKey.contextInDebugMode.set(!1)))}),this.registerDecorationType(),await this.createConsoleInput(),this.setMode()}get contextInDebugRepl(){return this.debugContextKey.contextInDebugRepl}get consoleInputValue(){return this._consoleModel&&this._consoleModel.getValue()||""}showPreviousValue(){this._isReadonly||this.navigateHistory(!0)}showNextValue(){this._isReadonly||this.navigateHistory(!1)}async runExecute(){if(!this.inputEditor)return;const w=this.inputEditor.monacoEditor,T=w.getValue();await this.consoleModel.execute(T),this.history.add(T),w.setValue("")}navigateHistory(w){const T=w?this.history.previous():this.history.next();if(T&&this.inputEditor&&this.inputEditor.monacoEditor){const{monacoEditor:R}=this.inputEditor;R.setValue(T),R.setPosition({lineNumber:1,column:T.length+1})}}get consoleInputUri(){return new _.URI("debug/console/input").withScheme(_.Schemes.walkThroughSnippet)}async createConsoleInput(){var w;if(!(!((w=this.inputEditor)===null||w===void 0)&&w.monacoEditor))return;const{monacoEditor:T}=this.inputEditor,M=(await this.documentService.createModelReference(this.consoleInputUri)).instance.getMonacoModel();M.updateOptions({tabSize:2}),this._consoleModel=M,T.setModel(M),setTimeout(()=>{this.layoutBody()},0),T.onDidFocusEditorText(()=>{this.contextInDebugRepl.set(!0),this.updateInputDecoration()}),T.onDidBlurEditorText(()=>{this.contextInDebugRepl.set(!1),this.updateInputDecoration()}),T.onDidChangeModelContent(()=>{const O=T.getModel().getLineCount();this.layoutBody(O*18)}),this.manager.onDidChangeActiveDebugSession(()=>{this.registerCompletion(),this.setMode()}),await this.updateInputDecoration()}layoutBody(w,T){var R;if(!this.inputEditor)return;const{monacoEditor:M}=this.inputEditor,O=Math.max(w||b,M.getContentHeight());M.layout({width:T||((R=this._consoleInputElement)===null||R===void 0?void 0:R.offsetWidth),height:O}),this._onInputHeightChange.fire(O)}updateReadOnly(w){this.inputEditor&&this.inputEditor.monacoEditor.updateOptions({readOnly:w})}async updateInputDecoration(){if(!this.inputEditor)return;const w=[];if(this._isReadonly&&this.inputEditor.monacoEditor.hasTextFocus()&&!this.inputEditor.monacoEditor.getValue()){const T=(0,a.transparent)(a.editorForeground,.4)(await this.themeService.getCurrentTheme());w.push({range:{startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:1},renderOptions:{after:{contentText:(0,l.localize)("debug.console.input.placeholder"),color:T?T.toString():void 0}}})}this.inputEditor.monacoEditor.setDecorationsByType("debug-console-input",c,w)}setMode(){var w;if(!this.inputEditor)return;const T=this.manager.currentSession;if(!T)return;const R=T.currentEditor();R&&this.inputEditor.monacoEditor.getModel().setLanguage((w=R.getModel())===null||w===void 0?void 0:w.getLanguageId())}registerDecorationType(){this.overrideServicesRegistry.getRegisteredService(l.ServiceNames.CODE_EDITOR_SERVICE).registerDecorationType("console-input-decoration",c,{})}registerCompletion(){var w;this._updateDisposable&&(this._updateDisposable.dispose(),this._updateDisposable=null);const T=this.manager.currentSession;if(!T)return;const R=T.currentEditor();R&&(this._updateDisposable=h.monaco.languages.registerCompletionItemProvider((w=R.getModel())===null||w===void 0?void 0:w.getLanguageId(),{_debugDisplayName:"DebugConsoleCompletionProvider",triggerCharacters:["."],provideCompletionItems:async(M,O,x)=>{var k;if(!(!((k=this.manager.currentSession)===null||k===void 0)&&k.capabilities.supportsCompletionsRequest))return;if(M.uri.toString()!==this.consoleInputUri.toString())return null;const F=this.manager.currentSession,{triggerCharacter:L}=x;let N=M.getWordAtPosition(O);if(N&&F){const{word:U,startColumn:W,endColumn:j}=N;return{suggestions:(await F.sendRequest("completions",{text:U,column:j,frameId:F.currentFrame&&F.currentFrame.raw.id})).body.targets.map(G=>({label:G.label,insertText:G.text||G.label,sortText:G.sortText,kind:s.languages.CompletionItemKind[A(G.type||"property")],range:{startLineNumber:O.lineNumber,endLineNumber:O.lineNumber,startColumn:W,endColumn:j}}))}}if(N=M.getWordAtPosition({lineNumber:O.lineNumber,column:O.column-1}),N&&F&&L){const{word:U,endColumn:W}=N;return{suggestions:(await F.sendRequest("completions",{text:U+L,column:W+1,frameId:F.currentFrame&&F.currentFrame.raw.id})).body.targets.map(Q=>({label:Q.label,insertText:Q.text||Q.label,sortText:Q.sortText,kind:s.languages.CompletionItemKind[A(Q.type||"property")],range:{startLineNumber:O.lineNumber,endLineNumber:O.lineNumber,startColumn:W+1,endColumn:W+1}}))}}return null}}))}disable(){var w,T;this._updateDisposable&&(this._updateDisposable.dispose(),this._updateDisposable=null),(w=this.inputEditor)===null||w===void 0||w.monacoEditor.setValue(""),(T=this.inputEditor)===null||T===void 0||T.monacoEditor.setModel(null)}};t.DebugConsoleService=D,D.keySet=new Set([u.CONTEXT_IN_DEBUG_MODE_KEY]),r.__decorate([(0,o.Autowired)(u.IDebugConsoleModelService),r.__metadata("design:type",f.DebugConsoleModelService)],D.prototype,"debugConsoleModelService",void 0),r.__decorate([(0,o.Autowired)(p.IMainLayoutService),r.__metadata("design:type",Object)],D.prototype,"mainLayoutService",void 0),r.__decorate([(0,o.Autowired)(m.IEditorDocumentModelService),r.__metadata("design:type",Object)],D.prototype,"documentService",void 0),r.__decorate([(0,o.Autowired)(v.EditorCollectionService),r.__metadata("design:type",v.EditorCollectionService)],D.prototype,"editorService",void 0),r.__decorate([(0,o.Autowired)(_.CommandRegistry),r.__metadata("design:type",Object)],D.prototype,"commands",void 0),r.__decorate([(0,o.Autowired)(l.IContextKeyService),r.__metadata("design:type",Object)],D.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(u.IDebugSessionManager),r.__metadata("design:type",d.DebugSessionManager)],D.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(a.IThemeService),r.__metadata("design:type",Object)],D.prototype,"themeService",void 0),r.__decorate([(0,o.Autowired)(l.MonacoOverrideServiceRegistry),r.__metadata("design:type",l.MonacoOverrideServiceRegistry)],D.prototype,"overrideServicesRegistry",void 0),r.__decorate([(0,o.Autowired)(l.StorageProvider),r.__metadata("design:type",Function)],D.prototype,"storageProvider",void 0),r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],D.prototype,"injector",void 0),t.DebugConsoleService=D=n=r.__decorate([(0,o.Injectable)()],D)},5131:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_CONSOLE_TREE_FIELD_NAME=t.DEBUG_CONSOLE_TREE_NODE_HEIGHT=t.DebugConsoleRenderedNode=t.DebugConsoleView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=e(41869),v=e(43718),m=e(72260),p=e(64582),s=e(58542),h=e(5905),a=e(16170),g=e(1276),u=n.__importDefault(e(80315)),d=e(35199),E=({viewState:c})=>{const y=(0,_.useInjectable)(d.DebugConsoleService),b=(0,_.useInjectable)(g.DebugConsoleFilterService),A=(0,_.useInjectable)(_.PreferenceService),{consoleModel:S}=y,{height:D,width:I}=c,[w,T]=o.default.useState(),[R,M]=o.default.useState(26),[O,x]=o.default.useState(""),[k,F]=o.default.useState(!0),L=o.default.useRef(null),N=o.default.useRef(null),U=(0,_.useInjectable)(m.IMainLayoutService),W=(0,_.useDesignStyles)(u.default.debug_console_output,"debug_console_output"),j=(0,_.useDesignStyles)(u.default.variable_repl_bar,"variable_repl_bar");o.default.useEffect(()=>{if(L&&L.current){const oe=U.getTabbarHandler(p.DEBUG_CONSOLE_CONTAINER_ID);if(oe?.isActivated())y.init(L.current);else{const he=oe?.onActivate(()=>{y.init(L.current),he?.dispose()})}}},[L.current]),o.default.useEffect(()=>{const oe=new v.Disposable;return oe.addDispose(S.onDidUpdateTreeModel(async he=>{he&&await he.treeModel.ensureReady,T(he)})),oe.addDispose(b.onDidValueChange(he=>{x(he)})),oe.addDispose(y.onInputHeightChange(he=>{M(he)})),oe.addDispose(A.onSpecificPreferenceChange("debug.console.wordWrap",he=>{const{newValue:me}=he;F(me)})),F(!!A.get("debug.console.wordWrap",k)),()=>{S.removeNodeDecoration(),oe.dispose()}},[]);const Q=oe=>{S.handleTreeHandler({...oe,getModel:()=>w?.treeModel,hasDirectFocus:()=>N.current===document.activeElement})},G=(oe,he,me)=>{const q=window.getSelection();q&&q.type==="Range"&&q.rangeCount>0&&oe.stopPropagation();const{handleTwistierClick:Ae}=S;he&&Ae(he,me)},Z=(oe,he)=>{const{handleContextMenu:me}=S;me(oe,he)},$=oe=>{const{handleContextMenu:he}=S;he(oe)},V=oe=>{const{enactiveNodeDecoration:he}=S;he(),y.focusInput()},H=oe=>{const{enactiveNodeDecoration:he}=S;he()},K=()=>"filter",Y=()=>({pre:"<match>",post:"</match>",extract:oe=>oe.description?oe.description:oe.name}),X=o.default.useCallback(oe=>{const he=S.decorations.getDecorations(oe.item);return o.default.createElement(t.DebugConsoleRenderedNode,{item:oe.item,itemType:oe.itemType,decorations:he,filterValue:O,filterMode:K(),onClick:G,onTwistierClick:G,onContextMenu:Z,defaultLeftPadding:14,isWordWrap:k,leftPadding:8})},[w,O,k]),re=()=>w?o.default.createElement(l.RecycleTree,{height:Math.max(D-R,26),width:I,itemHeight:t.DEBUG_CONSOLE_TREE_NODE_HEIGHT,onReady:Q,overScanCount:10,filter:K()==="filter"?O:"",filterProvider:{fuzzyOptions:Y,filterAlways:!0},model:w.treeModel,overflow:"auto",supportDynamicHeights:k},X):null;return o.default.createElement("div",{className:u.default.debug_console,onContextMenu:$,onClick:V},o.default.createElement("div",{className:W,tabIndex:-1,onBlur:H,ref:N,"data-name":t.DEBUG_CONSOLE_TREE_FIELD_NAME},re()),o.default.createElement("div",{className:j,style:{maxHeight:D-26+"px"}},o.default.createElement("div",{className:u.default.variable_repl_bar_icon},o.default.createElement("span",{className:(0,_.getIcon)("right")})),o.default.createElement("div",{className:u.default.variable_repl_editor,ref:L})))};t.DebugConsoleView=E;const f=({item:c,decorations:y,defaultLeftPadding:b,leftPadding:A,filterMode:S,filterValue:D,onClick:I,onTwistierClick:w,onContextMenu:T,isWordWrap:R,itemType:M})=>{const O=(0,_.useInjectable)(g.DebugConsoleFilterService),x=(0,_.useInjectable)(s.LinkDetector),[k,F]=o.default.useState(),L=(0,_.useDesignStyles)(u.default.expansion_toggle,"expansion_toggle");o.default.useEffect(()=>{const X=window.getComputedStyle(a.AnsiConsoleNode.is(c)?c.el:x.linkify(c.description),null),re=`${X.fontStyle} ${X.fontWeight} ${X.fontSize}/${X.lineHeight} ${X.fontFamily}`;F(re)},[c]);const N=X=>{I(X,c,l.CompositeTreeNode.is(c)?l.TreeNodeType.CompositeTreeNode:l.TreeNodeType.TreeNode)},U=X=>{X.nativeEvent.which!==0&&(M===l.TreeNodeType.TreeNode||M===l.TreeNodeType.CompositeTreeNode)&&T&&T(X,c,M)},W=()=>a.AnsiConsoleNode.is(c)?"":(a.DebugConsoleNode.is(c)?"":c.name)+(c.description&&!a.DebugConsoleNode.is(c)?": ":""),j=(X,re)=>h.CharWidthReader.getInstance().getCharWidth(X,re),Q=o.default.useCallback(()=>{if(!k)return;const X=W()+c.description,re=O.findMatches(X||""),oe=ge=>Number(ge.toFixed(4)),he=(ge,te)=>Array.from({length:te},(fe,Oe)=>Oe).reduce((fe,Oe)=>fe+oe(j(X.charAt(ge+Oe),k)),0),me=new Map,q=(ge,te)=>{if(ge>0){const fe=(Me,Pe,Be)=>Array.from({length:Me-Pe},(De,_e)=>Pe+_e).reduce((De,_e)=>oe(De+j(X.charAt(_e),k)),Be);let Oe;if(te!==0&&me.has(re[te].startIndex)){const Me=me.get(re[te].startIndex);Oe=fe(ge,Me.startIndex,Me.left)}else Oe=fe(ge,0,0);return me.set(ge,{startIndex:ge,left:Oe}),Oe}return 0};return re.map((ge,te)=>({height:16,top:3,width:he(ge.startIndex,ge.count),left:q(ge.startIndex,Math.max(0,te-1))})).map(ge=>o.default.createElement("div",{key:ge.left,className:u.default.block,style:ge}))},[D,k]),G=X=>a.AnsiConsoleNode.is(X)||X instanceof a.DebugConsoleNode&&X.variablesReference===0?null:o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,!a.DebugConsoleNode.is(X)&&u.default.debug_console_node_displayname,u.default.debug_console_variable,c.description?u.default.name:u.default.info)},o.default.createElement(a.TreeWithLinkWrapper,{html:x.linkify(W())})),Z=X=>{const re=/^true|false$/i,oe=/^(['"]).*\1$/,he=X.description||"",me=[u.default.debug_console_variable];return a.AnsiConsoleNode.is(X)?o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,u.default.debug_console_node_displayname)},X.template()):(c.variableType==="number"||c.variableType==="boolean"||c.variableType==="string"?me.push(u.default[c.variableType]):isNaN(+he)?re.test(he)?me.push(u.default.boolean):oe.test(he)&&me.push(u.default.string):me.push(u.default.number),o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment_grow,u.default.debug_console_node_description,...me)},o.default.createElement(a.TreeWithLinkWrapper,{html:x.linkify(he)})))},$=()=>o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,u.default.debug_console_node_tail)},V()),V=()=>{var X,re,oe;return a.AnsiConsoleNode.is(c)?o.default.createElement("div",{className:u.default.debug_console_node_status,title:(X=c.source)===null||X===void 0?void 0:X.path},!((re=c.source)===null||re===void 0)&&re.name?`${(oe=c.source)===null||oe===void 0?void 0:oe.name}:${c.line}`:""):o.default.createElement("div",{className:u.default.debug_console_node_status},c.badge)},H=()=>c.tooltip,K=(X,re)=>{const oe=he=>{re(he,X,M)};return y&&y?.classlist.indexOf(u.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_segment,L)},o.default.createElement(l.Loading,null)):X instanceof a.DebugConsoleNode&&X.variablesReference===0?null:o.default.createElement("div",{onClick:oe,className:(0,r.default)(u.default.debug_console_node_segment,L,(0,_.getIcon)("right"),{[`${u.default.mod_collapsed}`]:!X.expanded})})},Y=X=>{if(l.CompositeTreeNode.is(X))return K(X,w)};return o.default.createElement("div",{key:c.id,onClick:N,onContextMenu:U,title:H(),className:(0,r.default)(u.default.debug_console_node,y?y.classlist:null),style:{paddingLeft:`${(b||8)+(c.depth||0)*(A||0)}px`},"data-id":c.id},o.default.createElement("div",{className:(0,r.default)(u.default.debug_console_node_content)},Y(c),o.default.createElement("div",{className:u.default.debug_console_node_overflow_wrap,style:{whiteSpace:R?"pre-wrap":"nowrap",cursor:c instanceof a.DebugVariableContainer?"pointer":"initial"}},G(c),Z(c)),$()),o.default.createElement("div",{className:u.default.debug_console_selection},S==="matcher"&&Q()))};t.DebugConsoleRenderedNode=f,t.DEBUG_CONSOLE_TREE_NODE_HEIGHT=22,t.DEBUG_CONSOLE_TREE_FIELD_NAME="DEBUG_CONSOLE_TREE_FIELD"},32756:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugViewModel=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(26296),_=e(38029);let v=class{constructor(){this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.onDidChangeBreakpointsEmitter=new o.Emitter,this.onDidChangeBreakpoints=this.onDidChangeBreakpointsEmitter.event,this.toDispose=new o.DisposableCollection(this.onDidChangeEmitter,this.onDidChangeBreakpointsEmitter),this._sessions=new Set}fireDidChange(){this.onDidChangeEmitter.fire(void 0)}fireDidChangeBreakpoints(p){this.onDidChangeBreakpointsEmitter.fire(p)}get sessions(){return this._sessions.values()}get sessionCount(){return this._sessions.size}push(p){this._sessions.has(p)||(this._sessions.add(p),this.fireDidChange())}delete(p){return this._sessions.delete(p)?(this.fireDidChange(),!0):!1}get session(){return this.sessions.next().value}get id(){return this.session&&this.session.id||"-1"}get label(){return this.session&&this.session.label||"Unknown Session"}has(p){return!!p&&this._sessions.has(p)}init(p){p&&this.push(p),this.toDispose.push(this.manager.onDidChangeActiveDebugSession(({previous:s,current:h})=>{this.has(s)&&!this.has(h)&&this.fireDidChange()})),this.toDispose.push(this.manager.onDidChange(s=>{this.has(s)&&this.fireDidChange()})),this.toDispose.push(this.manager.onDidDestroyDebugSession(s=>{this.has(s)&&this.fireDidChange()}))}dispose(){this.toDispose.dispose()}get threads(){if(this.manager.currentSession)return this.manager.currentSession.getThreads(()=>!0)}get currentSession(){const{currentSession:p}=this.manager;return this.has(p)&&p||this.session}set currentSession(p){this.manager.updateCurrentSession(p)}get state(){const{currentSession:p}=this;return p&&p.state||l.DebugState.Inactive}get currentThread(){const{currentSession:p}=this;return p&&p.currentThread}get currentFrame(){const{currentThread:p}=this;return p&&p.currentFrame}async start(){const{session:p}=this;if(!p)return;const s=await this.manager.start(p.options);s&&(this._sessions.delete(p),this._sessions.add(s),this.fireDidChange())}async restart(){const{currentSession:p}=this;if(!p)return;const s=await this.manager.restart(p);s!==p&&(this._sessions.delete(p),this._sessions.add(s)),this.fireDidChange()}report(p,s,h){return this.manager.report(p,s,h)}reportTime(p,s){return this.manager.reportTime(p,s)}reportAction(p,s,h){return this.manager.reportAction(p,s,h)}};t.DebugViewModel=v,n.__decorate([(0,r.Autowired)(l.IDebugSessionManager),n.__metadata("design:type",_.DebugSessionManager)],v.prototype,"manager",void 0),t.DebugViewModel=v=n.__decorate([(0,r.Injectable)()],v)},36120:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackFramesView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(64582),m=e(91797),p=e(50755),s=n.__importDefault(e(12920)),h=e(85294),a=g=>{const{viewState:u,frames:d,thread:E,indent:f=0,session:c,isBottom:y}=g,[b,A]=(0,o.useState)(),[S,D]=(0,o.useState)(!1),[I,w]=(0,o.useState)([]),[T,R]=(0,o.useState)(""),[M,O]=(0,o.useState)(!1),x=(0,_.useInjectable)(v.IDebugSessionManager),k=(0,o.useRef)([]),F=(0,_.useInjectable)(h.DebugCallStackService),L=(0,o.useCallback)(async()=>{var K,Y;if(!E)return;const X=typeof((K=E.stoppedDetails)===null||K===void 0?void 0:K.totalFrames)=="number"?((Y=E.stoppedDetails)===null||Y===void 0?void 0:Y.totalFrames)-E.frameCount:void 0,re=await E.fetchFrames(X);j(re)},[I]),N=K=>{K&&K.source&&K.source.open({},K)},U=(0,o.useCallback)(K=>{const Y=k.current.slice(0);let X=-1;K.nextFrame?X=Y.findIndex(re=>{var oe;return p.DebugStackFrame.is(re)&&re.id===((oe=K.nextFrame)===null||oe===void 0?void 0:oe.id)}):X=Y.length,X>-1&&(Y.splice(X-1,1,...K.frames),k.current=Y,w(Y))},[k.current,I]),W=(0,o.useCallback)((K,Y)=>{var X,re,oe,he;const me=Y.length;let q=-1,Ae=K.length>0?K[K.length+q]:void 0;for(;Ae&&!p.DebugStackFrame.is(Ae);)q-=1,Ae=K[K.length+q];const ge=K.slice(0,K.length+q+1),te=Ae?Y.findIndex(Pe=>Pe.id===Ae?.id)+1:0;let fe=[],Oe,Me=!1;for(let Pe=te;Pe<me;Pe++)if(!((X=Y[Pe].source)===null||X===void 0)&&X.raw.origin)if(Me)if(Oe===((re=Y[Pe].source)===null||re===void 0?void 0:re.raw.origin)){fe.push(Y[Pe]);continue}else fe.length>1?(ge.push(new p.ShowMoreDebugStackFrame(Y[Pe],fe,c,Oe,U)),q-=fe.length-1):ge.push(fe[0]),fe=[],Me=!1,Oe=(oe=Y[Pe].source)===null||oe===void 0?void 0:oe.raw.origin,fe.push(Y[Pe]);else Me=!0,fe.push(Y[Pe]),Oe=(he=Y[Pe].source)===null||he===void 0?void 0:he.raw.origin;else Me&&fe.length>0&&(fe.length>1?(ge.push(new p.ShowMoreDebugStackFrame(Y[Pe],fe,c,Oe,U)),q-=fe.length-1):ge.push(fe[0]),fe=[],Me=!1),ge.push(Y[Pe]);return Me&&fe.length>0&&(fe.length>1?ge.push(new p.ShowMoreDebugStackFrame(void 0,fe,c,Oe,U)):ge.push(fe[0])),ge},[]),j=(0,o.useCallback)(K=>{k.current=W(k.current,K),w(k.current)},[I,W]),Q=(0,o.useCallback)(K=>{A(K)},[b]);(0,o.useEffect)(()=>{j([...d]);const K=new _.DisposableCollection;return K.push(x.onDidChangeActiveDebugSession(({previous:Y})=>{Y&&Y!==E.session&&Q(void 0)})),()=>{K.dispose()}},[]),(0,o.useEffect)(()=>{if(E){const K=E.frames.find(Y=>!!Y.source);K&&(Q(K.raw.id),N(K))}},[E.frameCount]),(0,o.useEffect)(()=>{if(E)if(E.stoppedDetails){const{framesErrorMessage:K,totalFrames:Y}=E.stoppedDetails;R(K||""),Y&&Y>E.frameCount?O(!0):O(!1)}else O(!1);else O(!1)},[I]);const G=({data:K})=>{const Y=K,X=p.DebugStackFrame.is(Y)&&Y.raw.presentationHint==="label",re=p.DebugStackFrame.is(Y)&&(0,m.isFrameDeemphasized)(Y.raw),oe=(0,o.useCallback)(()=>{if(!X){if(!p.DebugStackFrame.is(Y)){Y.open();return}x.updateCurrentSession(Y.session),Y.session.currentThread=Y.thread,Q(Y.raw.id),N(Y)}},[K]),he=Ae=>{Ae.preventDefault(),Ae.stopPropagation(),p.DebugStackFrame.is(Y)&&Y.canRestart&&Y.restart()},me={paddingLeft:`${f}px`};p.DebugStackFrame.is(Y)&&re&&(me.color="var(--list-deemphasizedForeground)");const q=(0,o.useCallback)(Ae=>p.DebugStackFrame.is(Ae)?o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:(0,r.default)(s.default.debug_stack_frames_item_label,X&&s.default.label,(!Ae.source||!Ae.source.available||re)&&s.default.disabled,Ae.canRestart&&s.default.debug_stack_frames_can_restart)},Ae.raw&&Ae.raw.name),!X&&o.default.createElement("span",{className:s.default.debug_stack_frames_item_description},Ae.raw&&Ae.raw.source&&(Ae.raw.source.name||Ae.raw.source.path)||(0,_.localize)("debug.stack.frame.noSource")),o.default.createElement(o.default.Fragment,null,Ae.canRestart&&o.default.createElement("a",{title:"",onClick:ge=>he(ge),className:(0,r.default)(s.default.debug_restart_frame_icon,(0,_.getIcon)("debug-restart-frame"))}),!X&&!re&&o.default.createElement("div",{className:(0,r.default)(!(0,_.isUndefined)(Ae.raw.line)&&s.default.debug_stack_frames_item_badge)},Ae.raw&&Ae.raw.line,!(0,_.isUndefined)(Ae.raw.line)&&":",Ae.raw&&Ae.raw.column))):o.default.createElement("span",{className:s.default.debug_stack_frames_load_more},Ae.name),[]);return o.default.createElement("div",{style:me,className:(0,r.default)(s.default.debug_stack_frames_item,X&&s.default.is_label,p.DebugStackFrame.is(Y)&&b===Y.raw.id&&s.default.selected,p.DebugStackFrame.is(Y)&&!(Y.raw&&Y.raw.source&&Y.raw.source.name)&&s.default.debug_stack_frames_item_hidden),onClick:oe,onContextMenu:Ae=>F.handleContextMenu(Ae,K)},q(Y))},Z=(0,o.useCallback)(()=>{const K=async()=>{D(!0),await L(),D(!1)};return o.default.createElement("div",{className:s.default.debug_stack_frames_item,onClick:K},o.default.createElement("span",{className:s.default.debug_stack_frames_load_more},(0,_.localize)("debug.stack.loadMore")))},[S,L]),$=(0,o.useCallback)(()=>o.default.createElement("div",{className:s.default.debug_stack_frames_item},o.default.createElement("span",{className:s.default.debug_stack_frames_load_more},(0,_.localize)("debug.stack.loading"))),[]),V=(0,o.useCallback)(K=>o.default.createElement("div",{className:s.default.debug_stack_frames_item},o.default.createElement("span",{className:s.default.debug_stack_frames_error_message,title:K},K)),[]);if(T)return o.default.createElement("div",{className:s.default.debug_stack_frames},V(T));const H=(0,o.useCallback)(()=>S?$():M?Z():null,[S,M]);return o.default.createElement(l.RecycleList,{data:I,template:G,itemHeight:22,width:u.width,height:(S||M?(I.length+1)*22:I.length*22)+(y?10:0),footer:S||M?H:void 0})};t.DebugStackFramesView=a},75651:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackSessionView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(64582),v=e(8701),m=n.__importDefault(e(12920)),p=e(61520),s=e(85294),h=a=>{const{session:g,viewState:u}=a,d=(0,l.useInjectable)(_.IDebugSessionManager),E=(0,l.useInjectable)(s.DebugCallStackService),[f,c]=(0,o.useState)([]),[y,b]=(0,o.useState)([]),[A,S]=(0,o.useState)([]),[D,I]=(0,o.useState)([]),[w,T]=(0,o.useState)(!0),[R,M]=(0,o.useState)(!1),[O,x]=(0,o.useState)(!0),k=d.sessions.length>1,F=g.supportsThreadIdCorrespond,L=(0,o.useRef)(!1),N=()=>{var Z,$;const V=d.sessions.filter(K=>K.parentSession),H=[];for(;V[0];)(($=d.getSession((Z=V[0].parentSession)===null||Z===void 0?void 0:Z.id))===null||$===void 0?void 0:$.id)===g.id&&H.push(V[0]),V.shift();return H},U=async()=>{x(!0);const Z=await g.fetchThreads();x(!1),b(Z)};(0,o.useEffect)(()=>{const Z=new l.DisposableCollection;return Z.push(d.onDidCreateDebugSession(()=>{if(L.current)return;const $=N();I($)})),Z.push(d.onDidDestroyDebugSession(()=>{if(L.current)return;const $=N();I($)})),()=>{L.current=!0,Z.dispose()}},[]);const W=(0,o.useCallback)(Z=>{c(Z)},[f]),j=(0,o.useCallback)(Z=>{S(Z)},[A]);(0,o.useEffect)(()=>{W(Array.from(g.threads));const Z=new l.DisposableCollection;return Z.push(g.onDidChange(()=>{W([...g.threads])})),Z.push(g.onDidThread(async({body:{reason:$}})=>{g.supportsThreadIdCorrespond&&g.state===_.DebugState.Stopped&&$==="started"&&await U()})),Z.push(g.onDidStop(async()=>{if(!g.supportsThreadIdCorrespond)return;const $=Array.from(g.multipleThreadPaused.values());j($),await U()})),Z.push(g.onDidContinued(async()=>{if(!g.supportsThreadIdCorrespond)return;const $=Array.from(g.multipleThreadPaused.values());j($)})),()=>{Z.dispose()}},[]);const Q=()=>{if(g.state!==_.DebugState.Stopped)return null;if(F&&w)return O?o.default.createElement("div",{className:m.default.debug_stack_item_loading},o.default.createElement("span",null,(0,l.localize)("debug.stack.loading"))):y.map((Z,$)=>!g.hasInMultipleThreadPaused(Z.raw.id)&&o.default.createElement(v.DebugStackThreadView,{key:Z.id,indent:k?16:0,viewState:u,thread:Z,session:g,isBottom:$===y.length-1}))};if((Z=>{if(Z.threads.some(V=>V.frameCount>0))return!1;const $=N();return!($.length!==1||!$[0].compact)})(g)){const Z=N();return o.default.createElement("div",{className:m.default.debug_stack_item},Z.map($=>o.default.createElement(t.DebugStackSessionView,{key:$.id,viewState:u,session:$,indent:1})))}return o.default.createElement("div",{className:m.default.debug_stack_item,onContextMenu:Z=>E.handleContextMenu(Z,g)},k&&o.default.createElement("div",{className:m.default.debug_stack_item_label,onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1)},F||f.length>0?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:w?(0,l.getIcon)("arrow-down"):(0,l.getIcon)("arrow-right"),onClick:()=>T(!w)}),o.default.createElement("div",{className:(0,r.default)([(0,l.getIcon)("debug"),m.default.debug_session_icon])})):o.default.createElement("div",{style:{width:30}}),o.default.createElement("div",{className:m.default.debug_stack_item_label_title},g.label),R&&o.default.createElement(p.DebugStackOperationView,{session:g})),F&&w?A.map((Z,$)=>o.default.createElement(v.DebugStackThreadView,{key:Z.id,indent:k?16:0,viewState:u,thread:Z,session:g,isBottom:$===A.length-1})):null,!F&&(!k||w)&&f.map((Z,$)=>o.default.createElement(v.DebugStackThreadView,{key:Z.id,indent:k?16:0,viewState:u,thread:Z,session:g,isBottom:$===f.length-1})),D.length>0&&D.map(Z=>w&&o.default.createElement(t.DebugStackSessionView,{key:Z.id,viewState:u,session:Z,indent:1})),Q())};t.DebugStackSessionView=h},8701:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackThreadView=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(97267),l=e(41869),_=e(64582),v=e(36120),m=n.__importDefault(e(12920)),p=e(61520),s=e(85294),h=a=>{var g;const{thread:u,viewState:d,indent:E,session:f,isBottom:c}=a,y=(0,l.useInjectable)(_.IDebugSessionManager),b=(0,l.useInjectable)(s.DebugCallStackService),[A,S]=(0,r.useState)(!0),[D,I]=(0,r.useState)(u.frames),w=y.sessions.length>1,T=!((g=y.currentSession)===null||g===void 0)&&g.supportsThreadIdCorrespond?!0:y.sessions.length>1||y.sessions[0]&&y.sessions[0].threadCount>1,R=(0,r.useCallback)(O=>{S(O)},[A]);(0,r.useEffect)(()=>{const O=new l.DisposableCollection;return O.push(f.onDidChangeCallStack(()=>{I(u.frames),u.stopped&&y.currentThread&&y.currentThread.id===u.id?R(!0):R(!1)})),()=>{O.dispose()}},[]);const M=u.stopped&&u.stoppedDetails?u.raw.id===u.stoppedDetails.threadId?`${(0,l.localize)("debug.stack.frame.because")} ${u.stoppedDetails.reason} ${(0,l.localize)("debug.stack.frame.stopped")}`:(0,l.localize)("debug.stack.frame.stopped"):(0,l.localize)("debug.stack.frame.running");return r.default.createElement("div",{className:m.default.debug_stack_item,onContextMenu:O=>b.handleContextMenu(O,u)},T&&r.default.createElement("div",{style:{paddingLeft:`${E}px`},className:m.default.debug_stack_item_label},u.frames.length>0?r.default.createElement("div",{className:A?(0,l.getIcon)("arrow-down"):(0,l.getIcon)("arrow-right"),onClick:()=>S(!A)}):r.default.createElement("div",{style:{width:14}}),r.default.createElement("div",{className:m.default.debug_threads_item},u.raw.name),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:m.default.debug_threads_operation},r.default.createElement(p.DebugStackOperationView,{thread:u})),r.default.createElement("span",{className:m.default.debug_threads_description},r.default.createElement(o.Badge,null,M.toUpperCase())))),(!T||A)&&u.frames.length>0&&r.default.createElement(v.DebugStackFramesView,{indent:T?w?38:30:8,isBottom:c,viewState:d,thread:u,frames:D,session:f}))};t.DebugStackThreadView=h},37243:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(64582),v=e(4983),m=e(26296),p=e(38029);function s(g){return g&&typeof g.sessionId=="string"&&typeof g.threadId=="string"&&typeof g.frameId=="string"}function h(g,u){if(s(u)){const d=g.getSession(u.sessionId);if(d){const E=[d.currentThread,...d.threads].find(f=>f.id===u.threadId);if(E)return E.frames.find(f=>f.id===u.frameId)}}}let a=class{registerCommands(u){u.registerCommand(_.DEBUG_COMMANDS.RESTART_FRAME,{execute:async(d,E)=>{const f=h(this.debugSessionManager,E);f&&await f.restart()}}),u.registerCommand(_.DEBUG_COMMANDS.COPY_STACK_TRACE,{execute:async(d,E)=>{const f=h(this.debugSessionManager,E);if(f){const c=f.thread.frames.map(y=>`${y.raw&&y.raw.name} (${y.raw&&y.raw.source&&y.raw.source.path}:${y.raw&&y.raw.line})`);this.clipboardService.writeText(c.join(`
|
|
33307
|
-
`))}}})}registerMenus(u){u.registerMenuItem(l.MenuId.DebugCallStackContext,{command:{id:_.DEBUG_COMMANDS.RESTART_FRAME.id,label:(0,o.localize)("debugger.menu.restartFrame")},when:`${v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame")} && ${v.CONTEXT_RESTART_FRAME_SUPPORTED.raw}`,enabledWhen:v.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.raw,order:10}),u.registerMenuItem(l.MenuId.DebugCallStackContext,{command:{id:_.DEBUG_COMMANDS.COPY_STACK_TRACE.id,label:(0,o.localize)("debugger.menu.copyCallstack")},when:v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame"),order:20})}};t.DebugCallStackContribution=a,n.__decorate([(0,r.Autowired)(m.IDebugSessionManager),n.__metadata("design:type",p.DebugSessionManager)],a.prototype,"debugSessionManager",void 0),n.__decorate([(0,r.Autowired)(o.IClipboardService),n.__metadata("design:type",Object)],a.prototype,"clipboardService",void 0),t.DebugCallStackContribution=a=n.__decorate([(0,o.Domain)(l.MenuContribution,o.CommandContribution)],a)},61520:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackOperationView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(66498),_=e(96090),v=n.__importDefault(e(12920)),m=p=>{const{session:s,thread:h}=p,{doStop:a,doStepIn:g,doStepOut:u,doStepOver:d,doContinue:E,doRestart:f,doPause:c,updateCurrentSession:y}=(0,o.useInjectable)(_.DebugToolbarService);if(s&&!h){const b=A=>{y(s),A()};return r.default.createElement("div",{className:v.default.debug_stack_session_operations},r.default.createElement(l.DebugAction,{run:()=>b(f),icon:"reload",label:(0,o.localize)("debug.action.restart")}),r.default.createElement(l.DebugAction,{run:()=>b(a),icon:"stop",label:(0,o.localize)("debug.action.stop")}))}if(!s&&h){const{stopped:b}=h,A=D=>{h.session.currentThread=h,D()},S=D=>D?r.default.createElement(l.DebugAction,{run:()=>A(E),icon:"continue",label:(0,o.localize)("debug.action.continue")}):r.default.createElement(l.DebugAction,{run:()=>A(c),enabled:!0,icon:"pause",label:(0,o.localize)("debug.action.pause")});return r.default.createElement("div",{className:v.default.debug_stack_thread_operations},S(b),r.default.createElement(l.DebugAction,{run:()=>A(d),enabled:b,icon:"step",label:(0,o.localize)("debug.action.step-over")}),r.default.createElement(l.DebugAction,{run:()=>A(g),enabled:b,icon:"step-in",label:(0,o.localize)("debug.action.step-into")}),r.default.createElement(l.DebugAction,{run:()=>A(u),enabled:b,icon:"step-out",label:(0,o.localize)("debug.action.step-out")}))}return null};t.DebugStackOperationView=m},85294:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackService=void 0;const n=e(85608),r=e(76003),o=e(93899),l=e(50755),_=e(4983),v=e(17280),m=e(29539);let p=class{constructor(){this.handleContextMenu=(h,a)=>{this.stackFrameSupportsRestart.reset(),h.stopPropagation(),h.preventDefault(),a instanceof m.DebugSession?this.callStackItemType.set("session"):a instanceof l.DebugThread?this.callStackItemType.set("thread"):a instanceof l.DebugStackFrame?(this.callStackItemType.set("stackFrame"),this.stackFrameSupportsRestart.set(a.canRestart)):this.callStackItemType.reset();const{x:g,y:u}=h.nativeEvent,d=this.contextMenuService.createMenu({id:o.MenuId.DebugCallStackContext,contextKeyService:this.debugContextKey.contextKeyScoped}),E=d.getMergedMenuNodes();d.dispose();const f=()=>{var y;return a instanceof l.DebugStackFrame?!((y=a.source)===null||y===void 0)&&y.inMemory?a.source.raw.path||a.source.reference||a.source.name:a.source?a.source.uri.toString():"":a instanceof l.DebugThread||a instanceof m.DebugSession?a.id:""},c=()=>a instanceof l.DebugStackFrame?{sessionId:a.session.id,threadId:a.thread.id,frameId:a.id}:a instanceof l.DebugThread?{sessionId:a.session.id,threadId:a.id}:a instanceof m.DebugSession?{sessionId:a.id}:void 0;this.ctxMenuRenderer.show({anchor:{x:g,y:u},menuNodes:E,args:[f(),c()],contextKeyService:this.debugContextKey.contextKeyScoped})},this.stackFrameSupportsRestart||(this.stackFrameSupportsRestart=_.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.bind(this.debugContextKey.contextKeyScoped)),this.callStackItemType||(this.callStackItemType=_.CONTEXT_CALLSTACK_ITEM_TYPE.bind(this.debugContextKey.contextKeyScoped))}};t.DebugCallStackService=p,n.__decorate([(0,r.Autowired)(o.AbstractContextMenuService),n.__metadata("design:type",o.AbstractContextMenuService)],p.prototype,"contextMenuService",void 0),n.__decorate([(0,r.Autowired)(o.ICtxMenuRenderer),n.__metadata("design:type",o.ICtxMenuRenderer)],p.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,r.Autowired)(v.DebugContextKey),n.__metadata("design:type",v.DebugContextKey)],p.prototype,"debugContextKey",void 0),t.DebugCallStackService=p=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],p)},18028:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(64582),_=e(75651),v=n.__importDefault(e(12920)),m=({viewState:p})=>{const s=(0,o.useInjectable)(l.IDebugSessionManager),[h,a]=r.default.useState([]);return r.default.useEffect(()=>{const g=s.onDidStartDebugSession(d=>{h.push(d),a([...h])}),u=s.onDidDestroyDebugSession(d=>{const E=h.findIndex(f=>f.id===d.id);h.splice(E,1),a([...h])});return()=>{g.dispose(),u.dispose()}},[]),r.default.createElement("div",{className:v.default.call_stack_wrapper},h.filter(g=>!g.parentSession).map(g=>r.default.createElement(_.DebugStackSessionView,{key:g.id,viewState:p,session:g,indent:0})))};t.DebugCallStackView=m},59334:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModel=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(98650);let m=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new _.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugVariablesModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugVariablesModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},30865:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModelService=void 0;const r=e(85608),o=r.__importDefault(e(46343)),l=e(76003),_=e(97267),v=e(41869),m=e(93899),p=e(98650),s=e(32756),h=e(17280),a=e(59334),g=r.__importDefault(e(57259));class u{constructor(){this._keepExpandedScopesMap=new Map}getMirrorScope(f){return Array.from(this._keepExpandedScopesMap.keys()).find(c=>(0,o.default)(c,f.getRawScope()))}set(f){const c=f.getRawScope();if(c){const y=this.getMirrorScope(f);if(y){const b=this._keepExpandedScopesMap.get(y);let A;f.expanded?A=Array.from(new Set([...b,f.variablesReference])):A=b.filter(S=>S!==f.variablesReference),this._keepExpandedScopesMap.set(y,A)}else this._keepExpandedScopesMap.set(c,f.expanded?[f.variablesReference]:[])}}get(f){const c=this.getMirrorScope(f);return c?this._keepExpandedScopesMap.get(c)||[]:[]}clear(){this._keepExpandedScopesMap.clear()}}let d=n=class{constructor(){this.selectedDecoration=new _.Decoration(g.default.mod_selected),this.focusedDecoration=new _.Decoration(g.default.mod_focused),this.contextMenuDecoration=new _.Decoration(g.default.mod_actived),this.loadingDecoration=new _.Decoration(g.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new v.Emitter,this.onDidUpdateTreeModelEmitter=new v.Emitter,this.flushDispatchChangeDelayer=new v.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new v.DisposableCollection,this.keepExpandedScopesModel=new u,this.activeNodeDecoration=(f,c=!0)=>{var y;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),f){if(this.selectedNodes.length>0)for(const b of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(b);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(f),this.focusedDecoration.addTarget(f),this._focusedNode=f,this._selectedNodes=[f],c&&((y=this.treeModel)===null||y===void 0||y.dispatchChange())}},this.activeNodeActivedDecoration=f=>{var c;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(f),this._contextMenuNode=f,(c=this.treeModel)===null||c===void 0||c.dispatchChange()},this.enactiveNodeDecoration=()=>{var f;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(f=this.treeModel)===null||f===void 0||f.dispatchChange()},this.handleContextMenu=(f,c)=>{var y;if(f.stopPropagation(),f.preventDefault(),!c||c instanceof p.DebugScope){this.enactiveNodeDecoration(),this.debugContextKey.contextVariableEvaluateNamePresent.set(!1);return}this._currentVariableInternalContext=c;const{x:b,y:A}=f.nativeEvent;c&&(this.activeNodeActivedDecoration(c),this.debugContextKey.contextDebugProtocolVariableMenu.set(c.variableMenuContext),this.debugContextKey.contextVariableEvaluateNamePresent.set(!!c.evaluateName)),!((y=c.session)===null||y===void 0)&&y.capabilities.supportsReadMemoryRequest&&c.memoryReference!==void 0?this.debugContextKey.contextCanViewMemory.set(!0):this.debugContextKey.contextCanViewMemory.set(!1);const S=this.contextMenuService.createMenu({id:m.MenuId.DebugVariablesContext,contextKeyService:this.debugContextKey.contextKeyScoped}),D=S.getMergedMenuNodes();S.dispose(),this.ctxMenuRenderer.show({anchor:{x:b,y:A},menuNodes:D,args:[c.toDebugProtocolObject()]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=f=>{this.activeNodeDecoration(f)},this.handleTwistierClick=(f,c)=>{c===_.TreeNodeType.CompositeTreeNode?(this.activeNodeDecoration(f,!1),this.toggleDirectory(f)):this.activeNodeDecoration(f)},this.toggleDirectory=async f=>{f.expanded?f.setCollapsed():await f.setExpanded(!0),this.keepExpandedScopesModel.set(f)},this.listenViewModelChange()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get treeHandle(){return this._debugVariablesTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get currentVariableInternalContext(){return this._currentVariableInternalContext}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenViewModelChange(){this.viewModel.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{var f,c;if(this.viewModel&&this.viewModel.currentSession&&!this.viewModel.currentSession.terminated){const y=await this.initTreeModel(this.viewModel.currentSession);this._activeTreeModel=y,await((f=this._activeTreeModel)===null||f===void 0?void 0:f.ensureReady);const b=((c=this._activeTreeModel)===null||c===void 0?void 0:c.root.children)||[];if(b.length>0&&b.every(S=>!S.expanded))for(const S of b)S.getRawScope().expensive===!1&&!S.expanded&&await this.toggleDirectory(S);const A=async S=>{for(const D of S)this.keepExpandedScopesModel.get(D).includes(D.variablesReference)&&(await D.setExpanded(!0),Array.isArray(D.children)&&await A(D.children))};b.forEach(async S=>{Array.isArray(S.children)&&await A(S.children)})}else this._activeTreeModel=void 0,this.keepExpandedScopesModel.clear();this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel)})})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(_.TreeNodeEvent.WillResolveChildren,f=>{this.loadingDecoration.addTarget(f)})),this.disposableCollection.push(this.treeModel.root.watcher.on(_.TreeNodeEvent.DidResolveChildren,f=>{this.loadingDecoration.removeTarget(f)})))}async initTreeModel(f){const c=new p.DebugVariableRoot(f);if(c)return this._activeTreeModel=this.injector.get(a.DebugVariablesModel,[c]),this.initDecorations(c),this.listenTreeViewChange(),this._activeTreeModel}initDecorations(f){this._decorations=new _.DecorationsManager(f),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.loadingDecoration),this.decorations.removeDecoration(this.contextMenuDecoration))}handleTreeHandler(f){this._debugVariablesTreeHandle={...f,getModel:()=>this.treeModel}}async copyEvaluateName(f){f&&await this.clipboardService.writeText(f.evaluateName)}async copyValue(f){if(!f)return;const y=await(async()=>{if(f.session&&f.session.capabilities.supportsValueFormattingOptions)try{const{variable:{evaluateName:b}}=f;if(b){const A=await f.session.evaluate(b,"clipboard");if(A)return A.result}return""}catch{return""}else return f.value})();y&&await this.clipboardService.writeText(y)}};t.DebugVariablesModelService=d,d.DEFAULT_TRIGGER_DELAY=200,r.__decorate([(0,l.Autowired)(l.INJECTOR_TOKEN),r.__metadata("design:type",l.Injector)],d.prototype,"injector",void 0),r.__decorate([(0,l.Autowired)(m.ICtxMenuRenderer),r.__metadata("design:type",m.ICtxMenuRenderer)],d.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,l.Autowired)(m.AbstractContextMenuService),r.__metadata("design:type",m.AbstractContextMenuService)],d.prototype,"contextMenuService",void 0),r.__decorate([(0,l.Autowired)(s.DebugViewModel),r.__metadata("design:type",s.DebugViewModel)],d.prototype,"viewModel",void 0),r.__decorate([(0,l.Autowired)(v.IClipboardService),r.__metadata("design:type",Object)],d.prototype,"clipboardService",void 0),r.__decorate([(0,l.Autowired)(h.DebugContextKey),r.__metadata("design:type",h.DebugContextKey)],d.prototype,"debugContextKey",void 0),t.DebugVariablesModelService=d=n=r.__decorate([(0,l.Injectable)(),r.__metadata("design:paramtypes",[])],d)},86752:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(43718),v=e(57517),m=e(14951),p=e(2156),s=e(72665),h=e(94170),a=e(23268),g=e(64582),u=e(61752),d=e(32756),E=e(4983),f=e(95033),c=e(30865);let y=class{registerCommands(A){A.registerCommand(g.DEBUG_COMMANDS.SET_VARIABLE_VALUE,{execute:async()=>{var I;this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_VARIABLES,g.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id);const{currentVariableInternalContext:w}=this.debugVariablesModelService;if(!w)return;const T=await this.quickInputService.open({placeHolder:(0,o.localize)("debugger.menu.setValue.param"),value:w.description.replace(/^\"(.*)\"$/,"$1")});if(T!=null){try{await w.setValue(T)}catch(R){this.messageService.error(R.message)}(I=this.debugVariablesModelService.treeModel)===null||I===void 0||I.dispatchChange()}}}),A.registerCommand(g.DEBUG_COMMANDS.COPY_VARIABLE_VALUE,{execute:async()=>{const{currentVariableInternalContext:I}=this.debugVariablesModelService;this.debugVariablesModelService.copyValue(I)}}),A.registerCommand(g.DEBUG_COMMANDS.COPY_EVALUATE_PATH,{execute:async()=>{const{currentVariableInternalContext:I}=this.debugVariablesModelService;this.debugVariablesModelService.copyEvaluateName(I)}}),A.registerCommand(g.DEBUG_COMMANDS.ADD_TO_WATCH_ID,{execute:async I=>{const{currentVariableInternalContext:w}=this.debugVariablesModelService;if(I instanceof _.URI){const T=this.workbenchEditorService.currentEditor;if(!T?.monacoEditor||!T?.monacoEditor.hasModel())return;const R=T.monacoEditor,M=R.getModel().getValueInRange(R.getSelection());this.debugWatchModelService.addWatchExpression(M);return}else w&&this.debugWatchModelService.addWatchExpression(w.evaluateName)}});const S="ms-vscode.hexeditor",D=`${_.CUSTOM_EDITOR_SCHEME}-hexEditor.hexedit`;A.registerCommand(g.DEBUG_COMMANDS.VIEW_MEMORY_ID,{execute:async I=>{var w;const T=await this.commandService.executeCommand("extension.getDescription",S);if(T&&T.enabled){const R=(w=this.viewModel.currentSession)===null||w===void 0?void 0:w.id,M=I.memoryReference;this.workbenchEditorService.open(_.URI.from({scheme:E.DEBUG_MEMORY_SCHEME,authority:R,path:"/"+encodeURIComponent(M||"")+"/memory.bin"}),{disableNavigate:!0,preview:!0,forceOpenType:{type:v.EditorOpenType.component,componentId:D}})}else this.messageService.warning((0,o.localize)("debug.variables.view.memory.prompt.hexEditor.notInstalled"))}})}async initialize(){this.fileSystem.registerProvider(E.DEBUG_MEMORY_SCHEME,this.debugMemoryFileSystemProvider)}registerResource(A){A.registerResourceProvider({scheme:E.DEBUG_MEMORY_SCHEME,provideResource:async S=>({uri:S,icon:(0,o.getIcon)("hex"),name:S.displayName})})}registerMenus(A){var S;A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.setValue")},order:10,when:E.CONTEXT_SET_VARIABLE_SUPPORTED.raw,group:"3_modification"}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.COPY_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.copyValue")},order:10,group:"5_cutcopypaste"}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.COPY_EVALUATE_PATH.id,label:(0,o.localize)("debugger.menu.copyEvaluatePath")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:20,group:"5_cutcopypaste"}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:100,group:"z_commands"}),A.registerMenuItem(l.MenuId.EditorContext,{command:{id:g.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:(S=a.ContextKeyExpr.and(h.EditorContextKeys.hasNonEmptySelection,h.EditorContextKeys.editorTextFocus))===null||S===void 0?void 0:S.keys().reduce((D,I)=>D+" && "+I,E.CONTEXT_IN_DEBUG_MODE.raw),group:"debug",order:1}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.VIEW_MEMORY_ID.id,label:(0,o.localize)("debug.variables.view.memory")},iconClass:"",when:`${E.CONTEXT_CAN_VIEW_MEMORY.equalsTo(!0)} && ${E.CONTEXT_IN_DEBUG_MODE.equalsTo(!0)}`,type:"icon"})}};t.VariablesPanelContribution=y,n.__decorate([(0,r.Autowired)(o.IQuickInputService),n.__metadata("design:type",Object)],y.prototype,"quickInputService",void 0),n.__decorate([(0,r.Autowired)(c.DebugVariablesModelService),n.__metadata("design:type",c.DebugVariablesModelService)],y.prototype,"debugVariablesModelService",void 0),n.__decorate([(0,r.Autowired)(f.DebugWatchModelService),n.__metadata("design:type",f.DebugWatchModelService)],y.prototype,"debugWatchModelService",void 0),n.__decorate([(0,r.Autowired)(v.WorkbenchEditorService),n.__metadata("design:type",v.WorkbenchEditorService)],y.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(s.IMessageService),n.__metadata("design:type",Object)],y.prototype,"messageService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],y.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(_.CommandService),n.__metadata("design:type",Object)],y.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(d.DebugViewModel),n.__metadata("design:type",d.DebugViewModel)],y.prototype,"viewModel",void 0),n.__decorate([(0,r.Autowired)(m.IFileServiceClient),n.__metadata("design:type",p.FileServiceClient)],y.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(u.DebugMemoryFileSystemProvider),n.__metadata("design:type",u.DebugMemoryFileSystemProvider)],y.prototype,"debugMemoryFileSystemProvider",void 0),t.VariablesPanelContribution=y=n.__decorate([(0,o.Domain)(o.ClientAppContribution,v.BrowserEditorContribution,l.MenuContribution,o.CommandContribution)],y)},28875:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=t.DebugVariableRenderedNode=t.DebugVariableView=t.DEBUG_VARIABLE_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=e(41869),v=e(98650),m=e(30865),p=n.__importDefault(e(57259));t.DEBUG_VARIABLE_TREE_FIELD_NAME="DEBUG_VARIABLE_TREE_FIELD";const s=({viewState:a})=>{const g=(0,_.useInjectable)(m.DebugVariablesModelService),u=o.default.useRef(null),[d,E]=o.default.useState(),f=22,{width:c,height:y}=a;o.default.useEffect(()=>{const M=g.onDidUpdateTreeModel(async O=>{E(O)});return()=>{M.dispose(),g.removeNodeDecoration(),E(void 0)}},[]);const b=M=>{g.handleTreeHandler({...M,hasDirectFocus:()=>u.current===document.activeElement})},A=(M,O,x)=>{M.stopPropagation();const{handleTwistierClick:k}=g;O&&k(O,x)},S=(M,O)=>{const{handleContextMenu:x}=g;x(M,O)},D=M=>{const{handleContextMenu:O}=g;O(M)},I=M=>{const{enactiveNodeDecoration:O}=g;O()},w=M=>{const{enactiveNodeDecoration:O}=g;O()},T=o.default.useCallback(M=>{const O=g.decorations.getDecorations(M.item);return o.default.createElement(t.DebugVariableRenderedNode,{item:M.item,itemType:M.itemType,decorations:O,onClick:A,onTwistierClick:A,onContextMenu:S,defaultLeftPadding:0,leftPadding:8})},[d]),R=()=>d?o.default.createElement(l.RecycleTree,{height:y,width:c,itemHeight:f,onReady:b,model:d,placeholder:()=>o.default.createElement("span",null),overflow:"auto"},T):o.default.createElement("span",null);return o.default.createElement("div",{className:p.default.debug_variables_container,tabIndex:-1,ref:u,onContextMenu:D,onClick:I,onBlur:w,"data-name":t.DEBUG_VARIABLE_TREE_FIELD_NAME},R())};t.DebugVariableView=s;const h=({item:a,decorations:g,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:f,onContextMenu:c,itemType:y})=>{const b=(0,_.useDesignStyles)(p.default.expansion_toggle,"expansion_toggle"),A=k=>{E(k,a,l.CompositeTreeNode.is(a)?l.TreeNodeType.CompositeTreeNode:l.TreeNodeType.TreeNode)},S=k=>{k.nativeEvent.which!==0&&(y===l.TreeNodeType.TreeNode||y===l.TreeNodeType.CompositeTreeNode)&&c&&c(k,a,y)},D=`${(u||8)+(a.depth||0)*(d||0)+(v.ExpressionContainer.is(a)?0:18)}px`,I={height:t.DEBUG_VARIABLE_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_VARIABLE_TREE_NODE_HEIGHT}px`,paddingLeft:D},w=k=>o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment,p.default.debug_variables_node_displayname,p.default.debug_variables_variable,k.description?p.default.name:"")},k.displayName,k.value?":":""),T=k=>{const F=/^true|false$/i,L=/^(['"]).*\1$/,{description:N=""}=k,U=N!=="undefined"?N.replace("function","\u0192 "):"",W=[p.default.debug_variables_variable];return a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?W.push(p.default[a.variableType]):isNaN(+U)?F.test(U)?W.push(p.default.boolean):L.test(U)&&W.push(p.default.string):W.push(p.default.number),o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment_grow,p.default.debug_variables_node_description,...W)},U)},R=()=>o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment,p.default.debug_variables_node_tail)},M()),M=()=>o.default.createElement("div",{className:p.default.debug_variables_node_status},a.badge),O=(k,F)=>{const L=N=>{F(N,k,y)};return g&&g?.classlist.indexOf(p.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment,b)},o.default.createElement(l.Loading,null)):o.default.createElement("div",{onClick:L,className:(0,r.default)(p.default.debug_variables_node_segment,b,(0,_.getIcon)("right"),{[`${p.default.mod_collapsed}`]:!k.expanded})})},x=k=>{if(l.CompositeTreeNode.is(k))return O(k,f)};return o.default.createElement("div",{key:a.id,onClick:A,onContextMenu:S,title:a.description||"",className:(0,r.default)(p.default.debug_variables_node,g?g.classlist:null),style:I,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_content)},x(a),o.default.createElement("div",{className:p.default.debug_variables_node_overflow_wrap},w(a),T(a)),R()))};t.DebugVariableRenderedNode=h,t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=22},85454:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModel=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(98650);let m=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new _.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugWatchModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugWatchModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},95033:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModelService=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(93899),m=e(38029),p=e(50755),s=e(98650),h=e(32756),a=e(4983),g=e(26296),u=e(85454),d=r.__importDefault(e(21315)),{Path:E}=_.path;let f=n=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new l.Decoration(d.default.mod_selected),this.focusedDecoration=new l.Decoration(d.default.mod_focused),this.contextMenuDecoration=new l.Decoration(d.default.mod_actived),this.loadingDecoration=new l.Decoration(d.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new _.Emitter,this.onDidUpdateTreeModelEmitter=new _.Emitter,this.flushDispatchChangeDelayer=new _.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new _.DisposableCollection,this.loadedDeferred=new _.Deferred,this.activeNodeDecoration=(y,b=!0)=>{var A;if(a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService),this.contextMenuNode&&(this.focusedDecoration.removeTarget(this.contextMenuNode),this.selectedDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),y){if(this.selectedNodes.length>0)for(const S of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(S);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(y),this.focusedDecoration.addTarget(y),this._focusedNode=y,this._selectedNodes=[y],b&&((A=this.treeModel)===null||A===void 0||A.dispatchChange())}},this.activeNodeActivedDecoration=y=>{var b;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(y),this._contextMenuNode=y,(b=this.treeModel)===null||b===void 0||b.dispatchChange()},this.enactiveNodeDecoration=()=>{var y;a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService).set(!1),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(y=this.treeModel)===null||y===void 0||y.dispatchChange()},this.handleContextMenu=(y,b)=>{var A;y.stopPropagation(),y.preventDefault();const{x:S,y:D}=y.nativeEvent;b?this.activeNodeActivedDecoration(b):this.enactiveNodeDecoration();let I;b?I=b:I=(A=this.treeModel)===null||A===void 0?void 0:A.root,this.watchItemType.set(I instanceof s.DebugWatchNode?"expression":I instanceof s.DebugVariable||I instanceof s.DebugVariableContainer?"variable":void 0);const w=this.contextMenuService.createMenu({id:v.MenuId.DebugWatchContext,contextKeyService:this.contextMenuContextKeyService}),T=w.getMergedMenuNodes();w.dispose(),this.ctxMenuRenderer.show({anchor:{x:S,y:D},menuNodes:T,args:[I]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=y=>{this.activeNodeDecoration(y)},this.handleTwistierClick=(y,b)=>{if(b===l.TreeNodeType.CompositeTreeNode){if(s.DebugWatchNode.is(y)&&y.available){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}else if(y.variablesReference){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}}this.activeNodeDecoration(y)},this.toggleDirectory=async y=>{y.expanded?this.treeHandle.collapseNode(y):this.treeHandle.expandNode(y)},this.proxyPrompt=y=>{let b=!1;const A=async S=>{if(!b){if(b=!0,S){if(y instanceof l.NewPromptHandle){const D=y.parent;if(y.addAddonAfter("loading_indicator"),D.session)this.addWatchExpression(S);else{const I=new s.DebugWatchNode(D.session,S,D);this.dispatchWatchEvent(D.path,{type:l.WatchEvent.Added,node:I,id:D.id}),this.debugWatch.addWatchExpression(S)}}else if(y instanceof l.RenamePromptHandle){const D=y.target,I=D.parent;if(y.addAddonAfter("loading_indicator"),I.session)this.debugWatch.renameWatchExpression(D.name,S),this.initTreeModel();else{const w=new E(D.path).dir.join(S).toString();this.dispatchWatchEvent(I.path,{type:l.WatchEvent.Moved,oldPath:D.path,newPath:w}),this.debugWatch.renameWatchExpression(D.name,S)}}}return!0}};y.destroyed||(y.onCommit(A),y.onBlur(A))},this.flushEventQueue=()=>{let y;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((A,S)=>{const D=E.pathDepth(A),I=E.pathDepth(S);return D-I});const b=[this._changeEventDispatchQueue[0]];for(const A of this._changeEventDispatchQueue)b.some(S=>A.indexOf(S)===0)||b.push(A);return y=(0,_.pSeries)(b.map(A=>async()=>{var S,D;const I=(D=(S=this.treeModel)===null||S===void 0?void 0:S.root)===null||D===void 0?void 0:D.watchEvents.get(A);return I&&typeof I.callback=="function"&&await I.callback({type:l.WatchEvent.Changed,path:A}),null})),this._changeEventDispatchQueue=[],y},this.debugWatch=new p.DebugWatch(this.manager,this.reporterService),this.init(),this.watchItemType=a.CONTEXT_WATCH_ITEM_TYPE.bind(this.contextKeyService)}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}async save(y=[]){await(await this.storageProvider(_.STORAGE_NAMESPACE.DEBUG)).set(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,y)}async load(){const b=await(await this.storageProvider(_.STORAGE_NAMESPACE.DEBUG)).get(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,[]);await this.debugWatch.updateWatchExpressions(b),this.loadedDeferred.resolve()}async init(){await this.loadedDeferred.promise,this.initTreeModel(),this.listenDebugWatchChange()}listenDebugWatchChange(){this.debugWatch.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.initTreeModel()})}),this.debugWatch.onDidVariableChange(async()=>{this.refresh()}),this.debugWatch.onDidExpressionChange(y=>{this.save(y)})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(l.TreeNodeEvent.WillResolveChildren,y=>{this.loadingDecoration.addTarget(y)})),this.disposableCollection.push(this.treeModel.root.watcher.on(l.TreeNodeEvent.DidResolveChildren,y=>{this.loadingDecoration.removeTarget(y)})))}async initTreeModel(){const y=await this.debugWatch.getRoot();if(y)return this._activeTreeModel=this.injector.get(u.DebugWatchModel,[y]),this.initDecorations(y),this.listenTreeViewChange(),this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel),this._activeTreeModel}initDecorations(y){this._decorations=new l.DecorationsManager(y),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(y){this._debugWatchTreeHandle=y}async newDebugWatchNodePrompt(){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptNewTreeNode(this.treeModel.root))}async renameDebugWatchNodePrompt(y){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptRename(y))}removeDebugWatchNode(y){this.debugWatch.removeWatchExpression(y.name),y.session?this.initTreeModel():this.dispatchWatchEvent(y.parent.path,{type:l.WatchEvent.Removed,path:y.path})}async copyValue(y){const b=await y.getClipboardValue();b&&await this.clipboardService.writeText(b)}async clearAllExpression(){this.debugWatch.updateWatchExpressions([]),await this.initTreeModel(),this.save()}addWatchExpression(y){this.debugWatch.addWatchExpression(y),this.initTreeModel()}dispatchWatchEvent(y,b){var A;const S=(A=this.treeModel)===null||A===void 0?void 0:A.root.watchEvents.get(y);S&&S.callback&&S.callback(b)}collapsedAll(){var y;(y=this.treeModel)===null||y===void 0||y.root.collapsedAll()}async refresh(y){if(!y)if(this.treeModel)y=this.treeModel.root;else return;!s.ExpressionContainer.is(y)&&y.parent&&(y=y.parent),this.queueChangeEvent(y.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(y,b){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new _.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var A;await this.flushEventQueue(),(A=this.flushEventQueueDeferred)===null||A===void 0||A.resolve(),this.flushEventQueueDeferred=null,b()},n.DEFAULT_REFRESH_DELAY)),this._changeEventDispatchQueue.indexOf(y)===-1&&this._changeEventDispatchQueue.push(y)}};t.DebugWatchModelService=f,f.DEFAULT_REFRESH_DELAY=100,f.DEFAULT_TRIGGER_DELAY=200,f.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY="watchers",r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),r.__metadata("design:type",v.ICtxMenuRenderer)],f.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),r.__metadata("design:type",v.AbstractContextMenuService)],f.prototype,"contextMenuService",void 0),r.__decorate([(0,o.Autowired)(h.DebugViewModel),r.__metadata("design:type",h.DebugViewModel)],f.prototype,"viewModel",void 0),r.__decorate([(0,o.Autowired)(g.IDebugSessionManager),r.__metadata("design:type",m.DebugSessionManager)],f.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(_.IReporterService),r.__metadata("design:type",Object)],f.prototype,"reporterService",void 0),r.__decorate([(0,o.Autowired)(_.IContextKeyService),r.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(_.StorageProvider),r.__metadata("design:type",Function)],f.prototype,"storageProvider",void 0),r.__decorate([(0,o.Autowired)(_.IClipboardService),r.__metadata("design:type",Object)],f.prototype,"clipboardService",void 0),t.DebugWatchModelService=f=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],f)},14600:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(64582),v=e(98650),m=e(4983),p=e(95033);let s=class{registerCommands(a){a.registerCommand(_.DEBUG_COMMANDS.ADD_WATCHER,{execute:()=>{this.debugWatchModelService.newDebugWatchNodePrompt()}}),a.registerCommand(_.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.collapsedAll()}}),a.registerCommand(_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.clearAllExpression()}}),a.registerCommand(_.DEBUG_COMMANDS.REMOVE_WATCHER,{execute:g=>{g instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(g);const[u]=this.debugWatchModelService.selectedNodes;u instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(u)}}),a.registerCommand(_.DEBUG_COMMANDS.EDIT_WATCHER,{execute:g=>{this.debugWatchModelService.renameDebugWatchNodePrompt(g)}}),a.registerCommand(_.DEBUG_COMMANDS.COPY_WATCHER_VALUE,{execute:g=>{this.debugWatchModelService.copyValue(g)}})}registerToolbarItems(a){a.registerItem({id:_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,command:_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("close-all"),viewId:_.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.removeAll")}),a.registerItem({id:_.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("collapse-all"),command:_.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,viewId:_.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.collapseAll"),when:m.CONTEXT_IN_DEBUG_MODE.raw}),a.registerItem({id:_.DEBUG_COMMANDS.ADD_WATCHER.id,iconClass:(0,o.getIcon)("plus"),command:_.DEBUG_COMMANDS.ADD_WATCHER.id,viewId:_.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.add"),when:m.CONTEXT_IN_DEBUG_MODE.raw})}registerMenus(a){a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.ADD_WATCHER.id,label:(0,o.localize)("debug.watch.add")},order:10,group:"3_modification"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.EDIT_WATCHER.id,label:(0,o.localize)("debug.watch.edit")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:20,group:"3_modification"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.COPY_WATCHER_VALUE.id,label:(0,o.localize)("debug.watch.copyValue")},when:`${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression")} || ${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("variable")} && ${m.CONTEXT_IN_DEBUG_MODE.raw}`,order:30,enabledWhen:m.CONTEXT_IN_DEBUG_MODE.raw,group:"3_modification"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.REMOVE_WATCHER.id,label:(0,o.localize)("debug.watch.remove")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:10,group:"z_commands"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,label:(0,o.localize)("debug.watch.removeAll")},order:20,group:"z_commands"})}registerKeybindings(a){a.registerKeybinding({command:_.DEBUG_COMMANDS.REMOVE_WATCHER.id,keybinding:"ctrlcmd+backspace",when:m.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.raw})}onStart(){this.debugWatchModelService.load()}};t.WatchPanelContribution=s,n.__decorate([(0,r.Autowired)(p.DebugWatchModelService),n.__metadata("design:type",p.DebugWatchModelService)],s.prototype,"debugWatchModelService",void 0),t.WatchPanelContribution=s=n.__decorate([(0,o.Domain)(o.ClientAppContribution,l.MenuContribution,o.CommandContribution,o.TabBarToolbarContribution,o.KeybindingContribution)],s)},64611:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_WATCH_TREE_NODE_HEIGHT=t.DebugWatchRenderedNode=t.DebugWatchView=t.DEBUG_WATCH_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=e(41869),v=e(98650),m=e(95033),p=n.__importDefault(e(21315));t.DEBUG_WATCH_TREE_FIELD_NAME="DEBUG_WATCH_TREE_FIELD";const s=({viewState:a})=>{const g=(0,_.useInjectable)(m.DebugWatchModelService),u=22,d=o.default.useRef(null),[E,f]=o.default.useState(),{height:c}=a;o.default.useEffect(()=>y(),[]);const y=()=>{const M=g.treeModel;let O=!0;const x=new _.DisposableCollection;return x.push(_.Disposable.create(()=>{O=!1})),M&&M.ensureReady.then(()=>{O&&f(M)}),x.push(g.onDidUpdateTreeModel(async k=>{k&&await k.ensureReady,O&&f(k)})),()=>{g.removeNodeDecoration(),x.dispose()}},b=M=>{g.handleTreeHandler({...M,getModel:()=>E,hasDirectFocus:()=>d.current===document.activeElement})},A=(M,O,x)=>{M.stopPropagation();const{handleTwistierClick:k}=g;O&&k(O,x)},S=(M,O)=>{const{handleContextMenu:x}=g;x(M,O)},D=M=>{const{handleContextMenu:O}=g;O(M)},I=M=>{const{enactiveNodeDecoration:O}=g;O()},w=M=>{const{enactiveNodeDecoration:O}=g;O()},T=o.default.useCallback(M=>{const O=g.decorations.getDecorations(M.item);return o.default.createElement(t.DebugWatchRenderedNode,{item:M.item,itemType:M.itemType,decorations:O,onClick:A,onTwistierClick:A,onContextMenu:S,defaultLeftPadding:12,leftPadding:8})},[E]),R=()=>E?o.default.createElement(l.RecycleTree,{height:c,itemHeight:u,onReady:b,model:E,placeholder:()=>o.default.createElement("span",null)},T):o.default.createElement("span",null);return o.default.createElement("div",{className:p.default.debug_watch_container,tabIndex:-1,ref:d,onContextMenu:D,onClick:I,onBlur:w,"data-name":t.DEBUG_WATCH_TREE_FIELD_NAME},R())};t.DebugWatchView=s;const h=({item:a,decorations:g,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:f,onContextMenu:c,itemType:y})=>{const b=(0,_.useDesignStyles)(p.default.expansion_toggle,"expansion_toggle"),A=y===l.TreeNodeType.RenamePrompt,S=y===l.TreeNodeType.NewPrompt,D=A||S,I=N=>{const U=a.getRawWatch();U&&E(N,a,U.variablesReference>0?l.TreeNodeType.CompositeTreeNode:l.TreeNodeType.TreeNode)},w=N=>{N.nativeEvent.which!==0&&(y===l.TreeNodeType.TreeNode||y===l.TreeNodeType.CompositeTreeNode)&&c&&c(N,a,y)},T={height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_WATCH_TREE_NODE_HEIGHT}px`,paddingLeft:`${(u||8)+(a.depth||0)*(d||0)}px`},R=N=>D&&N instanceof l.PromptHandle?o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,p.default.debug_watch_node_inputbox)},o.default.createElement("div",{className:(0,r.default)("input-box",p.default.debug_watch_node_prompt_box)},o.default.createElement(N.ProxiedInput,{wrapperStyle:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,padding:"0 5px"}}))):o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,p.default.debug_watch_node_displayname,p.default.debug_watch_variable,N.description?p.default.name:"")},N.name,N.description?":":""),M=N=>{const U=/^true|false$/i,W=/^(['"]).*\1$/,j=N.description?N.description.replace("function","\u0192 "):"",Q=[p.default.debug_watch_variable];return D?null:(a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?Q.push(p.default[a.variableType]):isNaN(+j)?U.test(j)?Q.push(p.default.boolean):W.test(j)&&Q.push(p.default.string):Q.push(p.default.number),o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment_grow,p.default.debug_watch_node_description,...Q)},j))},O=()=>o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,p.default.debug_watch_node_tail)},x()),x=()=>o.default.createElement("div",{className:p.default.debug_watch_node_status},a.badge),k=()=>a.tooltip,F=(N,U)=>{const W=j=>{U(j,N,y)};return g&&g?.classlist.indexOf(p.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,b)},o.default.createElement(l.Loading,null)):o.default.createElement("div",{onClick:W,className:(0,r.default)(p.default.debug_watch_node_segment,b,(0,_.getIcon)("right"),{[`${p.default.mod_collapsed}`]:!N.expanded})})},L=N=>{if(v.DebugWatchNode.is(N)){if(N.available&&N.variablesReference)return F(N,f)}else if(v.ExpressionContainer.is(N)&&N.variablesReference)return F(N,f)};return o.default.createElement("div",{key:a.id,onClick:I,onContextMenu:w,title:k(),className:(0,r.default)(p.default.debug_watch_node,g?g.classlist:null),style:T,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_content)},L(a),o.default.createElement("div",{style:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT},className:D?p.default.debug_watch_node_prompt_wrap:p.default.debug_watch_node_overflow_wrap},R(a),M(a)),O()))};t.DebugWatchRenderedNode=h,t.DEBUG_WATCH_TREE_NODE_HEIGHT=22},46118:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_COMMANDS=void 0;var e;(function(n){n.ADD_WATCHER={id:"debug.watch.add"},n.COLLAPSE_ALL_WATCHER={id:"debug.watch.collapseAll"},n.REMOVE_ALL_WATCHER={id:"debug.watch.removeAll"},n.REMOVE_WATCHER={id:"debug.watch.remove"},n.EDIT_WATCHER={id:"debug.watch.edit"},n.COPY_WATCHER_VALUE={id:"debug.watch.copyValue"},n.REMOVE_ALL_BREAKPOINTS={id:"debug.breakpoints.remove.all"},n.TOGGLE_BREAKPOINTS={id:"debug.breakpoints.toggle"},n.ACTIVE_BREAKPOINTS={id:"debug.breakpoints.active"},n.DEACTIVE_BREAKPOINTS={id:"debug.breakpoints.deactive"},n.START={id:"debug.start"},n.NEXT={id:"debug.next"},n.PREV={id:"debug.prev"},n.OVER={id:"debug.over"},n.STOP={id:"debug.stop"},n.CONTINUE={id:"debug.continue"},n.RESTART={id:"debug.restart"},n.PAUSE={id:"debug.pause"},n.DELETE_BREAKPOINT={id:"debug.delete.breakpoint",label:"%debug.menu.delete.breakpoint%"},n.EDIT_BREAKPOINT={id:"debug.edit.breakpoint",label:"%debug.menu.edit.breakpoint%"},n.DISABLE_BREAKPOINT={id:"debug.disable.breakpoint",label:"%debug.menu.disable.breakpoint%"},n.ENABLE_BREAKPOINT={id:"debug.enable.breakpoint",label:"%debug.menu.enable.breakpoint%"},n.ENABLE_LOGPOINT={id:"debug.enable.logpoint",label:"%debug.menu.enable.logpoint"},n.ADD_BREAKPOINT={id:"debug.add.breakpoint",label:"%debug.menu.add.breakpoint%"},n.ADD_LOGPOINT={id:"debug.add.logpoint",label:"%debug.menu.add.logpoint%"},n.ADD_CONDITIONAL_BREAKPOINT={id:"debug.add.conditional",label:"%debug.menu.add.conditional%"},n.RESTART_FRAME={id:"debug.callstack.restart.frame"},n.COPY_STACK_TRACE={id:"debug.callstack.copy"},n.SET_VARIABLE_VALUE={id:"debug.variables.setValue"},n.COPY_VARIABLE_VALUE={id:"debug.variables.copy"},n.COPY_EVALUATE_PATH={id:"debug.evaluate.copy"},n.ADD_TO_WATCH_ID={id:"debug.addToWatchExpressions"},n.VIEW_MEMORY_ID={id:"debug.variables.view.memory"},n.CLEAR_CONSOLE={id:"debug.console.clear",label:"%debug.console.clear%"},n.COPY_CONSOLE_ITEM={id:"debug.console.copy"},n.COPY_CONSOLE_ALL={id:"debug.console.copyALl"},n.COLLAPSE_ALL_CONSOLE_ITEM={id:"debug.console.collapseAll",label:"%debug.console.collapseAll%"},n.CONSOLE_ENTER_EVALUATE={id:"debug.console.keybing.enter.evaluate"},n.CONSOLE_INPUT_DOWN_ARROW={id:"debug.console.input.down.arrow"},n.CONSOLE_INPUT_UP_ARROW={id:"debug.console.input.up.arrow"},n.CONSOLE_FILTER_FOCUS={id:"debug.console.filter.input.focus"},n.RUN_TO_CURSOR={id:"debug.action.runToCursor",label:"%debug.action.runToCursor%"},n.FORCE_RUN_TO_CURSOR={id:"debug.action.forceRunToCursor",label:"%debug.action.forceRunToCursor%"},n.EXCEPTION_WIDGET_CLOSE={id:"debug.action.closeExceptionWidget"},n.SHOW_ALL_AUTOMATIC_DEBUG_CONFIGURATIONS={id:"debug.showAllAutomaticDebugConfigurations"}})(e||(t.DEBUG_COMMANDS=e={}))},4983:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_DEBUGGERS_AVAILABLE=t.CONTEXT_BREAKPOINTS_EXIST=t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=t.CONTEXT_RESTART_FRAME_SUPPORTED=t.CONTEXT_STEP_BACK_SUPPORTED=t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=t.CONTEXT_BREAKPOINT_ACCESS_TYPE=t.CONTEXT_BREAKPOINT_ITEM_TYPE=t.CONTEXT_WATCH_ITEM_TYPE=t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=t.CONTEXT_CALLSTACK_ITEM_STOPPED=t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=t.CONTEXT_CALLSTACK_ITEM_TYPE=t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=t.CONTEXT_EXPRESSION_SELECTED=t.CONTEXT_VARIABLES_FOCUSED=t.CONTEXT_WATCH_EXPRESSIONS_EXIST=t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=t.CONTEXT_BREAKPOINTS_FOCUSED=t.CONTEXT_IN_BREAKPOINT_WIDGET=t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=t.CONTEXT_IN_DEBUG_CONSOLE=t.CONTEXT_IN_DEBUG_REPL=t.CONTEXT_IN_DEBUG_MODE=t.CONTEXT_DEBUG_UX=t.CONTEXT_DEBUG_UX_KEY=t.CONTEXT_DEBUG_STATE=t.CONTEXT_DEBUG_CONFIGURATION_TYPE=t.CONTEXT_DEBUG_TYPE=t.CONTEXT_DEBUG_TYPE_KEY=t.CONTEXT_IN_DEBUG_MODE_KEY=t.CONTEXT_DEBUG_STOPPED_KEY=t.DEBUG_SCHEME=t.DEBUG_FLOATING_CLICK_WIDGET=t.DEBUG_STACK_ID=t.DEBUG_WELCOME_ID=t.DEBUG_BREAKPOINTS_ID=t.DEBUG_VARIABLES_ID=t.DEBUG_THREAD_ID=t.DEBUG_WATCH_ID=t.DEBUG_MEMORY_SCHEME=t.LAUNCH_VIEW_COMPONENT_ID=t.LAUNCH_VIEW_SCHEME=t.DEBUG_CONTAINER_ID=t.DEBUG_CONSOLE_CONTAINER_ID=void 0,t.CONTEXT_ACTIVE_BREAKPOINTS=t.CONTEXT_CAN_VIEW_MEMORY=t.CONTEXT_MULTI_SESSION_DEBUG=t.CONTEXT_MULTI_SESSION_REPL=t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=t.CONTEXT_SET_VARIABLE_SUPPORTED=t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=void 0;const n=e(30144);Object.defineProperty(t,"DEBUG_CONSOLE_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONSOLE_CONTAINER_ID}}),Object.defineProperty(t,"DEBUG_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONTAINER_ID}});const r=e(40191);t.LAUNCH_VIEW_SCHEME="launch_view_scheme",t.LAUNCH_VIEW_COMPONENT_ID="launch-view",t.DEBUG_MEMORY_SCHEME="vscode-debug-memory",t.DEBUG_WATCH_ID="debug-watch",t.DEBUG_THREAD_ID="debug-thread",t.DEBUG_VARIABLES_ID="debug-variable",t.DEBUG_BREAKPOINTS_ID="debug-breakpoints",t.DEBUG_WELCOME_ID="debug-welcome",t.DEBUG_STACK_ID="debug-stack",t.DEBUG_FLOATING_CLICK_WIDGET="debug.overlayWidget.floatingClickWidget",t.DEBUG_SCHEME="debug",t.CONTEXT_DEBUG_STOPPED_KEY="debugStopped",t.CONTEXT_IN_DEBUG_MODE_KEY="inDebugMode",t.CONTEXT_DEBUG_TYPE_KEY="debugType",t.CONTEXT_DEBUG_TYPE=new r.RawContextKey("debugType",void 0),t.CONTEXT_DEBUG_CONFIGURATION_TYPE=new r.RawContextKey("debugConfigurationType",void 0),t.CONTEXT_DEBUG_STATE=new r.RawContextKey("debugState","Inactive"),t.CONTEXT_DEBUG_UX_KEY="debugUx",t.CONTEXT_DEBUG_UX=new r.RawContextKey(t.CONTEXT_DEBUG_UX_KEY,"default"),t.CONTEXT_IN_DEBUG_MODE=new r.RawContextKey("inDebugMode",!1),t.CONTEXT_IN_DEBUG_REPL=new r.RawContextKey("inDebugRepl",!1),t.CONTEXT_IN_DEBUG_CONSOLE=new r.RawContextKey("inDebugConsole",!1),t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=new r.RawContextKey("breakpointWidgetVisible",!1),t.CONTEXT_IN_BREAKPOINT_WIDGET=new r.RawContextKey("inBreakpointWidget",!1),t.CONTEXT_BREAKPOINTS_FOCUSED=new r.RawContextKey("breakpointsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=new r.RawContextKey("watchExpressionsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_EXIST=new r.RawContextKey("watchExpressionsExist",!1),t.CONTEXT_VARIABLES_FOCUSED=new r.RawContextKey("variablesFocused",!0),t.CONTEXT_EXPRESSION_SELECTED=new r.RawContextKey("expressionSelected",!1),t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=new r.RawContextKey("breakpointInputFocused",!1),t.CONTEXT_CALLSTACK_ITEM_TYPE=new r.RawContextKey("callStackItemType",void 0),t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=new r.RawContextKey("callStackSessionIsAttach",!1),t.CONTEXT_CALLSTACK_ITEM_STOPPED=new r.RawContextKey("callStackItemStopped",!1),t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=new r.RawContextKey("callStackSessionHasOneThread",!1),t.CONTEXT_WATCH_ITEM_TYPE=new r.RawContextKey("watchItemType",void 0),t.CONTEXT_BREAKPOINT_ITEM_TYPE=new r.RawContextKey("breakpointItemType",void 0),t.CONTEXT_BREAKPOINT_ACCESS_TYPE=new r.RawContextKey("breakpointAccessType",void 0),t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=new r.RawContextKey("breakpointSupportsCondition",!1),t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=new r.RawContextKey("loadedScriptsSupported",!1),t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=new r.RawContextKey("loadedScriptsItemType",void 0),t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=new r.RawContextKey("focusedSessionIsAttach",!1),t.CONTEXT_STEP_BACK_SUPPORTED=new r.RawContextKey("stepBackSupported",!1),t.CONTEXT_RESTART_FRAME_SUPPORTED=new r.RawContextKey("restartFrameSupported",!1),t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=new r.RawContextKey("stackFrameSupportsRestart",!1),t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=new r.RawContextKey("jumpToCursorSupported",!1),t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=new r.RawContextKey("stepIntoTargetsSupported",!1),t.CONTEXT_BREAKPOINTS_EXIST=new r.RawContextKey("breakpointsExist",!1),t.CONTEXT_DEBUGGERS_AVAILABLE=new r.RawContextKey("debuggersAvailable",!1),t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=new r.RawContextKey("debugProtocolVariableMenuContext",void 0),t.CONTEXT_SET_VARIABLE_SUPPORTED=new r.RawContextKey("debugSetVariableSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=new r.RawContextKey("breakWhenValueChangesSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=new r.RawContextKey("breakWhenValueIsAccessedSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=new r.RawContextKey("breakWhenValueIsReadSupported",!1),t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=new r.RawContextKey("variableEvaluateNamePresent",!1),t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=new r.RawContextKey("exceptionWidgetVisible",!1),t.CONTEXT_MULTI_SESSION_REPL=new r.RawContextKey("multiSessionRepl",!1),t.CONTEXT_MULTI_SESSION_DEBUG=new r.RawContextKey("multiSessionDebug",!1),t.CONTEXT_CAN_VIEW_MEMORY=new r.RawContextKey("canViewMemory",void 0),t.CONTEXT_ACTIVE_BREAKPOINTS=new r.RawContextKey("activateBreakpoints",!0)},95581:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53670:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MASSIVE_PROPERTY_FLAG=t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR=t.DEFAULT_CONFIGURATION_NAME_SEPARATOR=t.DEFAULT_NO_CONFIGURATION_KEY=t.DEFAULT_DYNAMIC_CONFIGURATION_KEY=t.DEFAULT_EDIT_CONFIGURATION_KEY=t.DEFAULT_ADD_CONFIGURATION_KEY=t.DebugConfiguration=void 0;var e;(function(n){function r(o){return!!o&&typeof o=="object"&&"type"in o&&"name"in o&&"request"in o}n.is=r})(e||(t.DebugConfiguration=e={})),t.DEFAULT_ADD_CONFIGURATION_KEY="__ADD_CONF__",t.DEFAULT_EDIT_CONFIGURATION_KEY="__EDIT_CONF__",t.DEFAULT_DYNAMIC_CONFIGURATION_KEY="__DYNAMIC_CONF__",t.DEFAULT_NO_CONFIGURATION_KEY="__NO_CONF__",t.DEFAULT_CONFIGURATION_NAME_SEPARATOR="__CONF__",t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR="__INDEX__",t.MASSIVE_PROPERTY_FLAG="massive_property_flag"},70049:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugConsoleModelService=void 0,t.IDebugConsoleModelService=Symbol("IDebugConsoleModelService")},24395:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugEditor=void 0,t.DebugEditor=Symbol("DebugEditor")},91797:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFrameDeemphasized=e;function e(n){var r,o;const l=(r=n.presentationHint)!==null&&r!==void 0?r:(o=n.source)===null||o===void 0?void 0:o.presentationHint;return l==="deemphasize"||l==="subtle"}},2242:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32385:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugModelManager=t.DebugModelSupportedEventType=t.MemoryRegion=t.IDebugModel=t.DebugModelFactory=t.DebugAdapterContribution=t.DebugAdapterFactory=t.DebugAdapterSessionFactory=t.DebugAdapterSession=void 0;const n=e(43718);t.DebugAdapterSession=Symbol("DebugAdapterSession"),t.DebugAdapterSessionFactory=Symbol("DebugAdapterSessionFactory"),t.DebugAdapterFactory=Symbol("DebugAdapterFactory"),t.DebugAdapterContribution=Symbol("DebugAdapterContribution"),t.DebugModelFactory=Symbol("DebugModelFactory"),t.IDebugModel=Symbol("IDebugModel");class r extends n.Disposable{constructor(_,v){super(),this.memoryReference=_,this.session=v,this.invalidateEmitter=this.registerDispose(new n.Emitter),this.onDidInvalidate=this.invalidateEmitter.event,this.writable=!!this.session.capabilities.supportsWriteMemoryRequest,this.registerDispose(v.onDidInvalidateMemory(m=>{m.body.memoryReference===_&&this.invalidate(m.body.offset,m.body.count-m.body.offset)}))}async read(_,v){var m;const p=v-_,s=_,h=await this.session.readMemory(this.memoryReference,s,p);if(h===void 0||!(!((m=h.body)===null||m===void 0)&&m.data))return[{type:1,offset:s,length:p}];let a;try{a=(0,n.decodeBase64)(h.body.data)}catch(d){return[{type:2,offset:s,length:p,error:d.message}]}const g=h.body.unreadableBytes||0,u=p-g;if(a.byteLength<u){const d=n.BinaryBuffer.alloc(u-a.byteLength);d.buffer.fill(0),a=n.BinaryBuffer.concat([a,d],u)}else a.byteLength>u&&(a=a.slice(0,u));return g?[{type:0,offset:s,length:u,data:a},{type:1,offset:s+u,length:g}]:[{type:0,offset:s,length:p,data:a}]}async write(_,v){var m,p;const s=await this.session.writeMemory(this.memoryReference,_,(0,n.encodeBase64)(v),!0),h=(p=(m=s?.body)===null||m===void 0?void 0:m.bytesWritten)!==null&&p!==void 0?p:v.byteLength;return this.invalidate(_,_+h),h}dispose(){super.dispose()}invalidate(_,v){this.invalidateEmitter.fire({fromOffset:_,toOffset:v})}}t.MemoryRegion=r;var o;(function(l){l.down="Down",l.move="Move",l.leave="Leave",l.contextMenu="contextMenu"})(o||(t.DebugModelSupportedEventType=o={})),t.IDebugModelManager=Symbol("DebugModelManager")},79845:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugProgress=void 0,t.IDebugProgress=Symbol("DebugProgress")},60709:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA_TYPE=t.launchDefaultSchemaUri=t.launchExtensionSchemaUri=t.launchSchemaUri=void 0,t.launchSchemaUri="vscode://schemas/launch",t.launchExtensionSchemaUri="vscode://schemas/launch/extension",t.launchDefaultSchemaUri="vscode://schemas/launch/user";var e;(function(n){n.ARRAY="array",n.BOOLEAN="boolean",n.NULL="null",n.NUMBER="number",n.OBJECT="object",n.STRING="string"})(e||(t.JSON_SCHEMA_TYPE=e={}))},70159:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILaunchService=t.IDebugService=t.IDebugServer=t.DebugAdapterPath=t.DebugConfigurationProviderTriggerKind=void 0;var e;(function(n){n[n.Initial=1]="Initial",n[n.Dynamic=2]="Dynamic"})(e||(t.DebugConfigurationProviderTriggerKind=e={})),t.DebugAdapterPath="DebugAdaptor",t.IDebugServer=Symbol("DebugServer"),t.IDebugService=Symbol("DebugService"),t.ILaunchService=Symbol("ILaunchService")},50883:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionDTO=void 0;var e;(function(n){function r(o){return"id"in o}n.is=r})(e||(t.IDebugSessionDTO=e={}))},26296:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionManager=t.IDebugSession=t.DebugState=void 0,t.getSequenceId=r;var e;(function(o){o[o.Inactive=0]="Inactive",o[o.Initializing=1]="Initializing",o[o.Running=2]="Running",o[o.Stopped=3]="Stopped"})(e||(t.DebugState=e={})),t.IDebugSession=Symbol("DebugSession"),t.IDebugSessionManager=Symbol("DebugSessionManager");let n=1;function r(){return n++}},64582:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(53670),t),n.__exportStar(e(70159),t),n.__exportStar(e(2242),t),n.__exportStar(e(95581),t),n.__exportStar(e(32385),t),n.__exportStar(e(26296),t),n.__exportStar(e(70049),t),n.__exportStar(e(50883),t),n.__exportStar(e(24395),t),n.__exportStar(e(79845),t),n.__exportStar(e(60709),t),n.__exportStar(e(7428),t),n.__exportStar(e(37723),t),n.__exportStar(e(4983),t),n.__exportStar(e(71120),t),n.__exportStar(e(46118),t)},7428:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},71120:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindowsDriveLetter=r,t.hasDriveLetter=o,t.getDriveLetter=l,t.prepareCommand=_;const n=e(43718);function r(v){return v>=65&&v<=90||v>=97&&v<=122}function o(v,m=n.isWindows){return m?r(v.charCodeAt(0))&&v.charCodeAt(1)===58:!1}function l(v){return o(v)?v[0]:void 0}function _(v,m,p,s,h){v=v.trim().toLowerCase();let a;v.indexOf("powershell")>=0||v.indexOf("pwsh")>=0?a=1:v.indexOf("cmd.exe")>=0?a=0:v.indexOf("bash")>=0?a=2:n.isWindows?a=0:a=2;let g,u=" ";switch(a){case 1:if(g=d=>(d=d.replace(/'/g,"''"),d.length>0&&d.charAt(d.length-1)==="\\"?`'${d}\\'`:`'${d}'`),s){const d=l(s);d&&(u+=`${d}:; `),u+=`cd ${g(s)}; `}if(h)for(const d in h){const E=h[d];E===null?u+=`Remove-Item env:${d}; `:u+=`\${env:${d}}='${E}'; `}if(m.length>0){const d=m.shift(),E=p?d:g(d);u+=E[0]==="'"?`& ${E} `:`${E} `;for(const f of m)u+=f==="<"||f===">"||p?f:g(f),u+=" "}break;case 0:if(g=d=>(d=d.replace(/"/g,'""'),d=d.replace(/([><!^&|])/g,"^$1"),' "'.split("").some(E=>d.includes(E))||d.length===0?`"${d}"`:d),s){const d=l(s);d&&(u+=`${d}: && `),u+=`cd ${g(s)} && `}if(h){u+='cmd /C "';for(const d in h){let E=h[d];E===null?u+=`set "${d}=" && `:(E=E.replace(/[&^|<>]/g,f=>`^${f}`),u+=`set "${d}=${E}" && `)}}for(const d of m)u+=d==="<"||d===">"||p?d:g(d),u+=" ";h&&(u+='"');break;case 2:{g=E=>(E=E.replace(/(["'\\$!><#()[\]*&^| ;{}`])/g,"\\$1"),E.length===0?'""':E);const d=E=>/[^\w@%/+=,.:^-]/.test(E)?`'${E.replace(/'/g,"'\\''")}'`:E;if(s&&(u+=`cd ${g(s)} ; `),h){u+="/usr/bin/env";for(const E in h){const f=h[E];f===null?u+=` -u ${d(E)}`:u+=` ${d(`${E}=${f}`)}`}u+=" "}for(const E of m)u+=E==="<"||E===">"||p?E:g(E),u+=" ";break}}return u}},37723:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConfigurationsReadyEvent=t.DEBUG_REPORT_NAME=void 0;const n=e(43718);var r;(function(l){l.DEBUG_SESSION_START_TIME="debugSessionStartTime",l.DEBUG_PRE_LAUNCH_TASK_TIME="debugPreLaunchTaskTime",l.DEBUG_TOOLBAR_OPERATION_TIME="debugToolBarOperationTime",l.DEBUG_TOOLBAR_OPERATION="debugToolBarOperation",l.DEBUG_PANEL_OPERATION_FOLDEXPR="debugPanelOperationFoldexpr",l.DEBUG_WATCH="debugWatch",l.DEBUG_VARIABLES="debugVariables",l.DEBUG_BREAKPOINT="debugBreakpoint",l.DEBUG_ADAPTER_PROTOCOL_TIME="debugAdapterProtocolTime",l.DEBUG_STOPPED="debugStopped",l.DEBUG_UI_FRONTEND_TIME="debugFrontEndTime"})(r||(t.DEBUG_REPORT_NAME=r={}));class o extends n.BasicEvent{}t.DebugConfigurationsReadyEvent=o},66482:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(64582),t)},83670:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDecorationsService=void 0;const n=e(85608),r=e(76003),o=e(43718),{isFalsyOrWhitespace:l}=o.strings,{asArray:_}=o.arrays;class v{constructor(){this._data=o.TernarySearchTree.forPaths()}affectsResource(u){return this._data.get(u.toString())||this._data.findSuperstr(u.toString())!==void 0}static debouncer(u,d){if(u||(u=new v),Array.isArray(d))for(const E of d)u._data.set(E.toString(),!0);else u._data.set(d.toString(),!0);return u}}class m{constructor(u,d){this.source=u,this.thenable=d}}class p{constructor(u,d,E){this._provider=u,this._uriEmitter=d,this._flushEmitter=E,this.data=o.TernarySearchTree.forPaths(),this._dispoable=this._provider.onDidChange(f=>{if(!f)this.data.clear(),this._flushEmitter.fire({affectsResource(){return!0}});else for(const c of f)this._fetchData(c)})}dispose(){this._dispoable.dispose(),this.data.clear()}knowsAbout(u){return!!this.data.get(u.toString())||!!this.data.findSuperstr(u.toString())}getOrRetrieve(u,d,E){const f=u.toString();let c=this.data.get(f);if(c===void 0&&(c=this._fetchData(u)),c&&!(c instanceof m)&&E(c,!1),d){const y=this.data.findSuperstr(f);if(y)for(let b=y.next();!b.done;b=y.next())b.value&&!(b.value instanceof m)&&E(b.value,!0)}}_fetchData(u){const d=this.data.get(u.toString());d instanceof m&&(d.source.cancel(),this.data.delete(u.toString()));const E=new o.CancellationTokenSource,f=this._provider.provideDecorations(u,E.token);if((0,o.isThenable)(f)){const c=new m(E,Promise.resolve(f).then(y=>{this.data.get(u.toString())===c&&this._keepItem(u,y)}).catch(y=>{!(0,o.isPromiseCanceledError)(y)&&this.data.get(u.toString())===c&&this.data.delete(u.toString())}));return this.data.set(u.toString(),c),null}else return this._keepItem(u,f)}_keepItem(u,d){const E=d||null,f=this.data.set(u.toString(),E);return(E||f)&&this._uriEmitter.fire(u),E}}function s(g){return _(g).map(({color:d,letter:E})=>`${d}/${E}`).join(",")}function h(g){const u=_(g);if(u.length)return{key:s(g),color:u[0].color,badge:u.filter(d=>!l(d.letter)).map(d=>d.letter).join(","),tooltip:u.filter(d=>!l(d.tooltip)).map(d=>d.tooltip).join(" \u2022 ")}}let a=class extends o.Disposable{constructor(){super(...arguments),this.logger=(0,o.getDebugLogger)(),this._data=new o.LinkedList,this._onDidChangeDecorationsDelayed=new o.Emitter,this._onDidChangeDecorations=new o.Emitter,this.onDidChangeDecorations=o.Event.any(this._onDidChangeDecorations.event,o.Event.debounce(this._onDidChangeDecorationsDelayed.event,v.debouncer,void 0,void 0,500))}dispose(){(0,o.dispose)(this._onDidChangeDecorations),(0,o.dispose)(this._onDidChangeDecorationsDelayed)}registerDecorationsProvider(u){this.logger.log("DecorationService#registerDecorationsProvider",u);const d=new p(u,this._onDidChangeDecorationsDelayed,this._onDidChangeDecorations),E=this._data.push(d);return this._onDidChangeDecorations.fire({affectsResource(){return!0}}),(0,o.toDisposable)(()=>{E(),this._onDidChangeDecorations.fire({affectsResource:f=>d.knowsAbout(f)}),d.dispose()})}getDecoration(u,d){const E=[];let f=!1;for(let c=this._data.iterator(),y=c.next();!y.done;y=c.next())y.value.getOrRetrieve(u,d,(b,A)=>{(!A||b.bubble)&&(E.push(b),f=A||f)});if(E.length!==0)return this.asDecoration(E,f)}asDecoration(u,d){u.sort((f,c)=>(c.weight||0)-(f.weight||0));const E=h(u);return E&&d&&(E.badge="\u2022",E.tooltip=(0,o.localize)("bubbleTitle","Contains emphasized items")),E}};t.FileDecorationsService=a,t.FileDecorationsService=a=n.__decorate([(0,r.Injectable)()],a)},4958:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93364),_=e(83670);let v=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.IDecorationsService,useClass:_.FileDecorationsService}]}};t.DecorationModule=v,t.DecorationModule=v=n.__decorate([(0,r.Injectable)()],v)},93364:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationsService=void 0;const n=e(43718);class r extends n.Disposable{}t.IDecorationsService=r},87323:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(93364),t)},41893:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(87323),t)},67988:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignCoreContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(1149),_=e(43718),v=e(14951),m=e(2156),p=e(11090),s=e(37517);let h=class{initialize(){this.fileSystem.registerProvider(_.Schemes.design,this.designThemeFileSystemProvider),this.layoutViewSize.setEditorTabsHeight(36,l.ConfigPriority.ModuleDefined),this.layoutViewSize.setStatusBarHeight(36,l.ConfigPriority.ModuleDefined),this.layoutViewSize.setAccordionHeaderSizeHeight(36,l.ConfigPriority.ModuleDefined)}registerRenderer(g){g.registerSlotRenderer(o.SlotLocation.view,p.DesignLeftTabRenderer,{supportedActions:{accordion:!0}}),g.registerSlotRenderer(o.SlotLocation.panel,p.DesignBottomTabRenderer,{isLatter:!0,supportedActions:{expand:!0,toggle:!0}}),g.registerSlotRenderer(o.SlotLocation.extendView,p.DesignRightTabRenderer,{isLatter:!0,supportedActions:{accordion:!0}})}};t.DesignCoreContribution=h,n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",m.FileServiceClient)],h.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",s.DesignThemeFileSystemProvider)],h.prototype,"designThemeFileSystemProvider",void 0),n.__decorate([(0,r.Autowired)(l.LayoutViewSizeConfig),n.__metadata("design:type",l.LayoutViewSizeConfig)],h.prototype,"layoutViewSize",void 0),t.DesignCoreContribution=h=n.__decorate([(0,r.Injectable)(),(0,o.Domain)(o.ClientAppContribution,o.SlotRendererContribution)],h)},17242:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(71707),_=e(80832),v=e(97222),m=e(43718),p=e(57517),s=e(52416),h=e(51706),a=e(9132),g=e(67988),u=e(3013),d=e(31385),E=e(72141),f=e(45365),c=n.__importDefault(e(49107)),y=n.__importDefault(e(13925)),b=n.__importDefault(e(63080)),A=e(98741);let S=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[u.DesignMenuBarContribution,g.DesignCoreContribution],this.preferences=I=>{e.e(454).then(e.bind(e,77454)),I.get(_.IDesignStyleService).setStyles(c.default),(0,A.overrideColorToken)(),(0,A.overrideMonacoColorToken)();const T=I.get(m.AppLifeCycleServiceToken);m.Event.once(m.Event.filter(T.onDidLifeCyclePhaseChange,R=>R===3))(()=>{const R=I.get(s.IThemeService);[y.default,b.default].forEach(M=>{R.registerThemes([{id:M.id,label:M.name,path:"",extensionId:M.id,uiTheme:M.base}],o.URI.parse(`${M.id}.json`).withQuery(M.id).withScheme(m.Schemes.design))})}),I.overrideProviders({token:s.IThemeStore,useClass:class extends h.ThemeStore{async getThemeData(R,M){const O=await super.getThemeData(R,M);return document.body.classList.remove(b.default.designThemeType),document.body.classList.remove(y.default.designThemeType),y.default.id===R?.id?document.body.classList.add(y.default.designThemeType):b.default.id===R?.id&&document.body.classList.add(b.default.designThemeType),O}},override:!0,isDefault:!0},{token:s.IThemeService,useClass:class extends a.WorkbenchThemeService{async ensureValidTheme(){return super.ensureValidTheme(y.default.id)}},override:!0,isDefault:!0},{token:p.IEditorTabService,useClass:d.DesignEditorTabService,override:!0,isDefault:!0},{token:l.ISplitPanelService,useClass:f.DesignSplitPanelService,override:!0,isDefault:!0},{token:v.IBrowserCtxMenu,useClass:E.DesignBrowserCtxMenuService})}}};t.DesignModule=S,t.DesignModule=S=n.__decorate([(0,r.Injectable)()],S)},11090:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignRightTabRenderer=t.DesignBottomTabRenderer=t.DesignLeftTabRenderer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(19951),_=({className:p,components:s,tabbarView:h})=>o.default.createElement(l.LeftTabRenderer,{className:(0,r.default)(p,"design_left_slot"),components:s,tabbarView:h});t.DesignLeftTabRenderer=_;const v=({className:p,components:s})=>o.default.createElement(l.BottomTabRenderer,{className:(0,r.default)(p,"design_bottom_slot"),components:s});t.DesignBottomTabRenderer=v;const m=({className:p,components:s,tabbarView:h,tabpanelView:a})=>o.default.createElement(l.RightTabRenderer,{className:(0,r.default)("design_right_slot",p),components:s,tabbarView:h,tabpanelView:a});t.DesignRightTabRenderer=m},3013:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(64267),v=e(38879),m=e(12458);let p=class extends o.Disposable{constructor(){super(),this.menubarStore.unregisterMenusBarByCompact(l.MenuId.DesignMenuBarTopExtra);let h;this.addDispose(this.menubarStore.onDidMenuBarChange(a=>{h&&h.dispose(),h=this.menuRegistry.registerMenuItems(l.MenuId.DesignMenuBarTopExtra,a.map(g=>{var u;return{label:g.label,submenu:g.id,iconClass:g.iconClass,group:g.group||"1_navigation",order:(u=g.order)!==null&&u!==void 0?u:100}}))}))}registerComponent(h){h.register(v.DESIGN_MENUBAR_CONTAINER_VIEW_ID,{component:m.DesignMenuBarView,id:v.DESIGN_MENUBAR_CONTAINER_VIEW_ID})}};t.DesignMenuBarContribution=p,n.__decorate([(0,r.Autowired)(_.MenubarStore),n.__metadata("design:type",_.MenubarStore)],p.prototype,"menubarStore",void 0),n.__decorate([(0,r.Autowired)(l.IMenuRegistry),n.__metadata("design:type",l.IMenuRegistry)],p.prototype,"menuRegistry",void 0),t.DesignMenuBarContribution=p=n.__decorate([(0,o.Domain)(o.ComponentContribution),n.__metadata("design:paramtypes",[])],p)},12458:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(89195),m=e(1149),p=e(63373),s=e(93899),h=e(43718),a=e(63067),g=e(55039),u=e(38879),d=n.__importDefault(e(52151)),E=n.__importDefault(e(90946)),f=()=>{const y=(0,l.useInjectable)(s.AbstractContextMenuService),b=(0,l.useInjectable)(m.DesignLayoutConfig),A=(0,l.useInjectable)(s.ICtxMenuRenderer),S=o.useRef(null),[D,I]=o.useState(void 0);o.useEffect(()=>{w()},[]);const w=o.useCallback(O=>{requestAnimationFrame(()=>{if(S.current){const x=S.current.getBoundingClientRect(),{x:k,y:F,width:L,height:N}=x,U={x:k,y:F+N};I(U),O&&O(U)}})},[S.current]),T=o.useMemo(()=>y.createMenu({id:s.MenuId.DesignMenuBarTopExtra}),[y]),R=o.useCallback(()=>{if(!D)return;const O=T.getMergedMenuNodes();T.dispose(),w(x=>{A.show({anchor:x,menuNodes:O})})},[D,T]),M=o.useMemo(()=>b.menubarLogo||d.default,[b.menubarLogo]);return o.createElement(o.Fragment,null,o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.ai_enhance_menu,ref:S,onClick:R},o.createElement("div",{className:E.default.logo_container},o.createElement("img",{className:E.default.extra_top_icon,src:M,alt:""}),o.createElement(_.Icon,{className:(0,r.default)((0,l.getIcon)("down"),E.default.caret_icon)}))))},c=()=>{const y=(0,l.useInjectable)(h.CommandService),b=(0,l.useInjectable)(a.IMainLayoutService),A=(0,l.useInjectable)(l.AINativeConfigService),[S,D]=o.useState(!1);o.useEffect(()=>{requestAnimationFrame(()=>{D(w())});const R=b.getTabbarService(l.SlotLocation.view).onCurrentChange(({previousId:M,currentId:O})=>{M&&!O?D(!1):!M&&O&&D(!0)});return()=>{R.dispose()}},[]);const I=o.useCallback(()=>{y.executeCommand("main-layout.left-panel.toggle"),requestAnimationFrame(()=>{D(w())})},[]),w=o.useCallback(()=>!!b.getTabbarService(l.SlotLocation.view).currentContainerId.get(),[b]);return o.createElement("div",{id:p.VIEW_CONTAINERS.MENUBAR,className:E.default.menu_bar_view,style:{height:A.layoutViewSize.menubarHeight}},o.createElement("div",{className:E.default.container},o.createElement("div",{className:E.default.left},o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.enhance_menu,icon:S?"left-nav-open":"left-nav-close",onClick:I}),o.createElement("span",{className:E.default.dividing}),o.createElement("div",{className:E.default.top_menus_bar},o.createElement(f,null)),o.createElement(l.SlotRenderer,{id:"design-menubar-left",slot:u.DESIGN_MENU_BAR_LEFT,flex:1})),o.createElement("div",{className:E.default.right},o.createElement(g.ToolBar,null),o.createElement(l.SlotRenderer,{id:"design-menubar-right",slot:u.DESIGN_MENU_BAR_RIGHT,flex:1}))))};t.DesignMenuBarView=c},31385:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignEditorTabService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(81878),v=e(1149),m=e(43718),p=e(30612),s=n.__importDefault(e(49107)),h=g=>{const{children:u}=g,[d,E]=o.default.useState(!1),f=(0,o.useMemo)(()=>"editor-tab-close-"+(0,m.uuid)(6),[]),c=(0,o.useCallback)(()=>{E(!1)},[]),y=(0,o.useMemo)(()=>(0,m.formatLocalize)("editor.closeTab.title",m.isMacintosh?"\u2318W":"Ctrl+W"),[]);return o.default.createElement(_.Popover,{delay:1e3,position:_.PopoverPosition.bottom,id:f,title:y,onClickAction:c,display:d},o.default.createElement("span",{title:""},u))};let a=class extends p.EditorTabService{renderEditorTab(u,d){return o.default.createElement("div",{className:(0,r.default)({[s.default["design-editor_tab_block_container"]]:!0,[s.default.active]:d}),style:{height:this.layoutViewSize.editorTabsHeight}},u)}renderTabCloseComponent(u){return o.default.createElement(h,null,u)}};t.DesignEditorTabService=a,n.__decorate([(0,l.Autowired)(v.LayoutViewSizeConfig),n.__metadata("design:type",v.LayoutViewSizeConfig)],a.prototype,"layoutViewSize",void 0),t.DesignEditorTabService=a=n.__decorate([(0,l.Injectable)()],a)},72141:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignBrowserCtxMenuService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(97267),v=e(41869),m=e(31388),p=e(52416),s=n.__importDefault(e(49107)),h=g=>{const u=(0,v.useInjectable)(p.IIconService),{data:d,disabled:E,hasSubmenu:f}=g,c=(0,o.useMemo)(()=>d.checked?o.default.createElement(_.Icon,{icon:"check"}):d.icon?o.default.createElement(_.Icon,{iconClass:d.icon}):null,[d]);return o.default.createElement("div",{className:(0,r.default)(s.default.menuAction__sub_menu_action_container,{[s.default.disabled]:E,[s.default.checked]:d.checked},d.className)},o.default.createElement("div",{className:s.default.icon},c),o.default.createElement("div",{className:s.default.label},d.label?(0,v.transformLabelWithCodicon)(v.strings.mnemonicButtonLabel(d.label,!0),{margin:"0 3px"},u?.fromString.bind(u)):""),o.default.createElement("div",{className:s.default.tip},d.keybinding?o.default.createElement("div",{className:s.default.shortcut},d.keybinding):null,f?o.default.createElement("div",{className:s.default.submenuIcon},o.default.createElement(_.Icon,{icon:"right-arrow"})):null,!d.keybinding&&!f&&d.extraDesc&&o.default.createElement("div",{className:s.default.extraDesc},d.extraDesc)))};let a=class extends m.BrowserCtxMenuService{renderSubMenuTitle(u,d){return o.default.createElement(h,{data:u,...d})}renderMenuItem(u,d){return o.default.createElement(h,{data:u,...d})}};t.DesignBrowserCtxMenuService=a,t.DesignBrowserCtxMenuService=a=n.__decorate([(0,l.Injectable)()],a)},45365:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignSplitPanelService=void 0;const n=e(71707);class r extends n.SplitPanelService{renderSplitPanel(l,_,v){return super.renderSplitPanel(l,_,v)}interceptProps(l){return l}}t.DesignSplitPanelService=r},13925:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#D4D4D4"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#6A9955"}},{scope:"constant.language",settings:{foreground:"#569cd6"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#b5cea8"}},{scope:"constant.regexp",settings:{foreground:"#646695"}},{scope:"entity.name.tag",settings:{foreground:"#569cd6"}},{scope:"entity.name.tag.css",settings:{foreground:"#d7ba7d"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9cdcfe"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#d7ba7d"}},{scope:"invalid",settings:{foreground:"#f44747"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#b5cea8"}},{scope:"markup.deleted",settings:{foreground:"#ce9178"}},{scope:"markup.changed",settings:{foreground:"#569cd6"}},{scope:"punctuation.definition.quote.begin.markdown",settings:{foreground:"#6A9955"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#6796e6"}},{scope:"markup.inline.raw",settings:{foreground:"#ce9178"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#808080"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#569cd6"}},{scope:"meta.preprocessor.string",settings:{foreground:"#ce9178"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#b5cea8"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#9cdcfe"}},{scope:"meta.diff.header",settings:{foreground:"#569cd6"}},{scope:"storage",settings:{foreground:"#569cd6"}},{scope:"storage.type",settings:{foreground:"#569cd6"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#569cd6"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#ce9178"}},{scope:"string.tag",settings:{foreground:"#ce9178"}},{scope:"string.value",settings:{foreground:"#ce9178"}},{scope:"string.regexp",settings:{foreground:"#d16969"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#569cd6"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#d4d4d4"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#9cdcfe"}},{scope:"keyword",settings:{foreground:"#569cd6"}},{scope:"keyword.control",settings:{foreground:"#569cd6"}},{scope:"keyword.operator",settings:{foreground:"#d4d4d4"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#569cd6"}},{scope:"keyword.other.unit",settings:{foreground:"#b5cea8"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#569cd6"}},{scope:"support.function.git-rebase",settings:{foreground:"#9cdcfe"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#b5cea8"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#d4d4d4"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#569cd6"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#DCDCAA"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#4EC9B0"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#4EC9B0"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#C586C0"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.nam1e.variable","constant.other.placeholder"],settings:{foreground:"#9CDCFE"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#4FC1FF"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#9CDCFE"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#CE9178"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#CE9178"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#d16969"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#DCDCAA"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#d7ba7d"}},{scope:"constant.character",settings:{foreground:"#569cd6"}},{scope:"constant.character.escape",settings:{foreground:"#d7ba7d"}},{scope:"entity.name.label",settings:{foreground:"#C8C8C8"}}],colors:{"activityBar.activeBorder":"#ffffff1f","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#fff","activityBar.inactiveForeground":"#ffffff73","activityBarBadge.background":"#167CDB","activityBarBadge.foreground":"#FFFFFF","badge.background":"#FFFFFF40","badge.foreground":"#D7DBDE","breadcrumb.background":"#222830","breadcrumb.foreground":"#ffffff73","checkbox.background":"#ffffff14","checkbox.border":"#ffffff1f",descriptionForeground:"#868C91","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#43484D","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#00000000","editorGroupHeader.tabsBackground":"#222830","editorSuggestWidget.selectedBackground":"#1A66AC",errorForeground:"#D21F28",focusBorder:"#ffffff1f",foreground:"#D7DBDE","editorCommentsWidget.unresolvedBorder":"#ffffff","gitDecoration.addedResourceForeground":"#8FD460","gitDecoration.conflictingResourceForeground":"#7F9EF3","gitDecoration.deletedResourceForeground":"#F3956A","gitDecoration.ignoredResourceForeground":"#BBC0C4","gitDecoration.modifiedResourceForeground":"#F3CC62","gitDecoration.submoduleResourceForeground":"#67ABEB","gitDecoration.untrackedResourceForeground":"#58D1C9","icon.foreground":"#D7DBDE","input.background":"#ffffff14","input.foreground":"#d7dbde","input.placeholderForeground":"#ffffff59","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#332510","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#d7dbde","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#D7DBDE","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#5F656B40","kt.button.disableBorder":"#5F656B80","kt.button.disableForeground":"#5F656B","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.defaultButton.background":"#ffffff14","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#ffffff14","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#ffffff14","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#ffffff40","kt.defaultButton.foreground":"#D7DBDE","kt.defaultButton.hoverBackground":"#ffffff29","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#ffffff29","kt.defaultButton.selectionForeground":"#fff","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#ffffff73","kt.icon.hoverBackground":"#ffffff14","kt.icon.hoverForeground":"#D7DBDE","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#00000000","kt.input.disableBackground":"#5F656B40","kt.input.disableForeground":"#ffffff40","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#222830","kt.modal.foreground":"#D7DBDE","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#868C91","kt.panelTab.activeBackground":"#151b21","kt.panelTab.activeForeground":"#FFFFFF","kt.panelTab.border":"#ffffff1f","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#D7DBDE","kt.panelTitle.background":"#222830","kt.popover.background":"#2b333d","kt.popover.border":"#363940","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dffa6","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#3c8dffa6","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#00000000","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#00000000","kt.secondaryButton.border":"#5F656B","kt.secondaryButton.clickBorder":"#167CDB","kt.secondaryButton.clickForeground":"#167CDB","kt.secondaryButton.foreground":"#D7DBDE","kt.secondaryButton.hoverBorder":"#3895EB","kt.secondaryButton.hoverForeground":"#3895EB","kt.secondaryButton.background":"#00000000","kt.select.background":"#ffffff14","kt.select.border":"#00000000","kt.select.disableBackground":"#5F656B40","kt.select.disableForeground":"#5F656B","kt.select.foreground":"#D7DBDE","kt.select.placeholderForeground":"#5F656B","kt.selectDropdown.background":"#222830","kt.selectDropdown.foreground":"#D7DBDE","kt.selectDropdown.hoverBackground":"#ffffff14","kt.selectDropdown.selectionBackground":"#ffffff14","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#FFFFFF","kt.tab.borderDown":"#5F656B40","kt.tab.inactiveForeground":"#D7DBDE","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#5F656B40","kt.tree.hoverForeground":"#D7DBDE","kt.tree.inactiveSelectionBackground":"#ffffff1f","kt.tree.inactiveSelectionForeground":"#fff","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#5F656B40","menu.background":"#222830d9","menu.foreground":"#D7DBDE","menu.selectionBackground":"#5F656B40","menu.selectionForeground":"#FFFFFF","menu.separatorBackground":"#43484D","menubar.selectionBackground":"#5f656b40","menubar.selectionForeground":"#FFFFFF","message.background":"#222830","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#222830","notifications.foreground":"#D7DBDE","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#151b21","panel.border":"#43484D","panel.foreground":"#D7DBDE","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#167CDB","panelTitle.activeForeground":"#FFFFFF","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#ffffff73","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#ffffff1f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#ffffffa6","sideBarTitle.foreground":"#FFFFFF","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#ffffff73","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#d2d2d2a6","statusBarItem.prominentBackground":"#2a2a2a80","tab.activeBackground":"#151b21","tab.activeForeground":"#FFFFFF","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#ffffff73","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#151b21","terminal.border":"#252729","terminal.foreground":"#D7DBDE","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#ffffff14","editor.background":"#181818","quickInput.background":"#222830","list.focusBackground":"#ffffff1f","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#151b21"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs-dark",designThemeType:"design-dark",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-dark-theme",name:"OpenSumi Design Dark+ (default dark)"}},37517:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignThemeFileSystemProvider=void 0;const n=e(85608),r=e(76003),o=e(43718),l=n.__importDefault(e(13925)),_=n.__importDefault(e(63080));let v=class{constructor(){this.capabilities=2048,this.onDidChangeCapabilities=o.Event.None,this.onDidChangeFile=o.Event.None}stat(p){return Promise.resolve({type:o.FileType.File,uri:p.toString(),lastModification:Date.now(),isDirectory:!1})}async readFile(p){const{query:s}=p;return l.default.id===s?this.toBuffer(JSON.stringify(l.default)):this.toBuffer(JSON.stringify(_.default))}toBuffer(p){return o.BinaryBuffer.fromString(p).buffer}readDirectory(){throw new Error("Not allowed")}createDirectory(){throw new Error("Not allowed")}rename(){throw new Error("Not allowed")}delete(){throw new Error("Not allowed")}watch(){throw new Error("Not allowed")}writeFile(){throw new Error("Not allowed")}};t.DesignThemeFileSystemProvider=v,t.DesignThemeFileSystemProvider=v=n.__decorate([(0,r.Injectable)()],v)},63080:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#000000ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"meta.diff.header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#008000"}},{scope:"constant.language",settings:{foreground:"#0000ff"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#098658"}},{scope:"constant.regexp",settings:{foreground:"#811f3f"}},{name:"css tags in selectors, xml tags",scope:"entity.name.tag",settings:{foreground:"#800000"}},{scope:"entity.name.selector",settings:{foreground:"#800000"}},{scope:"entity.other.attribute-name",settings:{foreground:"#ff0000"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#800000"}},{scope:"invalid",settings:{foreground:"#cd3131"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#000080"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#800000"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#098658"}},{scope:"markup.deleted",settings:{foreground:"#a31515"}},{scope:"markup.changed",settings:{foreground:"#0451a5"}},{scope:["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],settings:{foreground:"#0451a5"}},{scope:"markup.inline.raw",settings:{foreground:"#800000"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#800000"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#0000ff"}},{scope:"meta.preprocessor.string",settings:{foreground:"#a31515"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#098658"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#0451a5"}},{scope:"storage",settings:{foreground:"#0000ff"}},{scope:"storage.type",settings:{foreground:"#0000ff"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#0000ff"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#a31515"}},{scope:["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],settings:{foreground:"#0000ff"}},{scope:"string.regexp",settings:{foreground:"#811f3f"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#0000ff"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#000000"}},{scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#ff0000"}},{scope:["support.type.property-name.json"],settings:{foreground:"#0451a5"}},{scope:"keyword",settings:{foreground:"#0000ff"}},{scope:"keyword.control",settings:{foreground:"#0000ff"}},{scope:"keyword.operator",settings:{foreground:"#000000"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#0000ff"}},{scope:"keyword.other.unit",settings:{foreground:"#098658"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#800000"}},{scope:"support.function.git-rebase",settings:{foreground:"#0451a5"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#098658"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#000000"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#0000ff"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#795E26"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#267f99"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#267f99"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#AF00DB"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],settings:{foreground:"#001080"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#0070C1"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#001080"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#d16969"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#811f3f"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#000000"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#EE0000"}},{scope:"constant.character",settings:{foreground:"#0000ff"}},{scope:"constant.character.escape",settings:{foreground:"#EE0000"}},{scope:"entity.name.label",settings:{foreground:"#000000"}}],colors:{"activityBar.activeBorder":"#151b2114","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#151b21","activityBar.inactiveForeground":"#151b21a6","activityBarBadge.background":"#3C8DFF","activityBarBadge.foreground":"#FFFFFF","badge.background":"#151b5814","badge.foreground":"#151b21a6","breadcrumb.background":"#fff","breadcrumb.foreground":"#5d646c","checkbox.background":"#fff","checkbox.border":"#151b2129",descriptionForeground:"#151b21a6","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#151b2133","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#ffffff","editorGroupHeader.tabsBackground":"#DDE8F4","editorSuggestWidget.selectedBackground":"#6eb6fa40",errorForeground:"#D21F28",focusBorder:"#151b2129",foreground:"#151b21d9","editorCommentsWidget.unresolvedBorder":"#4d9ded","gitDecoration.addedResourceForeground":"#52c41a","gitDecoration.modifiedResourceForeground":"#faad14","gitDecoration.deletedResourceForeground":"#fa541c","gitDecoration.untrackedResourceForeground":"#13c2c2","gitDecoration.ignoredResourceForeground":"#666666","gitDecoration.conflictingResourceForeground":"#ff0000","gitDecoration.submoduleResourceForeground":"#1785eb","icon.foreground":"#151b21d9","input.background":"#fff","input.foreground":"#151b21","input.placeholderForeground":"#151b2173","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#fff","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#151b21","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#151b21a6","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#151b210a","kt.button.disableBorder":"#151b2114","kt.button.disableForeground":"#151b2159","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#151b21a6","kt.icon.hoverBackground":"#151b2114","kt.icon.hoverForeground":"#151b21d9","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#151b2129","kt.input.disableBackground":"#151b210a","kt.input.disableForeground":"#151b2159","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#fff","kt.modal.foreground":"#151b21d9","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#151b21a6","kt.panelTab.activeBackground":"#fff","kt.panelTab.activeForeground":"#151b21","kt.panelTab.border":"#151b2114","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#151b21d9","kt.panelTitle.background":"#fff","kt.popover.background":"#000000e3","kt.popover.border":"#000000e3","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.defaultButton.background":"#fafafb","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#fafafb","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#fff","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#151b2159","kt.defaultButton.foreground":"#000a1aff","kt.defaultButton.hoverBackground":"#F5F5F6","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#fff","kt.defaultButton.selectionForeground":"#151b21","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dff","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#5b9fff","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#fff","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#fff","kt.secondaryButton.border":"#00000026","kt.secondaryButton.clickBorder":"#00000026","kt.secondaryButton.clickForeground":"#151b21","kt.secondaryButton.foreground":"#151b21d9","kt.secondaryButton.background":"#fff","kt.secondaryButton.hoverBorder":"#00000026","kt.secondaryButton.hoverForeground":"#151b21","kt.select.background":"#fff","kt.select.border":"#151b2129","kt.select.disableBackground":"#151b2114","kt.select.disableForeground":"#151b2159","kt.select.foreground":"#151b21","kt.select.placeholderForeground":"#151b2173","kt.selectDropdown.background":"#fff","kt.selectDropdown.foreground":"#151b21","kt.selectDropdown.hoverBackground":"#151b2114","kt.selectDropdown.selectionBackground":"#151b2114","kt.selectDropdown.selectionForeground":"#151b21","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#151b21","kt.tab.borderDown":"#151b211f","kt.tab.inactiveForeground":"#151b21a6","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#151b5814","kt.tree.hoverForeground":"#151b21","kt.tree.inactiveSelectionBackground":"#151b5814","kt.tree.inactiveSelectionForeground":"#151b21","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#151b5814","menu.background":"#FFFFFF","menu.foreground":"#151b21","menu.selectionBackground":"#151b2114","menu.selectionForeground":"#151b21","menu.separatorBackground":"#151b211f","menubar.selectionBackground":"#151b2114","menubar.selectionForeground":"#151b21","message.background":"#151b21d9","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#fff","notifications.foreground":"#151b21d9","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#fff","panel.border":"#43484D","panel.foreground":"#151b21","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#3c8dff","panelTitle.activeForeground":"#151b21","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#151b21a6","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#151b211f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#151b21d9","sideBarTitle.foreground":"#151b21d9","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#151b21a6","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#151b21a6","statusBarItem.prominentBackground":"#f1f1f180","tab.activeBackground":"#ffffff","tab.activeForeground":"#151b21","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#151b21d9","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#FFFFFF","terminal.border":"#252729","terminal.foreground":"#151b21","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#151b211f","editor.background":"#F1F2F3","quickInput.background":"#fff","list.focusBackground":"#151b5814","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#fff","multiDiffEditor.background":"#fff","multiDiffEditor.border":"#151b211f","multiDiffEditor.headerBackground":"#fff"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs",designThemeType:"design-light",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-light-theme",name:"OpenSumi Design Light+ (default light)"}},98741:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideMonacoColorToken=t.overrideColorToken=void 0;const n=e(85608),r=e(52416),o=n.__importDefault(e(13925)),l=n.__importDefault(e(63080)),_=()=>{const m=(0,r.getColorRegistry)();m.getColors().forEach(({id:p})=>{if(o.default.colors[p]&&l.default.colors[p]){const s=m.getColor(p);(0,r.registerColor)(p,{dark:o.default.colors[p],light:l.default.colors[p],hcDark:s.defaults.hcDark||null,hcLight:s.defaults.hcLight||null},s.description)}})};t.overrideColorToken=_;const v=()=>{(0,r.registerColor)("vscode.quickInputList.focusBackground",{light:"#151b2114",dark:"#5F656B40",hcDark:null,hcLight:null},"Quick picker background color for the focused item."),(0,r.registerColor)("quickInputList.focusForeground",{dark:"#ffffff",light:"#151b21",hcDark:null,hcLight:null},"Quick picker foreground color for the focused item.")};t.overrideMonacoColorToken=v},66338:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DESIGN_MENU_BAR_LEFT=t.DESIGN_MENU_BAR_RIGHT=t.DESIGN_MENUBAR_CONTAINER_VIEW_ID=void 0,t.DESIGN_MENUBAR_CONTAINER_VIEW_ID="design_menubar",t.DESIGN_MENU_BAR_RIGHT="design_menu_bar_right",t.DESIGN_MENU_BAR_LEFT="design_menu_bar_left"},38879:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(66338),t)},82353:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(38879),t)},30526:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffEditorPart=t.BaseMonacoEditorWrapper=void 0,t.insertSnippetWithMonacoEditor=h;const n=e(85608),r=e(76003),o=e(43718),l=n.__importStar(e(20868)),_=e(99721),v=e(23418),m=e(84677),p=e(6043),s=e(82196);function h(E,f,c,y){const b=E.getContribution("snippetController2"),A=c.map(S=>new l.Selection(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn));E.setSelections(A),E.focus(),b.insert(f,0,0,y.undoStopBefore,y.undoStopAfter)}const{removeUndefined:a}=o.objects;function g(E,f,c){E.updateOptions(f),E.getModel()&&E.getModel().updateOptions(c)}let u=class extends o.WithEventBus{get currentUri(){return this.currentDocumentModel?this.currentDocumentModel.uri:null}getId(){return this.monacoEditor.getId()}getSelections(){return this.monacoEditor.getSelections()||[]}disableSelectionEmitter(){this._disableSelectionEmitter=!0}enableSelectionEmitter(){this._disableSelectionEmitter=!1}constructor(f,c){super(),this.monacoEditor=f,this.type=c,this.onFocus=this.monacoEditor.onDidFocusEditorWidget,this.onBlur=this.monacoEditor.onDidBlurEditorWidget,this._specialEditorOptions={},this._specialModelOptions={},this._editorOptionsFromContribution={},this._disableSelectionEmitter=!1,this.decorationApplier=this.injector.get(m.MonacoEditorDecorationApplier,[this.monacoEditor]),this.addDispose(this.monacoEditor.onDidChangeModel(this.onDidChangeModel.bind(this))),this.addDispose(this.monacoEditor.onDidChangeModelLanguage(()=>{this._doUpdateOptions()})),this.addDispose(this.configurationService.onDidChangeConfiguration(y=>{Array.from(y.affectedKeys.values()).filter(A=>(0,p.isEditorOption)(A)).length>0&&this._doUpdateOptions()}))}async onDidChangeModel(){this._editorOptionsFromContribution={};const f=this.currentUri;f&&Promise.resolve(this.editorFeatureRegistry.runProvideEditorOptionsForUri(f)).then(c=>{!this.currentUri||!f.isEqual(this.currentUri)||c&&Object.keys(c).length>0&&(this._editorOptionsFromContribution=c,(0,o.isEmptyObject)(this._editorOptionsFromContribution)||this._doUpdateOptions())})}getType(){return this.type}updateOptions(f={},c={}){this._specialEditorOptions=a({...this._specialEditorOptions,...f}),this._specialModelOptions=a({...this._specialModelOptions,...c}),this._doUpdateOptions()}_doUpdateOptions(){const{editorOptions:f,modelOptions:c}=this._calculateFinalOptions();g(this.monacoEditor,f,c)}_calculateFinalOptions(){var f;const c=this.currentUri?this.currentUri.toString():void 0,y=this.currentDocumentModel?this.currentDocumentModel.languageId:void 0,b=(0,p.getConvertedMonacoOptions)(this.configurationService,c,y,void 0);let S={...{readOnly:((f=this.currentDocumentModel)===null||f===void 0?void 0:f.readonly)||!1},...b.editorOptions,...this._editorOptionsFromContribution,...this._specialEditorOptions};return this.currentDocumentModel&&this.currentDocumentModel.isLargeFile&&Object.assign(S,{folding:!1,codeLens:!1,wordWrap:"off",minimap:{enabled:!1},stickyScroll:{enabled:!1},matchBrackets:"never"}),this.type!==v.EditorType.CODE&&(S={...S,...b.diffOptions}),{editorOptions:S,modelOptions:{...b.modelOptions,...this._specialModelOptions}}}insertSnippet(f,c,y){h(this.monacoEditor,f,c,y)}applyDecoration(f,c){this.decorationApplier.applyDecoration(f,c)}onSelectionsChanged(f){return this.monacoEditor.onDidChangeCursorSelection(c=>{this._disableSelectionEmitter||f({selections:this.getSelections(),source:c.source})})}onVisibleRangesChanged(f){const c=new o.Disposable,y=this.monacoEditor;return c.addDispose(y.onDidScrollChange(b=>{f(this.monacoEditor.getVisibleRanges())})),c.addDispose(y.onDidLayoutChange(b=>{f(this.monacoEditor.getVisibleRanges())})),c}setSelections(f){return this.monacoEditor.setSelections(f)}setSelection(f){return this.monacoEditor.setSelection(f)}async save(){this.currentDocumentModel&&await this.currentDocumentModel.save()}onConfigurationChanged(f){return this.monacoEditor.onDidChangeConfiguration(y=>{f()})}};t.BaseMonacoEditorWrapper=u,n.__decorate([(0,r.Autowired)(s.IEditorFeatureRegistry),n.__metadata("design:type",Object)],u.prototype,"editorFeatureRegistry",void 0),n.__decorate([(0,r.Autowired)(_.IConfigurationService),n.__metadata("design:type",Object)],u.prototype,"configurationService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],u.prototype,"injector",void 0),t.BaseMonacoEditorWrapper=u=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],u);let d=class extends u{get currentDocumentModel(){return this._getDocumentModel()}updateDocumentModel(f){const c=this.documents.get();if(c!=="loading"){for(const y of c)y.object.modified&&o.URI.from(y.object.modified.uri).isEqual(f)&&(this._getDocumentModel=()=>y.object.modifiedInstance),y.object.original&&o.URI.from(y.object.original.uri).isEqual(f)&&(this._getDocumentModel=()=>y.object.originalInstance);this.decorationApplier.clearDecorations(),this.decorationApplier.applyDecorationFromProvider()}}constructor(f,c,y,b){super(f,y),this._getDocumentModel=c,this.documents=b}};t.DiffEditorPart=d,t.DiffEditorPart=d=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Function,Object,Object])],d)},87802:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBreadCrumbProvider=void 0,t.findCurrentDocumentSymbol=g;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(26542),v=e(79929),m=e(97408),p=e(82196),s=e(17459),{Path:h}=l.path;let a=class extends l.WithEventBus{constructor(){super(...arguments),this._onDidUpdateBreadCrumb=new l.Emitter,this.onDidUpdateBreadCrumb=this._onDidUpdateBreadCrumb.event,this.debouncedFireUriEvent=new Map,this.cachedBreadCrumb=new l.LRUMap(200,100)}handlesUri(c){return this.fileServiceClient.handlesScheme(c.scheme)}provideBreadCrumbForUri(c,y){return this.getFileParts(c).concat(this.getDocumentSymbolParts(c,y))}getFileParts(c){const y=this.workspaceService.workspace?new l.URI(this.workspaceService.workspace.uri):void 0;let b,A;y&&y.isEqualOrParent(c)?(b=y,A=y.relative(c)):(b=l.URI.from({scheme:c.scheme,authority:c.authority}),A=c.path);let S=b.path;const D=[];for(const I of A.toString().split(h.separator).filter(w=>!!w)){S=S.join(I);const w=b.withPath(S);D.push(this.createFilePartBreadCrumbUri(w,!w.isEqual(c)))}return D}createFilePartBreadCrumbUri(c,y){const b=c.toString();if(this.cachedBreadCrumb.has(b))return this.cachedBreadCrumb.get(b);const A={name:c.path.base,uri:c,icon:this.labelService.getIcon(c,{isDirectory:y}),getSiblings:async()=>{const S=l.URI.from({scheme:c.scheme}).withPath(c.path.dir),D=await this.fileServiceClient.getFileStat(S.toString()),I=[];let w=-1;return D&&D.children&&D.children.length>0&&u(D.children).forEach((T,R)=>{I.push(this.createFilePartBreadCrumbUri(new l.URI(T.uri),T.isDirectory)),w===-1&&c.toString()===T.uri&&(w=R)}),{parts:I,currentIndex:w}}};return y?A.getChildren=async()=>{const S=await this.fileServiceClient.getFileStat(c.toString()),D=[];return S&&S.children&&S.children.length>0&&u(S.children).forEach((I,w)=>{D.push(this.createFilePartBreadCrumbUri(new l.URI(I.uri),I.isDirectory))}),D}:A.onClick=()=>{this.commandService.executeCommand(l.EDITOR_COMMANDS.OPEN_RESOURCE.id,c)},this.cachedBreadCrumb.set(b,A),A}getDocumentSymbolParts(c,y){if(!y)return[];const b=this.documentSymbolStore.getDocumentSymbol(c);if(b&&b.length>0){const A=g(b,y.monacoEditor.getPosition());return A.length>0?A.map(S=>this.createFromDocumentSymbol(S,y)):[{name:"...",getSiblings:()=>({parts:b.sort((S,D)=>E(S.range,D.range)).map(S=>this.createFromDocumentSymbol(S,y)),currentIndex:-1})}]}else return[]}createFromDocumentSymbol(c,y){const b={name:c.name,icon:(0,l.getSymbolIcon)(c.kind),isSymbol:!0,onClick:()=>{y.setSelection({startColumn:c.range.startColumn,endColumn:c.range.startColumn,startLineNumber:c.range.startLineNumber,endLineNumber:c.range.startLineNumber}),y.monacoEditor.revealRangeInCenter(c.range),y.monacoEditor.focus()}};return c.parent&&(b.getSiblings=()=>({parts:c.parent.children.sort((A,S)=>E(A.range,S.range)).map(A=>this.createFromDocumentSymbol(A,y)),currentIndex:c.parent.children.indexOf(c)})),c.children&&c.children.length>0&&(b.getChildren=()=>c.children.sort((A,S)=>E(A.range,S.range)).map(A=>this.createFromDocumentSymbol(A,y))),b}onDocumentSymbolChangedEvent(c){this.notifyUpdate(c.payload)}onEditorSelectionChangeEvent(c){this.notifyUpdate(c.payload.editorUri)}notifyUpdate(c){this.debouncedFireUriEvent.has(c.toString())||this.debouncedFireUriEvent.set(c.toString(),(0,r.default)(()=>{this._onDidUpdateBreadCrumb.fire(c)},100,{maxWait:1e3})),this.debouncedFireUriEvent.get(c.toString())()}};t.DefaultBreadCrumbProvider=a,n.__decorate([(0,o.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],a.prototype,"fileServiceClient",void 0),n.__decorate([(0,o.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],a.prototype,"workspaceService",void 0),n.__decorate([(0,o.Autowired)(_.LabelService),n.__metadata("design:type",_.LabelService)],a.prototype,"labelService",void 0),n.__decorate([(0,o.Autowired)(l.CommandService),n.__metadata("design:type",Object)],a.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",s.DocumentSymbolStore)],a.prototype,"documentSymbolStore",void 0),n.__decorate([(0,l.OnEvent)(s.DocumentSymbolChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.DocumentSymbolChangedEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onDocumentSymbolChangedEvent",null),n.__decorate([(0,l.OnEvent)(p.EditorSelectionChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.EditorSelectionChangeEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onEditorSelectionChangeEvent",null),t.DefaultBreadCrumbProvider=a=n.__decorate([(0,o.Injectable)()],a);function g(f,c){const y=[];if(!c)return y;let b=f;for(;b&&b.length>0;){let A=!1;for(const S of b)if(d(c,S.range)){y.push(S),b=S.children,A=!0;break}if(!A)break}return y}function u(f){return f.sort((c,y)=>{if(c.isDirectory&&y.isDirectory||!c.isDirectory&&!y.isDirectory){const b=new l.URI(c.uri).path.name,A=new l.URI(y.uri).path.name;return b.localeCompare(A,"kn",{numeric:!0})}else return c.isDirectory&&!y.isDirectory?-1:!c.isDirectory&&y.isDirectory?1:0})}function d(f,c){return f.lineNumber<c.startLineNumber?!1:f.lineNumber===c.startLineNumber?f.column>=c.startColumn:f.lineNumber<c.endLineNumber?!0:f.lineNumber===c.endLineNumber?f.column<=c.endColumn:!1}function E(f,c){return f.startLineNumber>c.startLineNumber?1:f.startLineNumber<c.startLineNumber?-1:f.startColumn===c.startColumn?0:f.startColumn>c.startColumn?1:-1}},17459:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SymbolTag=t.DocumentSymbolChangedEvent=t.DocumentSymbolStore=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(79865),v=e(40540);Object.defineProperty(t,"SymbolTag",{enumerable:!0,get:function(){return v.SymbolTag}});const m=e(23418),p=e(96689);let s=class extends l.WithEventBus{constructor(){super(),this.documentSymbols=new Map,this.pendingUpdate=new Set,this.debounced=new Map,this.symbolDeferred=new Map,this.addDispose(_.languageFeaturesService.documentSymbolProvider.onDidChange(()=>{Array.from(this.documentSymbols.keys()).forEach(d=>{this.markNeedUpdate(new l.URI(d))})}))}getDocumentSymbol(d){return this.documentSymbols.has(d.toString())||(this.documentSymbols.set(d.toString(),void 0),this.createDocumentSymbolCache(d)),this.pendingUpdate.has(d.toString())&&this.updateDocumentSymbolCache(d),this.documentSymbols.get(d.toString())}async getDocumentSymbolAsync(d,E){var f;const c=d.toString();return E&&E.onCancellationRequested(()=>{var y;(y=this.symbolDeferred.get(c))===null||y===void 0||y.resolve(),this.symbolDeferred.delete(c)}),(!this.documentSymbols.has(c)||this.pendingUpdate.has(c))&&!this.symbolDeferred.has(c)&&(this.symbolDeferred.set(c,new l.Deferred),this.updateDocumentSymbolCache(d)),await((f=this.symbolDeferred.get(c))===null||f===void 0?void 0:f.promise),this.documentSymbols.get(c)}async createDocumentSymbolCache(d){this.updateDocumentSymbolCache(d)}async doUpdateDocumentSymbolCache(d){var E,f;this.pendingUpdate.delete(d.toString());const c=await this.editorDocumentModelRegistry.createModelReference(d);if(!c){(E=this.symbolDeferred.get(d.toString()))===null||E===void 0||E.resolve();return}try{const y=_.languageFeaturesService.documentSymbolProvider.all(c.instance.getMonacoModel());let b;for(const A of y)if(b=await A.provideDocumentSymbols(c.instance.getMonacoModel(),new l.CancellationTokenSource().token),b)break;b&&a(b,{children:b},d),this.documentSymbols.set(d.toString(),b),this.eventBus.fire(new h(d))}finally{c.dispose()}(f=this.symbolDeferred.get(d.toString()))===null||f===void 0||f.resolve()}updateDocumentSymbolCache(d){this.debounced.has(d.toString())||this.debounced.set(d.toString(),(0,r.default)(()=>this.doUpdateDocumentSymbolCache(d),100,{maxWait:1e3})),this.debounced.get(d.toString())()}onEditorDocumentModelContentChangedEvent(d){d.payload.changes&&d.payload.changes.length>0&&this.markNeedUpdate(d.payload.uri)}markNeedUpdate(d){this.pendingUpdate.add(d.toString()),this.isWatching(d)&&this.updateDocumentSymbolCache(d)}isWatching(d){for(const E of this.editorService.editorGroups)if(E.currentResource&&E.currentResource.uri.isEqual(d))return!0;return!1}};t.DocumentSymbolStore=s,n.__decorate([(0,o.Autowired)(p.IEditorDocumentModelService),n.__metadata("design:type",Object)],s.prototype,"editorDocumentModelRegistry",void 0),n.__decorate([(0,o.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",m.WorkbenchEditorService)],s.prototype,"editorService",void 0),n.__decorate([(0,l.OnEvent)(p.EditorDocumentModelContentChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.EditorDocumentModelContentChangedEvent]),n.__metadata("design:returntype",void 0)],s.prototype,"onEditorDocumentModelContentChangedEvent",null),t.DocumentSymbolStore=s=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],s);class h extends l.BasicEvent{}t.DocumentSymbolChangedEvent=h;function a(u,d,E){return u.forEach((f,c)=>{const y=f;y.parent=d,y.id=g(E,y,c),f.children&&f.children.length>0&&a(f.children,f,E)}),u}function g(u,d,E){const f=[d.name];for(;d.parent;){const c=d.parent;if(!c.name)break;f.unshift(c.name),d=c}return`${u.toString()}__${f.join("-")}__${E}`}},88895:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadCrumbServiceImpl=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(87802),{addElement:_}=o.arrays;let v=class{constructor(){this.providers=[],this._onDidUpdateBreadCrumbResults=new o.Emitter,this.onDidUpdateBreadCrumbResults=this._onDidUpdateBreadCrumbResults.event,this.crumbResults=new Map,this.registerBreadCrumbProvider(this.defaultBreadCrumbProvider)}registerBreadCrumbProvider(h){const a=_(this.providers,h);return h.onDidUpdateBreadCrumb(g=>{this.crumbResults.forEach((u,d)=>{u.has(g.toString())&&this.getBreadCrumbs(g,d)})}),a}getBreadCrumbs(h,a){const g=this.getEditorCrumbResults(a);for(const u of this.providers)if(u.handlesUri(h)){const d=g.get(h.toString()),E=u.provideBreadCrumbForUri(h,a);m(d,E)||(g.set(h.toString(),E),this._onDidUpdateBreadCrumbResults.fire({editor:a,uri:h}));break}return g.get(h.toString())}getEditorCrumbResults(h){return this.crumbResults.has(h)||(this.crumbResults.set(h,new Map),h&&h.monacoEditor.onDidDispose(()=>{this.crumbResults.delete(h)})),this.crumbResults.get(h)}disposeCrumb(h){}};t.BreadCrumbServiceImpl=v,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",l.DefaultBreadCrumbProvider)],v.prototype,"defaultBreadCrumbProvider",void 0),t.BreadCrumbServiceImpl=v=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],v);function m(s,h){if(!s&&!h)return!0;if(!s||!h)return!1;if(s.length!==h.length)return!1;for(let a=0;a<s.length;a++)if(!p(s[a],h[a]))return!1;return!0}function p(s,h){return s.name===h.name}},11673:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorComponentRegistryImpl=void 0;const n=e(85608),r=n.__importDefault(e(46343)),o=n.__importDefault(e(19106)),l=n.__importDefault(e(43144)),_=e(76003),v=e(43718),m=e(82196);let p=class{constructor(){this.components=new Map,this.sideWidgets={bottom:new Set,top:new Set},this.initialPropsMap=new Map,this.resolvers=new Map,this.normalizedResolvers=[],this.perWorkbenchComponents={}}registerEditorComponent(h,a){const g=h.uid;return h.renderMode||(h.renderMode=m.EditorComponentRenderMode.ONE_PER_GROUP),this.components.set(g,h),this.initialPropsMap.set(g,a),this.eventBus.fire(new v.ExtensionActivateEvent({topic:"onRegisterEditorComponent",data:g})),this.eventBus.fire(new m.RegisterEditorComponentEvent(g)),{dispose:()=>{this.components.get(g)===h&&(this.components.delete(g),this.eventBus.fire(new m.EditorComponentDisposeEvent(h)))}}}registerEditorComponentResolver(h,a){let g;return typeof h=="function"?g={handleScheme:h,resolver:a}:g={handleScheme:u=>u===h?10:-1,resolver:a},this.normalizedResolvers.push(g),this.resolvers.clear(),{dispose:()=>{for(const d of this.resolvers.values()){const E=d.indexOf(a);E!==-1&&d.splice(E,1)}const u=this.normalizedResolvers.indexOf(g);u!==-1&&this.normalizedResolvers.splice(u,1)}}}async resolveEditorComponent(h){let a=[];const g=this.getResolvers(h.uri.scheme).slice();let u=!1;const d=E=>{a=E,u=!0};for(const E of g)if(await E(h,a,d),u)break;return a.sort((E,f)=>{const c=E.weight||0;return(f.weight||0)-c}),(0,o.default)(a,r.default)}calculateSchemeResolver(h){const a=this.normalizedResolvers.slice(),g=[];return a.forEach((u,d)=>{const E=u.handleScheme(h);E>=0&&g.push({weight:E,index:d,resolver:u.resolver})}),g.sort((u,d)=>u.weight>d.weight?-1:u.weight<d.weight?1:d.index-u.index).map(u=>u.resolver)}getResolvers(h){return this.resolvers.has(h)||this.resolvers.set(h,this.calculateSchemeResolver(h)),this.resolvers.get(h)}getEditorComponent(h){return this.components.get(h)||null}getEditorInitialProps(h){return this.initialPropsMap.get(h)||null}clearPerWorkbenchComponentCache(h){l.default.unmountComponentAtNode(this.perWorkbenchComponents[h]),delete this.perWorkbenchComponents[h]}getSideWidgets(h,a){const g=[];return this.sideWidgets[h].forEach(u=>{u.displaysOnResource(a)&&g.push(u)}),g.sort((u,d)=>{const E=u.weight===void 0?10:u.weight;return(d.weight===void 0?10:d.weight)-E})}registerEditorSideWidget(h){const a=h.side||"bottom";return this.sideWidgets[a].add(h),this.eventBus.fire(new m.RegisterEditorSideComponentEvent),{dispose:()=>{this.sideWidgets[a].delete(h)}}}};t.EditorComponentRegistryImpl=p,n.__decorate([(0,_.Autowired)(v.IEventBus),n.__metadata("design:type",Object)],p.prototype,"eventBus",void 0),t.EditorComponentRegistryImpl=p=n.__decorate([(0,_.Injectable)()],p)},84677:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonacoEditorDecorationApplier=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=e(76003),l=e(43718),_=e(52416),v=e(82196);let m=class extends l.Disposable{constructor(u){super(),this.editor=u,this.decorations=new Map,this.applyDecorationFromProvider(),this.addDispose(this.editor.onDidChangeModel(()=>{this.clearDecorations(),this.applyDecorationFromProvider()})),this.addDispose(this.editor.onDidDispose(()=>{this.dispose()})),this.addDispose(this.eventBus.on(v.EditorDecorationChangeEvent,d=>{const E=this.getEditorUri();E&&d.payload.uri.isEqual(E)&&this.applyDecorationFromProvider(d.payload.key)})),this.addDispose(this.eventBus.on(v.EditorDecorationTypeRemovedEvent,d=>{this.deltaDecoration(d.payload,[])}))}getEditorUri(){return this.editor.getModel()?new l.URI(this.editor.getModel().uri.toString()):null}async applyDecorationFromProvider(u){if(this.editor.getModel()){const d=new l.URI(this.editor.getModel().uri.toString()),E=await this.decorationService.getDecorationFromProvider(d,u);if(!this.editor.getModel()||this.editor.getModel().uri.toString()!==d.toString())return;for(const f of Object.keys(E))this.deltaDecoration(f,E[f]);this.eventBus.fire(new v.DidApplyEditorDecorationFromProvider({key:u,uri:d}))}}dispose(){super.dispose(),this.clearDecorations()}clearDecorations(){this.decorations.forEach(u=>{u.dispose(),this.editor.deltaDecorations(u.decorations,[])}),this.decorations.clear()}deltaDecoration(u,d){let E=[];if(this.decorations.has(u)&&(E=this.decorations.get(u).decorations,this.decorations.get(u).dispose(),this.decorations.delete(u)),E.length===0&&d.length===0)return;const f=this.editor.deltaDecorations(E,d);this.decorations.set(u,{decorations:f,dispose:()=>null})}applyDecoration(u,d){const E=this.decorations.get(u);E&&E.dispose();const f=E?E.decorations:[],c=[],y=new l.Disposable;if(f.length===0&&d.length===0)return;d.forEach(A=>{const S=this.resolveDecorationRenderer(u,A.renderOptions);c.push({range:A.range,options:{...S.options,hoverMessage:h(A.hoverMessage)}}),y.addDispose(S)});const b=this.editor.deltaDecorations(f,c);this.decorations.set(u,{decorations:b,dispose:()=>y.dispose()})}resolveDecorationRenderer(u,d){const E=this.decorationService.getTextEditorDecorationType(u),f={description:u},c=this.themeService.getCurrentThemeSync().type,y=new l.Disposable;if(E){const b=E.property;p(f,b,c)}if(d){const b=this.decorationService.createTextEditorDecorationType(d);p(f,b.property,c),y.addDispose(b)}return{options:f,dispose:()=>y.dispose()}}};t.MonacoEditorDecorationApplier=m,n.__decorate([(0,o.Autowired)(v.IEditorDecorationCollectionService),n.__metadata("design:type",Object)],m.prototype,"decorationService",void 0),n.__decorate([(0,o.Autowired)(_.IThemeService),n.__metadata("design:type",Object)],m.prototype,"themeService",void 0),n.__decorate([(0,o.Autowired)(l.IEventBus),n.__metadata("design:type",Object)],m.prototype,"eventBus",void 0),t.MonacoEditorDecorationApplier=m=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object])],m);function p(g,u,d){u.overviewRulerLane&&(g.overviewRuler?g.overviewRuler.position=u.overviewRulerLane:g.overviewRuler={color:null,position:u.overviewRulerLane}),u.default&&s(g,u.default),d==="dark"&&u.dark&&s(g,u.dark),d==="light"&&u.light&&s(g,u.light),u.isWholeLine!==void 0&&(g.isWholeLine=u.isWholeLine),u.rangeBehavior&&(g.stickiness=u.rangeBehavior),g.inlineClassNameAffectsLetterSpacing=!0}function s(g,u){u.className&&(g.className=(0,r.default)(g.className,u.className)),u.inlineClassName&&(g.inlineClassName=(0,r.default)(g.inlineClassName,u.inlineClassName)),u.afterContentClassName&&(g.afterContentClassName=(0,r.default)(g.afterContentClassName,u.afterContentClassName)),u.beforeContentClassName&&(g.beforeContentClassName=(0,r.default)(g.beforeContentClassName,u.beforeContentClassName)),u.glyphMarginClassName&&(g.glyphMarginClassName=(0,r.default)(g.glyphMarginClassName,u.glyphMarginClassName)),u.overviewRulerColor&&g.overviewRuler&&(g.overviewRuler.color=u.overviewRulerColor)}function h(g){if(g)return g instanceof Array?g.map(a):a(g)}function a(g){return typeof g=="string"?{value:g,isTrusted:!0}:g}},84158:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareEditorContribution=t.CompareService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(82196);let v=class{constructor(){this.comparing=new Map}compare(s,h,a){const g=o.URI.from({scheme:_.DIFF_SCHEME,query:o.URI.stringifyQuery({name:a,original:s,modified:h,comparing:!0})});if(!this.comparing.has(g.toString())){const u=new o.Deferred;this.comparing.set(g.toString(),u),u.promise.then(()=>{this.comparing.delete(g.toString()),this.commandService.executeCommand(o.EDITOR_COMMANDS.CLOSE_ALL.id,g)})}return this.commandService.executeCommand(o.EDITOR_COMMANDS.OPEN_RESOURCE.id,g),this.comparing.get(g.toString()).promise}};t.CompareService=v,n.__decorate([(0,r.Autowired)(o.CommandService),n.__metadata("design:type",Object)],v.prototype,"commandService",void 0),t.CompareService=v=n.__decorate([(0,r.Injectable)()],v);let m=class{registerMenus(s){s.registerMenuItems(l.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.ACCEPT.id,label:(0,o.localize)("editor.action.accept")},iconClass:(0,o.getIcon)("check"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(l.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.REVERT.id,label:(0,o.localize)("editor.action.revert")},iconClass:(0,o.getIcon)("rollback"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(l.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS.id,label:(0,o.localize)("diffEditor.action.toggleCollapseUnchangedRegions")},toggledWhen:"config.diffEditor.hideUnchangedRegions.enabled",iconClass:"codicon codicon-map",group:"navigation",when:"isInDiffEditor"}])}registerCommands(s){s.registerCommand(o.DIFF_EDITOR_COMMANDS.ACCEPT,{execute:h=>{h&&this.compareService.comparing.has(h.toString())&&this.compareService.comparing.get(h.toString()).resolve(_.CompareResult.accept)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.REVERT,{execute:h=>{h&&this.compareService.comparing.has(h.toString())&&this.compareService.comparing.get(h.toString()).resolve(_.CompareResult.revert)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS,{execute:()=>{const h=this.preferenceService.get("diffEditor.hideUnchangedRegions.enabled");this.preferenceService.set("diffEditor.hideUnchangedRegions.enabled",!h,o.PreferenceScope.User)}})}};t.CompareEditorContribution=m,n.__decorate([(0,r.Autowired)(_.ICompareService),n.__metadata("design:type",v)],m.prototype,"compareService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),t.CompareEditorContribution=m=n.__decorate([(0,o.Domain)(l.MenuContribution,o.CommandContribution)],m)},57581:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDiffEditorContribution=t.DiffResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(26542),_=e(14951),v=e(23418),m=e(82196);let p=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme=v.DIFF_SCHEME,this.modifiedToResource=new Map}onResourceDecorationChangeEvent(a){a.payload.uri&&this.modifiedToResource.has(a.payload.uri.toString())&&this.eventBus.fire(new v.ResourceDecorationNeedChangeEvent({uri:this.modifiedToResource.get(a.payload.uri.toString()),decoration:a.payload.decoration}))}async getCurrentUserHome(){if(!this.userhomePath)try{const a=await this.fileServiceClient.getCurrentUserHome();a&&(this.userhomePath=new o.URI(a.uri))}catch{}return this.userhomePath}async getReadableTooltip(a){const g=a.toString(),u=await this.getCurrentUserHome();if(!u)return decodeURIComponent(a.withScheme("").toString());if(u.isEqualOrParent(a)){const d=u&&u.toString();return decodeURIComponent(g.replace(d,"~"))}return decodeURIComponent(a.withScheme("").toString())}async provideResource(a){const{original:g,modified:u,name:d}=a.getParsedQuery(),E=new o.URI(g),f=new o.URI(u);return this.modifiedToResource.set(f.toString(),a),Promise.all([this.labelService.getIcon(E),this.getReadableTooltip(f)]).then(([c,y])=>{var b;return{name:d,icon:c,uri:a,supportsRevive:(b=this.appConfig.enableDiffRevive)!==null&&b!==void 0?b:!0,metadata:{original:E,modified:f},title:y}})}async shouldCloseResource(a,g){const{modified:u}=a.uri.getParsedQuery(),d=new o.URI(u),E=await this.resourceService.getResource(d);return E?await this.resourceService.shouldCloseResource(E,g):!0}};t.DiffResourceProvider=p,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",l.LabelService)],p.prototype,"labelService",void 0),n.__decorate([(0,r.Autowired)(v.ResourceService),n.__metadata("design:type",v.ResourceService)],p.prototype,"resourceService",void 0),n.__decorate([(0,r.Autowired)(_.IFileServiceClient),n.__metadata("design:type",Object)],p.prototype,"fileServiceClient",void 0),n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,o.OnEvent)(v.ResourceDecorationChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.ResourceDecorationChangeEvent]),n.__metadata("design:returntype",void 0)],p.prototype,"onResourceDecorationChangeEvent",null),t.DiffResourceProvider=p=n.__decorate([(0,r.Injectable)()],p);let s=class{registerResource(a){a.registerResourceProvider(this.diffResourceProvider)}registerEditorComponent(a){a.registerEditorComponentResolver(v.DIFF_SCHEME,(g,u)=>{u.push({type:m.EditorOpenType.diff})})}};t.DefaultDiffEditorContribution=s,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",p)],s.prototype,"diffResourceProvider",void 0),t.DefaultDiffEditorContribution=s=n.__decorate([(0,o.Domain)(m.BrowserEditorContribution)],s)},21690:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyDocCacheImpl=void 0;const n=e(85608),r=e(76003);let o=class{hasCache(_){return!1}isFlushed(){return!0}getCache(_){return null}persistCache(_,v){}};t.EmptyDocCacheImpl=o,t.EmptyDocCacheImpl=o=n.__decorate([(0,r.Injectable)()],o)},80487:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(21690),t),n.__exportStar(e(7220),t)},7220:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageDocCacheImpl=void 0;const n=e(85608),r=e(76003),o=e(51500),l=e(93107);let _=class{hasCache(m){return!0}isFlushed(){return!0}async getCache(m){const p=this.parseKeyFrom(m);return await this.storageService.getData(p)||null}persistCache(m,p){const s=this.parseKeyFrom(m),h=this.parseCacheFrom(m,p);this.storageService.setData(s,h)}parseCacheFrom(m,p){if(!(!p.dirty||!p.changeMatrix.length))return{path:m.path.toString(),startMD5:p.startMD5,changeMatrix:p.changeMatrix.map(s=>s.map(h=>(0,l.parseCacheValueFrom)(h)))}}parseKeyFrom(m){return`LocalStorageDocCacheImpl_${m.toString()}`}};t.LocalStorageDocCacheImpl=_,n.__decorate([(0,r.Autowired)(o.IWorkspaceStorageService),n.__metadata("design:type",Object)],_.prototype,"storageService",void 0),t.LocalStorageDocCacheImpl=_=n.__decorate([(0,r.Injectable)()],_)},86942:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentError=void 0;var e;(function(n){n.READ_CACHE_ERROR="EditorDocumentError:READ_CACHE_ERROR",n.APPLY_CACHE_TO_DIRTY_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIRTY_DOCUMENT",n.APPLY_CACHE_TO_DIFFERENT_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIFFERENT_DOCUMENT",n.FORMAT_ERROR="EditorDocumentError:FORMAT_ERROR"})(e||(t.EditorDocumentError=e={}))},9519:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentModelServiceImpl=t.EDITOR_DOC_OPTIONS_PREF_KEY=t.EDITOR_DOCUMENT_MODEL_STORAGE=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(96405),_=e(14951),v=e(91249),m=e(96689);t.EDITOR_DOCUMENT_MODEL_STORAGE=new o.URI("editor-doc").withScheme(o.STORAGE_SCHEMA.SCOPE),t.EDITOR_DOC_OPTIONS_PREF_KEY="editor_doc_pref";let p=class extends o.WithEventBus{constructor(){super(),this.editorDocModels=new Map,this.creatingEditorModels=new Map,this._modelsToDispose=new Set,this.preferredModelOptions=new Map,this._ready=this.registerDispose(new o.ReadyEvent),this.modelCreationEventDispatcher=this.registerDispose(new o.Dispatcher),this._modelReferenceManager=new o.ReferenceManager(h=>(this._modelsToDispose.has(h)&&this._modelsToDispose.delete(h),this.getOrCreateModel(h))),this._modelReferenceManager.onReferenceAllDisposed(h=>{this._delete(h)}),this._modelReferenceManager.onInstanceCreated(h=>{this.modelCreationEventDispatcher.dispatch(h.uri.toString()),this.eventBus.fire(new m.EditorDocumentModelCreationEvent({uri:h.uri,languageId:h.languageId,eol:h.eol,encoding:h.encoding,content:h.getText(),readonly:h.readonly,versionId:h.getMonacoModel().getVersionId()}))}),this.addDispose(this.preferenceService.onPreferenceChanged(h=>{h.preferenceName==="editor.detectIndentation"&&this.editorDocModels.forEach(a=>{a.updateOptions({})})}))}onDocumentModelCreated(h,a){return this.modelCreationEventDispatcher.on(h)(a)}_delete(h){const a=this.preferenceService.get("editor.modelDisposeTime",3e3);this._modelsToDispose.add(h.toString());let g=null;const u=this.addDispose({dispose:()=>{g&&clearTimeout(g)}});g=window.setTimeout(()=>{u.dispose(),g=null,this._modelsToDispose.has(h.toString())&&this._doDelete(h.toString())},a)}_doDelete(h){const a=this.editorDocModels.get(h);if(a&&(!a.dirty||a.disposeEvenDirty))return a.dispose(),this.editorDocModels.delete(h),a;this._modelsToDispose.delete(h)}async changeModelOptions(h,a){return this.onceReady(()=>{this.preferredModelOptions.has(h.toString())&&(a={...this.preferredModelOptions.get(h.toString()),...a}),this.preferredModelOptions.set(h.toString(),a);const g=this.getModelReference(h);return g&&(a.encoding&&a.encoding!==g.instance.encoding&&g.instance.updateEncoding(a.encoding),a.languageId&&a.languageId!==g.instance.languageId&&(g.instance.languageId=a.languageId),a.eol&&a.eol!==g.instance.eol&&(g.instance.eol=a.eol),g.dispose()),this.persistOptionsPreference()})}persistOptionsPreference(){return this.storage.set(t.EDITOR_DOC_OPTIONS_PREF_KEY,JSON.stringify((0,o.mapToSerializable)(this.preferredModelOptions)))}async initialize(){if(this.storage=await this.getStorage(t.EDITOR_DOCUMENT_MODEL_STORAGE),this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY))try{this.preferredModelOptions=(0,o.serializableToMap)(JSON.parse(this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY)))}catch(h){this.logger.error(h)}this._ready.ready()}async acceptExternalChange(h){this.hashCalculateService.initialized||await this.hashCalculateService.initialize();const a=this.editorDocModels.get(h.payload.toString());if(a&&!a.dirty){const g=await this.contentRegistry.getProvider(a.uri);if(g)if(g.provideEditorDocumentModelContentMd5)await g.provideEditorDocumentModelContentMd5(a.uri,a.encoding)!==a.getBaseContentMd5()&&a.updateContent(await this.contentRegistry.getContentForUri(a.uri,a.encoding),void 0,!0);else{const u=await this.contentRegistry.getContentForUri(a.uri,a.encoding);this.hashCalculateService.calculate(u)!==a.getBaseContentMd5()&&a.updateContent(u,void 0,!0)}}}createModelReference(h,a){return this._modelReferenceManager.getReference(h.toString(),a)}getModelReference(h,a){return this._modelReferenceManager.getReferenceIfHasInstance(h.toString(),a)}getModelDescription(h,a){const g=this.getModelReference(h,a);if(!g)return null;const u=g.instance,d={alwaysDirty:u.alwaysDirty,closeAutoSave:u.closeAutoSave,disposeEvenDirty:u.disposeEvenDirty,eol:u.eol,encoding:u.encoding,dirty:u.dirty,languageId:u.languageId,readonly:u.readonly,uri:u.uri,id:u.id,savable:u.savable};return g.dispose(),d}getAllModels(){return Array.from(this.editorDocModels.values())}hasLanguage(h){return this.getAllModels().findIndex(a=>a.languageId===h)!==-1}async getOrCreateModel(h,a){return this.editorDocModels.has(h)?this.editorDocModels.get(h):this.createModel(h,a)}get onceReady(){return this.initialize(),this._ready.onceReady.bind(this._ready)}createModel(h,a){if(!this.creatingEditorModels.has(h)){const g=this.doCreateModel(h,a).then(u=>(this.creatingEditorModels.delete(h),u),u=>{throw this.creatingEditorModels.delete(h),u});this.creatingEditorModels.set(h,g)}return this.creatingEditorModels.get(h)}async doCreateModel(h,a){const g=new o.URI(h);let u=await this.contentRegistry.getProvider(g);if(u||await this.fileSystem.shouldWaitProvider(g.scheme)&&(u=await this.contentRegistry.getProvider(g)),!u)throw new Error(`No document provider found for ${g.toString()}`);const[d,E,f,c,y,b]=await Promise.all([u.provideEditorDocumentModelContent(g,a),u.isReadonly?u.isReadonly(g):void 0,u.preferLanguageForUri?u.preferLanguageForUri(g):void 0,u.isAlwaysDirty?u.isAlwaysDirty(g):!1,u.closeAutoSave?u.closeAutoSave(g):!1,u.disposeEvenDirty?u.disposeEvenDirty(g):!1]);let A;u.provideEditorDocumentModelContentSize&&(A=await u.provideEditorDocumentModelContentSize(g)),!a&&u.provideEncoding&&(a=await u.provideEncoding(g));const S=u.provideEOL?await u.provideEOL(g):`
|
|
33307
|
+
`))}}})}registerMenus(u){u.registerMenuItem(l.MenuId.DebugCallStackContext,{command:{id:_.DEBUG_COMMANDS.RESTART_FRAME.id,label:(0,o.localize)("debugger.menu.restartFrame")},when:`${v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame")} && ${v.CONTEXT_RESTART_FRAME_SUPPORTED.raw}`,enabledWhen:v.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.raw,order:10}),u.registerMenuItem(l.MenuId.DebugCallStackContext,{command:{id:_.DEBUG_COMMANDS.COPY_STACK_TRACE.id,label:(0,o.localize)("debugger.menu.copyCallstack")},when:v.CONTEXT_CALLSTACK_ITEM_TYPE.equalsTo("stackFrame"),order:20})}};t.DebugCallStackContribution=a,n.__decorate([(0,r.Autowired)(m.IDebugSessionManager),n.__metadata("design:type",p.DebugSessionManager)],a.prototype,"debugSessionManager",void 0),n.__decorate([(0,r.Autowired)(o.IClipboardService),n.__metadata("design:type",Object)],a.prototype,"clipboardService",void 0),t.DebugCallStackContribution=a=n.__decorate([(0,o.Domain)(l.MenuContribution,o.CommandContribution)],a)},61520:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugStackOperationView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(66498),_=e(96090),v=n.__importDefault(e(12920)),m=p=>{const{session:s,thread:h}=p,{doStop:a,doStepIn:g,doStepOut:u,doStepOver:d,doContinue:E,doRestart:f,doPause:c,updateCurrentSession:y}=(0,o.useInjectable)(_.DebugToolbarService);if(s&&!h){const b=A=>{y(s),A()};return r.default.createElement("div",{className:v.default.debug_stack_session_operations},r.default.createElement(l.DebugAction,{run:()=>b(f),icon:"reload",label:(0,o.localize)("debug.action.restart")}),r.default.createElement(l.DebugAction,{run:()=>b(a),icon:"stop",label:(0,o.localize)("debug.action.stop")}))}if(!s&&h){const{stopped:b}=h,A=D=>{h.session.currentThread=h,D()},S=D=>D?r.default.createElement(l.DebugAction,{run:()=>A(E),icon:"continue",label:(0,o.localize)("debug.action.continue")}):r.default.createElement(l.DebugAction,{run:()=>A(c),enabled:!0,icon:"pause",label:(0,o.localize)("debug.action.pause")});return r.default.createElement("div",{className:v.default.debug_stack_thread_operations},S(b),r.default.createElement(l.DebugAction,{run:()=>A(d),enabled:b,icon:"step",label:(0,o.localize)("debug.action.step-over")}),r.default.createElement(l.DebugAction,{run:()=>A(g),enabled:b,icon:"step-in",label:(0,o.localize)("debug.action.step-into")}),r.default.createElement(l.DebugAction,{run:()=>A(u),enabled:b,icon:"step-out",label:(0,o.localize)("debug.action.step-out")}))}return null};t.DebugStackOperationView=m},85294:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackService=void 0;const n=e(85608),r=e(76003),o=e(93899),l=e(50755),_=e(4983),v=e(17280),m=e(29539);let p=class{constructor(){this.handleContextMenu=(h,a)=>{this.stackFrameSupportsRestart.reset(),h.stopPropagation(),h.preventDefault(),a instanceof m.DebugSession?this.callStackItemType.set("session"):a instanceof l.DebugThread?this.callStackItemType.set("thread"):a instanceof l.DebugStackFrame?(this.callStackItemType.set("stackFrame"),this.stackFrameSupportsRestart.set(a.canRestart)):this.callStackItemType.reset();const{x:g,y:u}=h.nativeEvent,d=this.contextMenuService.createMenu({id:o.MenuId.DebugCallStackContext,contextKeyService:this.debugContextKey.contextKeyScoped}),E=d.getMergedMenuNodes();d.dispose();const f=()=>{var y;return a instanceof l.DebugStackFrame?!((y=a.source)===null||y===void 0)&&y.inMemory?a.source.raw.path||a.source.reference||a.source.name:a.source?a.source.uri.toString():"":a instanceof l.DebugThread||a instanceof m.DebugSession?a.id:""},c=()=>a instanceof l.DebugStackFrame?{sessionId:a.session.id,threadId:a.thread.id,frameId:a.id}:a instanceof l.DebugThread?{sessionId:a.session.id,threadId:a.id}:a instanceof m.DebugSession?{sessionId:a.id}:void 0;this.ctxMenuRenderer.show({anchor:{x:g,y:u},menuNodes:E,args:[f(),c()],contextKeyService:this.debugContextKey.contextKeyScoped})},this.stackFrameSupportsRestart||(this.stackFrameSupportsRestart=_.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.bind(this.debugContextKey.contextKeyScoped)),this.callStackItemType||(this.callStackItemType=_.CONTEXT_CALLSTACK_ITEM_TYPE.bind(this.debugContextKey.contextKeyScoped))}};t.DebugCallStackService=p,n.__decorate([(0,r.Autowired)(o.AbstractContextMenuService),n.__metadata("design:type",o.AbstractContextMenuService)],p.prototype,"contextMenuService",void 0),n.__decorate([(0,r.Autowired)(o.ICtxMenuRenderer),n.__metadata("design:type",o.ICtxMenuRenderer)],p.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,r.Autowired)(v.DebugContextKey),n.__metadata("design:type",v.DebugContextKey)],p.prototype,"debugContextKey",void 0),t.DebugCallStackService=p=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],p)},18028:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugCallStackView=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(64582),_=e(75651),v=n.__importDefault(e(12920)),m=({viewState:p})=>{const s=(0,o.useInjectable)(l.IDebugSessionManager),[h,a]=r.default.useState([]);return r.default.useEffect(()=>{const g=s.onDidStartDebugSession(d=>{h.push(d),a([...h])}),u=s.onDidDestroyDebugSession(d=>{const E=h.findIndex(f=>f.id===d.id);h.splice(E,1),a([...h])});return()=>{g.dispose(),u.dispose()}},[]),r.default.createElement("div",{className:v.default.call_stack_wrapper},h.filter(g=>!g.parentSession).map(g=>r.default.createElement(_.DebugStackSessionView,{key:g.id,viewState:p,session:g,indent:0})))};t.DebugCallStackView=m},59334:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModel=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(98650);let m=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new _.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugVariablesModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugVariablesModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},30865:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugVariablesModelService=void 0;const r=e(85608),o=r.__importDefault(e(46343)),l=e(76003),_=e(97267),v=e(41869),m=e(93899),p=e(98650),s=e(32756),h=e(17280),a=e(59334),g=r.__importDefault(e(57259));class u{constructor(){this._keepExpandedScopesMap=new Map}getMirrorScope(f){return Array.from(this._keepExpandedScopesMap.keys()).find(c=>(0,o.default)(c,f.getRawScope()))}set(f){const c=f.getRawScope();if(c){const y=this.getMirrorScope(f);if(y){const b=this._keepExpandedScopesMap.get(y);let A;f.expanded?A=Array.from(new Set([...b,f.variablesReference])):A=b.filter(S=>S!==f.variablesReference),this._keepExpandedScopesMap.set(y,A)}else this._keepExpandedScopesMap.set(c,f.expanded?[f.variablesReference]:[])}}get(f){const c=this.getMirrorScope(f);return c?this._keepExpandedScopesMap.get(c)||[]:[]}clear(){this._keepExpandedScopesMap.clear()}}let d=n=class{constructor(){this.selectedDecoration=new _.Decoration(g.default.mod_selected),this.focusedDecoration=new _.Decoration(g.default.mod_focused),this.contextMenuDecoration=new _.Decoration(g.default.mod_actived),this.loadingDecoration=new _.Decoration(g.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new v.Emitter,this.onDidUpdateTreeModelEmitter=new v.Emitter,this.flushDispatchChangeDelayer=new v.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new v.DisposableCollection,this.keepExpandedScopesModel=new u,this.activeNodeDecoration=(f,c=!0)=>{var y;if(this.contextMenuNode&&(this.contextMenuDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),f){if(this.selectedNodes.length>0)for(const b of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(b);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(f),this.focusedDecoration.addTarget(f),this._focusedNode=f,this._selectedNodes=[f],c&&((y=this.treeModel)===null||y===void 0||y.dispatchChange())}},this.activeNodeActivedDecoration=f=>{var c;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(f),this._contextMenuNode=f,(c=this.treeModel)===null||c===void 0||c.dispatchChange()},this.enactiveNodeDecoration=()=>{var f;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(f=this.treeModel)===null||f===void 0||f.dispatchChange()},this.handleContextMenu=(f,c)=>{var y;if(f.stopPropagation(),f.preventDefault(),!c||c instanceof p.DebugScope){this.enactiveNodeDecoration(),this.debugContextKey.contextVariableEvaluateNamePresent.set(!1);return}this._currentVariableInternalContext=c;const{x:b,y:A}=f.nativeEvent;c&&(this.activeNodeActivedDecoration(c),this.debugContextKey.contextDebugProtocolVariableMenu.set(c.variableMenuContext),this.debugContextKey.contextVariableEvaluateNamePresent.set(!!c.evaluateName)),!((y=c.session)===null||y===void 0)&&y.capabilities.supportsReadMemoryRequest&&c.memoryReference!==void 0?this.debugContextKey.contextCanViewMemory.set(!0):this.debugContextKey.contextCanViewMemory.set(!1);const S=this.contextMenuService.createMenu({id:m.MenuId.DebugVariablesContext,contextKeyService:this.debugContextKey.contextKeyScoped}),D=S.getMergedMenuNodes();S.dispose(),this.ctxMenuRenderer.show({anchor:{x:b,y:A},menuNodes:D,args:[c.toDebugProtocolObject()]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=f=>{this.activeNodeDecoration(f)},this.handleTwistierClick=(f,c)=>{c===_.TreeNodeType.CompositeTreeNode?(this.activeNodeDecoration(f,!1),this.toggleDirectory(f)):this.activeNodeDecoration(f)},this.toggleDirectory=async f=>{f.expanded?f.setCollapsed():await f.setExpanded(!0),this.keepExpandedScopesModel.set(f)},this.listenViewModelChange()}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get treeHandle(){return this._debugVariablesTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get currentVariableInternalContext(){return this._currentVariableInternalContext}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}listenViewModelChange(){this.viewModel.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{var f,c;if(this.viewModel&&this.viewModel.currentSession&&!this.viewModel.currentSession.terminated){const y=await this.initTreeModel(this.viewModel.currentSession);this._activeTreeModel=y,await((f=this._activeTreeModel)===null||f===void 0?void 0:f.ensureReady);const b=((c=this._activeTreeModel)===null||c===void 0?void 0:c.root.children)||[];if(b.length>0&&b.every(S=>!S.expanded))for(const S of b)S.getRawScope().expensive===!1&&!S.expanded&&await this.toggleDirectory(S);const A=async S=>{for(const D of S)this.keepExpandedScopesModel.get(D).includes(D.variablesReference)&&(await D.setExpanded(!0),Array.isArray(D.children)&&await A(D.children))};b.forEach(async S=>{Array.isArray(S.children)&&await A(S.children)})}else this._activeTreeModel=void 0,this.keepExpandedScopesModel.clear();this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel)})})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(_.TreeNodeEvent.WillResolveChildren,f=>{this.loadingDecoration.addTarget(f)})),this.disposableCollection.push(this.treeModel.root.watcher.on(_.TreeNodeEvent.DidResolveChildren,f=>{this.loadingDecoration.removeTarget(f)})))}async initTreeModel(f){const c=new p.DebugVariableRoot(f);if(c)return this._activeTreeModel=this.injector.get(a.DebugVariablesModel,[c]),this.initDecorations(c),this.listenTreeViewChange(),this._activeTreeModel}initDecorations(f){this._decorations=new _.DecorationsManager(f),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.loadingDecoration),this.decorations.removeDecoration(this.contextMenuDecoration))}handleTreeHandler(f){this._debugVariablesTreeHandle={...f,getModel:()=>this.treeModel}}async copyEvaluateName(f){f&&await this.clipboardService.writeText(f.evaluateName)}async copyValue(f){if(!f)return;const y=await(async()=>{if(f.session&&f.session.capabilities.supportsValueFormattingOptions)try{const{variable:{evaluateName:b}}=f;if(b){const A=await f.session.evaluate(b,"clipboard");if(A)return A.result}return""}catch{return""}else return f.value})();y&&await this.clipboardService.writeText(y)}};t.DebugVariablesModelService=d,d.DEFAULT_TRIGGER_DELAY=200,r.__decorate([(0,l.Autowired)(l.INJECTOR_TOKEN),r.__metadata("design:type",l.Injector)],d.prototype,"injector",void 0),r.__decorate([(0,l.Autowired)(m.ICtxMenuRenderer),r.__metadata("design:type",m.ICtxMenuRenderer)],d.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,l.Autowired)(m.AbstractContextMenuService),r.__metadata("design:type",m.AbstractContextMenuService)],d.prototype,"contextMenuService",void 0),r.__decorate([(0,l.Autowired)(s.DebugViewModel),r.__metadata("design:type",s.DebugViewModel)],d.prototype,"viewModel",void 0),r.__decorate([(0,l.Autowired)(v.IClipboardService),r.__metadata("design:type",Object)],d.prototype,"clipboardService",void 0),r.__decorate([(0,l.Autowired)(h.DebugContextKey),r.__metadata("design:type",h.DebugContextKey)],d.prototype,"debugContextKey",void 0),t.DebugVariablesModelService=d=n=r.__decorate([(0,l.Injectable)(),r.__metadata("design:paramtypes",[])],d)},86752:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariablesPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(43718),v=e(57517),m=e(14951),p=e(2156),s=e(72665),h=e(94170),a=e(23268),g=e(64582),u=e(61752),d=e(32756),E=e(4983),f=e(95033),c=e(30865);let y=class{registerCommands(A){A.registerCommand(g.DEBUG_COMMANDS.SET_VARIABLE_VALUE,{execute:async()=>{var I;this.reporterService.point(g.DEBUG_REPORT_NAME===null||g.DEBUG_REPORT_NAME===void 0?void 0:g.DEBUG_REPORT_NAME.DEBUG_VARIABLES,g.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id);const{currentVariableInternalContext:w}=this.debugVariablesModelService;if(!w)return;const T=await this.quickInputService.open({placeHolder:(0,o.localize)("debugger.menu.setValue.param"),value:w.description.replace(/^\"(.*)\"$/,"$1")});if(T!=null){try{await w.setValue(T)}catch(R){this.messageService.error(R.message)}(I=this.debugVariablesModelService.treeModel)===null||I===void 0||I.dispatchChange()}}}),A.registerCommand(g.DEBUG_COMMANDS.COPY_VARIABLE_VALUE,{execute:async()=>{const{currentVariableInternalContext:I}=this.debugVariablesModelService;this.debugVariablesModelService.copyValue(I)}}),A.registerCommand(g.DEBUG_COMMANDS.COPY_EVALUATE_PATH,{execute:async()=>{const{currentVariableInternalContext:I}=this.debugVariablesModelService;this.debugVariablesModelService.copyEvaluateName(I)}}),A.registerCommand(g.DEBUG_COMMANDS.ADD_TO_WATCH_ID,{execute:async I=>{const{currentVariableInternalContext:w}=this.debugVariablesModelService;if(I instanceof _.URI){const T=this.workbenchEditorService.currentEditor;if(!T?.monacoEditor||!T?.monacoEditor.hasModel())return;const R=T.monacoEditor,M=R.getModel().getValueInRange(R.getSelection());this.debugWatchModelService.addWatchExpression(M);return}else w&&this.debugWatchModelService.addWatchExpression(w.evaluateName)}});const S="ms-vscode.hexeditor",D=`${_.CUSTOM_EDITOR_SCHEME}-hexEditor.hexedit`;A.registerCommand(g.DEBUG_COMMANDS.VIEW_MEMORY_ID,{execute:async I=>{var w;const T=await this.commandService.executeCommand("extension.getDescription",S);if(T&&T.enabled){const R=(w=this.viewModel.currentSession)===null||w===void 0?void 0:w.id,M=I.memoryReference;this.workbenchEditorService.open(_.URI.from({scheme:E.DEBUG_MEMORY_SCHEME,authority:R,path:"/"+encodeURIComponent(M||"")+"/memory.bin"}),{disableNavigate:!0,preview:!0,forceOpenType:{type:v.EditorOpenType.component,componentId:D}})}else this.messageService.warning((0,o.localize)("debug.variables.view.memory.prompt.hexEditor.notInstalled"))}})}async initialize(){this.fileSystem.registerProvider(E.DEBUG_MEMORY_SCHEME,this.debugMemoryFileSystemProvider)}registerResource(A){A.registerResourceProvider({scheme:E.DEBUG_MEMORY_SCHEME,provideResource:async S=>({uri:S,icon:(0,o.getIcon)("hex"),name:S.displayName})})}registerMenus(A){var S;A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.SET_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.setValue")},order:10,when:E.CONTEXT_SET_VARIABLE_SUPPORTED.raw,group:"3_modification"}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.COPY_VARIABLE_VALUE.id,label:(0,o.localize)("debugger.menu.copyValue")},order:10,group:"5_cutcopypaste"}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.COPY_EVALUATE_PATH.id,label:(0,o.localize)("debugger.menu.copyEvaluatePath")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:20,group:"5_cutcopypaste"}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:E.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT.raw,order:100,group:"z_commands"}),A.registerMenuItem(l.MenuId.EditorContext,{command:{id:g.DEBUG_COMMANDS.ADD_TO_WATCH_ID.id,label:(0,o.localize)("debugger.menu.addToWatchExpressions")},when:(S=a.ContextKeyExpr.and(h.EditorContextKeys.hasNonEmptySelection,h.EditorContextKeys.editorTextFocus))===null||S===void 0?void 0:S.keys().reduce((D,I)=>D+" && "+I,E.CONTEXT_IN_DEBUG_MODE.raw),group:"debug",order:1}),A.registerMenuItem(l.MenuId.DebugVariablesContext,{command:{id:g.DEBUG_COMMANDS.VIEW_MEMORY_ID.id,label:(0,o.localize)("debug.variables.view.memory")},iconClass:"",when:`${E.CONTEXT_CAN_VIEW_MEMORY.equalsTo(!0)} && ${E.CONTEXT_IN_DEBUG_MODE.equalsTo(!0)}`,type:"icon"})}};t.VariablesPanelContribution=y,n.__decorate([(0,r.Autowired)(o.IQuickInputService),n.__metadata("design:type",Object)],y.prototype,"quickInputService",void 0),n.__decorate([(0,r.Autowired)(c.DebugVariablesModelService),n.__metadata("design:type",c.DebugVariablesModelService)],y.prototype,"debugVariablesModelService",void 0),n.__decorate([(0,r.Autowired)(f.DebugWatchModelService),n.__metadata("design:type",f.DebugWatchModelService)],y.prototype,"debugWatchModelService",void 0),n.__decorate([(0,r.Autowired)(v.WorkbenchEditorService),n.__metadata("design:type",v.WorkbenchEditorService)],y.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(s.IMessageService),n.__metadata("design:type",Object)],y.prototype,"messageService",void 0),n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],y.prototype,"reporterService",void 0),n.__decorate([(0,r.Autowired)(_.CommandService),n.__metadata("design:type",Object)],y.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(d.DebugViewModel),n.__metadata("design:type",d.DebugViewModel)],y.prototype,"viewModel",void 0),n.__decorate([(0,r.Autowired)(m.IFileServiceClient),n.__metadata("design:type",p.FileServiceClient)],y.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(u.DebugMemoryFileSystemProvider),n.__metadata("design:type",u.DebugMemoryFileSystemProvider)],y.prototype,"debugMemoryFileSystemProvider",void 0),t.VariablesPanelContribution=y=n.__decorate([(0,o.Domain)(o.ClientAppContribution,v.BrowserEditorContribution,l.MenuContribution,o.CommandContribution)],y)},28875:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=t.DebugVariableRenderedNode=t.DebugVariableView=t.DEBUG_VARIABLE_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=e(41869),v=e(98650),m=e(30865),p=n.__importDefault(e(57259));t.DEBUG_VARIABLE_TREE_FIELD_NAME="DEBUG_VARIABLE_TREE_FIELD";const s=({viewState:a})=>{const g=(0,_.useInjectable)(m.DebugVariablesModelService),u=o.default.useRef(null),[d,E]=o.default.useState(),f=22,{width:c,height:y}=a;o.default.useEffect(()=>{const M=g.onDidUpdateTreeModel(async O=>{E(O)});return()=>{M.dispose(),g.removeNodeDecoration(),E(void 0)}},[]);const b=M=>{g.handleTreeHandler({...M,hasDirectFocus:()=>u.current===document.activeElement})},A=(M,O,x)=>{M.stopPropagation();const{handleTwistierClick:k}=g;O&&k(O,x)},S=(M,O)=>{const{handleContextMenu:x}=g;x(M,O)},D=M=>{const{handleContextMenu:O}=g;O(M)},I=M=>{const{enactiveNodeDecoration:O}=g;O()},w=M=>{const{enactiveNodeDecoration:O}=g;O()},T=o.default.useCallback(M=>{const O=g.decorations.getDecorations(M.item);return o.default.createElement(t.DebugVariableRenderedNode,{item:M.item,itemType:M.itemType,decorations:O,onClick:A,onTwistierClick:A,onContextMenu:S,defaultLeftPadding:0,leftPadding:8})},[d]),R=()=>d?o.default.createElement(l.RecycleTree,{height:y,width:c,itemHeight:f,onReady:b,model:d,placeholder:()=>o.default.createElement("span",null),overflow:"auto"},T):o.default.createElement("span",null);return o.default.createElement("div",{className:p.default.debug_variables_container,tabIndex:-1,ref:u,onContextMenu:D,onClick:I,onBlur:w,"data-name":t.DEBUG_VARIABLE_TREE_FIELD_NAME},R())};t.DebugVariableView=s;const h=({item:a,decorations:g,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:f,onContextMenu:c,itemType:y})=>{const b=(0,_.useDesignStyles)(p.default.expansion_toggle,"expansion_toggle"),A=k=>{E(k,a,l.CompositeTreeNode.is(a)?l.TreeNodeType.CompositeTreeNode:l.TreeNodeType.TreeNode)},S=k=>{k.nativeEvent.which!==0&&(y===l.TreeNodeType.TreeNode||y===l.TreeNodeType.CompositeTreeNode)&&c&&c(k,a,y)},D=`${(u||8)+(a.depth||0)*(d||0)+(v.ExpressionContainer.is(a)?0:18)}px`,I={height:t.DEBUG_VARIABLE_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_VARIABLE_TREE_NODE_HEIGHT}px`,paddingLeft:D},w=k=>o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment,p.default.debug_variables_node_displayname,p.default.debug_variables_variable,k.description?p.default.name:"")},k.displayName,k.value?":":""),T=k=>{const F=/^true|false$/i,L=/^(['"]).*\1$/,{description:N=""}=k,U=N!=="undefined"?N.replace("function","\u0192 "):"",W=[p.default.debug_variables_variable];return a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?W.push(p.default[a.variableType]):isNaN(+U)?F.test(U)?W.push(p.default.boolean):L.test(U)&&W.push(p.default.string):W.push(p.default.number),o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment_grow,p.default.debug_variables_node_description,...W)},U)},R=()=>o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment,p.default.debug_variables_node_tail)},M()),M=()=>o.default.createElement("div",{className:p.default.debug_variables_node_status},a.badge),O=(k,F)=>{const L=N=>{F(N,k,y)};return g&&g?.classlist.indexOf(p.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_segment,b)},o.default.createElement(l.Loading,null)):o.default.createElement("div",{onClick:L,className:(0,r.default)(p.default.debug_variables_node_segment,b,(0,_.getIcon)("right"),{[`${p.default.mod_collapsed}`]:!k.expanded})})},x=k=>{if(l.CompositeTreeNode.is(k))return O(k,f)};return o.default.createElement("div",{key:a.id,onClick:A,onContextMenu:S,title:a.description||"",className:(0,r.default)(p.default.debug_variables_node,g?g.classlist:null),style:I,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(p.default.debug_variables_node_content)},x(a),o.default.createElement("div",{className:p.default.debug_variables_node_overflow_wrap},w(a),T(a)),R()))};t.DebugVariableRenderedNode=h,t.DEBUG_VARIABLE_TREE_NODE_HEIGHT=22},85454:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModel=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(98650);let m=n=class extends l.TreeModel{constructor(s){super(),this.flushDispatchChangeDelayer=new _.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),this.init(s)}init(s){this.root=s,this.root.watcher.on(l.TreeNodeEvent.BranchDidUpdate,()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.dispatchChange()})})}};t.DebugWatchModel=m,m.DEFAULT_FLUSH_DELAY=100,t.DebugWatchModel=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__param(0,(0,o.Optional)()),r.__metadata("design:paramtypes",[v.ExpressionContainer])],m)},95033:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DebugWatchModelService=void 0;const r=e(85608),o=e(76003),l=e(97267),_=e(41869),v=e(93899),m=e(38029),p=e(50755),s=e(98650),h=e(32756),a=e(4983),g=e(26296),u=e(85454),d=r.__importDefault(e(21315)),{Path:E}=_.path;let f=n=class{constructor(){this._changeEventDispatchQueue=[],this.selectedDecoration=new l.Decoration(d.default.mod_selected),this.focusedDecoration=new l.Decoration(d.default.mod_focused),this.contextMenuDecoration=new l.Decoration(d.default.mod_actived),this.loadingDecoration=new l.Decoration(d.default.mod_loading),this._selectedNodes=[],this.onDidRefreshedEmitter=new _.Emitter,this.onDidUpdateTreeModelEmitter=new _.Emitter,this.flushDispatchChangeDelayer=new _.ThrottledDelayer(n.DEFAULT_TRIGGER_DELAY),this.disposableCollection=new _.DisposableCollection,this.loadedDeferred=new _.Deferred,this.activeNodeDecoration=(y,b=!0)=>{var A;if(a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService),this.contextMenuNode&&(this.focusedDecoration.removeTarget(this.contextMenuNode),this.selectedDecoration.removeTarget(this.contextMenuNode),this._contextMenuNode=void 0),y){if(this.selectedNodes.length>0)for(const S of this.selectedDecoration.appliedTargets.keys())this.selectedDecoration.removeTarget(S);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(y),this.focusedDecoration.addTarget(y),this._focusedNode=y,this._selectedNodes=[y],b&&((A=this.treeModel)===null||A===void 0||A.dispatchChange())}},this.activeNodeActivedDecoration=y=>{var b;this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(y),this._contextMenuNode=y,(b=this.treeModel)===null||b===void 0||b.dispatchChange()},this.enactiveNodeDecoration=()=>{var y;a.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.bind(this.contextKeyService).set(!1),this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),this._focusedNode=void 0),this.contextMenuNode&&this.contextMenuDecoration.removeTarget(this.contextMenuNode),(y=this.treeModel)===null||y===void 0||y.dispatchChange()},this.handleContextMenu=(y,b)=>{var A;y.stopPropagation(),y.preventDefault();const{x:S,y:D}=y.nativeEvent;b?this.activeNodeActivedDecoration(b):this.enactiveNodeDecoration();let I;b?I=b:I=(A=this.treeModel)===null||A===void 0?void 0:A.root,this.watchItemType.set(I instanceof s.DebugWatchNode?"expression":I instanceof s.DebugVariable||I instanceof s.DebugVariableContainer?"variable":void 0);const w=this.contextMenuService.createMenu({id:v.MenuId.DebugWatchContext,contextKeyService:this.contextMenuContextKeyService}),T=w.getMergedMenuNodes();w.dispose(),this.ctxMenuRenderer.show({anchor:{x:S,y:D},menuNodes:T,args:[I]})},this.handleTreeBlur=()=>{this.enactiveNodeDecoration()},this.handleItemClick=y=>{this.activeNodeDecoration(y)},this.handleTwistierClick=(y,b)=>{if(b===l.TreeNodeType.CompositeTreeNode){if(s.DebugWatchNode.is(y)&&y.available){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}else if(y.variablesReference){this.activeNodeDecoration(y,!1),this.toggleDirectory(y);return}}this.activeNodeDecoration(y)},this.toggleDirectory=async y=>{y.expanded?this.treeHandle.collapseNode(y):this.treeHandle.expandNode(y)},this.proxyPrompt=y=>{let b=!1;const A=async S=>{if(!b){if(b=!0,S){if(y instanceof l.NewPromptHandle){const D=y.parent;if(y.addAddonAfter("loading_indicator"),D.session)this.addWatchExpression(S);else{const I=new s.DebugWatchNode(D.session,S,D);this.dispatchWatchEvent(D.path,{type:l.WatchEvent.Added,node:I,id:D.id}),this.debugWatch.addWatchExpression(S)}}else if(y instanceof l.RenamePromptHandle){const D=y.target,I=D.parent;if(y.addAddonAfter("loading_indicator"),I.session)this.debugWatch.renameWatchExpression(D.name,S),this.initTreeModel();else{const w=new E(D.path).dir.join(S).toString();this.dispatchWatchEvent(I.path,{type:l.WatchEvent.Moved,oldPath:D.path,newPath:w}),this.debugWatch.renameWatchExpression(D.name,S)}}}return!0}};y.destroyed||(y.onCommit(A),y.onBlur(A))},this.flushEventQueue=()=>{let y;if(!this._changeEventDispatchQueue||this._changeEventDispatchQueue.length===0)return;this._changeEventDispatchQueue.sort((A,S)=>{const D=E.pathDepth(A),I=E.pathDepth(S);return D-I});const b=[this._changeEventDispatchQueue[0]];for(const A of this._changeEventDispatchQueue)b.some(S=>A.indexOf(S)===0)||b.push(A);return y=(0,_.pSeries)(b.map(A=>async()=>{var S,D;const I=(D=(S=this.treeModel)===null||S===void 0?void 0:S.root)===null||D===void 0?void 0:D.watchEvents.get(A);return I&&typeof I.callback=="function"&&await I.callback({type:l.WatchEvent.Changed,path:A}),null})),this._changeEventDispatchQueue=[],y},this.debugWatch=new p.DebugWatch(this.manager,this.reporterService),this.init(),this.watchItemType=a.CONTEXT_WATCH_ITEM_TYPE.bind(this.contextKeyService)}get flushEventQueuePromise(){return this.flushEventQueueDeferred&&this.flushEventQueueDeferred.promise}get contextMenuContextKeyService(){return this._contextMenuContextKeyService||(this._contextMenuContextKeyService=this.contextKeyService.createScoped()),this._contextMenuContextKeyService}get treeHandle(){return this._debugWatchTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._activeTreeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}get contextMenuNode(){return this._contextMenuNode}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get onDidRefreshed(){return this.onDidRefreshedEmitter.event}dispose(){this.disposableCollection.disposed||this.disposableCollection.dispose()}async save(y=[]){await(await this.storageProvider(_.STORAGE_NAMESPACE.DEBUG)).set(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,y)}async load(){const b=await(await this.storageProvider(_.STORAGE_NAMESPACE.DEBUG)).get(n.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY,[]);await this.debugWatch.updateWatchExpressions(b),this.loadedDeferred.resolve()}async init(){await this.loadedDeferred.promise,this.initTreeModel(),this.listenDebugWatchChange()}listenDebugWatchChange(){this.debugWatch.onDidChange(async()=>{this.flushDispatchChangeDelayer.isTriggered()||this.flushDispatchChangeDelayer.cancel(),this.flushDispatchChangeDelayer.trigger(async()=>{this.initTreeModel()})}),this.debugWatch.onDidVariableChange(async()=>{this.refresh()}),this.debugWatch.onDidExpressionChange(y=>{this.save(y)})}listenTreeViewChange(){this.dispose(),this.treeModel&&(this.disposableCollection.push(this.treeModel.root.watcher.on(l.TreeNodeEvent.WillResolveChildren,y=>{this.loadingDecoration.addTarget(y)})),this.disposableCollection.push(this.treeModel.root.watcher.on(l.TreeNodeEvent.DidResolveChildren,y=>{this.loadingDecoration.removeTarget(y)})))}async initTreeModel(){const y=await this.debugWatch.getRoot();if(y)return this._activeTreeModel=this.injector.get(u.DebugWatchModel,[y]),this.initDecorations(y),this.listenTreeViewChange(),this.onDidUpdateTreeModelEmitter.fire(this._activeTreeModel),this._activeTreeModel}initDecorations(y){this._decorations=new l.DecorationsManager(y),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration)}removeNodeDecoration(){this.decorations&&(this.decorations.removeDecoration(this.selectedDecoration),this.decorations.removeDecoration(this.focusedDecoration),this.decorations.removeDecoration(this.contextMenuDecoration),this.decorations.removeDecoration(this.loadingDecoration))}handleTreeHandler(y){this._debugWatchTreeHandle=y}async newDebugWatchNodePrompt(){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptNewTreeNode(this.treeModel.root))}async renameDebugWatchNodePrompt(y){this.treeModel&&this.proxyPrompt(await this.treeHandle.promptRename(y))}removeDebugWatchNode(y){this.debugWatch.removeWatchExpression(y.name),y.session?this.initTreeModel():this.dispatchWatchEvent(y.parent.path,{type:l.WatchEvent.Removed,path:y.path})}async copyValue(y){const b=await y.getClipboardValue();b&&await this.clipboardService.writeText(b)}async clearAllExpression(){this.debugWatch.updateWatchExpressions([]),await this.initTreeModel(),this.save()}addWatchExpression(y){this.debugWatch.addWatchExpression(y),this.initTreeModel()}dispatchWatchEvent(y,b){var A;const S=(A=this.treeModel)===null||A===void 0?void 0:A.root.watchEvents.get(y);S&&S.callback&&S.callback(b)}collapsedAll(){var y;(y=this.treeModel)===null||y===void 0||y.root.collapsedAll()}async refresh(y){if(!y)if(this.treeModel)y=this.treeModel.root;else return;!s.ExpressionContainer.is(y)&&y.parent&&(y=y.parent),this.queueChangeEvent(y.path,()=>{this.onDidRefreshedEmitter.fire()})}queueChangeEvent(y,b){this.flushEventQueueDeferred||(this.flushEventQueueDeferred=new _.Deferred,clearTimeout(this._eventFlushTimeout),this._eventFlushTimeout=setTimeout(async()=>{var A;await this.flushEventQueue(),(A=this.flushEventQueueDeferred)===null||A===void 0||A.resolve(),this.flushEventQueueDeferred=null,b()},n.DEFAULT_REFRESH_DELAY)),this._changeEventDispatchQueue.indexOf(y)===-1&&this._changeEventDispatchQueue.push(y)}};t.DebugWatchModelService=f,f.DEFAULT_REFRESH_DELAY=100,f.DEFAULT_TRIGGER_DELAY=200,f.DEBUG_WATCHER_EXPRESSIONS_STORAGE_KEY="watchers",r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),r.__metadata("design:type",v.ICtxMenuRenderer)],f.prototype,"ctxMenuRenderer",void 0),r.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),r.__metadata("design:type",v.AbstractContextMenuService)],f.prototype,"contextMenuService",void 0),r.__decorate([(0,o.Autowired)(h.DebugViewModel),r.__metadata("design:type",h.DebugViewModel)],f.prototype,"viewModel",void 0),r.__decorate([(0,o.Autowired)(g.IDebugSessionManager),r.__metadata("design:type",m.DebugSessionManager)],f.prototype,"manager",void 0),r.__decorate([(0,o.Autowired)(_.IReporterService),r.__metadata("design:type",Object)],f.prototype,"reporterService",void 0),r.__decorate([(0,o.Autowired)(_.IContextKeyService),r.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),r.__decorate([(0,o.Autowired)(_.StorageProvider),r.__metadata("design:type",Function)],f.prototype,"storageProvider",void 0),r.__decorate([(0,o.Autowired)(_.IClipboardService),r.__metadata("design:type",Object)],f.prototype,"clipboardService",void 0),t.DebugWatchModelService=f=n=r.__decorate([(0,o.Injectable)(),r.__metadata("design:paramtypes",[])],f)},14600:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPanelContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(64582),v=e(98650),m=e(4983),p=e(95033);let s=class{registerCommands(a){a.registerCommand(_.DEBUG_COMMANDS.ADD_WATCHER,{execute:()=>{this.debugWatchModelService.newDebugWatchNodePrompt()}}),a.registerCommand(_.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.collapsedAll()}}),a.registerCommand(_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER,{execute:()=>{this.debugWatchModelService.clearAllExpression()}}),a.registerCommand(_.DEBUG_COMMANDS.REMOVE_WATCHER,{execute:g=>{g instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(g);const[u]=this.debugWatchModelService.selectedNodes;u instanceof v.DebugWatchNode&&this.debugWatchModelService.removeDebugWatchNode(u)}}),a.registerCommand(_.DEBUG_COMMANDS.EDIT_WATCHER,{execute:g=>{this.debugWatchModelService.renameDebugWatchNodePrompt(g)}}),a.registerCommand(_.DEBUG_COMMANDS.COPY_WATCHER_VALUE,{execute:g=>{this.debugWatchModelService.copyValue(g)}})}registerToolbarItems(a){a.registerItem({id:_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,command:_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("close-all"),viewId:_.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.removeAll")}),a.registerItem({id:_.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,iconClass:(0,o.getIcon)("collapse-all"),command:_.DEBUG_COMMANDS.COLLAPSE_ALL_WATCHER.id,viewId:_.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.collapseAll"),when:m.CONTEXT_IN_DEBUG_MODE.raw}),a.registerItem({id:_.DEBUG_COMMANDS.ADD_WATCHER.id,iconClass:(0,o.getIcon)("plus"),command:_.DEBUG_COMMANDS.ADD_WATCHER.id,viewId:_.DEBUG_WATCH_ID,tooltip:(0,o.localize)("debug.watch.add"),when:m.CONTEXT_IN_DEBUG_MODE.raw})}registerMenus(a){a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.ADD_WATCHER.id,label:(0,o.localize)("debug.watch.add")},order:10,group:"3_modification"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.EDIT_WATCHER.id,label:(0,o.localize)("debug.watch.edit")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:20,group:"3_modification"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.COPY_WATCHER_VALUE.id,label:(0,o.localize)("debug.watch.copyValue")},when:`${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression")} || ${m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("variable")} && ${m.CONTEXT_IN_DEBUG_MODE.raw}`,order:30,enabledWhen:m.CONTEXT_IN_DEBUG_MODE.raw,group:"3_modification"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.REMOVE_WATCHER.id,label:(0,o.localize)("debug.watch.remove")},when:m.CONTEXT_WATCH_ITEM_TYPE.equalsTo("expression"),order:10,group:"z_commands"}),a.registerMenuItem(l.MenuId.DebugWatchContext,{command:{id:_.DEBUG_COMMANDS.REMOVE_ALL_WATCHER.id,label:(0,o.localize)("debug.watch.removeAll")},order:20,group:"z_commands"})}registerKeybindings(a){a.registerKeybinding({command:_.DEBUG_COMMANDS.REMOVE_WATCHER.id,keybinding:"ctrlcmd+backspace",when:m.CONTEXT_WATCH_EXPRESSIONS_FOCUSED.raw})}onStart(){this.debugWatchModelService.load()}};t.WatchPanelContribution=s,n.__decorate([(0,r.Autowired)(p.DebugWatchModelService),n.__metadata("design:type",p.DebugWatchModelService)],s.prototype,"debugWatchModelService",void 0),t.WatchPanelContribution=s=n.__decorate([(0,o.Domain)(o.ClientAppContribution,l.MenuContribution,o.CommandContribution,o.TabBarToolbarContribution,o.KeybindingContribution)],s)},64611:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_WATCH_TREE_NODE_HEIGHT=t.DebugWatchRenderedNode=t.DebugWatchView=t.DEBUG_WATCH_TREE_FIELD_NAME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=e(41869),v=e(98650),m=e(95033),p=n.__importDefault(e(21315));t.DEBUG_WATCH_TREE_FIELD_NAME="DEBUG_WATCH_TREE_FIELD";const s=({viewState:a})=>{const g=(0,_.useInjectable)(m.DebugWatchModelService),u=22,d=o.default.useRef(null),[E,f]=o.default.useState(),{height:c}=a;o.default.useEffect(()=>y(),[]);const y=()=>{const M=g.treeModel;let O=!0;const x=new _.DisposableCollection;return x.push(_.Disposable.create(()=>{O=!1})),M&&M.ensureReady.then(()=>{O&&f(M)}),x.push(g.onDidUpdateTreeModel(async k=>{k&&await k.ensureReady,O&&f(k)})),()=>{g.removeNodeDecoration(),x.dispose()}},b=M=>{g.handleTreeHandler({...M,getModel:()=>E,hasDirectFocus:()=>d.current===document.activeElement})},A=(M,O,x)=>{M.stopPropagation();const{handleTwistierClick:k}=g;O&&k(O,x)},S=(M,O)=>{const{handleContextMenu:x}=g;x(M,O)},D=M=>{const{handleContextMenu:O}=g;O(M)},I=M=>{const{enactiveNodeDecoration:O}=g;O()},w=M=>{const{enactiveNodeDecoration:O}=g;O()},T=o.default.useCallback(M=>{const O=g.decorations.getDecorations(M.item);return o.default.createElement(t.DebugWatchRenderedNode,{item:M.item,itemType:M.itemType,decorations:O,onClick:A,onTwistierClick:A,onContextMenu:S,defaultLeftPadding:12,leftPadding:8})},[E]),R=()=>E?o.default.createElement(l.RecycleTree,{height:c,itemHeight:u,onReady:b,model:E,placeholder:()=>o.default.createElement("span",null)},T):o.default.createElement("span",null);return o.default.createElement("div",{className:p.default.debug_watch_container,tabIndex:-1,ref:d,onContextMenu:D,onClick:I,onBlur:w,"data-name":t.DEBUG_WATCH_TREE_FIELD_NAME},R())};t.DebugWatchView=s;const h=({item:a,decorations:g,defaultLeftPadding:u,leftPadding:d,onClick:E,onTwistierClick:f,onContextMenu:c,itemType:y})=>{const b=(0,_.useDesignStyles)(p.default.expansion_toggle,"expansion_toggle"),A=y===l.TreeNodeType.RenamePrompt,S=y===l.TreeNodeType.NewPrompt,D=A||S,I=N=>{const U=a.getRawWatch();U&&E(N,a,U.variablesReference>0?l.TreeNodeType.CompositeTreeNode:l.TreeNodeType.TreeNode)},w=N=>{N.nativeEvent.which!==0&&(y===l.TreeNodeType.TreeNode||y===l.TreeNodeType.CompositeTreeNode)&&c&&c(N,a,y)},T={height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,lineHeight:`${t.DEBUG_WATCH_TREE_NODE_HEIGHT}px`,paddingLeft:`${(u||8)+(a.depth||0)*(d||0)}px`},R=N=>D&&N instanceof l.PromptHandle?o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,p.default.debug_watch_node_inputbox)},o.default.createElement("div",{className:(0,r.default)("input-box",p.default.debug_watch_node_prompt_box)},o.default.createElement(N.ProxiedInput,{wrapperStyle:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT,padding:"0 5px"}}))):o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,p.default.debug_watch_node_displayname,p.default.debug_watch_variable,N.description?p.default.name:"")},N.name,N.description?":":""),M=N=>{const U=/^true|false$/i,W=/^(['"]).*\1$/,j=N.description?N.description.replace("function","\u0192 "):"",Q=[p.default.debug_watch_variable];return D?null:(a.variableType==="number"||a.variableType==="boolean"||a.variableType==="string"?Q.push(p.default[a.variableType]):isNaN(+j)?U.test(j)?Q.push(p.default.boolean):W.test(j)&&Q.push(p.default.string):Q.push(p.default.number),o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment_grow,p.default.debug_watch_node_description,...Q)},j))},O=()=>o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,p.default.debug_watch_node_tail)},x()),x=()=>o.default.createElement("div",{className:p.default.debug_watch_node_status},a.badge),k=()=>a.tooltip,F=(N,U)=>{const W=j=>{U(j,N,y)};return g&&g?.classlist.indexOf(p.default.mod_loading)>-1?o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_segment,b)},o.default.createElement(l.Loading,null)):o.default.createElement("div",{onClick:W,className:(0,r.default)(p.default.debug_watch_node_segment,b,(0,_.getIcon)("right"),{[`${p.default.mod_collapsed}`]:!N.expanded})})},L=N=>{if(v.DebugWatchNode.is(N)){if(N.available&&N.variablesReference)return F(N,f)}else if(v.ExpressionContainer.is(N)&&N.variablesReference)return F(N,f)};return o.default.createElement("div",{key:a.id,onClick:I,onContextMenu:w,title:k(),className:(0,r.default)(p.default.debug_watch_node,g?g.classlist:null),style:T,"data-id":a.id},o.default.createElement("div",{className:(0,r.default)(p.default.debug_watch_node_content)},L(a),o.default.createElement("div",{style:{height:t.DEBUG_WATCH_TREE_NODE_HEIGHT},className:D?p.default.debug_watch_node_prompt_wrap:p.default.debug_watch_node_overflow_wrap},R(a),M(a)),O()))};t.DebugWatchRenderedNode=h,t.DEBUG_WATCH_TREE_NODE_HEIGHT=22},46118:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_COMMANDS=void 0;var e;(function(n){n.ADD_WATCHER={id:"debug.watch.add"},n.COLLAPSE_ALL_WATCHER={id:"debug.watch.collapseAll"},n.REMOVE_ALL_WATCHER={id:"debug.watch.removeAll"},n.REMOVE_WATCHER={id:"debug.watch.remove"},n.EDIT_WATCHER={id:"debug.watch.edit"},n.COPY_WATCHER_VALUE={id:"debug.watch.copyValue"},n.REMOVE_ALL_BREAKPOINTS={id:"debug.breakpoints.remove.all"},n.TOGGLE_BREAKPOINTS={id:"debug.breakpoints.toggle"},n.ACTIVE_BREAKPOINTS={id:"debug.breakpoints.active"},n.DEACTIVE_BREAKPOINTS={id:"debug.breakpoints.deactive"},n.START={id:"debug.start"},n.NEXT={id:"debug.next"},n.PREV={id:"debug.prev"},n.OVER={id:"debug.over"},n.STOP={id:"debug.stop"},n.CONTINUE={id:"debug.continue"},n.RESTART={id:"debug.restart"},n.PAUSE={id:"debug.pause"},n.DELETE_BREAKPOINT={id:"debug.delete.breakpoint",label:"%debug.menu.delete.breakpoint%"},n.EDIT_BREAKPOINT={id:"debug.edit.breakpoint",label:"%debug.menu.edit.breakpoint%"},n.DISABLE_BREAKPOINT={id:"debug.disable.breakpoint",label:"%debug.menu.disable.breakpoint%"},n.ENABLE_BREAKPOINT={id:"debug.enable.breakpoint",label:"%debug.menu.enable.breakpoint%"},n.ENABLE_LOGPOINT={id:"debug.enable.logpoint",label:"%debug.menu.enable.logpoint"},n.ADD_BREAKPOINT={id:"debug.add.breakpoint",label:"%debug.menu.add.breakpoint%"},n.ADD_LOGPOINT={id:"debug.add.logpoint",label:"%debug.menu.add.logpoint%"},n.ADD_CONDITIONAL_BREAKPOINT={id:"debug.add.conditional",label:"%debug.menu.add.conditional%"},n.RESTART_FRAME={id:"debug.callstack.restart.frame"},n.COPY_STACK_TRACE={id:"debug.callstack.copy"},n.SET_VARIABLE_VALUE={id:"debug.variables.setValue"},n.COPY_VARIABLE_VALUE={id:"debug.variables.copy"},n.COPY_EVALUATE_PATH={id:"debug.evaluate.copy"},n.ADD_TO_WATCH_ID={id:"debug.addToWatchExpressions"},n.VIEW_MEMORY_ID={id:"debug.variables.view.memory"},n.CLEAR_CONSOLE={id:"debug.console.clear",label:"%debug.console.clear%"},n.COPY_CONSOLE_ITEM={id:"debug.console.copy"},n.COPY_CONSOLE_ALL={id:"debug.console.copyALl"},n.COLLAPSE_ALL_CONSOLE_ITEM={id:"debug.console.collapseAll",label:"%debug.console.collapseAll%"},n.CONSOLE_ENTER_EVALUATE={id:"debug.console.keybing.enter.evaluate"},n.CONSOLE_INPUT_DOWN_ARROW={id:"debug.console.input.down.arrow"},n.CONSOLE_INPUT_UP_ARROW={id:"debug.console.input.up.arrow"},n.CONSOLE_FILTER_FOCUS={id:"debug.console.filter.input.focus"},n.RUN_TO_CURSOR={id:"debug.action.runToCursor",label:"%debug.action.runToCursor%"},n.FORCE_RUN_TO_CURSOR={id:"debug.action.forceRunToCursor",label:"%debug.action.forceRunToCursor%"},n.EXCEPTION_WIDGET_CLOSE={id:"debug.action.closeExceptionWidget"},n.SHOW_ALL_AUTOMATIC_DEBUG_CONFIGURATIONS={id:"debug.showAllAutomaticDebugConfigurations"}})(e||(t.DEBUG_COMMANDS=e={}))},4983:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_DEBUGGERS_AVAILABLE=t.CONTEXT_BREAKPOINTS_EXIST=t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=t.CONTEXT_RESTART_FRAME_SUPPORTED=t.CONTEXT_STEP_BACK_SUPPORTED=t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=t.CONTEXT_BREAKPOINT_ACCESS_TYPE=t.CONTEXT_BREAKPOINT_ITEM_TYPE=t.CONTEXT_WATCH_ITEM_TYPE=t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=t.CONTEXT_CALLSTACK_ITEM_STOPPED=t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=t.CONTEXT_CALLSTACK_ITEM_TYPE=t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=t.CONTEXT_EXPRESSION_SELECTED=t.CONTEXT_VARIABLES_FOCUSED=t.CONTEXT_WATCH_EXPRESSIONS_EXIST=t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=t.CONTEXT_BREAKPOINTS_FOCUSED=t.CONTEXT_IN_BREAKPOINT_WIDGET=t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=t.CONTEXT_IN_DEBUG_CONSOLE=t.CONTEXT_IN_DEBUG_REPL=t.CONTEXT_IN_DEBUG_MODE=t.CONTEXT_DEBUG_UX=t.CONTEXT_DEBUG_UX_KEY=t.CONTEXT_DEBUG_STATE=t.CONTEXT_DEBUG_CONFIGURATION_TYPE=t.CONTEXT_DEBUG_TYPE=t.CONTEXT_DEBUG_TYPE_KEY=t.CONTEXT_IN_DEBUG_MODE_KEY=t.CONTEXT_DEBUG_STOPPED_KEY=t.DEBUG_SCHEME=t.DEBUG_FLOATING_CLICK_WIDGET=t.DEBUG_STACK_ID=t.DEBUG_WELCOME_ID=t.DEBUG_BREAKPOINTS_ID=t.DEBUG_VARIABLES_ID=t.DEBUG_THREAD_ID=t.DEBUG_WATCH_ID=t.DEBUG_MEMORY_SCHEME=t.LAUNCH_VIEW_COMPONENT_ID=t.LAUNCH_VIEW_SCHEME=t.DEBUG_CONTAINER_ID=t.DEBUG_CONSOLE_CONTAINER_ID=void 0,t.CONTEXT_ACTIVE_BREAKPOINTS=t.CONTEXT_CAN_VIEW_MEMORY=t.CONTEXT_MULTI_SESSION_DEBUG=t.CONTEXT_MULTI_SESSION_REPL=t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=t.CONTEXT_SET_VARIABLE_SUPPORTED=t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=void 0;const n=e(30144);Object.defineProperty(t,"DEBUG_CONSOLE_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONSOLE_CONTAINER_ID}}),Object.defineProperty(t,"DEBUG_CONTAINER_ID",{enumerable:!0,get:function(){return n.DEBUG_CONTAINER_ID}});const r=e(40191);t.LAUNCH_VIEW_SCHEME="launch_view_scheme",t.LAUNCH_VIEW_COMPONENT_ID="launch-view",t.DEBUG_MEMORY_SCHEME="vscode-debug-memory",t.DEBUG_WATCH_ID="debug-watch",t.DEBUG_THREAD_ID="debug-thread",t.DEBUG_VARIABLES_ID="debug-variable",t.DEBUG_BREAKPOINTS_ID="debug-breakpoints",t.DEBUG_WELCOME_ID="debug-welcome",t.DEBUG_STACK_ID="debug-stack",t.DEBUG_FLOATING_CLICK_WIDGET="debug.overlayWidget.floatingClickWidget",t.DEBUG_SCHEME="debug",t.CONTEXT_DEBUG_STOPPED_KEY="debugStopped",t.CONTEXT_IN_DEBUG_MODE_KEY="inDebugMode",t.CONTEXT_DEBUG_TYPE_KEY="debugType",t.CONTEXT_DEBUG_TYPE=new r.RawContextKey("debugType",void 0),t.CONTEXT_DEBUG_CONFIGURATION_TYPE=new r.RawContextKey("debugConfigurationType",void 0),t.CONTEXT_DEBUG_STATE=new r.RawContextKey("debugState","Inactive"),t.CONTEXT_DEBUG_UX_KEY="debugUx",t.CONTEXT_DEBUG_UX=new r.RawContextKey(t.CONTEXT_DEBUG_UX_KEY,"default"),t.CONTEXT_IN_DEBUG_MODE=new r.RawContextKey("inDebugMode",!1),t.CONTEXT_IN_DEBUG_REPL=new r.RawContextKey("inDebugRepl",!1),t.CONTEXT_IN_DEBUG_CONSOLE=new r.RawContextKey("inDebugConsole",!1),t.CONTEXT_BREAKPOINT_WIDGET_VISIBLE=new r.RawContextKey("breakpointWidgetVisible",!1),t.CONTEXT_IN_BREAKPOINT_WIDGET=new r.RawContextKey("inBreakpointWidget",!1),t.CONTEXT_BREAKPOINTS_FOCUSED=new r.RawContextKey("breakpointsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_FOCUSED=new r.RawContextKey("watchExpressionsFocused",!0),t.CONTEXT_WATCH_EXPRESSIONS_EXIST=new r.RawContextKey("watchExpressionsExist",!1),t.CONTEXT_VARIABLES_FOCUSED=new r.RawContextKey("variablesFocused",!0),t.CONTEXT_EXPRESSION_SELECTED=new r.RawContextKey("expressionSelected",!1),t.CONTEXT_BREAKPOINT_INPUT_FOCUSED=new r.RawContextKey("breakpointInputFocused",!1),t.CONTEXT_CALLSTACK_ITEM_TYPE=new r.RawContextKey("callStackItemType",void 0),t.CONTEXT_CALLSTACK_SESSION_IS_ATTACH=new r.RawContextKey("callStackSessionIsAttach",!1),t.CONTEXT_CALLSTACK_ITEM_STOPPED=new r.RawContextKey("callStackItemStopped",!1),t.CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD=new r.RawContextKey("callStackSessionHasOneThread",!1),t.CONTEXT_WATCH_ITEM_TYPE=new r.RawContextKey("watchItemType",void 0),t.CONTEXT_BREAKPOINT_ITEM_TYPE=new r.RawContextKey("breakpointItemType",void 0),t.CONTEXT_BREAKPOINT_ACCESS_TYPE=new r.RawContextKey("breakpointAccessType",void 0),t.CONTEXT_BREAKPOINT_SUPPORTS_CONDITION=new r.RawContextKey("breakpointSupportsCondition",!1),t.CONTEXT_LOADED_SCRIPTS_SUPPORTED=new r.RawContextKey("loadedScriptsSupported",!1),t.CONTEXT_LOADED_SCRIPTS_ITEM_TYPE=new r.RawContextKey("loadedScriptsItemType",void 0),t.CONTEXT_FOCUSED_SESSION_IS_ATTACH=new r.RawContextKey("focusedSessionIsAttach",!1),t.CONTEXT_STEP_BACK_SUPPORTED=new r.RawContextKey("stepBackSupported",!1),t.CONTEXT_RESTART_FRAME_SUPPORTED=new r.RawContextKey("restartFrameSupported",!1),t.CONTEXT_STACK_FRAME_SUPPORTS_RESTART=new r.RawContextKey("stackFrameSupportsRestart",!1),t.CONTEXT_JUMP_TO_CURSOR_SUPPORTED=new r.RawContextKey("jumpToCursorSupported",!1),t.CONTEXT_STEP_INTO_TARGETS_SUPPORTED=new r.RawContextKey("stepIntoTargetsSupported",!1),t.CONTEXT_BREAKPOINTS_EXIST=new r.RawContextKey("breakpointsExist",!1),t.CONTEXT_DEBUGGERS_AVAILABLE=new r.RawContextKey("debuggersAvailable",!1),t.CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT=new r.RawContextKey("debugProtocolVariableMenuContext",void 0),t.CONTEXT_SET_VARIABLE_SUPPORTED=new r.RawContextKey("debugSetVariableSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED=new r.RawContextKey("breakWhenValueChangesSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED=new r.RawContextKey("breakWhenValueIsAccessedSupported",!1),t.CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED=new r.RawContextKey("breakWhenValueIsReadSupported",!1),t.CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT=new r.RawContextKey("variableEvaluateNamePresent",!1),t.CONTEXT_EXCEPTION_WIDGET_VISIBLE=new r.RawContextKey("exceptionWidgetVisible",!1),t.CONTEXT_MULTI_SESSION_REPL=new r.RawContextKey("multiSessionRepl",!1),t.CONTEXT_MULTI_SESSION_DEBUG=new r.RawContextKey("multiSessionDebug",!1),t.CONTEXT_CAN_VIEW_MEMORY=new r.RawContextKey("canViewMemory",void 0),t.CONTEXT_ACTIVE_BREAKPOINTS=new r.RawContextKey("activateBreakpoints",!0)},95581:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53670:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MASSIVE_PROPERTY_FLAG=t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR=t.DEFAULT_CONFIGURATION_NAME_SEPARATOR=t.DEFAULT_NO_CONFIGURATION_KEY=t.DEFAULT_DYNAMIC_CONFIGURATION_KEY=t.DEFAULT_EDIT_CONFIGURATION_KEY=t.DEFAULT_ADD_CONFIGURATION_KEY=t.DebugConfiguration=void 0;var e;(function(n){function r(o){return!!o&&typeof o=="object"&&"type"in o&&"name"in o&&"request"in o}n.is=r})(e||(t.DebugConfiguration=e={})),t.DEFAULT_ADD_CONFIGURATION_KEY="__ADD_CONF__",t.DEFAULT_EDIT_CONFIGURATION_KEY="__EDIT_CONF__",t.DEFAULT_DYNAMIC_CONFIGURATION_KEY="__DYNAMIC_CONF__",t.DEFAULT_NO_CONFIGURATION_KEY="__NO_CONF__",t.DEFAULT_CONFIGURATION_NAME_SEPARATOR="__CONF__",t.DEFAULT_CONFIGURATION_INDEX_SEPARATOR="__INDEX__",t.MASSIVE_PROPERTY_FLAG="massive_property_flag"},70049:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugConsoleModelService=void 0,t.IDebugConsoleModelService=Symbol("IDebugConsoleModelService")},24395:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugEditor=void 0,t.DebugEditor=Symbol("DebugEditor")},91797:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFrameDeemphasized=e;function e(n){var r,o;const l=(r=n.presentationHint)!==null&&r!==void 0?r:(o=n.source)===null||o===void 0?void 0:o.presentationHint;return l==="deemphasize"||l==="subtle"}},2242:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32385:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugModelManager=t.DebugModelSupportedEventType=t.MemoryRegion=t.IDebugModel=t.DebugModelFactory=t.DebugAdapterContribution=t.DebugAdapterFactory=t.DebugAdapterSessionFactory=t.DebugAdapterSession=void 0;const n=e(43718);t.DebugAdapterSession=Symbol("DebugAdapterSession"),t.DebugAdapterSessionFactory=Symbol("DebugAdapterSessionFactory"),t.DebugAdapterFactory=Symbol("DebugAdapterFactory"),t.DebugAdapterContribution=Symbol("DebugAdapterContribution"),t.DebugModelFactory=Symbol("DebugModelFactory"),t.IDebugModel=Symbol("IDebugModel");class r extends n.Disposable{constructor(_,v){super(),this.memoryReference=_,this.session=v,this.invalidateEmitter=this.registerDispose(new n.Emitter),this.onDidInvalidate=this.invalidateEmitter.event,this.writable=!!this.session.capabilities.supportsWriteMemoryRequest,this.registerDispose(v.onDidInvalidateMemory(m=>{m.body.memoryReference===_&&this.invalidate(m.body.offset,m.body.count-m.body.offset)}))}async read(_,v){var m;const p=v-_,s=_,h=await this.session.readMemory(this.memoryReference,s,p);if(h===void 0||!(!((m=h.body)===null||m===void 0)&&m.data))return[{type:1,offset:s,length:p}];let a;try{a=(0,n.decodeBase64)(h.body.data)}catch(d){return[{type:2,offset:s,length:p,error:d.message}]}const g=h.body.unreadableBytes||0,u=p-g;if(a.byteLength<u){const d=n.BinaryBuffer.alloc(u-a.byteLength);d.buffer.fill(0),a=n.BinaryBuffer.concat([a,d],u)}else a.byteLength>u&&(a=a.slice(0,u));return g?[{type:0,offset:s,length:u,data:a},{type:1,offset:s+u,length:g}]:[{type:0,offset:s,length:p,data:a}]}async write(_,v){var m,p;const s=await this.session.writeMemory(this.memoryReference,_,(0,n.encodeBase64)(v),!0),h=(p=(m=s?.body)===null||m===void 0?void 0:m.bytesWritten)!==null&&p!==void 0?p:v.byteLength;return this.invalidate(_,_+h),h}dispose(){super.dispose()}invalidate(_,v){this.invalidateEmitter.fire({fromOffset:_,toOffset:v})}}t.MemoryRegion=r;var o;(function(l){l.down="Down",l.move="Move",l.leave="Leave",l.contextMenu="contextMenu"})(o||(t.DebugModelSupportedEventType=o={})),t.IDebugModelManager=Symbol("DebugModelManager")},79845:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugProgress=void 0,t.IDebugProgress=Symbol("DebugProgress")},60709:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA_TYPE=t.launchDefaultSchemaUri=t.launchExtensionSchemaUri=t.launchSchemaUri=void 0,t.launchSchemaUri="vscode://schemas/launch",t.launchExtensionSchemaUri="vscode://schemas/launch/extension",t.launchDefaultSchemaUri="vscode://schemas/launch/user";var e;(function(n){n.ARRAY="array",n.BOOLEAN="boolean",n.NULL="null",n.NUMBER="number",n.OBJECT="object",n.STRING="string"})(e||(t.JSON_SCHEMA_TYPE=e={}))},70159:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILaunchService=t.IDebugService=t.IDebugServer=t.DebugAdapterPath=t.DebugConfigurationProviderTriggerKind=void 0;var e;(function(n){n[n.Initial=1]="Initial",n[n.Dynamic=2]="Dynamic"})(e||(t.DebugConfigurationProviderTriggerKind=e={})),t.DebugAdapterPath="DebugAdaptor",t.IDebugServer=Symbol("DebugServer"),t.IDebugService=Symbol("DebugService"),t.ILaunchService=Symbol("ILaunchService")},50883:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionDTO=void 0;var e;(function(n){function r(o){return"id"in o}n.is=r})(e||(t.IDebugSessionDTO=e={}))},26296:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDebugSessionManager=t.IDebugSession=t.DebugState=void 0,t.getSequenceId=r;var e;(function(o){o[o.Inactive=0]="Inactive",o[o.Initializing=1]="Initializing",o[o.Running=2]="Running",o[o.Stopped=3]="Stopped"})(e||(t.DebugState=e={})),t.IDebugSession=Symbol("DebugSession"),t.IDebugSessionManager=Symbol("DebugSessionManager");let n=1;function r(){return n++}},64582:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(53670),t),n.__exportStar(e(70159),t),n.__exportStar(e(2242),t),n.__exportStar(e(95581),t),n.__exportStar(e(32385),t),n.__exportStar(e(26296),t),n.__exportStar(e(70049),t),n.__exportStar(e(50883),t),n.__exportStar(e(24395),t),n.__exportStar(e(79845),t),n.__exportStar(e(60709),t),n.__exportStar(e(7428),t),n.__exportStar(e(37723),t),n.__exportStar(e(4983),t),n.__exportStar(e(71120),t),n.__exportStar(e(46118),t)},7428:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},71120:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindowsDriveLetter=r,t.hasDriveLetter=o,t.getDriveLetter=l,t.prepareCommand=_;const n=e(43718);function r(v){return v>=65&&v<=90||v>=97&&v<=122}function o(v,m=n.isWindows){return m?r(v.charCodeAt(0))&&v.charCodeAt(1)===58:!1}function l(v){return o(v)?v[0]:void 0}function _(v,m,p,s,h){v=v.trim().toLowerCase();let a;v.indexOf("powershell")>=0||v.indexOf("pwsh")>=0?a=1:v.indexOf("cmd.exe")>=0?a=0:v.indexOf("bash")>=0?a=2:n.isWindows?a=0:a=2;let g,u=" ";switch(a){case 1:if(g=d=>(d=d.replace(/'/g,"''"),d.length>0&&d.charAt(d.length-1)==="\\"?`'${d}\\'`:`'${d}'`),s){const d=l(s);d&&(u+=`${d}:; `),u+=`cd ${g(s)}; `}if(h)for(const d in h){const E=h[d];E===null?u+=`Remove-Item env:${d}; `:u+=`\${env:${d}}='${E}'; `}if(m.length>0){const d=m.shift(),E=p?d:g(d);u+=E[0]==="'"?`& ${E} `:`${E} `;for(const f of m)u+=f==="<"||f===">"||p?f:g(f),u+=" "}break;case 0:if(g=d=>(d=d.replace(/"/g,'""'),d=d.replace(/([><!^&|])/g,"^$1"),' "'.split("").some(E=>d.includes(E))||d.length===0?`"${d}"`:d),s){const d=l(s);d&&(u+=`${d}: && `),u+=`cd ${g(s)} && `}if(h){u+='cmd /C "';for(const d in h){let E=h[d];E===null?u+=`set "${d}=" && `:(E=E.replace(/[&^|<>]/g,f=>`^${f}`),u+=`set "${d}=${E}" && `)}}for(const d of m)u+=d==="<"||d===">"||p?d:g(d),u+=" ";h&&(u+='"');break;case 2:{g=E=>(E=E.replace(/(["'\\$!><#()[\]*&^| ;{}`])/g,"\\$1"),E.length===0?'""':E);const d=E=>/[^\w@%/+=,.:^-]/.test(E)?`'${E.replace(/'/g,"'\\''")}'`:E;if(s&&(u+=`cd ${g(s)} ; `),h){u+="/usr/bin/env";for(const E in h){const f=h[E];f===null?u+=` -u ${d(E)}`:u+=` ${d(`${E}=${f}`)}`}u+=" "}for(const E of m)u+=E==="<"||E===">"||p?E:g(E),u+=" ";break}}return u}},37723:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugConfigurationsReadyEvent=t.DEBUG_REPORT_NAME=void 0;const n=e(43718);var r;(function(l){l.DEBUG_SESSION_START_TIME="debugSessionStartTime",l.DEBUG_PRE_LAUNCH_TASK_TIME="debugPreLaunchTaskTime",l.DEBUG_TOOLBAR_OPERATION_TIME="debugToolBarOperationTime",l.DEBUG_TOOLBAR_OPERATION="debugToolBarOperation",l.DEBUG_PANEL_OPERATION_FOLDEXPR="debugPanelOperationFoldexpr",l.DEBUG_WATCH="debugWatch",l.DEBUG_VARIABLES="debugVariables",l.DEBUG_BREAKPOINT="debugBreakpoint",l.DEBUG_ADAPTER_PROTOCOL_TIME="debugAdapterProtocolTime",l.DEBUG_STOPPED="debugStopped",l.DEBUG_UI_FRONTEND_TIME="debugFrontEndTime"})(r||(t.DEBUG_REPORT_NAME=r={}));class o extends n.BasicEvent{}t.DebugConfigurationsReadyEvent=o},66482:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(64582),t)},83670:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDecorationsService=void 0;const n=e(85608),r=e(76003),o=e(43718),{isFalsyOrWhitespace:l}=o.strings,{asArray:_}=o.arrays;class v{constructor(){this._data=o.TernarySearchTree.forPaths()}affectsResource(u){return this._data.get(u.toString())||this._data.findSuperstr(u.toString())!==void 0}static debouncer(u,d){if(u||(u=new v),Array.isArray(d))for(const E of d)u._data.set(E.toString(),!0);else u._data.set(d.toString(),!0);return u}}class m{constructor(u,d){this.source=u,this.thenable=d}}class p{constructor(u,d,E){this._provider=u,this._uriEmitter=d,this._flushEmitter=E,this.data=o.TernarySearchTree.forPaths(),this._dispoable=this._provider.onDidChange(f=>{if(!f)this.data.clear(),this._flushEmitter.fire({affectsResource(){return!0}});else for(const c of f)this._fetchData(c)})}dispose(){this._dispoable.dispose(),this.data.clear()}knowsAbout(u){return!!this.data.get(u.toString())||!!this.data.findSuperstr(u.toString())}getOrRetrieve(u,d,E){const f=u.toString();let c=this.data.get(f);if(c===void 0&&(c=this._fetchData(u)),c&&!(c instanceof m)&&E(c,!1),d){const y=this.data.findSuperstr(f);if(y)for(let b=y.next();!b.done;b=y.next())b.value&&!(b.value instanceof m)&&E(b.value,!0)}}_fetchData(u){const d=this.data.get(u.toString());d instanceof m&&(d.source.cancel(),this.data.delete(u.toString()));const E=new o.CancellationTokenSource,f=this._provider.provideDecorations(u,E.token);if((0,o.isThenable)(f)){const c=new m(E,Promise.resolve(f).then(y=>{this.data.get(u.toString())===c&&this._keepItem(u,y)}).catch(y=>{!(0,o.isPromiseCanceledError)(y)&&this.data.get(u.toString())===c&&this.data.delete(u.toString())}));return this.data.set(u.toString(),c),null}else return this._keepItem(u,f)}_keepItem(u,d){const E=d||null,f=this.data.set(u.toString(),E);return(E||f)&&this._uriEmitter.fire(u),E}}function s(g){return _(g).map(({color:d,letter:E})=>`${d}/${E}`).join(",")}function h(g){const u=_(g);if(u.length)return{key:s(g),color:u[0].color,badge:u.filter(d=>!l(d.letter)).map(d=>d.letter).join(","),tooltip:u.filter(d=>!l(d.tooltip)).map(d=>d.tooltip).join(" \u2022 ")}}let a=class extends o.Disposable{constructor(){super(...arguments),this.logger=(0,o.getDebugLogger)(),this._data=new o.LinkedList,this._onDidChangeDecorationsDelayed=new o.Emitter,this._onDidChangeDecorations=new o.Emitter,this.onDidChangeDecorations=o.Event.any(this._onDidChangeDecorations.event,o.Event.debounce(this._onDidChangeDecorationsDelayed.event,v.debouncer,void 0,void 0,500))}dispose(){(0,o.dispose)(this._onDidChangeDecorations),(0,o.dispose)(this._onDidChangeDecorationsDelayed)}registerDecorationsProvider(u){this.logger.log("DecorationService#registerDecorationsProvider",u);const d=new p(u,this._onDidChangeDecorationsDelayed,this._onDidChangeDecorations),E=this._data.push(d);return this._onDidChangeDecorations.fire({affectsResource(){return!0}}),(0,o.toDisposable)(()=>{E(),this._onDidChangeDecorations.fire({affectsResource:f=>d.knowsAbout(f)}),d.dispose()})}getDecoration(u,d){const E=[];let f=!1;for(let c=this._data.iterator(),y=c.next();!y.done;y=c.next())y.value.getOrRetrieve(u,d,(b,A)=>{(!A||b.bubble)&&(E.push(b),f=A||f)});if(E.length!==0)return this.asDecoration(E,f)}asDecoration(u,d){u.sort((f,c)=>(c.weight||0)-(f.weight||0));const E=h(u);return E&&d&&(E.badge="\u2022",E.tooltip=(0,o.localize)("bubbleTitle","Contains emphasized items")),E}};t.FileDecorationsService=a,t.FileDecorationsService=a=n.__decorate([(0,r.Injectable)()],a)},4958:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93364),_=e(83670);let v=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.IDecorationsService,useClass:_.FileDecorationsService}]}};t.DecorationModule=v,t.DecorationModule=v=n.__decorate([(0,r.Injectable)()],v)},93364:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationsService=void 0;const n=e(43718);class r extends n.Disposable{}t.IDecorationsService=r},87323:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(93364),t)},41893:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(87323),t)},67988:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignCoreContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(1149),_=e(43718),v=e(14951),m=e(2156),p=e(11090),s=e(37517);let h=class{initialize(){this.fileSystem.registerProvider(_.Schemes.design,this.designThemeFileSystemProvider),this.layoutViewSize.setEditorTabsHeight(36,l.ConfigPriority.ModuleDefined),this.layoutViewSize.setStatusBarHeight(36,l.ConfigPriority.ModuleDefined),this.layoutViewSize.setAccordionHeaderSizeHeight(36,l.ConfigPriority.ModuleDefined)}registerRenderer(g){g.registerSlotRenderer(o.SlotLocation.view,p.DesignLeftTabRenderer,{supportedActions:{accordion:!0}}),g.registerSlotRenderer(o.SlotLocation.panel,p.DesignBottomTabRenderer,{isLatter:!0,supportedActions:{expand:!0,toggle:!0}}),g.registerSlotRenderer(o.SlotLocation.extendView,p.DesignRightTabRenderer,{isLatter:!0,supportedActions:{accordion:!0}})}};t.DesignCoreContribution=h,n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",m.FileServiceClient)],h.prototype,"fileSystem",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",s.DesignThemeFileSystemProvider)],h.prototype,"designThemeFileSystemProvider",void 0),n.__decorate([(0,r.Autowired)(l.LayoutViewSizeConfig),n.__metadata("design:type",l.LayoutViewSizeConfig)],h.prototype,"layoutViewSize",void 0),t.DesignCoreContribution=h=n.__decorate([(0,r.Injectable)(),(0,o.Domain)(o.ClientAppContribution,o.SlotRendererContribution)],h)},17242:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(71707),_=e(80832),v=e(97222),m=e(43718),p=e(57517),s=e(52416),h=e(51706),a=e(9132),g=e(67988),u=e(3013),d=e(31385),E=e(72141),f=e(45365),c=n.__importDefault(e(49107)),y=n.__importDefault(e(13925)),b=n.__importDefault(e(63080)),A=e(98741);let S=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[u.DesignMenuBarContribution,g.DesignCoreContribution],this.preferences=I=>{e.e(454).then(e.bind(e,77454)),I.get(_.IDesignStyleService).setStyles(c.default),(0,A.overrideColorToken)(),(0,A.overrideMonacoColorToken)();const T=I.get(m.AppLifeCycleServiceToken);m.Event.once(m.Event.filter(T.onDidLifeCyclePhaseChange,R=>R===3))(()=>{const R=I.get(s.IThemeService);[y.default,b.default].forEach(M=>{R.registerThemes([{id:M.id,label:M.name,path:"",extensionId:M.id,uiTheme:M.base}],o.URI.parse(`${M.id}.json`).withQuery(M.id).withScheme(m.Schemes.design))})}),I.overrideProviders({token:s.IThemeStore,useClass:class extends h.ThemeStore{async getThemeData(R,M){const O=await super.getThemeData(R,M);return document.body.classList.remove(b.default.designThemeType),document.body.classList.remove(y.default.designThemeType),y.default.id===R?.id?document.body.classList.add(y.default.designThemeType):b.default.id===R?.id&&document.body.classList.add(b.default.designThemeType),O}},override:!0,isDefault:!0},{token:s.IThemeService,useClass:class extends a.WorkbenchThemeService{async ensureValidTheme(){return super.ensureValidTheme(y.default.id)}},override:!0,isDefault:!0},{token:p.IEditorTabService,useClass:d.DesignEditorTabService,override:!0,isDefault:!0},{token:l.ISplitPanelService,useClass:f.DesignSplitPanelService,override:!0,isDefault:!0},{token:v.IBrowserCtxMenu,useClass:E.DesignBrowserCtxMenuService})}}};t.DesignModule=S,t.DesignModule=S=n.__decorate([(0,r.Injectable)()],S)},11090:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignRightTabRenderer=t.DesignBottomTabRenderer=t.DesignLeftTabRenderer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(19951),_=({className:p,components:s,tabbarView:h})=>o.default.createElement(l.LeftTabRenderer,{className:(0,r.default)(p,"design_left_slot"),components:s,tabbarView:h});t.DesignLeftTabRenderer=_;const v=({className:p,components:s})=>o.default.createElement(l.BottomTabRenderer,{className:(0,r.default)(p,"design_bottom_slot"),components:s});t.DesignBottomTabRenderer=v;const m=({className:p,components:s,tabbarView:h,tabpanelView:a})=>o.default.createElement(l.RightTabRenderer,{className:(0,r.default)("design_right_slot",p),components:s,tabbarView:h,tabpanelView:a});t.DesignRightTabRenderer=m},3013:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(64267),v=e(38879),m=e(12458);let p=class extends o.Disposable{constructor(){super(),this.menubarStore.unregisterMenusBarByCompact(l.MenuId.DesignMenuBarTopExtra);let h;this.addDispose(this.menubarStore.onDidMenuBarChange(a=>{h&&h.dispose(),h=this.menuRegistry.registerMenuItems(l.MenuId.DesignMenuBarTopExtra,a.map(g=>{var u;return{label:g.label,submenu:g.id,iconClass:g.iconClass,group:g.group||"1_navigation",order:(u=g.order)!==null&&u!==void 0?u:100}}))}))}registerComponent(h){h.register(v.DESIGN_MENUBAR_CONTAINER_VIEW_ID,{component:m.DesignMenuBarView,id:v.DESIGN_MENUBAR_CONTAINER_VIEW_ID})}};t.DesignMenuBarContribution=p,n.__decorate([(0,r.Autowired)(_.MenubarStore),n.__metadata("design:type",_.MenubarStore)],p.prototype,"menubarStore",void 0),n.__decorate([(0,r.Autowired)(l.IMenuRegistry),n.__metadata("design:type",l.IMenuRegistry)],p.prototype,"menuRegistry",void 0),t.DesignMenuBarContribution=p=n.__decorate([(0,o.Domain)(o.ComponentContribution),n.__metadata("design:paramtypes",[])],p)},12458:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignMenuBarView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(89195),m=e(1149),p=e(63373),s=e(93899),h=e(43718),a=e(63067),g=e(55039),u=e(38879),d=n.__importDefault(e(52151)),E=n.__importDefault(e(90946)),f=()=>{const y=(0,l.useInjectable)(s.AbstractContextMenuService),b=(0,l.useInjectable)(m.DesignLayoutConfig),A=(0,l.useInjectable)(s.ICtxMenuRenderer),S=o.useRef(null),[D,I]=o.useState(void 0);o.useEffect(()=>{w()},[]);const w=o.useCallback(O=>{requestAnimationFrame(()=>{if(S.current){const x=S.current.getBoundingClientRect(),{x:k,y:F,width:L,height:N}=x,U={x:k,y:F+N};I(U),O&&O(U)}})},[S.current]),T=o.useMemo(()=>y.createMenu({id:s.MenuId.DesignMenuBarTopExtra}),[y]),R=o.useCallback(()=>{if(!D)return;const O=T.getMergedMenuNodes();T.dispose(),w(x=>{A.show({anchor:x,menuNodes:O})})},[D,T]),M=o.useMemo(()=>b.menubarLogo||d.default,[b.menubarLogo]);return o.createElement(o.Fragment,null,o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.ai_enhance_menu,ref:S,onClick:R},o.createElement("div",{className:E.default.logo_container},o.createElement("img",{className:E.default.extra_top_icon,src:M,alt:""}),o.createElement(_.Icon,{className:(0,r.default)((0,l.getIcon)("down"),E.default.caret_icon)}))))},c=()=>{const y=(0,l.useInjectable)(h.CommandService),b=(0,l.useInjectable)(a.IMainLayoutService),A=(0,l.useInjectable)(l.AINativeConfigService),[S,D]=o.useState(!1);o.useEffect(()=>{requestAnimationFrame(()=>{D(w())});const R=b.getTabbarService(l.SlotLocation.view).onCurrentChange(({previousId:M,currentId:O})=>{M&&!O?D(!1):!M&&O&&D(!0)});return()=>{R.dispose()}},[]);const I=o.useCallback(()=>{y.executeCommand("main-layout.left-panel.toggle"),requestAnimationFrame(()=>{D(w())})},[]),w=o.useCallback(()=>!!b.getTabbarService(l.SlotLocation.view).currentContainerId.get(),[b]);return o.createElement("div",{id:p.VIEW_CONTAINERS.MENUBAR,className:E.default.menu_bar_view,style:{height:A.layoutViewSize.menubarHeight}},o.createElement("div",{className:E.default.container},o.createElement("div",{className:E.default.left},o.createElement(v.EnhanceIcon,{wrapperClassName:E.default.enhance_menu,icon:S?"left-nav-open":"left-nav-close",onClick:I}),o.createElement("span",{className:E.default.dividing}),o.createElement("div",{className:E.default.top_menus_bar},o.createElement(f,null)),o.createElement(l.SlotRenderer,{id:"design-menubar-left",slot:u.DESIGN_MENU_BAR_LEFT,flex:1})),o.createElement("div",{className:E.default.right},o.createElement(g.ToolBar,null),o.createElement(l.SlotRenderer,{id:"design-menubar-right",slot:u.DESIGN_MENU_BAR_RIGHT,flex:1}))))};t.DesignMenuBarView=c},31385:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignEditorTabService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(81878),v=e(1149),m=e(43718),p=e(30612),s=n.__importDefault(e(49107)),h=g=>{const{children:u}=g,[d,E]=o.default.useState(!1),f=(0,o.useMemo)(()=>"editor-tab-close-"+(0,m.uuid)(6),[]),c=(0,o.useCallback)(()=>{E(!1)},[]),y=(0,o.useMemo)(()=>(0,m.formatLocalize)("editor.closeTab.title",m.isMacintosh?"\u2318W":"Ctrl+W"),[]);return o.default.createElement(_.Popover,{delay:1e3,position:_.PopoverPosition.bottom,id:f,title:y,onClickAction:c,display:d},o.default.createElement("span",{title:""},u))};let a=class extends p.EditorTabService{renderEditorTab(u,d){return o.default.createElement("div",{className:(0,r.default)({[s.default["design-editor_tab_block_container"]]:!0,[s.default.active]:d}),style:{height:this.layoutViewSize.editorTabsHeight}},u)}renderTabCloseComponent(u){return o.default.createElement(h,null,u)}};t.DesignEditorTabService=a,n.__decorate([(0,l.Autowired)(v.LayoutViewSizeConfig),n.__metadata("design:type",v.LayoutViewSizeConfig)],a.prototype,"layoutViewSize",void 0),t.DesignEditorTabService=a=n.__decorate([(0,l.Injectable)()],a)},72141:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignBrowserCtxMenuService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(97267),v=e(41869),m=e(31388),p=e(52416),s=n.__importDefault(e(49107)),h=g=>{const u=(0,v.useInjectable)(p.IIconService),{data:d,disabled:E,hasSubmenu:f}=g,c=(0,o.useMemo)(()=>d.checked?o.default.createElement(_.Icon,{icon:"check"}):d.icon?o.default.createElement(_.Icon,{iconClass:d.icon}):null,[d]);return o.default.createElement("div",{className:(0,r.default)(s.default.menuAction__sub_menu_action_container,{[s.default.disabled]:E,[s.default.checked]:d.checked},d.className)},o.default.createElement("div",{className:s.default.icon},c),o.default.createElement("div",{className:s.default.label},d.label?(0,v.transformLabelWithCodicon)(v.strings.mnemonicButtonLabel(d.label,!0),{margin:"0 3px"},u?.fromString.bind(u)):""),o.default.createElement("div",{className:s.default.tip},d.keybinding?o.default.createElement("div",{className:s.default.shortcut},d.keybinding):null,f?o.default.createElement("div",{className:s.default.submenuIcon},o.default.createElement(_.Icon,{icon:"right-arrow"})):null,!d.keybinding&&!f&&d.extraDesc&&o.default.createElement("div",{className:s.default.extraDesc},d.extraDesc)))};let a=class extends m.BrowserCtxMenuService{renderSubMenuTitle(u,d){return o.default.createElement(h,{data:u,...d})}renderMenuItem(u,d){return o.default.createElement(h,{data:u,...d})}};t.DesignBrowserCtxMenuService=a,t.DesignBrowserCtxMenuService=a=n.__decorate([(0,l.Injectable)()],a)},45365:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignSplitPanelService=void 0;const n=e(71707);class r extends n.SplitPanelService{renderSplitPanel(l,_,v){return super.renderSplitPanel(l,_,v)}interceptProps(l){return l}}t.DesignSplitPanelService=r},13925:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#D4D4D4"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#6A9955"}},{scope:"constant.language",settings:{foreground:"#569cd6"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#b5cea8"}},{scope:"constant.regexp",settings:{foreground:"#646695"}},{scope:"entity.name.tag",settings:{foreground:"#569cd6"}},{scope:"entity.name.tag.css",settings:{foreground:"#d7ba7d"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9cdcfe"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#d7ba7d"}},{scope:"invalid",settings:{foreground:"#f44747"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#b5cea8"}},{scope:"markup.deleted",settings:{foreground:"#ce9178"}},{scope:"markup.changed",settings:{foreground:"#569cd6"}},{scope:"punctuation.definition.quote.begin.markdown",settings:{foreground:"#6A9955"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#6796e6"}},{scope:"markup.inline.raw",settings:{foreground:"#ce9178"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#808080"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#569cd6"}},{scope:"meta.preprocessor.string",settings:{foreground:"#ce9178"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#b5cea8"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#9cdcfe"}},{scope:"meta.diff.header",settings:{foreground:"#569cd6"}},{scope:"storage",settings:{foreground:"#569cd6"}},{scope:"storage.type",settings:{foreground:"#569cd6"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#569cd6"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#ce9178"}},{scope:"string.tag",settings:{foreground:"#ce9178"}},{scope:"string.value",settings:{foreground:"#ce9178"}},{scope:"string.regexp",settings:{foreground:"#d16969"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#569cd6"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#d4d4d4"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#9cdcfe"}},{scope:"keyword",settings:{foreground:"#569cd6"}},{scope:"keyword.control",settings:{foreground:"#569cd6"}},{scope:"keyword.operator",settings:{foreground:"#d4d4d4"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#569cd6"}},{scope:"keyword.other.unit",settings:{foreground:"#b5cea8"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#569cd6"}},{scope:"support.function.git-rebase",settings:{foreground:"#9cdcfe"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#b5cea8"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#d4d4d4"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#569cd6"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#DCDCAA"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#4EC9B0"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#4EC9B0"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#C586C0"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.nam1e.variable","constant.other.placeholder"],settings:{foreground:"#9CDCFE"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#4FC1FF"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#9CDCFE"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#CE9178"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#CE9178"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#d16969"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#DCDCAA"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#d7ba7d"}},{scope:"constant.character",settings:{foreground:"#569cd6"}},{scope:"constant.character.escape",settings:{foreground:"#d7ba7d"}},{scope:"entity.name.label",settings:{foreground:"#C8C8C8"}}],colors:{"activityBar.activeBorder":"#ffffff1f","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#fff","activityBar.inactiveForeground":"#ffffff73","activityBarBadge.background":"#167CDB","activityBarBadge.foreground":"#FFFFFF","badge.background":"#FFFFFF40","badge.foreground":"#D7DBDE","breadcrumb.background":"#222830","breadcrumb.foreground":"#ffffff73","checkbox.background":"#ffffff14","checkbox.border":"#ffffff1f",descriptionForeground:"#868C91","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#43484D","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#00000000","editorGroupHeader.tabsBackground":"#222830","editorSuggestWidget.selectedBackground":"#1A66AC",errorForeground:"#D21F28",focusBorder:"#ffffff1f",foreground:"#D7DBDE","editorCommentsWidget.unresolvedBorder":"#ffffff","gitDecoration.addedResourceForeground":"#8FD460","gitDecoration.conflictingResourceForeground":"#7F9EF3","gitDecoration.deletedResourceForeground":"#F3956A","gitDecoration.ignoredResourceForeground":"#BBC0C4","gitDecoration.modifiedResourceForeground":"#F3CC62","gitDecoration.submoduleResourceForeground":"#67ABEB","gitDecoration.untrackedResourceForeground":"#58D1C9","icon.foreground":"#D7DBDE","input.background":"#ffffff14","input.foreground":"#d7dbde","input.placeholderForeground":"#ffffff59","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#332510","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#d7dbde","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#D7DBDE","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#5F656B40","kt.button.disableBorder":"#5F656B80","kt.button.disableForeground":"#5F656B","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.defaultButton.background":"#ffffff14","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#ffffff14","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#ffffff14","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#ffffff40","kt.defaultButton.foreground":"#D7DBDE","kt.defaultButton.hoverBackground":"#ffffff29","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#ffffff29","kt.defaultButton.selectionForeground":"#fff","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#ffffff73","kt.icon.hoverBackground":"#ffffff14","kt.icon.hoverForeground":"#D7DBDE","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#00000000","kt.input.disableBackground":"#5F656B40","kt.input.disableForeground":"#ffffff40","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#222830","kt.modal.foreground":"#D7DBDE","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#868C91","kt.panelTab.activeBackground":"#151b21","kt.panelTab.activeForeground":"#FFFFFF","kt.panelTab.border":"#ffffff1f","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#D7DBDE","kt.panelTitle.background":"#222830","kt.popover.background":"#2b333d","kt.popover.border":"#363940","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dffa6","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#3c8dffa6","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#00000000","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#00000000","kt.secondaryButton.border":"#5F656B","kt.secondaryButton.clickBorder":"#167CDB","kt.secondaryButton.clickForeground":"#167CDB","kt.secondaryButton.foreground":"#D7DBDE","kt.secondaryButton.hoverBorder":"#3895EB","kt.secondaryButton.hoverForeground":"#3895EB","kt.secondaryButton.background":"#00000000","kt.select.background":"#ffffff14","kt.select.border":"#00000000","kt.select.disableBackground":"#5F656B40","kt.select.disableForeground":"#5F656B","kt.select.foreground":"#D7DBDE","kt.select.placeholderForeground":"#5F656B","kt.selectDropdown.background":"#222830","kt.selectDropdown.foreground":"#D7DBDE","kt.selectDropdown.hoverBackground":"#ffffff14","kt.selectDropdown.selectionBackground":"#ffffff14","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#FFFFFF","kt.tab.borderDown":"#5F656B40","kt.tab.inactiveForeground":"#D7DBDE","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#5F656B40","kt.tree.hoverForeground":"#D7DBDE","kt.tree.inactiveSelectionBackground":"#ffffff1f","kt.tree.inactiveSelectionForeground":"#fff","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#5F656B40","menu.background":"#222830d9","menu.foreground":"#D7DBDE","menu.selectionBackground":"#5F656B40","menu.selectionForeground":"#FFFFFF","menu.separatorBackground":"#43484D","menubar.selectionBackground":"#5f656b40","menubar.selectionForeground":"#FFFFFF","message.background":"#222830","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#222830","notifications.foreground":"#D7DBDE","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#151b21","panel.border":"#43484D","panel.foreground":"#D7DBDE","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#167CDB","panelTitle.activeForeground":"#FFFFFF","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#ffffff73","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#ffffff1f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#ffffffa6","sideBarTitle.foreground":"#FFFFFF","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#ffffff73","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#d2d2d2a6","statusBarItem.prominentBackground":"#2a2a2a80","tab.activeBackground":"#151b21","tab.activeForeground":"#FFFFFF","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#ffffff73","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#151b21","terminal.border":"#252729","terminal.foreground":"#D7DBDE","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#ffffff14","editor.background":"#181818","quickInput.background":"#222830","list.focusBackground":"#ffffff1f","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#151b21"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs-dark",designThemeType:"design-dark",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-dark-theme",name:"OpenSumi Design Dark+ (default dark)"}},37517:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignThemeFileSystemProvider=void 0;const n=e(85608),r=e(76003),o=e(43718),l=n.__importDefault(e(13925)),_=n.__importDefault(e(63080));let v=class{constructor(){this.capabilities=2048,this.onDidChangeCapabilities=o.Event.None,this.onDidChangeFile=o.Event.None}stat(p){return Promise.resolve({type:o.FileType.File,uri:p.toString(),lastModification:Date.now(),isDirectory:!1})}async readFile(p){const{query:s}=p;return l.default.id===s?this.toBuffer(JSON.stringify(l.default)):this.toBuffer(JSON.stringify(_.default))}toBuffer(p){return o.BinaryBuffer.fromString(p).buffer}readDirectory(){throw new Error("Not allowed")}createDirectory(){throw new Error("Not allowed")}rename(){throw new Error("Not allowed")}delete(){throw new Error("Not allowed")}watch(){throw new Error("Not allowed")}writeFile(){throw new Error("Not allowed")}};t.DesignThemeFileSystemProvider=v,t.DesignThemeFileSystemProvider=v=n.__decorate([(0,r.Injectable)()],v)},63080:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={tokenColors:[{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#000000ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"meta.diff.header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#008000"}},{scope:"constant.language",settings:{foreground:"#0000ff"}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#098658"}},{scope:"constant.regexp",settings:{foreground:"#811f3f"}},{name:"css tags in selectors, xml tags",scope:"entity.name.tag",settings:{foreground:"#800000"}},{scope:"entity.name.selector",settings:{foreground:"#800000"}},{scope:"entity.other.attribute-name",settings:{foreground:"#ff0000"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#800000"}},{scope:"invalid",settings:{foreground:"#cd3131"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#000080"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#800000"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#098658"}},{scope:"markup.deleted",settings:{foreground:"#a31515"}},{scope:"markup.changed",settings:{foreground:"#0451a5"}},{scope:["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],settings:{foreground:"#0451a5"}},{scope:"markup.inline.raw",settings:{foreground:"#800000"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#800000"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#0000ff"}},{scope:"meta.preprocessor.string",settings:{foreground:"#a31515"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#098658"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#0451a5"}},{scope:"storage",settings:{foreground:"#0000ff"}},{scope:"storage.type",settings:{foreground:"#0000ff"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#0000ff"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#a31515"}},{scope:["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],settings:{foreground:"#0000ff"}},{scope:"string.regexp",settings:{foreground:"#811f3f"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#0000ff"}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:"#000000"}},{scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#ff0000"}},{scope:["support.type.property-name.json"],settings:{foreground:"#0451a5"}},{scope:"keyword",settings:{foreground:"#0000ff"}},{scope:"keyword.control",settings:{foreground:"#0000ff"}},{scope:"keyword.operator",settings:{foreground:"#000000"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#0000ff"}},{scope:"keyword.other.unit",settings:{foreground:"#098658"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#800000"}},{scope:"support.function.git-rebase",settings:{foreground:"#0451a5"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#098658"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#000000"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#0000ff"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#795E26"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#267f99"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#267f99"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#AF00DB"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],settings:{foreground:"#001080"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#0070C1"}},{name:"Object keys, TS grammar specific",scope:["meta.object-literal.key"],settings:{foreground:"#001080"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#d16969"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#811f3f"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#000000"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#EE0000"}},{scope:"constant.character",settings:{foreground:"#0000ff"}},{scope:"constant.character.escape",settings:{foreground:"#EE0000"}},{scope:"entity.name.label",settings:{foreground:"#000000"}}],colors:{"activityBar.activeBorder":"#151b2114","activityBar.activeForeground":"#FFFFFF","activityBar.background":"#00000000","activityBar.border":"#252729","activityBar.disableForeground":"#5F656B","activityBar.dropBackground":"#43484D","activityBar.foreground":"#151b21","activityBar.inactiveForeground":"#151b21a6","activityBarBadge.background":"#3C8DFF","activityBarBadge.foreground":"#FFFFFF","badge.background":"#151b5814","badge.foreground":"#151b21a6","breadcrumb.background":"#fff","breadcrumb.foreground":"#5d646c","checkbox.background":"#fff","checkbox.border":"#151b2129",descriptionForeground:"#151b21a6","diffEditor.insertedTextBackground":"#12A7A740","editorGroup.border":"#151b2133","editorGroup.dropBackground":"#5F656B40","editorGroup.emptyBackground":"#ffffff","editorGroupHeader.tabsBackground":"#DDE8F4","editorSuggestWidget.selectedBackground":"#6eb6fa40",errorForeground:"#D21F28",focusBorder:"#151b2129",foreground:"#151b21d9","editorCommentsWidget.unresolvedBorder":"#4d9ded","gitDecoration.addedResourceForeground":"#52c41a","gitDecoration.modifiedResourceForeground":"#faad14","gitDecoration.deletedResourceForeground":"#fa541c","gitDecoration.untrackedResourceForeground":"#13c2c2","gitDecoration.ignoredResourceForeground":"#666666","gitDecoration.conflictingResourceForeground":"#ff0000","gitDecoration.submoduleResourceForeground":"#1785eb","icon.foreground":"#151b21d9","input.background":"#fff","input.foreground":"#151b21","input.placeholderForeground":"#151b2173","inputDropdown.searchMatchForeground":"#3895EB","inputIcon.foreground":"#5F656B","inputValidation.errorBackground":"#321115","inputValidation.errorBorder":"#D21F28","inputValidation.errorForeground":"#D7DBDE","inputValidation.errorText":"#D21F28","inputValidation.warningBackground":"#fff","inputValidation.warningBorder":"#DBA936","inputValidation.warningText":"#DBA936","inputValidation.warningForeground":"#151b21","keybinding.background":"#5F656B33","kt.accentForeground":"#FFFFFF","kt.actionbar.disableForeground":"#5F656B","kt.actionbar.foreground":"#151b21a6","kt.actionbar.selectionBorder":"#1A66AC","kt.actionbar.separatorBackground":"#5F656B40","kt.activityBar.dropUpBackground":"#1F507D","kt.button.disableBackground":"#151b210a","kt.button.disableBorder":"#151b2114","kt.button.disableForeground":"#151b2159","kt.checkbox.disableBackground":"#5F656B40","kt.checkbox.disableForeground":"#5F656B","kt.checkbox.hoverBorder":"#167CDB","kt.checkbox.selectionBackground":"#167CDB","kt.checkbox.selectionForeground":"#FFFFFF","kt.dangerButton.background":"#DB4345","kt.dangerButton.clickBackground":"#D21F28","kt.dangerButton.foreground":"#FFFFFF","kt.dangerButton.hoverBackground":"#F37370","kt.dangerGhostButton.border":"#DB4345","kt.dangerGhostButton.clickBorder":"#D21F28","kt.dangerGhostButton.clickForeground":"#D21F28","kt.dangerGhostButton.foreground":"#DB4345","kt.dangerGhostButton.hoverBorder":"#F37370","kt.dangerGhostButton.hoverForeground":"#F37370","kt.dirtyDot.foreground":"#868C91","kt.disableForeground":"#5F656B","kt.editorBreadcrumb.borderDown":"#e9e9e914","kt.errorBackground":"#D21F2840","kt.errorIconForeground":"#DB4345","kt.hintBackground":"#5F656B40","kt.hintIconForeground":"#868C91","kt.icon.clickForeground":"#D7DBDE","kt.icon.disableForeground":"#5F656B","kt.icon.foreground":"#151b21a6","kt.icon.hoverBackground":"#151b2114","kt.icon.hoverForeground":"#151b21d9","kt.icon.secondaryForeground":"#868C91","kt.infoBackground":"#167CDB40","kt.infoIconForeground":"#3895EB","kt.input.border":"#151b2129","kt.input.disableBackground":"#151b210a","kt.input.disableForeground":"#151b2159","kt.input.selectionBackground":"#1A66AC","kt.linkButton.clickForeground":"#167CDB","kt.linkButton.disableForeground":"#5F656B","kt.linkButton.foreground":"#3895EB","kt.linkButton.hoverForeground":"#67ABEB","kt.menu.descriptionForeground":"#868C91","kt.menu.disableForeground":"#5F656B","kt.menubar.background":"#00000000","kt.menubar.border":"#252729","kt.menubar.foreground":"#D7DBDE","kt.menubar.separatorBackground":"#5F656B40","kt.modal.background":"#fff","kt.modal.foreground":"#151b21d9","kt.modal.separatorBackground":"#2C3033","kt.modalErrorIcon.foreground":"#DB4345","kt.modalInfoIcon.foreground":"#3895EB","kt.modalSuccessIcon.foreground":"#64B436","kt.modalWarningIcon.foreground":"#DBA936","kt.panel.secondaryForeground":"#151b21a6","kt.panelTab.activeBackground":"#fff","kt.panelTab.activeForeground":"#151b21","kt.panelTab.border":"#151b2114","kt.panelTab.inactiveBackground":"#00000000","kt.panelTab.inactiveForeground":"#151b21d9","kt.panelTitle.background":"#fff","kt.popover.background":"#000000e3","kt.popover.border":"#000000e3","kt.popover.foreground":"#fffffff2","kt.popover.prominentBackground":"#2C3033","kt.defaultButton.background":"#fafafb","kt.defaultButton.border":"#00000000","kt.defaultButton.clickBackground":"#fafafb","kt.defaultButton.clickBorder":"#00000000","kt.defaultButton.disableBackground":"#fff","kt.defaultButton.disableBorder":"#00000000","kt.defaultButton.disableForeground":"#151b2159","kt.defaultButton.foreground":"#000a1aff","kt.defaultButton.hoverBackground":"#F5F5F6","kt.defaultButton.hoverBorder":"#00000000","kt.defaultButton.selectionBackground":"#fff","kt.defaultButton.selectionForeground":"#151b21","kt.primaryButton.background":"#3c8dff","kt.primaryButton.clickBackground":"#3c8dff","kt.primaryButton.foreground":"#fff","kt.primaryButton.hoverBackground":"#5b9fff","kt.primaryButton.border":"#00000000","kt.primaryGhostButton.clickBorder":"#3c8dff","kt.primaryGhostButton.clickForeground":"#167CDB","kt.primaryGhostButton.clickBackground":"#fff","kt.primaryGhostButton.foreground":"#3895EB","kt.primaryGhostButton.border":"#3c8dff","kt.primaryGhostButton.background":"#fff","kt.secondaryButton.border":"#00000026","kt.secondaryButton.clickBorder":"#00000026","kt.secondaryButton.clickForeground":"#151b21","kt.secondaryButton.foreground":"#151b21d9","kt.secondaryButton.background":"#fff","kt.secondaryButton.hoverBorder":"#00000026","kt.secondaryButton.hoverForeground":"#151b21","kt.select.background":"#fff","kt.select.border":"#151b2129","kt.select.disableBackground":"#151b2114","kt.select.disableForeground":"#151b2159","kt.select.foreground":"#151b21","kt.select.placeholderForeground":"#151b2173","kt.selectDropdown.background":"#fff","kt.selectDropdown.foreground":"#151b21","kt.selectDropdown.hoverBackground":"#151b2114","kt.selectDropdown.selectionBackground":"#151b2114","kt.selectDropdown.selectionForeground":"#151b21","kt.selectOption.activeBorder":"#167CDB","kt.statusbar.offline.background":"#DB4345","kt.successBackground":"#48A91840","kt.successIconForeground":"#64B436","kt.tab.activeBorder":"#167CDB","kt.tab.activeForeground":"#151b21","kt.tab.borderDown":"#151b211f","kt.tab.inactiveForeground":"#151b21a6","kt.tree.activeSelectionBackground":"#1A66AC","kt.tree.activeSelectionForeground":"#FFFFFF","kt.tree.hoverBackground":"#151b5814","kt.tree.hoverForeground":"#151b21","kt.tree.inactiveSelectionBackground":"#151b5814","kt.tree.inactiveSelectionForeground":"#151b21","kt.warningBackground":"#D7951340","kt.warningIconForeground":"#DBA936","kt.whiteGhostButton.border":"#FFFFFF","kt.whiteGhostButton.clickBorder":"#FFFFFFA6","kt.whiteGhostButton.clickForeground":"#FFFFFFA6","kt.whiteGhostButton.disableBackground":"#FFFFFF03","kt.whiteGhostButton.disableBorder":"#FFFFFF40","kt.whiteGhostButton.disableForeground":"#FFFFFF40","kt.whiteGhostButton.foreground":"#FFFFFF","list.activeSelectionBackground":"#1A66AC","list.activeSelectionForeground":"#e1e4e8","list.evenItemBackground":"#5F656B14","list.headerBackground":"#5F656B1F","list.hoverBackground":"#151b5814","menu.background":"#FFFFFF","menu.foreground":"#151b21","menu.selectionBackground":"#151b2114","menu.selectionForeground":"#151b21","menu.separatorBackground":"#151b211f","menubar.selectionBackground":"#151b2114","menubar.selectionForeground":"#151b21","message.background":"#151b21d9","message.foreground":"#D7DBDE","messageErrorIcon.foreground":"#DB4345","messageInfoIcon.foreground":"#3895EB","messageSuccessIcon.foreground":"#64B436","messageWarningIcon.foreground":"#DBA936","notifications.background":"#fff","notifications.foreground":"#151b21d9","notificationsErrorIcon.foreground":"#DB4345","notificationsInfoIcon.foreground":"#3895EB","notificationsWarningIcon.foreground":"#DBA936","panel.background":"#fff","panel.border":"#43484D","panel.foreground":"#151b21","panel.selectionBackground":"#5F656B40","panel.separatorBackground":"#2C3033","panelMenuBadge.background":"#00000040","panelMenuBar.background":"#2C3033","panelMenuBarBadge.foreground":"#5F656B40","panelTabBarActionIcon.Background":"#868C91","panelTabBarError.foreground":"#DB4345","panelTitle.activeBorder":"#3c8dff","panelTitle.activeForeground":"#151b21","panelTitle.hoverForeground":"#FFFFFF","panelTitle.inactiveForeground":"#151b21a6","selectDropdown.descriptionForeground":"#868C91","selectDropdown.teamForeground":"#868C91","sideBar.background":"#00000000","sideBar.border":"#151b211f","sideBar.dropBackground":"#43484D","sideBar.dropUpBackground":"#1F507D","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.foreground":"#151b21d9","sideBarTitle.foreground":"#151b21d9","statusBar.background":"#00000000","statusBar.debuggingBackground":"#D77915","statusBar.foreground":"#151b21a6","statusBar.noFolderBackground":"#43484D","statusBarItem.activeBackground":"#FFFFFF40","statusBarItem.hoverBackground":"#FFFFFF03","statusBarItem.remoteBackground":"#3c8dff","statusBarItem.prominentForeground":"#151b21a6","statusBarItem.prominentBackground":"#f1f1f180","tab.activeBackground":"#ffffff","tab.activeForeground":"#151b21","tab.border":"#e9e9e914","tab.inactiveBackground":"#00000000","tab.inactiveForeground":"#151b21d9","tab.hoverBackground":"#00000000","tab.unfocusedActiveBackground":"#202224","tab.unfocusedActiveForeground":"#868C91","tab.unfocusedInactiveForeground":"#868C91","terminal.background":"#FFFFFF","terminal.border":"#252729","terminal.foreground":"#151b21","terminal.offlineBackground":"#D21F2840","terminal.offlineForeground":"#868C91","terminal.offlineLinkForeground":"#3895EB","terminal.selectionBackground":"#5F656B40","tooltip.background":"#35393D","tooltip.foreground":"#D7DBDE","widget.shadow":"#00000099","list.focusOutline":"#00000000","editorInlayHint.parameterBackground":"#00000000","button.background":"#ffffff14","scrollbarSlider.background":"#151b211f","editor.background":"#F1F2F3","quickInput.background":"#fff","list.focusBackground":"#151b5814","textLink.foreground":"#3c8dff","editorStickyScroll.background":"#fff","multiDiffEditor.background":"#fff","multiDiffEditor.border":"#151b211f","multiDiffEditor.headerBackground":"#fff"},semanticHighlighting:!0,semanticTokenColors:{newOperator:"#d4d4d4",stringLiteral:"#ce9178",customLiteral:"#D4D4D4",numberLiteral:"#b5cea8"},encodedTokensColors:[],rules:[],base:"vs",designThemeType:"design-light",inherit:!0,hasDefaultTokens:!1,id:"opensumi-design-light-theme",name:"OpenSumi Design Light+ (default light)"}},98741:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideMonacoColorToken=t.overrideColorToken=void 0;const n=e(85608),r=e(52416),o=n.__importDefault(e(13925)),l=n.__importDefault(e(63080)),_=()=>{const m=(0,r.getColorRegistry)();m.getColors().forEach(({id:p})=>{if(o.default.colors[p]&&l.default.colors[p]){const s=m.getColor(p);(0,r.registerColor)(p,{dark:o.default.colors[p],light:l.default.colors[p],hcDark:s.defaults.hcDark||null,hcLight:s.defaults.hcLight||null},s.description)}})};t.overrideColorToken=_;const v=()=>{(0,r.registerColor)("vscode.quickInputList.focusBackground",{light:"#151b2114",dark:"#5F656B40",hcDark:null,hcLight:null},"Quick picker background color for the focused item."),(0,r.registerColor)("quickInputList.focusForeground",{dark:"#ffffff",light:"#151b21",hcDark:null,hcLight:null},"Quick picker foreground color for the focused item.")};t.overrideMonacoColorToken=v},66338:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DESIGN_MENU_BAR_LEFT=t.DESIGN_MENU_BAR_RIGHT=t.DESIGN_MENUBAR_CONTAINER_VIEW_ID=void 0,t.DESIGN_MENUBAR_CONTAINER_VIEW_ID="design_menubar",t.DESIGN_MENU_BAR_RIGHT="design_menu_bar_right",t.DESIGN_MENU_BAR_LEFT="design_menu_bar_left"},38879:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(66338),t)},82353:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(38879),t)},30526:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffEditorPart=t.BaseMonacoEditorWrapper=void 0,t.insertSnippetWithMonacoEditor=h;const n=e(85608),r=e(76003),o=e(43718),l=n.__importStar(e(20868)),_=e(99721),v=e(23418),m=e(84677),p=e(6043),s=e(82196);function h(E,f,c,y){const b=E.getContribution("snippetController2"),A=c.map(S=>new l.Selection(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn));E.setSelections(A),E.focus(),b.insert(f,0,0,y.undoStopBefore,y.undoStopAfter)}const{removeUndefined:a}=o.objects;function g(E,f,c){E.updateOptions(f),E.getModel()&&E.getModel().updateOptions(c)}let u=class extends o.WithEventBus{get currentUri(){return this.currentDocumentModel?this.currentDocumentModel.uri:null}getId(){return this.monacoEditor.getId()}getSelections(){return this.monacoEditor.getSelections()||[]}disableSelectionEmitter(){this._disableSelectionEmitter=!0}enableSelectionEmitter(){this._disableSelectionEmitter=!1}constructor(f,c){super(),this.monacoEditor=f,this.type=c,this.onFocus=this.monacoEditor.onDidFocusEditorWidget,this.onBlur=this.monacoEditor.onDidBlurEditorWidget,this._specialEditorOptions={},this._specialModelOptions={},this._editorOptionsFromContribution={},this._disableSelectionEmitter=!1,this.monacoLargeFileOptions={folding:!1,codeLens:!1,wordWrap:"off",minimap:{enabled:!1},stickyScroll:{enabled:!1},matchBrackets:"never"},this.decorationApplier=this.injector.get(m.MonacoEditorDecorationApplier,[this.monacoEditor]),this.addDispose(this.monacoEditor.onDidChangeModel(this.onDidChangeModel.bind(this))),this.addDispose(this.monacoEditor.onDidChangeModelLanguage(()=>{this._doUpdateOptions()})),this.addDispose(this.configurationService.onDidChangeConfiguration(y=>{Array.from(y.affectedKeys.values()).filter(A=>(0,p.isEditorOption)(A)).length>0&&this._doUpdateOptions()}))}async onDidChangeModel(){this._editorOptionsFromContribution={};const f=this.currentUri;f&&Promise.resolve(this.editorFeatureRegistry.runProvideEditorOptionsForUri(f)).then(c=>{!this.currentUri||!f.isEqual(this.currentUri)||c&&Object.keys(c).length>0&&(this._editorOptionsFromContribution=c,(0,o.isEmptyObject)(this._editorOptionsFromContribution)||this._doUpdateOptions())})}getType(){return this.type}updateOptions(f={},c={}){this._specialEditorOptions=a({...this._specialEditorOptions,...f}),this._specialModelOptions=a({...this._specialModelOptions,...c}),this._doUpdateOptions()}_doUpdateOptions(){const{editorOptions:f,modelOptions:c}=this._calculateFinalOptions();g(this.monacoEditor,f,c)}_calculateFinalOptions(){var f;const c=this.currentUri?this.currentUri.toString():void 0,y=this.currentDocumentModel?this.currentDocumentModel.languageId:void 0,b=(0,p.getConvertedMonacoOptions)(this.configurationService,c,y,void 0);let S={...{readOnly:((f=this.currentDocumentModel)===null||f===void 0?void 0:f.readonly)||!1},...b.editorOptions,...this._editorOptionsFromContribution,...this._specialEditorOptions};return this.currentDocumentModel&&this.currentDocumentModel.isLargeFile&&Object.assign(S,this.monacoLargeFileOptions),this.type!==v.EditorType.CODE&&(S={...S,...b.diffOptions}),{editorOptions:S,modelOptions:{...b.modelOptions,...this._specialModelOptions}}}insertSnippet(f,c,y){h(this.monacoEditor,f,c,y)}applyDecoration(f,c){this.decorationApplier.applyDecoration(f,c)}onSelectionsChanged(f){return this.monacoEditor.onDidChangeCursorSelection(c=>{this._disableSelectionEmitter||f({selections:this.getSelections(),source:c.source})})}onVisibleRangesChanged(f){const c=new o.Disposable,y=this.monacoEditor;return c.addDispose(y.onDidScrollChange(b=>{f(this.monacoEditor.getVisibleRanges())})),c.addDispose(y.onDidLayoutChange(b=>{f(this.monacoEditor.getVisibleRanges())})),c}setSelections(f){return this.monacoEditor.setSelections(f)}setSelection(f){return this.monacoEditor.setSelection(f)}async save(){this.currentDocumentModel&&await this.currentDocumentModel.save()}onConfigurationChanged(f){return this.monacoEditor.onDidChangeConfiguration(y=>{f()})}};t.BaseMonacoEditorWrapper=u,n.__decorate([(0,r.Autowired)(s.IEditorFeatureRegistry),n.__metadata("design:type",Object)],u.prototype,"editorFeatureRegistry",void 0),n.__decorate([(0,r.Autowired)(_.IConfigurationService),n.__metadata("design:type",Object)],u.prototype,"configurationService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],u.prototype,"injector",void 0),t.BaseMonacoEditorWrapper=u=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],u);let d=class extends u{get currentDocumentModel(){return this._getDocumentModel()}updateDocumentModel(f){const c=this.documents.get();if(c!=="loading"){for(const y of c)y.object.modified&&o.URI.from(y.object.modified.uri).isEqual(f)&&(this._getDocumentModel=()=>y.object.modifiedInstance),y.object.original&&o.URI.from(y.object.original.uri).isEqual(f)&&(this._getDocumentModel=()=>y.object.originalInstance);this.decorationApplier.clearDecorations(),this.decorationApplier.applyDecorationFromProvider()}}constructor(f,c,y,b){super(f,y),this._getDocumentModel=c,this.documents=b}};t.DiffEditorPart=d,t.DiffEditorPart=d=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Function,Object,Object])],d)},87802:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBreadCrumbProvider=void 0,t.findCurrentDocumentSymbol=g;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(26542),v=e(79929),m=e(97408),p=e(82196),s=e(17459),{Path:h}=l.path;let a=class extends l.WithEventBus{constructor(){super(...arguments),this._onDidUpdateBreadCrumb=new l.Emitter,this.onDidUpdateBreadCrumb=this._onDidUpdateBreadCrumb.event,this.debouncedFireUriEvent=new Map,this.cachedBreadCrumb=new l.LRUMap(200,100)}handlesUri(c){return this.fileServiceClient.handlesScheme(c.scheme)}provideBreadCrumbForUri(c,y){return this.getFileParts(c).concat(this.getDocumentSymbolParts(c,y))}getFileParts(c){const y=this.workspaceService.workspace?new l.URI(this.workspaceService.workspace.uri):void 0;let b,A;y&&y.isEqualOrParent(c)?(b=y,A=y.relative(c)):(b=l.URI.from({scheme:c.scheme,authority:c.authority}),A=c.path);let S=b.path;const D=[];for(const I of A.toString().split(h.separator).filter(w=>!!w)){S=S.join(I);const w=b.withPath(S);D.push(this.createFilePartBreadCrumbUri(w,!w.isEqual(c)))}return D}createFilePartBreadCrumbUri(c,y){const b=c.toString();if(this.cachedBreadCrumb.has(b))return this.cachedBreadCrumb.get(b);const A={name:c.path.base,uri:c,icon:this.labelService.getIcon(c,{isDirectory:y}),getSiblings:async()=>{const S=l.URI.from({scheme:c.scheme}).withPath(c.path.dir),D=await this.fileServiceClient.getFileStat(S.toString()),I=[];let w=-1;return D&&D.children&&D.children.length>0&&u(D.children).forEach((T,R)=>{I.push(this.createFilePartBreadCrumbUri(new l.URI(T.uri),T.isDirectory)),w===-1&&c.toString()===T.uri&&(w=R)}),{parts:I,currentIndex:w}}};return y?A.getChildren=async()=>{const S=await this.fileServiceClient.getFileStat(c.toString()),D=[];return S&&S.children&&S.children.length>0&&u(S.children).forEach((I,w)=>{D.push(this.createFilePartBreadCrumbUri(new l.URI(I.uri),I.isDirectory))}),D}:A.onClick=()=>{this.commandService.executeCommand(l.EDITOR_COMMANDS.OPEN_RESOURCE.id,c)},this.cachedBreadCrumb.set(b,A),A}getDocumentSymbolParts(c,y){if(!y)return[];const b=this.documentSymbolStore.getDocumentSymbol(c);if(b&&b.length>0){const A=g(b,y.monacoEditor.getPosition());return A.length>0?A.map(S=>this.createFromDocumentSymbol(S,y)):[{name:"...",getSiblings:()=>({parts:b.sort((S,D)=>E(S.range,D.range)).map(S=>this.createFromDocumentSymbol(S,y)),currentIndex:-1})}]}else return[]}createFromDocumentSymbol(c,y){const b={name:c.name,icon:(0,l.getSymbolIcon)(c.kind),isSymbol:!0,onClick:()=>{y.setSelection({startColumn:c.range.startColumn,endColumn:c.range.startColumn,startLineNumber:c.range.startLineNumber,endLineNumber:c.range.startLineNumber}),y.monacoEditor.revealRangeInCenter(c.range),y.monacoEditor.focus()}};return c.parent&&(b.getSiblings=()=>({parts:c.parent.children.sort((A,S)=>E(A.range,S.range)).map(A=>this.createFromDocumentSymbol(A,y)),currentIndex:c.parent.children.indexOf(c)})),c.children&&c.children.length>0&&(b.getChildren=()=>c.children.sort((A,S)=>E(A.range,S.range)).map(A=>this.createFromDocumentSymbol(A,y))),b}onDocumentSymbolChangedEvent(c){this.notifyUpdate(c.payload)}onEditorSelectionChangeEvent(c){this.notifyUpdate(c.payload.editorUri)}notifyUpdate(c){this.debouncedFireUriEvent.has(c.toString())||this.debouncedFireUriEvent.set(c.toString(),(0,r.default)(()=>{this._onDidUpdateBreadCrumb.fire(c)},100,{maxWait:1e3})),this.debouncedFireUriEvent.get(c.toString())()}};t.DefaultBreadCrumbProvider=a,n.__decorate([(0,o.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],a.prototype,"fileServiceClient",void 0),n.__decorate([(0,o.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],a.prototype,"workspaceService",void 0),n.__decorate([(0,o.Autowired)(_.LabelService),n.__metadata("design:type",_.LabelService)],a.prototype,"labelService",void 0),n.__decorate([(0,o.Autowired)(l.CommandService),n.__metadata("design:type",Object)],a.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",s.DocumentSymbolStore)],a.prototype,"documentSymbolStore",void 0),n.__decorate([(0,l.OnEvent)(s.DocumentSymbolChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.DocumentSymbolChangedEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onDocumentSymbolChangedEvent",null),n.__decorate([(0,l.OnEvent)(p.EditorSelectionChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.EditorSelectionChangeEvent]),n.__metadata("design:returntype",void 0)],a.prototype,"onEditorSelectionChangeEvent",null),t.DefaultBreadCrumbProvider=a=n.__decorate([(0,o.Injectable)()],a);function g(f,c){const y=[];if(!c)return y;let b=f;for(;b&&b.length>0;){let A=!1;for(const S of b)if(d(c,S.range)){y.push(S),b=S.children,A=!0;break}if(!A)break}return y}function u(f){return f.sort((c,y)=>{if(c.isDirectory&&y.isDirectory||!c.isDirectory&&!y.isDirectory){const b=new l.URI(c.uri).path.name,A=new l.URI(y.uri).path.name;return b.localeCompare(A,"kn",{numeric:!0})}else return c.isDirectory&&!y.isDirectory?-1:!c.isDirectory&&y.isDirectory?1:0})}function d(f,c){return f.lineNumber<c.startLineNumber?!1:f.lineNumber===c.startLineNumber?f.column>=c.startColumn:f.lineNumber<c.endLineNumber?!0:f.lineNumber===c.endLineNumber?f.column<=c.endColumn:!1}function E(f,c){return f.startLineNumber>c.startLineNumber?1:f.startLineNumber<c.startLineNumber?-1:f.startColumn===c.startColumn?0:f.startColumn>c.startColumn?1:-1}},17459:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SymbolTag=t.DocumentSymbolChangedEvent=t.DocumentSymbolStore=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(79865),v=e(40540);Object.defineProperty(t,"SymbolTag",{enumerable:!0,get:function(){return v.SymbolTag}});const m=e(23418),p=e(96689);let s=class extends l.WithEventBus{constructor(){super(),this.documentSymbols=new Map,this.pendingUpdate=new Set,this.debounced=new Map,this.symbolDeferred=new Map,this.addDispose(_.languageFeaturesService.documentSymbolProvider.onDidChange(()=>{Array.from(this.documentSymbols.keys()).forEach(d=>{this.markNeedUpdate(new l.URI(d))})}))}getDocumentSymbol(d){return this.documentSymbols.has(d.toString())||(this.documentSymbols.set(d.toString(),void 0),this.createDocumentSymbolCache(d)),this.pendingUpdate.has(d.toString())&&this.updateDocumentSymbolCache(d),this.documentSymbols.get(d.toString())}async getDocumentSymbolAsync(d,E){var f;const c=d.toString();return E&&E.onCancellationRequested(()=>{var y;(y=this.symbolDeferred.get(c))===null||y===void 0||y.resolve(),this.symbolDeferred.delete(c)}),(!this.documentSymbols.has(c)||this.pendingUpdate.has(c))&&!this.symbolDeferred.has(c)&&(this.symbolDeferred.set(c,new l.Deferred),this.updateDocumentSymbolCache(d)),await((f=this.symbolDeferred.get(c))===null||f===void 0?void 0:f.promise),this.documentSymbols.get(c)}async createDocumentSymbolCache(d){this.updateDocumentSymbolCache(d)}async doUpdateDocumentSymbolCache(d){var E,f;this.pendingUpdate.delete(d.toString());const c=await this.editorDocumentModelRegistry.createModelReference(d);if(!c){(E=this.symbolDeferred.get(d.toString()))===null||E===void 0||E.resolve();return}try{const y=_.languageFeaturesService.documentSymbolProvider.all(c.instance.getMonacoModel());let b;for(const A of y)if(b=await A.provideDocumentSymbols(c.instance.getMonacoModel(),new l.CancellationTokenSource().token),b)break;b&&a(b,{children:b},d),this.documentSymbols.set(d.toString(),b),this.eventBus.fire(new h(d))}finally{c.dispose()}(f=this.symbolDeferred.get(d.toString()))===null||f===void 0||f.resolve()}updateDocumentSymbolCache(d){this.debounced.has(d.toString())||this.debounced.set(d.toString(),(0,r.default)(()=>this.doUpdateDocumentSymbolCache(d),100,{maxWait:1e3})),this.debounced.get(d.toString())()}onEditorDocumentModelContentChangedEvent(d){d.payload.changes&&d.payload.changes.length>0&&this.markNeedUpdate(d.payload.uri)}markNeedUpdate(d){this.pendingUpdate.add(d.toString()),this.isWatching(d)&&this.updateDocumentSymbolCache(d)}isWatching(d){for(const E of this.editorService.editorGroups)if(E.currentResource&&E.currentResource.uri.isEqual(d))return!0;return!1}};t.DocumentSymbolStore=s,n.__decorate([(0,o.Autowired)(p.IEditorDocumentModelService),n.__metadata("design:type",Object)],s.prototype,"editorDocumentModelRegistry",void 0),n.__decorate([(0,o.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",m.WorkbenchEditorService)],s.prototype,"editorService",void 0),n.__decorate([(0,l.OnEvent)(p.EditorDocumentModelContentChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.EditorDocumentModelContentChangedEvent]),n.__metadata("design:returntype",void 0)],s.prototype,"onEditorDocumentModelContentChangedEvent",null),t.DocumentSymbolStore=s=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],s);class h extends l.BasicEvent{}t.DocumentSymbolChangedEvent=h;function a(u,d,E){return u.forEach((f,c)=>{const y=f;y.parent=d,y.id=g(E,y,c),f.children&&f.children.length>0&&a(f.children,f,E)}),u}function g(u,d,E){const f=[d.name];for(;d.parent;){const c=d.parent;if(!c.name)break;f.unshift(c.name),d=c}return`${u.toString()}__${f.join("-")}__${E}`}},88895:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadCrumbServiceImpl=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(87802),{addElement:_}=o.arrays;let v=class{constructor(){this.providers=[],this._onDidUpdateBreadCrumbResults=new o.Emitter,this.onDidUpdateBreadCrumbResults=this._onDidUpdateBreadCrumbResults.event,this.crumbResults=new Map,this.registerBreadCrumbProvider(this.defaultBreadCrumbProvider)}registerBreadCrumbProvider(h){const a=_(this.providers,h);return h.onDidUpdateBreadCrumb(g=>{this.crumbResults.forEach((u,d)=>{u.has(g.toString())&&this.getBreadCrumbs(g,d)})}),a}getBreadCrumbs(h,a){const g=this.getEditorCrumbResults(a);for(const u of this.providers)if(u.handlesUri(h)){const d=g.get(h.toString()),E=u.provideBreadCrumbForUri(h,a);m(d,E)||(g.set(h.toString(),E),this._onDidUpdateBreadCrumbResults.fire({editor:a,uri:h}));break}return g.get(h.toString())}getEditorCrumbResults(h){return this.crumbResults.has(h)||(this.crumbResults.set(h,new Map),h&&h.monacoEditor.onDidDispose(()=>{this.crumbResults.delete(h)})),this.crumbResults.get(h)}disposeCrumb(h){}};t.BreadCrumbServiceImpl=v,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",l.DefaultBreadCrumbProvider)],v.prototype,"defaultBreadCrumbProvider",void 0),t.BreadCrumbServiceImpl=v=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],v);function m(s,h){if(!s&&!h)return!0;if(!s||!h)return!1;if(s.length!==h.length)return!1;for(let a=0;a<s.length;a++)if(!p(s[a],h[a]))return!1;return!0}function p(s,h){return s.name===h.name}},11673:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorComponentRegistryImpl=void 0;const n=e(85608),r=n.__importDefault(e(46343)),o=n.__importDefault(e(19106)),l=n.__importDefault(e(43144)),_=e(76003),v=e(43718),m=e(82196);let p=class{constructor(){this.components=new Map,this.sideWidgets={bottom:new Set,top:new Set},this.initialPropsMap=new Map,this.resolvers=new Map,this.normalizedResolvers=[],this.perWorkbenchComponents={}}registerEditorComponent(h,a){const g=h.uid;return h.renderMode||(h.renderMode=m.EditorComponentRenderMode.ONE_PER_GROUP),this.components.set(g,h),this.initialPropsMap.set(g,a),this.eventBus.fire(new v.ExtensionActivateEvent({topic:"onRegisterEditorComponent",data:g})),this.eventBus.fire(new m.RegisterEditorComponentEvent(g)),{dispose:()=>{this.components.get(g)===h&&(this.components.delete(g),this.eventBus.fire(new m.EditorComponentDisposeEvent(h)))}}}registerEditorComponentResolver(h,a){let g;return typeof h=="function"?g={handleScheme:h,resolver:a}:g={handleScheme:u=>u===h?10:-1,resolver:a},this.normalizedResolvers.push(g),this.resolvers.clear(),{dispose:()=>{for(const d of this.resolvers.values()){const E=d.indexOf(a);E!==-1&&d.splice(E,1)}const u=this.normalizedResolvers.indexOf(g);u!==-1&&this.normalizedResolvers.splice(u,1)}}}async resolveEditorComponent(h){let a=[];const g=this.getResolvers(h.uri.scheme).slice();let u=!1;const d=E=>{a=E,u=!0};for(const E of g)if(await E(h,a,d),u)break;return a.sort((E,f)=>{const c=E.weight||0;return(f.weight||0)-c}),(0,o.default)(a,r.default)}calculateSchemeResolver(h){const a=this.normalizedResolvers.slice(),g=[];return a.forEach((u,d)=>{const E=u.handleScheme(h);E>=0&&g.push({weight:E,index:d,resolver:u.resolver})}),g.sort((u,d)=>u.weight>d.weight?-1:u.weight<d.weight?1:d.index-u.index).map(u=>u.resolver)}getResolvers(h){return this.resolvers.has(h)||this.resolvers.set(h,this.calculateSchemeResolver(h)),this.resolvers.get(h)}getEditorComponent(h){return this.components.get(h)||null}getEditorInitialProps(h){return this.initialPropsMap.get(h)||null}clearPerWorkbenchComponentCache(h){l.default.unmountComponentAtNode(this.perWorkbenchComponents[h]),delete this.perWorkbenchComponents[h]}getSideWidgets(h,a){const g=[];return this.sideWidgets[h].forEach(u=>{u.displaysOnResource(a)&&g.push(u)}),g.sort((u,d)=>{const E=u.weight===void 0?10:u.weight;return(d.weight===void 0?10:d.weight)-E})}registerEditorSideWidget(h){const a=h.side||"bottom";return this.sideWidgets[a].add(h),this.eventBus.fire(new m.RegisterEditorSideComponentEvent),{dispose:()=>{this.sideWidgets[a].delete(h)}}}};t.EditorComponentRegistryImpl=p,n.__decorate([(0,_.Autowired)(v.IEventBus),n.__metadata("design:type",Object)],p.prototype,"eventBus",void 0),t.EditorComponentRegistryImpl=p=n.__decorate([(0,_.Injectable)()],p)},84677:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonacoEditorDecorationApplier=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=e(76003),l=e(43718),_=e(52416),v=e(82196);let m=class extends l.Disposable{constructor(u){super(),this.editor=u,this.decorations=new Map,this.applyDecorationFromProvider(),this.addDispose(this.editor.onDidChangeModel(()=>{this.clearDecorations(),this.applyDecorationFromProvider()})),this.addDispose(this.editor.onDidDispose(()=>{this.dispose()})),this.addDispose(this.eventBus.on(v.EditorDecorationChangeEvent,d=>{const E=this.getEditorUri();E&&d.payload.uri.isEqual(E)&&this.applyDecorationFromProvider(d.payload.key)})),this.addDispose(this.eventBus.on(v.EditorDecorationTypeRemovedEvent,d=>{this.deltaDecoration(d.payload,[])}))}getEditorUri(){return this.editor.getModel()?new l.URI(this.editor.getModel().uri.toString()):null}async applyDecorationFromProvider(u){if(this.editor.getModel()){const d=new l.URI(this.editor.getModel().uri.toString()),E=await this.decorationService.getDecorationFromProvider(d,u);if(!this.editor.getModel()||this.editor.getModel().uri.toString()!==d.toString())return;for(const f of Object.keys(E))this.deltaDecoration(f,E[f]);this.eventBus.fire(new v.DidApplyEditorDecorationFromProvider({key:u,uri:d}))}}dispose(){super.dispose(),this.clearDecorations()}clearDecorations(){this.decorations.forEach(u=>{u.dispose(),this.editor.deltaDecorations(u.decorations,[])}),this.decorations.clear()}deltaDecoration(u,d){let E=[];if(this.decorations.has(u)&&(E=this.decorations.get(u).decorations,this.decorations.get(u).dispose(),this.decorations.delete(u)),E.length===0&&d.length===0)return;const f=this.editor.deltaDecorations(E,d);this.decorations.set(u,{decorations:f,dispose:()=>null})}applyDecoration(u,d){const E=this.decorations.get(u);E&&E.dispose();const f=E?E.decorations:[],c=[],y=new l.Disposable;if(f.length===0&&d.length===0)return;d.forEach(A=>{const S=this.resolveDecorationRenderer(u,A.renderOptions);c.push({range:A.range,options:{...S.options,hoverMessage:h(A.hoverMessage)}}),y.addDispose(S)});const b=this.editor.deltaDecorations(f,c);this.decorations.set(u,{decorations:b,dispose:()=>y.dispose()})}resolveDecorationRenderer(u,d){const E=this.decorationService.getTextEditorDecorationType(u),f={description:u},c=this.themeService.getCurrentThemeSync().type,y=new l.Disposable;if(E){const b=E.property;p(f,b,c)}if(d){const b=this.decorationService.createTextEditorDecorationType(d);p(f,b.property,c),y.addDispose(b)}return{options:f,dispose:()=>y.dispose()}}};t.MonacoEditorDecorationApplier=m,n.__decorate([(0,o.Autowired)(v.IEditorDecorationCollectionService),n.__metadata("design:type",Object)],m.prototype,"decorationService",void 0),n.__decorate([(0,o.Autowired)(_.IThemeService),n.__metadata("design:type",Object)],m.prototype,"themeService",void 0),n.__decorate([(0,o.Autowired)(l.IEventBus),n.__metadata("design:type",Object)],m.prototype,"eventBus",void 0),t.MonacoEditorDecorationApplier=m=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object])],m);function p(g,u,d){u.overviewRulerLane&&(g.overviewRuler?g.overviewRuler.position=u.overviewRulerLane:g.overviewRuler={color:null,position:u.overviewRulerLane}),u.default&&s(g,u.default),d==="dark"&&u.dark&&s(g,u.dark),d==="light"&&u.light&&s(g,u.light),u.isWholeLine!==void 0&&(g.isWholeLine=u.isWholeLine),u.rangeBehavior&&(g.stickiness=u.rangeBehavior),g.inlineClassNameAffectsLetterSpacing=!0}function s(g,u){u.className&&(g.className=(0,r.default)(g.className,u.className)),u.inlineClassName&&(g.inlineClassName=(0,r.default)(g.inlineClassName,u.inlineClassName)),u.afterContentClassName&&(g.afterContentClassName=(0,r.default)(g.afterContentClassName,u.afterContentClassName)),u.beforeContentClassName&&(g.beforeContentClassName=(0,r.default)(g.beforeContentClassName,u.beforeContentClassName)),u.glyphMarginClassName&&(g.glyphMarginClassName=(0,r.default)(g.glyphMarginClassName,u.glyphMarginClassName)),u.overviewRulerColor&&g.overviewRuler&&(g.overviewRuler.color=u.overviewRulerColor)}function h(g){if(g)return g instanceof Array?g.map(a):a(g)}function a(g){return typeof g=="string"?{value:g,isTrusted:!0}:g}},84158:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompareEditorContribution=t.CompareService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(82196);let v=class{constructor(){this.comparing=new Map}compare(s,h,a){const g=o.URI.from({scheme:_.DIFF_SCHEME,query:o.URI.stringifyQuery({name:a,original:s,modified:h,comparing:!0})});if(!this.comparing.has(g.toString())){const u=new o.Deferred;this.comparing.set(g.toString(),u),u.promise.then(()=>{this.comparing.delete(g.toString()),this.commandService.executeCommand(o.EDITOR_COMMANDS.CLOSE_ALL.id,g)})}return this.commandService.executeCommand(o.EDITOR_COMMANDS.OPEN_RESOURCE.id,g),this.comparing.get(g.toString()).promise}};t.CompareService=v,n.__decorate([(0,r.Autowired)(o.CommandService),n.__metadata("design:type",Object)],v.prototype,"commandService",void 0),t.CompareService=v=n.__decorate([(0,r.Injectable)()],v);let m=class{registerMenus(s){s.registerMenuItems(l.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.ACCEPT.id,label:(0,o.localize)("editor.action.accept")},iconClass:(0,o.getIcon)("check"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(l.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.REVERT.id,label:(0,o.localize)("editor.action.revert")},iconClass:(0,o.getIcon)("rollback"),group:"navigation",when:"isInDiffEditor && diffResource =~ /%26comparing%3Dtrue$/"}]),s.registerMenuItems(l.MenuId.EditorTitle,[{command:{id:o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS.id,label:(0,o.localize)("diffEditor.action.toggleCollapseUnchangedRegions")},toggledWhen:"config.diffEditor.hideUnchangedRegions.enabled",iconClass:"codicon codicon-map",group:"navigation",when:"isInDiffEditor"}])}registerCommands(s){s.registerCommand(o.DIFF_EDITOR_COMMANDS.ACCEPT,{execute:h=>{h&&this.compareService.comparing.has(h.toString())&&this.compareService.comparing.get(h.toString()).resolve(_.CompareResult.accept)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.REVERT,{execute:h=>{h&&this.compareService.comparing.has(h.toString())&&this.compareService.comparing.get(h.toString()).resolve(_.CompareResult.revert)}}),s.registerCommand(o.DIFF_EDITOR_COMMANDS.TOGGLE_COLLAPSE_UNCHANGED_REGIONS,{execute:()=>{const h=this.preferenceService.get("diffEditor.hideUnchangedRegions.enabled");this.preferenceService.set("diffEditor.hideUnchangedRegions.enabled",!h,o.PreferenceScope.User)}})}};t.CompareEditorContribution=m,n.__decorate([(0,r.Autowired)(_.ICompareService),n.__metadata("design:type",v)],m.prototype,"compareService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),t.CompareEditorContribution=m=n.__decorate([(0,o.Domain)(l.MenuContribution,o.CommandContribution)],m)},57581:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDiffEditorContribution=t.DiffResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(26542),_=e(14951),v=e(23418),m=e(82196);let p=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme=v.DIFF_SCHEME,this.modifiedToResource=new Map}onResourceDecorationChangeEvent(a){a.payload.uri&&this.modifiedToResource.has(a.payload.uri.toString())&&this.eventBus.fire(new v.ResourceDecorationNeedChangeEvent({uri:this.modifiedToResource.get(a.payload.uri.toString()),decoration:a.payload.decoration}))}async getCurrentUserHome(){if(!this.userhomePath)try{const a=await this.fileServiceClient.getCurrentUserHome();a&&(this.userhomePath=new o.URI(a.uri))}catch{}return this.userhomePath}async getReadableTooltip(a){const g=a.toString(),u=await this.getCurrentUserHome();if(!u)return decodeURIComponent(a.withScheme("").toString());if(u.isEqualOrParent(a)){const d=u&&u.toString();return decodeURIComponent(g.replace(d,"~"))}return decodeURIComponent(a.withScheme("").toString())}async provideResource(a){const{original:g,modified:u,name:d}=a.getParsedQuery(),E=new o.URI(g),f=new o.URI(u);return this.modifiedToResource.set(f.toString(),a),Promise.all([this.labelService.getIcon(E),this.getReadableTooltip(f)]).then(([c,y])=>{var b;return{name:d,icon:c,uri:a,supportsRevive:(b=this.appConfig.enableDiffRevive)!==null&&b!==void 0?b:!0,metadata:{original:E,modified:f},title:y}})}async shouldCloseResource(a,g){const{modified:u}=a.uri.getParsedQuery(),d=new o.URI(u),E=await this.resourceService.getResource(d);return E?await this.resourceService.shouldCloseResource(E,g):!0}};t.DiffResourceProvider=p,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",l.LabelService)],p.prototype,"labelService",void 0),n.__decorate([(0,r.Autowired)(v.ResourceService),n.__metadata("design:type",v.ResourceService)],p.prototype,"resourceService",void 0),n.__decorate([(0,r.Autowired)(_.IFileServiceClient),n.__metadata("design:type",Object)],p.prototype,"fileServiceClient",void 0),n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,o.OnEvent)(v.ResourceDecorationChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.ResourceDecorationChangeEvent]),n.__metadata("design:returntype",void 0)],p.prototype,"onResourceDecorationChangeEvent",null),t.DiffResourceProvider=p=n.__decorate([(0,r.Injectable)()],p);let s=class{registerResource(a){a.registerResourceProvider(this.diffResourceProvider)}registerEditorComponent(a){a.registerEditorComponentResolver(v.DIFF_SCHEME,(g,u)=>{u.push({type:m.EditorOpenType.diff})})}};t.DefaultDiffEditorContribution=s,n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",p)],s.prototype,"diffResourceProvider",void 0),t.DefaultDiffEditorContribution=s=n.__decorate([(0,o.Domain)(m.BrowserEditorContribution)],s)},21690:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyDocCacheImpl=void 0;const n=e(85608),r=e(76003);let o=class{hasCache(_){return!1}isFlushed(){return!0}getCache(_){return null}persistCache(_,v){}};t.EmptyDocCacheImpl=o,t.EmptyDocCacheImpl=o=n.__decorate([(0,r.Injectable)()],o)},80487:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(21690),t),n.__exportStar(e(7220),t)},7220:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageDocCacheImpl=void 0;const n=e(85608),r=e(76003),o=e(51500),l=e(93107);let _=class{hasCache(m){return!0}isFlushed(){return!0}async getCache(m){const p=this.parseKeyFrom(m);return await this.storageService.getData(p)||null}persistCache(m,p){const s=this.parseKeyFrom(m),h=this.parseCacheFrom(m,p);this.storageService.setData(s,h)}parseCacheFrom(m,p){if(!(!p.dirty||!p.changeMatrix.length))return{path:m.path.toString(),startMD5:p.startMD5,changeMatrix:p.changeMatrix.map(s=>s.map(h=>(0,l.parseCacheValueFrom)(h)))}}parseKeyFrom(m){return`LocalStorageDocCacheImpl_${m.toString()}`}};t.LocalStorageDocCacheImpl=_,n.__decorate([(0,r.Autowired)(o.IWorkspaceStorageService),n.__metadata("design:type",Object)],_.prototype,"storageService",void 0),t.LocalStorageDocCacheImpl=_=n.__decorate([(0,r.Injectable)()],_)},86942:(P,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentError=void 0;var e;(function(n){n.READ_CACHE_ERROR="EditorDocumentError:READ_CACHE_ERROR",n.APPLY_CACHE_TO_DIRTY_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIRTY_DOCUMENT",n.APPLY_CACHE_TO_DIFFERENT_DOCUMENT="EditorDocumentError:APPLY_CACHE_TO_DIFFERENT_DOCUMENT",n.FORMAT_ERROR="EditorDocumentError:FORMAT_ERROR"})(e||(t.EditorDocumentError=e={}))},9519:(P,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentModelServiceImpl=t.EDITOR_DOC_OPTIONS_PREF_KEY=t.EDITOR_DOCUMENT_MODEL_STORAGE=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(96405),_=e(14951),v=e(91249),m=e(96689);t.EDITOR_DOCUMENT_MODEL_STORAGE=new o.URI("editor-doc").withScheme(o.STORAGE_SCHEMA.SCOPE),t.EDITOR_DOC_OPTIONS_PREF_KEY="editor_doc_pref";let p=class extends o.WithEventBus{constructor(){super(),this.editorDocModels=new Map,this.creatingEditorModels=new Map,this._modelsToDispose=new Set,this.preferredModelOptions=new Map,this._ready=this.registerDispose(new o.ReadyEvent),this.modelCreationEventDispatcher=this.registerDispose(new o.Dispatcher),this._modelReferenceManager=new o.ReferenceManager(h=>(this._modelsToDispose.has(h)&&this._modelsToDispose.delete(h),this.getOrCreateModel(h))),this._modelReferenceManager.onReferenceAllDisposed(h=>{this._delete(h)}),this._modelReferenceManager.onInstanceCreated(h=>{this.modelCreationEventDispatcher.dispatch(h.uri.toString()),this.eventBus.fire(new m.EditorDocumentModelCreationEvent({uri:h.uri,languageId:h.languageId,eol:h.eol,encoding:h.encoding,content:h.getText(),readonly:h.readonly,versionId:h.getMonacoModel().getVersionId()}))}),this.addDispose(this.preferenceService.onPreferenceChanged(h=>{h.preferenceName==="editor.detectIndentation"&&this.editorDocModels.forEach(a=>{a.updateOptions({})})}))}onDocumentModelCreated(h,a){return this.modelCreationEventDispatcher.on(h)(a)}_delete(h){const a=this.preferenceService.get("editor.modelDisposeTime",3e3);this._modelsToDispose.add(h.toString());let g=null;const u=this.addDispose({dispose:()=>{g&&clearTimeout(g)}});g=window.setTimeout(()=>{u.dispose(),g=null,this._modelsToDispose.has(h.toString())&&this._doDelete(h.toString())},a)}_doDelete(h){const a=this.editorDocModels.get(h);if(a&&(!a.dirty||a.disposeEvenDirty))return a.dispose(),this.editorDocModels.delete(h),a;this._modelsToDispose.delete(h)}async changeModelOptions(h,a){return this.onceReady(()=>{this.preferredModelOptions.has(h.toString())&&(a={...this.preferredModelOptions.get(h.toString()),...a}),this.preferredModelOptions.set(h.toString(),a);const g=this.getModelReference(h);return g&&(a.encoding&&a.encoding!==g.instance.encoding&&g.instance.updateEncoding(a.encoding),a.languageId&&a.languageId!==g.instance.languageId&&(g.instance.languageId=a.languageId),a.eol&&a.eol!==g.instance.eol&&(g.instance.eol=a.eol),g.dispose()),this.persistOptionsPreference()})}persistOptionsPreference(){return this.storage.set(t.EDITOR_DOC_OPTIONS_PREF_KEY,JSON.stringify((0,o.mapToSerializable)(this.preferredModelOptions)))}async initialize(){if(this.storage=await this.getStorage(t.EDITOR_DOCUMENT_MODEL_STORAGE),this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY))try{this.preferredModelOptions=(0,o.serializableToMap)(JSON.parse(this.storage.get(t.EDITOR_DOC_OPTIONS_PREF_KEY)))}catch(h){this.logger.error(h)}this._ready.ready()}async acceptExternalChange(h){this.hashCalculateService.initialized||await this.hashCalculateService.initialize();const a=this.editorDocModels.get(h.payload.toString());if(a&&!a.dirty){const g=await this.contentRegistry.getProvider(a.uri);if(g)if(g.provideEditorDocumentModelContentMd5)await g.provideEditorDocumentModelContentMd5(a.uri,a.encoding)!==a.getBaseContentMd5()&&a.updateContent(await this.contentRegistry.getContentForUri(a.uri,a.encoding),void 0,!0);else{const u=await this.contentRegistry.getContentForUri(a.uri,a.encoding);this.hashCalculateService.calculate(u)!==a.getBaseContentMd5()&&a.updateContent(u,void 0,!0)}}}createModelReference(h,a){return this._modelReferenceManager.getReference(h.toString(),a)}getModelReference(h,a){return this._modelReferenceManager.getReferenceIfHasInstance(h.toString(),a)}getModelDescription(h,a){const g=this.getModelReference(h,a);if(!g)return null;const u=g.instance,d={alwaysDirty:u.alwaysDirty,closeAutoSave:u.closeAutoSave,disposeEvenDirty:u.disposeEvenDirty,eol:u.eol,encoding:u.encoding,dirty:u.dirty,languageId:u.languageId,readonly:u.readonly,uri:u.uri,id:u.id,savable:u.savable};return g.dispose(),d}getAllModels(){return Array.from(this.editorDocModels.values())}hasLanguage(h){return this.getAllModels().findIndex(a=>a.languageId===h)!==-1}async getOrCreateModel(h,a){return this.editorDocModels.has(h)?this.editorDocModels.get(h):this.createModel(h,a)}get onceReady(){return this.initialize(),this._ready.onceReady.bind(this._ready)}createModel(h,a){if(!this.creatingEditorModels.has(h)){const g=this.doCreateModel(h,a).then(u=>(this.creatingEditorModels.delete(h),u),u=>{throw this.creatingEditorModels.delete(h),u});this.creatingEditorModels.set(h,g)}return this.creatingEditorModels.get(h)}async doCreateModel(h,a){const g=new o.URI(h);let u=await this.contentRegistry.getProvider(g);if(u||await this.fileSystem.shouldWaitProvider(g.scheme)&&(u=await this.contentRegistry.getProvider(g)),!u)throw new Error(`No document provider found for ${g.toString()}`);const[d,E,f,c,y,b]=await Promise.all([u.provideEditorDocumentModelContent(g,a),u.isReadonly?u.isReadonly(g):void 0,u.preferLanguageForUri?u.preferLanguageForUri(g):void 0,u.isAlwaysDirty?u.isAlwaysDirty(g):!1,u.closeAutoSave?u.closeAutoSave(g):!1,u.disposeEvenDirty?u.disposeEvenDirty(g):!1]);let A;u.provideEditorDocumentModelContentSize&&(A=await u.provideEditorDocumentModelContentSize(g)),!a&&u.provideEncoding&&(a=await u.provideEncoding(g));const S=u.provideEOL?await u.provideEOL(g):`
|
|
33308
33308
|
`,D=!!u.saveDocumentModel,I=this.injector.get(v.EditorDocumentModel,[g,d,{readonly:E,languageId:f,savable:D,eol:S,encoding:a,alwaysDirty:c,closeAutoSave:y,disposeEvenDirty:b,byteSize:A}]);return this.onceReady(()=>{if(this.preferredModelOptions.has(g.toString())){const w=this.preferredModelOptions.get(g.toString());w?.encoding&&I.updateEncoding(w.encoding),w?.eol&&(I.eol=w.eol),w?.languageId&&(I.languageId=w.languageId)}}),this.editorDocModels.set(g.toString(),I),I}async saveEditorDocumentModel(h,a,g,u,d,E,f){const c=await this.contentRegistry.getProvider(h);if(!c)throw new Error(`No document provider found for ${h.toString()}`);if(!c.saveDocumentModel)throw new Error(`The document provider of ${h.toString()} does not have a save method`);return await c.saveDocumentModel(h,a,g,u,d,E,f)}dispose(){super.dispose(),this.getAllModels().forEach(h=>{h.getMonacoModel().dispose()})}};t.EditorDocumentModelServiceImpl=p,n.__decorate([(0,r.Autowired)(m.IEditorDocumentModelContentRegistry),n.__metadata("design:type",Object)],p.prototype,"contentRegistry",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],p.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],p.prototype,"getStorage",void 0),n.__decorate([(0,r.Autowired)(o.ILogger),n.__metadata("design:type",Object)],p.prototype,"logger",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(l.IHashCalculateService),n.__metadata("design:type",Object)],p.prototype,"hashCalculateService",void 0),n.__decorate([(0,r.Autowired)(_.IFileServiceClient),n.__metadata("design:type",Object)],p.prototype,"fileSystem",void 0),n.__decorate([o.memoize,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",Promise)],p.prototype,"initialize",null),n.__decorate([(0,o.OnEvent)(m.EditorDocumentModelOptionExternalUpdatedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[m.EditorDocumentModelOptionExternalUpdatedEvent]),n.__metadata("design:returntype",Promise)],p.prototype,"acceptExternalChange",null),t.EditorDocumentModelServiceImpl=p=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],p)},91249:(P,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDocumentModel=void 0;const r=e(85608),o=r.__importDefault(e(12784)),l=e(76003),_=e(41869),v=e(96405),m=e(52902),p=e(68475),s=e(72665),h=e(2261),a=e(44781),g=e(43255),u=e(24347),d=e(23418),E=e(55113),f=e(90915),c=e(82196),y=e(86942),b=e(98469),A=e(96689);let S=n=class extends _.Disposable{constructor(I,w,T={}){super(),this.uri=I,this.saveQueue=new _.Throttler,this._encoding="utf8",this.readonly=!1,this.savable=!1,this.alwaysDirty=!1,this.closeAutoSave=!1,this.disposeEvenDirty=!1,this._originalEncoding=this._encoding,this._persistVersionId=0,this._baseContent="",this.savingTasks=[],this.dirtyChanges=[],this._isInitOption=!0,this.isLargeFile=!1,this._onDidChangeEncoding=new _.Emitter,this.onDidChangeEncoding=this._onDidChangeEncoding.event,this.onDispose(()=>{this.eventBus.fire(new A.EditorDocumentModelRemovalEvent(this.uri))}),T.encoding&&(this._encoding=T.encoding),this.readonly=!!T.readonly,this.savable=!!T.savable,this.alwaysDirty=!!T.alwaysDirty,this.disposeEvenDirty=!!T.disposeEvenDirty,this.closeAutoSave=!!T.closeAutoSave,this.monacoModel=m.monaco.editor.createModel(w,T.languageId,m.URI.parse(I.toString())),this.editorPreferences=(0,f.createEditorPreferenceProxy)(this.preferences,this.uri.toString(),this.languageId);const R=this.editorPreferences["editor.largeFile"];this.editorPreferences["editor.largeFileOptimizations"]!==!1&&typeof T.byteSize=="number"&&T.byteSize>=R&&(this.isLargeFile=!0),this.updateOptions({}),T.eol&&(this.eol=T.eol),this._originalEncoding=this._encoding,this._previousVersionId=this.monacoModel.getVersionId(),this._persistVersionId=this.monacoModel.getAlternativeVersionId(),this.baseContent=w,this._isInitOption=!1,this.listenTo(this.monacoModel),this.readCacheToApply(),this.addDispose(this._onDidChangeEncoding),this.addDispose(this.monacoModel.onDidChangeLanguage(O=>{this.eventBus.fire(new A.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:O.newLanguage}))}))}updateOptions(I){const w={tabSize:this.editorPreferences["editor.tabSize"]||1,insertSpaces:this.editorPreferences["editor.insertSpaces"],detectIndentation:this.editorPreferences["editor.detectIndentation"],...I};w.detectIndentation?this.monacoModel.detectIndentation(w.insertSpaces,w.tabSize):this.monacoModel.updateOptions(w)}listenTo(I){this.addDispose(I.onDidChangeContent(w=>{w.changes&&w.changes.length>0&&this.dirtyChanges.push({fromVersionId:this._previousVersionId,toVersionId:w.versionId,changes:w.changes}),this._previousVersionId=w.versionId,this.notifyChangeEvent(w.changes,w.isRedoing,w.isUndoing)})),this.addDispose(I)}readCacheToApply(){if(!this.cacheProvider.hasCache(this.uri))return;const I=this.cacheProvider.getCache(this.uri,this.encoding);I&&((0,_.isThenable)(I)?I.then(w=>{w&&this.applyCache(w)}).catch(w=>{this.logger.error(`${y.EditorDocumentError.READ_CACHE_ERROR} ${w&&w.message}`)}):this.applyCache(I))}applyCache(I){if(this.dirty){this.logger.error(y.EditorDocumentError.APPLY_CACHE_TO_DIRTY_DOCUMENT);return}if(this.baseContentMd5!==I.startMD5){this.logger.error(y.EditorDocumentError.APPLY_CACHE_TO_DIFFERENT_DOCUMENT);return}const w=T=>{const[R,M,O,x,k]=T;return a.Range.lift({startLineNumber:M,startColumn:O,endLineNumber:x,endColumn:k})};if((0,d.isDocContentCache)(I))this.monacoModel.setValue(I.content);else for(const T of I.changeMatrix){const R=T.map(M=>({range:w(M),text:M[0]}));this.monacoModel.applyEdits(R)}}cleanAndUpdateContent(I){this.monacoModel.setValue(I),this.monacoModel._commandManager.clear(),this._persistVersionId=this.monacoModel.getAlternativeVersionId(),this.savingTasks=[],this.notifyChangeEvent([],!1,!1),this.baseContent=I}async updateEncoding(I){let w=!1;this._encoding!==I&&(w=!0),this._encoding=I,await this.reload(),w&&(this.eventBus.fire(new A.EditorDocumentModelOptionChangedEvent({uri:this.uri,encoding:this._encoding})),this._onDidChangeEncoding.fire())}get encoding(){return this._encoding}set eol(I){this.monacoModel.setEOL(I===`
|
|
33309
33309
|
`?p.EndOfLineSequence.LF:p.EndOfLineSequence.CRLF),this._isInitOption||this.eventBus.fire(new A.EditorDocumentModelOptionChangedEvent({uri:this.uri,eol:I}))}get eol(){return this.monacoModel.getEOL()}get dirty(){return this.alwaysDirty?!0:!this.savable||this.monacoModel.isDisposed()||this.readonly?!1:this._persistVersionId!==this.monacoModel.getAlternativeVersionId()}set languageId(I){m.monaco.editor.setModelLanguage(this.monacoModel,I),this.eventBus.fire(new A.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:I}))}get languageId(){return this.monacoModel.getLanguageId()}get id(){return this.monacoModel.id}getMonacoModel(){return this.monacoModel}async syncDocumentModelToExtThread(){await this.eventBus.fireAndAwait(new A.EditorDocumentModelOptionChangedEvent({uri:this.uri,languageId:this.languageId,encoding:this.encoding,eol:this.eol,dirty:this.dirty}))}async save(I=!1,w=d.SaveReason.Manual){if(!this.dirty)return await this.syncDocumentModelToExtThread(),!1;const T=await this.contentRegistry.getProvider(this.uri);if(await T?.isReadonly(this.uri))return!1;const M=async(O=!1,x=d.SaveReason.Manual)=>{if(await this.formatOnSave(x),await this.eventBus.fireAndAwait(new A.EditorDocumentModelWillSaveEvent({uri:this.uri,reason:x,language:this.languageId,dirty:this.dirty})),this.editorPreferences["editor.askIfDiff"]||(O=!0),!this.dirty)return!1;const k=this.monacoModel.getVersionId(),F=this.savingTasks[this.savingTasks.length-1];if(F&&F.versionId===k){F.cancel();const U=this.savingTasks.pop();U?.dispose()}const L=new b.SaveTask(this.uri,k,this.monacoModel.getAlternativeVersionId(),this.getText(),O);this.savingTasks.push(L),this.savingTasks.length>0&&this.initSave();const N=await L.finished;if(N.state===_.SaveTaskResponseState.SUCCESS)return this.monacoModel.pushStackElement(),!0;if(N.state===_.SaveTaskResponseState.ERROR)return N.errorMessage!=="cancel"&&(this.logger.error(N.errorMessage),this.messageService.error((0,_.localize)("doc.saveError.failed")+`
|
|
33310
33310
|
`+N.errorMessage)),!1;if(N.state===_.SaveTaskResponseState.DIFF){const U=(0,_.localize)("doc.saveError.diffAndSave"),W=(0,_.localize)("doc.saveError.overwrite");return this.messageService.error((0,_.formatLocalize)("doc.saveError.diff",this.uri.toString()),[U,W]).then(j=>{j===U?this.compareAndSave():j===W&&M(!0,x)}),this.logger.error("The file cannot be saved, the version is inconsistent with the disk"),!1}return!1};return this.saveQueue.queue(M.bind(this,I,w))}async compareAndSave(){const I=_.URI.from({scheme:A.ORIGINAL_DOC_SCHEME,query:_.URI.stringifyQuery({target:this.uri.toString()})}),w=this.uri.path.base,T=await this.compareService.compare(I,this.uri,(0,_.formatLocalize)("editor.compareAndSave.title",w,w));T===c.CompareResult.revert?this.revert():T===c.CompareResult.accept&&this.save(!0)}async initSave(){for(;this.savingTasks.length>0;){const I=this.dirtyChanges;this.dirtyChanges=[];const w=await this.savingTasks[0].run(this.service,this.baseContent,I,this.encoding,this.eol);w.state==="success"&&this.savingTasks[0]?(this.baseContent=this.savingTasks[0].content,this.eventBus.fire(new A.EditorDocumentModelSavedEvent(this.uri)),this.setPersist(this.savingTasks[0].alternativeVersionId)):(w.state==="error"&&this.eventBus.fire(new A.EditorDocumentModelSaveErrorEvent({uri:this.uri,errorMessage:w.errorMessage})),this.dirtyChanges.unshift(...I)),this.savingTasks.shift()}}setPersist(I){this._persistVersionId=I,this.notifyChangeEvent([],!1,!1)}async reload(){try{const I=await this.contentRegistry.getContentForUri(this.uri,this._encoding);(0,_.isUndefinedOrNull)(I)||this.cleanAndUpdateContent(I)}catch{this._persistVersionId=this.monacoModel.getAlternativeVersionId()}}async revert(I){I?this._persistVersionId=this.monacoModel.getAlternativeVersionId():await this.updateEncoding(this._originalEncoding)}getText(I){return I?this.monacoModel.getValueInRange(I):this.monacoModel.getValue()}updateContent(I,w,T=!1){w&&(this.eol=w);const R=this.eol===`\r
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/cli-engine",
|
|
3
|
-
"version": "3.9.1-next-
|
|
3
|
+
"version": "3.9.1-next-1766569484.0",
|
|
4
4
|
"description": "Integration engine runtime for opensumi-cli and opensumi extension",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@koa/cors": "^5.0.0",
|
|
28
28
|
"@opensumi/di": "^1.8.0",
|
|
29
|
-
"@opensumi/ide-core-browser": "3.9.1-next-
|
|
30
|
-
"@opensumi/ide-core-common": "3.9.1-next-
|
|
31
|
-
"@opensumi/ide-core-node": "3.9.1-next-
|
|
32
|
-
"@opensumi/ide-express-file-server": "3.9.1-next-
|
|
33
|
-
"@opensumi/ide-extension": "3.9.1-next-
|
|
34
|
-
"@opensumi/ide-i18n": "3.9.1-next-
|
|
35
|
-
"@opensumi/ide-main-layout": "3.9.1-next-
|
|
36
|
-
"@opensumi/ide-startup": "3.9.1-next-
|
|
29
|
+
"@opensumi/ide-core-browser": "3.9.1-next-1766569484.0",
|
|
30
|
+
"@opensumi/ide-core-common": "3.9.1-next-1766569484.0",
|
|
31
|
+
"@opensumi/ide-core-node": "3.9.1-next-1766569484.0",
|
|
32
|
+
"@opensumi/ide-express-file-server": "3.9.1-next-1766569484.0",
|
|
33
|
+
"@opensumi/ide-extension": "3.9.1-next-1766569484.0",
|
|
34
|
+
"@opensumi/ide-i18n": "3.9.1-next-1766569484.0",
|
|
35
|
+
"@opensumi/ide-main-layout": "3.9.1-next-1766569484.0",
|
|
36
|
+
"@opensumi/ide-startup": "3.9.1-next-1766569484.0",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"ejs": "^3.1.7",
|
|
39
39
|
"ip": "^1.1.8",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"webpack": "^5.90.0",
|
|
73
73
|
"webpack-cli": "^5.1.4"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "4104911387cc43db6809e634ee3f72ce24e1d80b"
|
|
76
76
|
}
|