',r=[];for(let e=t;e<=i;e++){const i=e-t,o=n[i];0===o.length?r[i]="":r[i]='=this._renderResult.length?"":this._renderResult[i]}}})),define(e[910],t([0,1,410,772]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinesDecorationsOverlay=void 0;class n extends i.DedupOverlay{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(117);this._decorationsLeft=t.decorationsLeft,
this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(117);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],o=0;for(let e=0,s=t.length;e
',s=[];for(let e=t;e<=i;e++){const i=e-t,r=n[i];let a="";for(let e=0,t=r.length;e';o[i]=r}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}t.MarginViewLineDecorationsOverlay=n})),define(e[912],t([0,1,109,142,775]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewOverlayWidgets=void 0;class o extends n.ViewPart{constructor(e){super(e);const t=this._context.configuration.options.get(117);this._widgets={},this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,
this._domNode=i.createFastDomNode(document.createElement("div")),n.PartFingerprints.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(117);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=i.createFastDomNode(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],
e.parentNode.removeChild(e),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let e=0,i=t.length;ethis._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(o.get(51)),this._zoneManager.setPixelRatio(o.get(115)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(51)&&(this._zoneManager.setLineHeight(t.get(51)),this._render()),e.hasChanged(115)&&(this._zoneManager.setPixelRatio(t.get(115)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),
this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1
;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,s=0,r=0;for(const a of t){const t=a.colorId,l=a.from,c=a.to;t!==o?(e.fillRect(0,s,n,r-s),o=t,e.fillStyle=i[o],s=l,r=c):r>=l?r=Math.max(r,c):(e.fillRect(0,s,n,r-s),s=l,r=c)}e.fillRect(0,s,n,r-s)}}t.OverviewRuler=s})),define(e[914],t([0,1,109,21,142,47]),(function(e,t,i,n,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewZones=void 0;const r=()=>{throw new Error("Invalid change accessor")};class a extends o.ViewPart{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this.domNode=i.createFastDomNode(document.createElement("div")),this.domNode.setClassName("view-zones"),
this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=i.createFastDomNode(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let i=!1;return this._context.model.changeWhitespace(e=>{const n=Object.keys(this._zones);for(let o=0,s=n.length;o{const o={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{e(t)}catch(e){n.onUnexpectedError(e)}}(e,o),o.addZone=r,o.removeZone=r,o.layoutZone=r}),t}_addZone(e,t){const n=this._computeWhitespaceProps(t),o={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,
isVisible:!1,domNode:i.createFastDomNode(t.domNode),marginDomNode:t.marginDomNode?i.createFastDomNode(t.marginDomNode):null};return this._safeCallOnComputedHeight(o.delegate,n.heightInPx),o.domNode.setPosition("absolute"),o.domNode.domNode.style.width="100%",o.domNode.setDisplay("none"),o.domNode.setAttribute("monaco-view-zone",o.whitespaceId),this.domNode.appendChild(o.domNode),o.marginDomNode&&(o.marginDomNode.setPosition("absolute"),o.marginDomNode.domNode.style.width="100%",o.marginDomNode.setDisplay("none"),o.marginDomNode.setAttribute("monaco-view-zone",o.whitespaceId),this.marginDomNode.appendChild(o.marginDomNode)),this._zones[o.whitespaceId]=o,this.setShouldRender(),o.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),
i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){
n.onUnexpectedError(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){n.onUnexpectedError(e)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(let e=0,o=t.length;e0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOugoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}t.ViewModelEventDispatcher=o;class s{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){
this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}t.ViewModelEventsCollector=s,function(e){e[e.ContentSizeChanged=0]="ContentSizeChanged",e[e.FocusChanged=1]="FocusChanged",e[e.ScrollChanged=2]="ScrollChanged",e[e.ViewZonesChanged=3]="ViewZonesChanged",e[e.ReadOnlyEditAttempt=4]="ReadOnlyEditAttempt",e[e.CursorStateChanged=5]="CursorStateChanged"}(t.OutgoingViewModelEventKind||(t.OutgoingViewModelEventKind={}));class r{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new r(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}t.ContentSizeChangedEvent=r;class a{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){
return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new a(this.oldHasFocus,e.hasFocus)}}t.FocusChangedEvent=a;class l{constructor(e,t,i,n,o,s,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(e){return 2!==e.kind?this:new l(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}t.ScrollChangedEvent=l;t.ViewZonesChangedEvent=class{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}};class c{
constructor(e,t,i,n,o,s,r){this.kind=5,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=s,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(86)?o+=t-n.get(51):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new c(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new r.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new r.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(118),n=t.get(36);if(i.isViewportWrapping){const i=t.get(117),o=t.get(56)
;return e>i.contentWidth+n.typicalHalfwidthCharacterWidth&&o.enabled&&"right"===o.side?e+i.verticalScrollbarWidth:e}{const i=t.get(85)*n.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i,o)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new c(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition();let t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}getLineNumberAtVerticalOffset(e){
return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){
return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}t.ViewLayout=h})),define(e[916],t([0,1,18,60]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MoveCaretCommand=void 0;t.MoveCaretCommand=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,o=this._selection.startColumn,s=this._selection.endColumn
;if((!this._isMovingLeft||1!==o)&&(this._isMovingLeft||s!==e.getLineMaxColumn(n)))if(this._isMovingLeft){const r=new i.Range(n,o-1,n,o),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new i.Range(n,s,n,s),a)}else{const r=new i.Range(n,s,n,s+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new i.Range(n,o,n,o),a)}}computeCursorState(e,t){return this._isMovingLeft?new n.Selection(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new n.Selection(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}})),define(e[215],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionCommandArgs=t.filtersAction=t.mayIncludeActionsOfKind=t.CodeActionAutoApply=t.CodeActionKind=void 0;class i{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){
return this.equals(e)||""===this.value||e.value.startsWith(this.value+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}}function n(e,t,i){return!!t.contains(e)&&(!i||!t.contains(i))}t.CodeActionKind=i,i.sep=".",i.None=new i("@@none@@"),i.Empty=new i(""),i.QuickFix=new i("quickfix"),i.Refactor=new i("refactor"),i.Source=new i("source"),i.SourceOrganizeImports=i.Source.append("organizeImports"),i.SourceFixAll=i.Source.append("fixAll"),function(e){e.IfSingle="ifSingle",e.First="first",e.Never="never"}(t.CodeActionAutoApply||(t.CodeActionAutoApply={})),t.mayIncludeActionsOfKind=function(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some(i=>n(t,i,e.include)))&&!(!e.includeSourceActions&&i.Source.contains(t)))},t.filtersAction=function(e,t){const o=t.kind?new i(t.kind):void 0
;return!!(!e.include||o&&e.include.contains(o))&&(!(e.excludes&&o&&e.excludes.some(t=>n(o,t,e.include)))&&(!(!e.includeSourceActions&&o&&i.Source.contains(o))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))};class o{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return e&&"object"==typeof e?new o(o.getKindFromUser(e,t.kind),o.getApplyFromUser(e,t.apply),o.getPreferredUser(e)):new o(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new i(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}}t.CodeActionCommandArgs=o})),define(e[917],t([0,1,6]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPickerModel=void 0;t.ColorPickerModel=class{constructor(e,t,n){this.presentationIndex=n,
this._onColorFlushed=new i.Emitter,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new i.Emitter,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new i.Emitter,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){
for(let e=0;ee.length)return!1;for(let o=0;o=65&&n<=90&&n+32===s||s>=65&&s<=90&&s+32===n))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,s,r){const l=e.startLineNumber,c=e.startColumn,d=e.endLineNumber,h=e.endColumn,u=s.getLineContent(l),g=s.getLineContent(d);let p,m=u.lastIndexOf(t,c-1+t.length),v=g.indexOf(i,h-1-i.length);if(-1!==m&&-1!==v)if(l===d){
u.substring(m+t.length,v).indexOf(i)>=0&&(m=-1,v=-1)}else{const e=u.substring(m+t.length),n=g.substring(0,v);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(m=-1,v=-1)}-1!==m&&-1!==v?(n&&m+t.length0&&32===g.charCodeAt(v-1)&&(i=" "+i,v-=1),p=a._createRemoveBlockCommentOperations(new o.Range(l,m+t.length+1,d,v+1),t,i)):(p=a._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const e of p)r.addTrackedEditOperation(e.range,e.text)}static _createRemoveBlockCommentOperations(e,t,n){let s=[];return o.Range.isEmpty(e)?s.push(i.EditOperation.delete(new o.Range(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(s.push(i.EditOperation.delete(new o.Range(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),s.push(i.EditOperation.delete(new o.Range(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),s}static _createAddBlockCommentOperations(e,t,s,r){let a=[]
;return o.Range.isEmpty(e)?a.push(i.EditOperation.replace(new o.Range(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+s)):(a.push(i.EditOperation.insert(new n.Position(e.startLineNumber,e.startColumn),t+(r?" ":""))),a.push(i.EditOperation.insert(new n.Position(e.endLineNumber,e.endColumn),(r?" ":"")+s))),a}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenizeIfCheap(i);const o=e.getLanguageIdAtPosition(i,n),s=r.LanguageConfigurationRegistry.getComments(o);s&&s.blockCommentStartToken&&s.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new s.Selection(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0
;return new s.Selection(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}t.BlockCommentCommand=a})),define(e[918],t([0,1,24,115,47,18,60,134,541]),(function(e,t,i,n,o,s,r,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LineCommentCommand=t.Type=void 0,function(e){e[e.Toggle=0]="Toggle",e[e.ForceAdd=1]="ForceAdd",e[e.ForceRemove=2]="ForceRemove"}(t.Type||(t.Type={}));class c{constructor(e,t,i,n,o){this._selection=e,this._tabSize=t,this._type=i,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=o}static _gatherPreflightCommentStrings(e,t,i){e.tokenizeIfCheap(t);const n=e.getLanguageIdAtPosition(t,1),o=a.LanguageConfigurationRegistry.getComments(n),s=o?o.lineCommentToken:null;if(!s)return null;let r=[];for(let e=0,n=i-t+1;er?o-1:o}}}t.LineCommentCommand=c})),define(e[919],t([0,1,60,18]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragAndDropCommand=void 0;t.DragAndDropCommand=class{constructor(e,t,i){this.selection=e,
this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){let o=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new n.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),o),
!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new i.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new i.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber0){let e=[];for(let t=0;ti.Range.compareRangesUsingStarts(e.range,t.range));let n=[],o=e[0];for(let t=1;t0){let e=[],t=i.caseOps.length,n=0;for(let s=0,r=o.length;s=t){e.push(o.slice(s));break}switch(i.caseOps[n]){case"U":e.push(o[s].toUpperCase());break;case"u":e.push(o[s].toUpperCase()),n++;break;case"L":e.push(o[s].toLowerCase());break;case"l":e.push(o[s].toLowerCase()),n++;break;default:e.push(o[s])}}o=e.join("")}n+=o}return n}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i=""
;for(;e>0;){if(e=o)break;let s=e.charCodeAt(n);if(36===s){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===s||38===s){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=s&&s<=57){let r=s-48;if(n+1=o)break;let s=e.charCodeAt(n);switch(s){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:
i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(s))}}}return i.finalize()}})),define(e[346],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRegion=t.FoldingRegions=t.MAX_LINE_NUMBER=t.MAX_FOLDING_REGIONS=void 0,t.MAX_FOLDING_REGIONS=65535,t.MAX_LINE_NUMBER=16777215;const i=4278190080;t.FoldingRegions=class{constructor(e,i,n){if(e.length!==i.length||e.length>t.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=i,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],i=(t,i)=>{let n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let n=0,o=this._startIndexes.length;nt.MAX_LINE_NUMBER||s>t.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+t.MAX_LINE_NUMBER);for(;e.length>0&&!i(o,s);)e.pop();let r=e.length>0?e[e.length-1]:-1;e.push(n),this._startIndexes[n]=o+((255&r)<<24),this._endIndexes[n]=s+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&t.MAX_LINE_NUMBER}getEndLineNumber(e){return this._endIndexes[e]&t.MAX_LINE_NUMBER}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){let t=e/32|0,i=e%32;return 0!=(this._collapseStates[t]&1<>>24)+((this._endIndexes[e]&i)>>>16);return n===t.MAX_FOLDING_REGIONS?-1:n}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){
let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;t=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}hidesLine(e){return this.startLineNumbere.regionIndex-t.regionIndex);const t={};this._decorationProvider.changeDecorations(i=>{let n=0,o=-1,s=-1;const r=e=>{for(;ns&&(s=e),n++}};for(let i of e){let e=i.regionIndex,n=this._editorDecorationIds[e];if(n&&!t[n]){t[n]=!0,r(e);let i=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,i),o=Math.max(o,this._regions.getEndLineNumber(e))}}r(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}update(e,t=[]){let i=[],n=-1,o=(o,s)=>{const r=e.getStartLineNumber(o),a=e.getEndLineNumber(o);s&&((e,i)=>{for(let n of t)if(en&&(n=a)},s=0,r=()=>{for(;s=t))break;o(a,i===t),a++}}l=r()}for(;a0)return e}applyMemento(e){if(!Array.isArray(e))return;let t=[];for(let i of e){let e=this.getRegionAtLine(i.startLineNumber);e&&!e.isCollapsed&&t.push(e)}this.toggleCollapseState(t)}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(e,t){let i=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){let e=this._regions.toRegion(n);t&&!t(e,o)||i.push(e),o++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let s=n,r=this._regions.length;s0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let e=n,s=this._regions.length;e1){let s=e.getRegionsInside(i,(e,i)=>e.isCollapsed!==o&&i0)for(let s of n){let n=e.getRegionAtLine(s);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){let s=e.getRegionsInside(n,(e,n)=>e.isCollapsed!==t&&ne.isCollapsed!==t&&ne.isCollapsed!==t&&n<=i);o.push(...n)}e.toggleCollapseState(o)},
t.setCollapseStateUp=function(e,t,i){let n=[];for(let o of i){let i=e.getAllRegionsAtLine(o,e=>e.isCollapsed!==t);i.length>0&&n.push(i[0])}e.toggleCollapseState(n)},t.setCollapseStateAtLevel=function(e,t,i,n){let o=e.getRegionsInside(null,(e,o)=>o===t&&e.isCollapsed!==i&&!n.some(t=>e.containsLine(t)));e.toggleCollapseState(o)},t.setCollapseStateForMatchingLines=function(e,t,i){let n=e.textModel,o=e.regions,s=[];for(let e=o.length-1;e>=0;e--)if(i!==o.isCollapsed(e)){let i=o.getStartLineNumber(e);t.test(n.getLineContent(i))&&s.push(o.toRegion(e))}e.toggleCollapseState(s)},t.setCollapseStateForType=function(e,t,i){let n=e.regions,o=[];for(let e=n.length-1;e>=0;e--)i!==n.isCollapsed(e)&&t===n.getType(e)&&o.push(n.toRegion(e));e.toggleCollapseState(o)}})),define(e[923],t([0,1,6,18,14]),(function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenRangeModel=void 0;function s(e,t){let i=o.findFirstInSorted(e,e=>t=0&&e[i].endLineNumber>=t?e[i]:null}
t.HiddenRangeModel=class{constructor(e){this._updateEventEmitter=new i.Emitter,this._foldingModel=e,this._foldingModelListener=e.onDidChange(e=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let e=!1,t=[],i=0,o=0,s=Number.MAX_VALUE,r=-1,a=this._foldingModel.regions;for(;i({startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}))}applyHiddenRanges(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==s(this._hiddenRanges,e)}adjustSelections(e){let t=!1,i=this._foldingModel.textModel,n=null,o=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=s(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let n=0,s=e.length;n0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}})),define(e[412],t([0,1,21,346]),(function(e,t,i,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeRanges=t.RangesCollector=t.SyntaxRangeProvider=t.ID_SYNTAX_PROVIDER=void 0;const o=5e3,s={};t.ID_SYNTAX_PROVIDER="syntax";t.SyntaxRangeProvider=class{constructor(e,i,n=o){this.editorModel=e,this.providers=i,this.limit=n,this.id=t.ID_SYNTAX_PROVIDER}compute(e){return function(e,t,n){let o=null,r=e.map((e,r)=>Promise.resolve(e.provideFoldingRanges(t,s,n)).then(e=>{if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(o)||(o=[]);let i=t.getLineCount();for(let t of e)t.start>0&&t.end>t.start&&t.end<=i&&o.push({start:t.start,end:t.end,rank:r,kind:t.kind})}},i.onUnexpectedExternalError));return Promise.all(r).then(e=>o)}(this.providers,this.editorModel,e).then(e=>{if(e){return a(e,this.limit)}return null})}dispose(){}};class r{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,o){
if(e>n.MAX_LINE_NUMBER||t>n.MAX_LINE_NUMBER)return;let s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._nestingLevels[s]=o,this._types[s]=i,this._length++,o<30&&(this._nestingLevelCounts[o]=(this._nestingLevelCounts[o]||0)+1)}toIndentRanges(){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;ithis._foldingRangesLimit){t=i;break}e+=n}}let i=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit),s=[];for(let n=0,r=0;n{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i}),n=new r(t),o=void 0,s=[];for(let e of i)if(o){if(e.start>o.start)if(e.end<=o.end)s.push(o),o=e,n.add(e.start,e.end,e.kind&&e.kind.value,s.length);else{if(e.start>o.end){do{o=s.pop()}while(o&&e.start>o.end);o&&s.push(o),o=e}n.add(e.start,e.end,e.kind&&e.kind.value,s.length)}}else o=e,n.add(e.start,e.end,e.kind&&e.kind.value,s.length);return n.toIndentRanges()}t.RangesCollector=r,t.sanitizeRanges=a})),define(e[924],t([0,1,412]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializingRangeProvider=t.ID_INIT_PROVIDER=void 0,t.ID_INIT_PROVIDER="init";t.InitializingRangeProvider=class{constructor(e,i,n,o){if(this.editorModel=e,this.id=t.ID_INIT_PROVIDER,i.length){let t=t=>({range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}});this.decorationIds=e.deltaDecorations([],i.map(t)),
this.timeout=setTimeout(n,o)}}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(e){let t=[];if(this.decorationIds)for(let e of this.decorationIds){let i=this.editorModel.getDecorationRange(e);i&&t.push({start:i.startLineNumber,end:i.endLineNumber,rank:1})}return Promise.resolve(i.sanitizeRanges(t,Number.MAX_VALUE))}}})),define(e[542],t([0,1,115,18]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormattingEdit=void 0;class o{static _handleEolEdits(e,t){let i=void 0,n=[];for(let e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&n.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,s){s&&e.pushUndoStop()
;const r=o._handleEolEdits(e,t);1===r.length&&o._isFullModelReplaceEdit(e,r[0])?e.executeEdits("formatEditsCommand",r.map(e=>i.EditOperation.replace(n.Range.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",r.map(e=>i.EditOperation.replaceMove(n.Range.lift(e.range),e.text))),s&&e.pushUndoStop()}}t.FormattingEdit=o})),define(e[543],t([0,1,2,6,12]),(function(e,t,i,n,o){"use strict";function s(e,t){return!!e[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.ClickLinkGesture=t.ClickLinkOptions=t.ClickLinkKeyboardEvent=t.ClickLinkMouseEvent=void 0;class r{constructor(e,t){this.target=e.target,this.hasTriggerModifier=s(e.event,t.triggerModifier),this.hasSideBySideModifier=s(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}t.ClickLinkMouseEvent=r;class a{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=s(e,t.triggerModifier)}}t.ClickLinkKeyboardEvent=a;class l{
constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function c(e){return"altKey"===e?o.isMacintosh?new l(57,"metaKey",6,"altKey"):new l(5,"ctrlKey",6,"altKey"):o.isMacintosh?new l(6,"altKey",57,"metaKey"):new l(6,"altKey",5,"ctrlKey")}t.ClickLinkOptions=l;class d extends i.Disposable{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.Emitter),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.Emitter),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.Emitter),this.onCancel=this._onCancel.event,this._editor=e,this._opts=c(this._editor.getOption(61)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,
this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(e=>{if(e.hasChanged(61)){const e=c(this._editor.getOption(61));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(e=>this._onEditorMouseMove(new r(e,this._opts)))),this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(new r(e,this._opts)))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(new r(e,this._opts)))),this._register(this._editor.onKeyDown(e=>this._onEditorKeyDown(new a(e,this._opts)))),this._register(this._editor.onKeyUp(e=>this._onEditorKeyUp(new a(e,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(e=>this._onDidChangeCursorSelection(e))),this._register(this._editor.onDidChangeModel(e=>this._resetHandler())),
this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){
e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}t.ClickLinkGesture=d})),define(e[544],t([0,1,15,21]),(function(e,t,i,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.HoverOperation=t.HoverStartMode=void 0,function(e){e[e.IDLE=0]="IDLE",e[e.FIRST_WAIT=1]="FIRST_WAIT",e[e.SECOND_WAIT=2]="SECOND_WAIT",e[e.WAITING_FOR_ASYNC_COMPUTATION=3]="WAITING_FOR_ASYNC_COMPUTATION"}(o||(o={})),function(e){e[e.Delayed=0]="Delayed",e[e.Immediate=1]="Immediate"}(t.HoverStartMode||(t.HoverStartMode={}));t.HoverOperation=class{constructor(e,t,n,o,s){this._computer=e,this._state=0,this._hoverTime=s,this._firstWaitScheduler=new i.RunOnceScheduler(()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new i.RunOnceScheduler(()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new i.RunOnceScheduler(()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,
this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=o}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=i.createCancelablePromise(e=>this._computer.computeAsync(e)),this._asyncComputationPromise.then(e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)},e=>this._onError(e))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){
3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):n.onUnexpectedError(e)}_onProgress(e){this._progressCallback(e)}start(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),
3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}})),define(e[545],t([0,1,102,520]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlyphHoverWidget=t.ContentHoverWidget=void 0;class o extends i.Widget{constructor(e,t,i,o){super(),this._hoverVisibleKey=i,this._keybindingService=o,this.allowEditorOverflow=!0,this._hover=this._register(new n.HoverWidget),this._id=e,this._editor=t,this._isVisible=!1,this._stoleFocus=!1,this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(36)&&this.updateFont()})),this._editor.onDidLayoutChange(e=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,
this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}showAt(e,t,i){this._showAtPosition=e,this._showAtRange=t,this._hoverVisibleKey.set(!0),this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=i,i&&this._hover.containerDomNode.focus()}hide(){this.isVisible&&(setTimeout(()=>{this.isVisible||this._hoverVisibleKey.set(!1)},0),this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())}getPosition(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}dispose(){this._editor.removeContentWidget(this),super.dispose()}updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this.updateFont(),
this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_renderAction(e,t){const i=this._keybindingService.lookupKeybinding(t.commandId),o=i?i.getLabel():null;return n.renderHoverAction(e,t,o)}layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(36);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${i}px`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(.66*this._editor.getLayoutInfo().width,500)}px`}}t.ContentHoverWidget=o;class s extends i.Widget{constructor(e,t){super(),this._id=e,this._editor=t,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(36)&&this.updateFont()})),
this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,this._domNode.classList.toggle("hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(this._showAtLineNumber),n=this._editor.getScrollTop(),o=this._editor.getOption(51),s=i-n-(this._domNode.clientHeight-o)/2;this._domNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._domNode.style.top=`${Math.max(Math.round(s),0)}px`}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){[...Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),...Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))].forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._domNode.textContent="",
this._domNode.appendChild(e),this.updateFont()}}t.GlyphHoverWidget=s})),define(e[925],t([0,1,60]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InPlaceReplaceCommand=void 0;t.InPlaceReplaceCommand=class{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new i.Selection(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new i.Selection(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}})),define(e[546],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateIndent=t.getSpaceCnt=void 0,t.getSpaceCnt=function(e,t){let i=0;for(let n=0;n=s)return null;let r=[];for(let t=n;t<=s;t++)r.push(e.getLineContent(t));let a=r.slice(0);return a.sort(o.getCollator().compare),!0===i&&(a=a.reverse()),{startLineNumber:n,endLineNumber:s,before:r,after:a}}t.SortLinesCommand=o,o._COLLATOR=null})),define(e[547],t([0,1,47,18,194]),(function(e,t,i,n,o){
"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BracketSelectionRangeProvider=void 0;class s{async provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t);const o=new Map;await new Promise(t=>s._bracketsRightYield(t,0,e,n,o)),await new Promise(i=>s._bracketsLeftYield(i,0,e,n,o,t))}return i}static _bracketsRightYield(e,t,i,n,r){const a=new Map,l=Date.now();for(;;){if(t>=s._maxRounds){e();break}if(!n){e();break}let c=i.findNextBracket(n);if(!c){e();break}if(Date.now()-l>s._maxDuration){setTimeout(()=>s._bracketsRightYield(e,t+1,i,n,r));break}const d=c.close[0];if(c.isOpen){let e=a.has(d)?a.get(d):0;a.set(d,e+1)}else{let e=a.has(d)?a.get(d):0;if(e-=1,a.set(d,Math.max(0,e)),e<0){let e=r.get(d);e||(e=new o.LinkedList,r.set(d,e)),e.push(c.range)}}n=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,o,r,a){const l=new Map,c=Date.now();for(;;){if(t>=s._maxRounds&&0===r.size){e();break}if(!o){e();break}let d=i.findPrevBracket(o);if(!d){e();break}
if(Date.now()-c>s._maxDuration){setTimeout(()=>s._bracketsLeftYield(e,t+1,i,o,r,a));break}const h=d.close[0];if(d.isOpen){let e=l.has(h)?l.get(h):0;if(e-=1,l.set(h,Math.max(0,e)),e<0){let e=r.get(h);if(e){let t=e.shift();0===e.size&&r.delete(h);const o=n.Range.fromPositions(d.range.getEndPosition(),t.getStartPosition()),l=n.Range.fromPositions(d.range.getStartPosition(),t.getEndPosition());a.push({range:o}),a.push({range:l}),s._addBracketLeading(i,l,a)}}}else{let e=l.has(h)?l.get(h):0;l.set(h,e+1)}o=d.range.getStartPosition()}}static _addBracketLeading(e,t,o){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(s);0!==r&&r!==t.startColumn&&(o.push({range:n.Range.fromPositions(new i.Position(s,r),t.getEndPosition())}),o.push({range:n.Range.fromPositions(new i.Position(s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(o.push({
range:n.Range.fromPositions(new i.Position(a,s),t.getEndPosition())}),o.push({range:n.Range.fromPositions(new i.Position(a,1),t.getEndPosition())}))}}}t.BracketSelectionRangeProvider=s,s._maxDuration=30,s._maxRounds=2})),define(e[928],t([0,1,18,24]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordSelectionRangeProvider=void 0;t.WordSelectionRangeProvider=class{provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,o){const s=t.getWordAtPosition(o);if(!s)return;let{word:r,startColumn:a}=s,l=o.column-a,c=l,d=l,h=0;for(;c>=0;c--){let e=r.charCodeAt(c);if(c!==l&&(95===e||45===e))break;if(n.isLowerAsciiLetter(e)&&n.isUpperAsciiLetter(h))break;h=e}for(c+=1;d0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new i.Range(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}}})),define(e[236],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnippetParser=t.TextmateSnippet=t.Variable=t.FormatString=t.Transform=t.Choice=t.Placeholder=t.TransformableMarker=t.Text=t.Marker=t.Scanner=t.TokenType=void 0,function(e){e[e.Dollar=0]="Dollar",e[e.Colon=1]="Colon",e[e.Comma=2]="Comma",e[e.CurlyOpen=3]="CurlyOpen",e[e.CurlyClose=4]="CurlyClose",e[e.Backslash=5]="Backslash",e[e.Forwardslash=6]="Forwardslash",e[e.Pipe=7]="Pipe",e[e.Int=8]="Int",e[e.VariableName=9]="VariableName",e[e.Format=10]="Format",
e[e.Plus=11]="Plus",e[e.Dash=12]="Dash",e[e.QuestionMark=13]="QuestionMark",e[e.EOF=14]="EOF"}(t.TokenType||(t.TokenType={}));class i{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e,t=this.pos,n=0,o=this.value.charCodeAt(t);if("number"==typeof(e=i._table[o]))return this.pos+=1,{type:e,pos:t,len:1};if(i.isDigitCharacter(o)){e=8;do{n+=1,o=this.value.charCodeAt(t+n)}while(i.isDigitCharacter(o));return this.pos+=n,{type:e,pos:t,len:n}}if(i.isVariableCharacter(o)){e=9;do{o=this.value.charCodeAt(t+ ++n)}while(i.isVariableCharacter(o)||i.isDigitCharacter(o));return this.pos+=n,{type:e,pos:t,len:n}}e=10;do{n+=1,o=this.value.charCodeAt(t+n)}while(!isNaN(o)&&void 0===i._table[o]&&!i.isDigitCharacter(o)&&!i.isVariableCharacter(o));return this.pos+=n,{
type:e,pos:t,len:n}}}t.Scanner=i,i._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class n{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof u)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}t.Marker=n;class o extends n{constructor(e){super(),this.value=e}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}toString(){return this.value}toTextmateString(){return o.escape(this.value)}len(){return this.value.length}clone(){return new o(this.value)}}t.Text=o;class s extends n{}t.TransformableMarker=s
;class r extends s{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.indext.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof a?this._children[0]:void 0}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),0!==this.children.length||this.transform?0===this.children.length?`\${${this.index}${e}}`:this.choice?`\${${this.index}|${this.choice.toTextmateString()}|${e}}`:`\${${this.index}:${this.children.map(e=>e.toTextmateString()).join("")}${e}}`:`$${this.index}`}clone(){let e=new r(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}t.Placeholder=r;class a extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}
toTextmateString(){return this.options.map(e=>e.value.replace(/\||,/g,"\\$&")).join(",")}len(){return this.options[0].len()}clone(){let e=new a;return this.options.forEach(e.appendChild,e),e}}t.Choice=a;class l extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some(e=>e instanceof c&&Boolean(e.elseValue))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof c){let n=e[i.index]||"";t+=n=i.resolve(n)}else t+=i.toString();return t}toString(){return""}toTextmateString(){return`/${this.regexp.source}/${this.children.map(e=>e.toTextmateString())}/${(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")}`}clone(){let e=new l;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(e=>e.clone()),e}}t.Transform=l
;class c extends n{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z]+/gi);return t?t.map((function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})).join(""):e}toTextmateString(){let e="${";return e+=this.index,this.shorthandName?e+=`:/${this.shorthandName}`:this.ifValue&&this.elseValue?e+=`:?${this.ifValue}:${this.elseValue}`:this.ifValue?e+=`:+${this.ifValue}`:this.elseValue&&(e+=`:-${this.elseValue}`),e+="}"}clone(){return new c(this.index,this.shorthandName,this.ifValue,this.elseValue)}}t.FormatString=c;class d extends s{
constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}toTextmateString(){let e="";return this.transform&&(e=this.transform.toTextmateString()),0===this.children.length?`\${${this.name}${e}}`:`\${${this.name}:${this.children.map(e=>e.toTextmateString()).join("")}${e}}`}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}function h(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}t.Variable=d;class u extends n{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk((function(i){return i instanceof r&&(t.push(i),e=!e||e.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}
fullLen(e){let t=0;return h([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:i}=e;for(;i;)i instanceof r&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}toTextmateString(){return this.children.reduce((e,t)=>e+t.toTextmateString(),"")}clone(){let e=new u;return this._children=this.children.map(e=>e.clone()),e}walk(e){h(this.children,e)}}t.TextmateSnippet=u;t.SnippetParser=class{constructor(){this._scanner=new i,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}text(e){return this.parse(e).toString()}parse(e,t,i){this._scanner.text(e),this._token=this._scanner.next();const n=new u;for(;this._parse(n););const o=new Map,s=[];let a=0;n.walk(e=>(e instanceof r&&(a+=1,
e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&e.children.length>0?o.set(e.index,e.children):s.push(e)),!0));for(const e of s){const t=o.get(e.index);if(t){const i=new r(e.index);i.transform=e.transform;for(const e of t)i.appendChild(e.clone());n.replace(e,[i])}}return i||(i=a>0&&t),!o.has(0)&&i&&n.appendChild(new r(0)),n}_accept(e,t){if(void 0===e||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){
return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new r(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new r(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{
const t=new a;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(!(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0)))return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){
let t=new l,i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))i+=e=this._accept(6,!0)||e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(e){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);let n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new c(Number(n))),!0;if(this._accept(4))return e.appendChild(new c(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new c(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){let t=this._until(4)
;if(t)return e.appendChild(new c(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let i=this._until(4);if(i)return e.appendChild(new c(Number(n),void 0,t,i)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}})),define(e[929],t([0,1,87,24]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompletionModel=t.LineContext=void 0;var o;t.LineContext=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}},function(e){e[e.Nothing=0]="Nothing",e[e.All=1]="All",e[e.Incr=2]="Incr"}(o||(o={}));class s{constructor(e,t,i,n,o,r,a){this.clipboardText=a,this._snippetCompareFn=s._compareCompletionItems,this._items=e,
this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=i,"top"===r?this._snippetCompareFn=s._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=s._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta2e3?i.fuzzyScore:i.fuzzyScoreGracefulAggressive;for(let c=0;c=u)d.score=i.FuzzyScore.Default;else if("string"==typeof d.completion.filterText){let r=l(o,s,e,d.completion.filterText,d.filterTextLow,0,!1);if(!r)continue;0===n.compareIgnoreCase(d.completion.filterText,t)?d.score=r:(d.score=i.anyScore(o,s,e,t,d.labelLow,0),d.score[0]=r[0])}else{let i=l(o,s,e,t,d.labelLow,0,!1);if(!i)continue;d.score=i}}switch(d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),this._stats.suggestionCount++,d.completion.kind){case 27:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return s._compareCompletionItems(e,t)}
static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return s._compareCompletionItems(e,t)}}t.CompletionModel=s})),define(e[930],t([0,1,14,2,258]),(function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommitCharacterController=void 0;t.CommitCharacterController=class{constructor(e,t,i){this._disposables=new n.DisposableStore,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(n=>{if(this._active&&!t.isFrozen()){const t=n.charCodeAt(n.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&i(this._active.item)}}))}_onItem(e){if(!e||!i.isNonEmptyArray(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new o.CharacterSet
;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}})),define(e[931],t([0,1,2]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OvertypingCapturer=void 0;class n{constructor(e,t){this._disposables=new i.DisposableStore,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty)return;if(!e.hasModel())return;const t=e.getSelections(),i=t.length;let o=!1;for(let e=0;en._maxSelectionLength)return;this._lastOvertyped[e]={value:s.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(e=>{this._empty||(this._empty=!0)}))}getLastOvertypedInfo(e){
if(!this._empty&&e>=0&&e=0?r[d]:r[Math.max(0,~d-1)],u=l.length;for(const e of l){if(!n.Range.containsRange(e.range,h))break;u-=1}return u}}}}t.WordDistance=s,s.None=new class extends s{distance(){return 0}}})),define(e[933],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/actionbar/actionViewItems",t)})),define(e[934],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/dialog/dialog",t)})),define(e[935],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/findinput/findInput",t)})),define(e[936],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/findinput/findInputCheckboxes",t)})),define(e[937],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/findinput/replaceInput",t)})),define(e[938],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/inputbox/inputBox",t)})),define(e[939],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/keybindingLabel/keybindingLabel",t)})),
define(e[940],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/menu/menu",t)})),define(e[941],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/menu/menubar",t)})),define(e[942],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/selectBox/selectBoxCustom",t)})),define(e[943],t([0,1,2,6,79,74,7,14,175,99,12,256,942,759]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectBoxList=void 0;const g=r.$,p="selectOption.entry.template";class m{get templateId(){return p}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=r.append(e,g(".option-text")),t.decoratorRight=r.append(e,g(".option-decorator-right")),t}renderElement(e,t,i){const n=i,o=e.text,s=e.decoratorRight,r=e.isDisabled;n.text.textContent=o,n.decoratorRight.innerText=s||"",r?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){e.disposables=i.dispose(e.disposables)}}
class v extends i.Disposable{constructor(e,t,i,o,s){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.selectBoxOptions=s||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=v.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),this._onDidSelect=new n.Emitter,this._register(this._onDidSelect),this.styles=o,this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t)}getHeight(){return 18}getTemplateId(){return p}constructSelectDropDown(e){this.contextViewProvider=e,
this.selectDropDownContainer=r.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=r.append(this.selectDropDownContainer,g(".select-box-details-pane"));let t=r.append(this.selectDropDownContainer,g(".select-box-dropdown-container-width-control")),i=r.append(t,g(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",r.append(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=r.createStyleSheet(this.selectDropDownContainer)}registerListeners(){this._register(r.addStandardDisposableListener(this.selectElement,"change",e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&(this.selectElement.title=this.options[this.selected].text)})),
this._register(r.addDisposableListener(this.selectElement,r.EventType.CLICK,e=>{r.EventHelper.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(r.addDisposableListener(this.selectElement,r.EventType.MOUSE_DOWN,e=>{r.EventHelper.stop(e)})),this._register(r.addDisposableListener(this.selectElement,r.EventType.KEY_DOWN,e=>{const t=new s.StandardKeyboardEvent(e);let i=!1;d.isMacintosh?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),r.EventHelper.stop(e,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){a.equals(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this.options.forEach((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(this._hasDetails=!0)})),void 0!==t&&(this.select(t),
this._currentSelection=this.selected)}setOptionsList(){this.selectList&&this.selectList.splice(0,this.selectList.length,this.options)}select(e){e>=0&ðis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&(this.selectElement.title=this.options[this.selected].text)}setAriaLabel(e){this.selectBoxOptions.ariaLabel=e,this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel)}focus(){this.selectElement&&this.selectElement.focus()}blur(){this.selectElement&&this.selectElement.blur()}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.applyStyles()}style(e){const t=[];this.styles=e,
this.styles.listFocusBackground&&t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused:not(:hover) { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row .option-decorator-right { color: ${this.styles.decoratorRightForeground} !important; }`),this.styles.selectBackground&&this.styles.selectBorder&&!this.styles.selectBorder.equals(this.styles.selectBackground)?(t.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),
t.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),t.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(t.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),t.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&(t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:hover { color: ${this.styles.listHoverForeground} !important; }`),
t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: ${this.styles.listActiveSelectionForeground} !important; }`)),this.styles.listHoverBackground&&(t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: ${this.styles.selectBackground} !important; }`)),this.styles.listFocusOutline&&t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),
this.styles.listHoverOutline&&(t.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:hover:not(.focused) { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }")),this.styleElement.textContent=t.join("\n"),this.applyStyles()}applyStyles(){if(this.selectElement){const e=this.styles.selectBackground?this.styles.selectBackground.toString():"",t=this.styles.selectForeground?this.styles.selectForeground.toString():"",i=this.styles.selectBorder?this.styles.selectBorder.toString():"";this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}this.selectList&&this.styleList()}styleList(){if(this.selectList){const e=this.styles.selectBackground?this.styles.selectBackground.toString():""
;this.selectList.style({});const t=this.styles.selectListBackground?this.styles.selectListBackground.toString():e;this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;const i=this.styles.focusBorder?this.styles.focusBorder.toString():"";this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px"}}createOption(e,t,i){let n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition
},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(e){}}}}
measureMaxDetailsHeight(){let e=0;return this.options.forEach((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)}),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=r.getDomNodePagePosition(this.selectElement),i=getComputedStyle(this.selectElement),n=parseFloat(i.getPropertyValue("--dropdown-padding-top"))+parseFloat(i.getPropertyValue("--dropdown-padding-bottom")),o=window.innerHeight-t.top-t.height-(this.selectBoxOptions.minBottomMargin||0),s=t.top-v.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,a=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),c=Math.max(l,Math.round(a)).toString()+"px";this.selectDropDownContainer.style.width=c,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight
;const h=this._hasDetails?this.measureMaxDetailsHeight():0,u=d+n+h,g=Math.floor((o-n-h)/this.getHeight()),p=Math.floor((s-n-h)/this.getHeight());if(e)return!(t.top+t.height>window.innerHeight-22||t.topg&&this.options.length>g?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),
this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(t.top+t.height>window.innerHeight-22||t.topo&&(d=g*this.getHeight())}else u>s&&(d=p*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+n+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+n+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=c,
this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach((e,t)=>{const o=e.text.length+(e.decoratorRight?e.decoratorRight.length:0);o>n&&(i=t,n=o)}),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=r.getTotalWidth(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=r.append(e,g(".select-box-dropdown-list-container")),this.listRenderer=new m,this.selectList=new l.List("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>u.localize(0,null),
getRole:()=>"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=n.Event.chain(c.domEvent(this.selectDropDownListContainer,"keydown")).filter(()=>this.selectList.length>0).map(e=>new s.StandardKeyboardEvent(e));this._register(t.filter(e=>3===e.keyCode).on(e=>this.onEnter(e),this)),this._register(t.filter(e=>9===e.keyCode).on(e=>this.onEscape(e),this)),this._register(t.filter(e=>16===e.keyCode).on(this.onUpArrow,this)),this._register(t.filter(e=>18===e.keyCode).on(this.onDownArrow,this)),this._register(t.filter(e=>12===e.keyCode).on(this.onPageDown,this)),this._register(t.filter(e=>11===e.keyCode).on(this.onPageUp,this)),this._register(t.filter(e=>14===e.keyCode).on(this.onHome,this)),this._register(t.filter(e=>13===e.keyCode).on(this.onEnd,this)),this._register(t.filter(e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=80&&e.keyCode<=108).on(this.onCharacter,this)),
this._register(n.Event.chain(c.domEvent(this.selectList.getHTMLElement(),"mouseup")).filter(()=>this.selectList.length>0).on(e=>this.onMouseUp(e),this)),this._register(this.selectList.onMouseOver(e=>void 0!==e.index&&this.selectList.setFocus([e.index]))),this._register(this.selectList.onDidChangeFocus(e=>this.onListFocus(e))),this._register(r.addDisposableListener(this.selectDropDownContainer,r.EventType.FOCUS_OUT,e=>{this._isVisible&&!r.isAncestor(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onMouseUp(e){r.EventHelper.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n{for(let t=0;tthis.selected+2)this.selected+=2;else{if(e)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(){if(this.selected>0){this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onPageUp(e){r.EventHelper.stop(e),this.selectList.focusPreviousPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,
this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onHome(e){r.EventHelper.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){r.EventHelper.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=o.KeyCodeUtils.toString(e.keyCode);let i=-1;for(let n=0;n{this.element&&this.handleActionChangeEvent(e)}))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new r.ActionRunner)),
this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(l.Gesture.addTarget(e));const n=this.options&&this.options.draggable;n&&(e.draggable=!0,d.isFirefox&&this._register(h.addDisposableListener(e,h.EventType.DRAG_START,e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(c.DataTransfers.TEXT,this._action.label)}))),this._register(h.addDisposableListener(t,l.EventType.Tap,e=>this.onClick(e))),this._register(h.addDisposableListener(t,h.EventType.MOUSE_DOWN,e=>{n||h.EventHelper.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")})),i.isMacintosh&&this._register(h.addDisposableListener(t,h.EventType.CONTEXT_MENU,e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)})),this._register(h.addDisposableListener(t,h.EventType.CLICK,e=>{h.EventHelper.stop(e,!0),
this.options&&this.options.isMenu||i.setImmediate(()=>this.onClick(e))})),this._register(h.addDisposableListener(t,h.EventType.DBLCLICK,e=>{h.EventHelper.stop(e,!0)})),[h.EventType.MOUSE_UP,h.EventType.MOUSE_OUT].forEach(e=>{this._register(h.addDisposableListener(t,e,e=>{h.EventHelper.stop(e),t.classList.remove("active")}))})}onClick(e){var t;h.EventHelper.stop(e,!0);const i=a.isUndefinedOrNull(this._context)?(null===(t=this.options)||void 0===t?void 0:t.useEventAsContext)?e:void 0:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.classList.remove("focused"))}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}t.BaseActionViewItem=u;t.ActionViewItem=class extends u{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,
this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=h.append(this.element,h.$("a.action-label"))),this.label&&(this._action.id===r.Separator.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(h.append(this.element,h.$("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){super.focus(),this.label&&this.label.focus()}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=n.localize(0,null,e,this.options.keybinding))),
e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled"),this.label.tabIndex=0),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled"),h.removeTabIndexAndUpdateFocus(this.label)),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}};t.SelectActionViewItem=class extends u{constructor(e,t,i,n,o,r){super(e,t),
this.selectBox=new s.SelectBox(i,n,o,void 0,r),this._register(this.selectBox),this.registerListeners()}setOptions(e,t){this.selectBox.setOptions(e,t)}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect(e=>{this.actionRunner.run(this._action,this.getActionContext(e.selected,e.index))}))}getActionContext(e,t){return e}focus(){this.selectBox&&this.selectBox.focus()}blur(){this.selectBox&&this.selectBox.blur()}render(e){this.selectBox.render(e)}}})),define(e[78],t([0,1,2,30,7,13,74,6,100,513]),(function(e,t,i,n,o,s,r,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareActions=t.ActionBar=t.ActionsOrientation=void 0,function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.HORIZONTAL_REVERSE=1]="HORIZONTAL_REVERSE",e[e.VERTICAL=2]="VERTICAL",e[e.VERTICAL_REVERSE=3]="VERTICAL_REVERSE"}(t.ActionsOrientation||(t.ActionsOrientation={}));class c extends i.Disposable{constructor(e,t={}){var i,s,l;let c,d;switch(super(),
this._onDidBlur=this._register(new a.Emitter),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Emitter({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Emitter),this.onDidRun=this._onDidRun.event,this._onDidBeforeRun=this._register(new a.Emitter),this.onDidBeforeRun=this._onDidBeforeRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(s=this.options.orientation)&&void 0!==s?s:0,this._triggerKeys=null!==(l=this.options.triggerKeys)&&void 0!==l?l:{keys:[3,10],keyDown:!1},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new n.ActionRunner,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onDidBeforeRun(e=>this._onDidBeforeRun.fire(e))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,
this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:c=this.options.ignoreOrientationForPreviousAndNextKey?[15,16]:[15],d=this.options.ignoreOrientationForPreviousAndNextKey?[17,18]:[17];break;case 1:c=this.options.ignoreOrientationForPreviousAndNextKey?[17,18]:[17],d=this.options.ignoreOrientationForPreviousAndNextKey?[15,16]:[15],this.domNode.className+=" reverse";break;case 2:c=this.options.ignoreOrientationForPreviousAndNextKey?[15,16]:[16],d=this.options.ignoreOrientationForPreviousAndNextKey?[17,18]:[18],this.domNode.className+=" vertical";break;case 3:c=this.options.ignoreOrientationForPreviousAndNextKey?[17,18]:[18],d=this.options.ignoreOrientationForPreviousAndNextKey?[15,16]:[16],this.domNode.className+=" vertical reverse"}this._register(o.addDisposableListener(this.domNode,o.EventType.KEY_DOWN,e=>{const t=new r.StandardKeyboardEvent(e);let i=!0
;c&&(t.equals(c[0])||t.equals(c[1]))?i=this.focusPrevious():d&&(t.equals(d[0])||t.equals(d[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown&&this.doTrigger(t):i=!1,i&&(t.preventDefault(),t.stopPropagation())})),this._register(o.addDisposableListener(this.domNode,o.EventType.KEY_UP,e=>{const t=new r.StandardKeyboardEvent(e);this.isTriggerKeyEvent(t)?(this._triggerKeys.keyDown||this.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(o.trackFocus(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{o.getActiveElement()!==this.domNode&&o.isAncestor(o.getActiveElement(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",
this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}setAriaLabel(e){e?this.actionsList.setAttribute("aria-label",e):this.actionsList.removeAttribute("aria-label")}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;et.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}hasAction(e){return this._actionIds.includes(e.id)}push(e,t={}){const i=Array.isArray(e)?e:[e];let n=s.isNumber(t.index)?t.index:null;i.forEach(e=>{
const i=document.createElement("li");let s;i.className="action-item",i.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(o.addDisposableListener(i,o.EventType.CONTEXT_MENU,e=>{o.EventHelper.stop(e,!0)})),this.options.actionViewItemProvider&&(s=this.options.actionViewItemProvider(e)),s||(s=new l.ActionViewItem(this.context,e,t)),s.actionRunner=this._actionRunner,s.setActionContext(this.context),s.render(i),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(s),this._actionIds.push(e.id)):(this.actionsList.insertBefore(i,this.actionsList.children[n]),this.viewItems.splice(n,0,s),this._actionIds.splice(n,0,e.id),n++)}),this.focusedItem&&this.focus(this.focusedItem)}getWidth(e){if(e>=0&&e=0&&e=0&&e=this.viewItems.length)return this.focusedItem=e,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());return this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0),this.updateFocus(),!0}
focusPrevious(){void 0===this.focusedItem&&(this.focusedItem=0);const e=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=e,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());return this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0),!0}updateFocus(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let i=0;i=0;i--){if(!(e[i].id===n.Separator.ID))break;e.splice(i,1)}let i=!1;for(let t=e.length-1;t>=0;t--){const o=e[t].id===n.Separator.ID;o&&!i?e.splice(t,1):o?o&&(i=!1):i=!0}return e}})),define(e[216],t([0,1,7,102,55,6,2,44,100,741]),(function(e,t,i,n,o,s,r,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleCheckbox=t.Checkbox=t.CheckboxActionViewItem=void 0;const c={inputActiveOptionBorder:o.Color.fromHex("#007ACC00"),inputActiveOptionForeground:o.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:o.Color.fromHex("#0E639C50")};class d extends l.BaseActionViewItem{constructor(){super(...arguments),this.disposables=new r.DisposableStore}render(e){this.element=e,
this.disposables.clear(),this.checkbox=new h({actionClassName:this._action.class,isChecked:this._action.checked,title:this._action.label}),this.disposables.add(this.checkbox),this.disposables.add(this.checkbox.onChange(()=>this._action.checked=!!this.checkbox&&this.checkbox.checked,this)),this.element.appendChild(this.checkbox.domNode)}updateEnabled(){this.checkbox&&(this.isEnabled()?this.checkbox.enable():this.checkbox.disable())}updateChecked(){this.checkbox&&(this.checkbox.checked=this._action.checked)}dispose(){this.disposables.dispose(),super.dispose()}}t.CheckboxActionViewItem=d;class h extends n.Widget{constructor(e){super(),this._onChange=this._register(new s.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new s.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},c),e),this._checked=this._opts.isChecked;const t=["monaco-custom-checkbox"];this._opts.icon?t.push(this._opts.icon.classNames):t.push("codicon"),
this._opts.actionClassName&&t.push(this._opts.actionClassName),t.push(this._checked?"checked":"unchecked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.className=t.join(" "),this.domNode.tabIndex=0,this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),void e.preventDefault();this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),
this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))}disable(){
i.removeTabIndexAndUpdateFocus(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))}}t.Checkbox=h;class u extends n.Widget{constructor(e,t){super(),this.title=e,this.isChecked=t,this.checkbox=new h({title:this.title,isChecked:this.isChecked,icon:a.Codicon.check,actionClassName:"monaco-simple-checkbox"}),this.domNode=this.checkbox.domNode,this.styles={},this.checkbox.onChange(()=>{this.applyStyles()})}get checked(){return this.checkbox.checked}set checked(e){this.checkbox.checked=e,this.applyStyles()}style(e){this.styles=e,this.applyStyles()}applyStyles(){this.domNode.style.color=this.styles.checkboxForeground?this.styles.checkboxForeground.toString():"",this.domNode.style.backgroundColor=this.styles.checkboxBackground?this.styles.checkboxBackground.toString():"",this.domNode.style.borderColor=this.styles.checkboxBorder?this.styles.checkboxBorder.toString():""}}t.SimpleCheckbox=u})),define(e[548],t([0,1,934,2,7,99,74,174,78,30,110,12,216,44,747]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g){
"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=void 0;const p=g.registerIcon("dialog-error",g.Codicon.error),m=g.registerIcon("dialog-warning",g.Codicon.warning),v=g.registerIcon("dialog-info",g.Codicon.info),f=g.registerIcon("dialog-close",g.Codicon.close);class S extends n.Disposable{constructor(e,t,n,s){super(),this.container=e,this.message=t,this.options=s,this.checkboxHasFocus=!1,this.modal=this.container.appendChild(o.$(`.monaco-dialog-modal-block${"pending"===s.type?".dimmed":""}`)),this.shadowElement=this.modal.appendChild(o.$(".dialog-shadow")),this.element=this.shadowElement.appendChild(o.$(".monaco-dialog-box")),this.element.setAttribute("role","dialog"),o.hide(this.element),this.buttons=n.length?n:[i.localize(0,null)];const r=this.element.appendChild(o.$(".dialog-buttons-row"));this.buttonsContainer=r.appendChild(o.$(".dialog-buttons"));const a=this.element.appendChild(o.$(".dialog-message-row"));this.iconElement=a.appendChild(o.$(".dialog-icon"))
;const l=a.appendChild(o.$(".dialog-message-container"));if(this.options.detail){l.appendChild(o.$(".dialog-message")).appendChild(o.$(".dialog-message-text")).innerText=this.message}if(this.messageDetailElement=l.appendChild(o.$(".dialog-message-detail")),this.messageDetailElement.innerText=this.options.detail?this.options.detail:t,this.options.checkboxLabel){const e=l.appendChild(o.$(".dialog-checkbox-row")),t=this.checkbox=this._register(new u.SimpleCheckbox(this.options.checkboxLabel,!!this.options.checkboxChecked));e.appendChild(t.domNode);const i=e.appendChild(o.$(".dialog-checkbox-message"));i.innerText=this.options.checkboxLabel,this._register(o.addDisposableListener(i,o.EventType.CLICK,()=>t.checked=!t.checked))}const c=this.element.appendChild(o.$(".dialog-toolbar-row"));this.toolbarContainer=c.appendChild(o.$(".dialog-toolbar"))}getAriaLabel(){let e=i.localize(1,null);switch(this.options.type){case"error":i.localize(2,null);break;case"warning":i.localize(3,null);break;case"pending":
i.localize(4,null)}return`${e}: ${this.message} ${this.options.detail||""}`}updateMessage(e){this.messageDetailElement&&(this.messageDetailElement.innerText=e)}async show(){return this.focusToReturn=document.activeElement,new Promise(e=>{if(!(this.element&&this.buttonsContainer&&this.iconElement&&this.toolbarContainer))return void e({button:0});o.clearNode(this.buttonsContainer);let t=0;const n=this.buttonGroup=new a.ButtonGroup(this.buttonsContainer,this.buttons.length,{title:!0}),h=this.rearrangeButtons(this.buttons,this.options.cancelId);switch(h.forEach((e,i)=>{0===e.index&&(t=i)}),n.buttons.forEach((t,i)=>{t.label=d.mnemonicButtonLabel(h[i].label,!0),this._register(t.onDidClick(t=>{o.EventHelper.stop(t),e({button:h[i].index,checkboxChecked:this.checkbox?this.checkbox.checked:void 0})}))}),this._register(s.domEvent(window,"keydown",!0)(e=>{const i=new r.StandardKeyboardEvent(e);if(i.equals(3)||i.equals(10))return;let s=!1
;i.equals(1026)||i.equals(15)?(this.checkboxHasFocus||0!==t?(t=(this.checkboxHasFocus?0:t)+n.buttons.length-1,t%=n.buttons.length,n.buttons[t].focus(),this.checkboxHasFocus=!1):(this.checkbox&&this.checkbox.domNode.focus(),this.checkboxHasFocus=!0),s=!0):(i.equals(2)||i.equals(17))&&(this.checkboxHasFocus||t!==n.buttons.length-1?(t=this.checkboxHasFocus?0:t+1,t%=n.buttons.length,n.buttons[t].focus(),this.checkboxHasFocus=!1):(this.checkbox&&this.checkbox.domNode.focus(),this.checkboxHasFocus=!0),s=!0),s?o.EventHelper.stop(e,!0):this.options.keyEventProcessor&&this.options.keyEventProcessor(i)})),this._register(s.domEvent(window,"keyup",!0)(t=>{o.EventHelper.stop(t,!0),new r.StandardKeyboardEvent(t).equals(9)&&e({button:this.options.cancelId||0,checkboxChecked:this.checkbox?this.checkbox.checked:void 0})})),this._register(s.domEvent(this.element,"focusout",!1)(e=>{e.relatedTarget&&this.element&&(o.isAncestor(e.relatedTarget,this.element)||(this.focusToReturn=e.relatedTarget,e.target&&(e.target.focus(),
o.EventHelper.stop(e,!0))))})),this.iconElement.classList.remove(...p.classNamesArray,...m.classNamesArray,...v.classNamesArray,...g.Codicon.loading.classNamesArray),this.options.type){case"error":this.iconElement.classList.add(...p.classNamesArray);break;case"warning":this.iconElement.classList.add(...m.classNamesArray);break;case"pending":this.iconElement.classList.add(...g.Codicon.loading.classNamesArray,"codicon-animation-spin");break;case"none":case"info":case"question":default:this.iconElement.classList.add(...v.classNamesArray)}const u=new l.ActionBar(this.toolbarContainer,{}),S=new c.Action("dialog.close",i.localize(5,null),f.classNames,!0,()=>(e({button:this.options.cancelId||0,checkboxChecked:this.checkbox?this.checkbox.checked:void 0}),Promise.resolve()));u.push(S,{icon:!0,label:!1}),this.applyStyles(),this.element.setAttribute("aria-label",this.getAriaLabel()),o.show(this.element),n.buttons[t].focus()})}applyStyles(){var e,t;if(this.styles){
const i=this.styles,n=i.dialogForeground,o=i.dialogBackground,s=i.dialogShadow?`0 0px 8px ${i.dialogShadow}`:"",r=i.dialogBorder?`1px solid ${i.dialogBorder}`:"";if(this.shadowElement&&(this.shadowElement.style.boxShadow=s),this.element){if(this.element.style.color=null!==(e=null==n?void 0:n.toString())&&void 0!==e?e:"",this.element.style.backgroundColor=null!==(t=null==o?void 0:o.toString())&&void 0!==t?t:"",this.element.style.border=r,this.buttonGroup&&this.buttonGroup.buttons.forEach(e=>e.style(i)),this.checkbox&&this.checkbox.style(i),this.messageDetailElement&&n&&o){const e=n.transparent(.9);this.messageDetailElement.style.color=e.makeOpaque(o).toString()}if(this.iconElement){let e;switch(this.options.type){case"error":e=i.errorIconForeground;break;case"warning":e=i.warningIconForeground;break;default:e=i.infoIconForeground}e&&(this.iconElement.style.color=e.toString())}}}}style(e){this.styles=e,this.applyStyles()}dispose(){super.dispose(),this.modal&&(this.modal.remove(),this.modal=void 0),
this.focusToReturn&&o.isAncestor(this.focusToReturn,document.body)&&(this.focusToReturn.focus(),this.focusToReturn=void 0)}rearrangeButtons(e,t){const i=[];if(e.forEach((e,t)=>{i.push({label:e,index:t})}),(h.isMacintosh||h.isLinux)&&void 0!==t){const e=i.splice(t,1)[0];i.reverse(),i.splice(i.length-1,0,e)}return i}}t.Dialog=S})),define(e[302],t([0,1,7,6,100,516,515]),(function(e,t,i,n,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenuActionViewItem=void 0;class r extends o.BaseActionViewItem{constructor(e,t,i,o={}){super(null,e,o),this.options=o,this._onDidChangeVisibility=this._register(new n.Emitter),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){const t=Array.isArray(this.menuActionsOrProvider),n={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=i.append(e,i.$("a.action-label"));let t=[]
;return"string"==typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter(e=>!!e):this.options.classNames&&(t=this.options.classNames),t.find(e=>"icon"===e)||t.push("codicon"),this.element.classList.add(...t),this.element.tabIndex=0,this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new s.DropdownMenu(e,n)),this._register(this.dropdownMenu.onDidChangeVisibility(e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},
this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){this.dropdownMenu&&this.dropdownMenu.show()}}t.DropdownMenuActionViewItem=r})),define(e[549],t([0,1,216,936,44]),(function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegexCheckbox=t.WholeWordsCheckbox=t.CaseSensitiveCheckbox=void 0;const s=n.localize(0,null),r=n.localize(1,null),a=n.localize(2,null);class l extends i.Checkbox{constructor(e){super({icon:o.Codicon.caseSensitive,title:s+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}
t.CaseSensitiveCheckbox=l;class c extends i.Checkbox{constructor(e){super({icon:o.Codicon.wholeWord,title:r+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}t.WholeWordsCheckbox=c;class d extends i.Checkbox{constructor(e){super({icon:o.Codicon.regex,title:a+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}t.RegexCheckbox=d})),define(e[154],t([0,1,938,7,395,103,78,6,102,55,41,502,138,99,750]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryInputBox=t.InputBox=t.MessageType=void 0;const p=n.$;!function(e){e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR"}(t.MessageType||(t.MessageType={}));const m={
inputBackground:c.Color.fromHex("#3C3C3C"),inputForeground:c.Color.fromHex("#CCCCCC"),inputValidationInfoBorder:c.Color.fromHex("#55AAFF"),inputValidationInfoBackground:c.Color.fromHex("#063B49"),inputValidationWarningBorder:c.Color.fromHex("#B89500"),inputValidationWarningBackground:c.Color.fromHex("#352A05"),inputValidationErrorBorder:c.Color.fromHex("#BE1100"),inputValidationErrorBackground:c.Color.fromHex("#5A1D1D")};class v extends l.Widget{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new a.Emitter),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new a.Emitter),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),d.mixin(this.options,m,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,
this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.append(e,p(".monaco-inputbox.idle"))
;let o=this.options.flexibleHeight?"textarea":"input",s=n.append(this.element,p(".wrapper"));if(this.input=n.append(s,p(o+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.append(s,p("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new u.ScrollableElement(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.append(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),
this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));const t=a.Event.filter(g.domEvent(document,"selectionchange"),()=>{const e=document.getSelection();return(null==e?void 0:e.anchorNode)===s});this._register(t(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&this.setPlaceHolder(this.placeholder),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new r.ActionBar(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage()}onFocus(){this._showMessage()}setPlaceHolder(e){
this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get mirrorElement(){return this.mirror}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.getTotalHeight(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}setEnabled(e){e?this.enable():this.disable()}get width(){
return n.getTotalWidth(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${e}px)`:this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),
this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}isInputValid(){return!!this.validation&&!this.validation(this.value)}validate(){let e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,
foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t,r=()=>e.style.width=n.getTotalWidth(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{if(!this.message)return null;e=n.append(t,p(".monaco-inputbox-container")),r();const i={inline:!0,className:"monaco-inputbox-message"},s=this.message.formatContent?o.renderFormattedText(this.message.content,i):o.renderText(this.message.content,i);s.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type)
;return s.style.backgroundColor=a.background?a.background.toString():"",s.style.color=a.foreground?a.foreground.toString():"",s.style.border=a.border?`1px solid ${a.border}`:"",n.append(e,s),null},onHide:()=>{this.state="closed"},layout:r}),t=3===this.message.type?i.localize(0,null,this.message.content):2===this.message.type?i.localize(1,null,this.message.content):i.localize(2,null,this.message.content),s.alert(t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}style(e){this.inputBackground=e.inputBackground,
this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,
this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.getTotalHeight(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}t.InputBox=v;t.HistoryInputBox=class extends v{constructor(e,t,i){super(e,t,i),this.history=new h.HistoryNavigator(i.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}getHistory(){return this.history.getHistory()}
showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,s.status(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,s.status(this.value))}clearHistory(){this.history.clear()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}})),define(e[944],t([0,1,935,7,154,102,6,549,517]),(function(e,t,i,n,o,s,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindInput=void 0;const l=i.localize(0,null);class c extends s.Widget{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this._onDidOptionChange=this._register(new r.Emitter),
this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new r.Emitter),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new r.Emitter),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new r.Emitter),this.onInput=this._onInput.event,this._onKeyUp=this._register(new r.Emitter),this.onKeyUp=this._onKeyUp.event,this._onCaseSensitiveKeyDown=this._register(new r.Emitter),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new r.Emitter),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,this.label=s.label||l,this.inputActiveOptionBorder=s.inputActiveOptionBorder,this.inputActiveOptionForeground=s.inputActiveOptionForeground,this.inputActiveOptionBackground=s.inputActiveOptionBackground,this.inputBackground=s.inputBackground,this.inputForeground=s.inputForeground,
this.inputBorder=s.inputBorder,this.inputValidationInfoBorder=s.inputValidationInfoBorder,this.inputValidationInfoBackground=s.inputValidationInfoBackground,this.inputValidationInfoForeground=s.inputValidationInfoForeground,this.inputValidationWarningBorder=s.inputValidationWarningBorder,this.inputValidationWarningBackground=s.inputValidationWarningBackground,this.inputValidationWarningForeground=s.inputValidationWarningForeground,this.inputValidationErrorBorder=s.inputValidationErrorBorder,this.inputValidationErrorBackground=s.inputValidationErrorBackground,this.inputValidationErrorForeground=s.inputValidationErrorForeground;const c=s.appendCaseSensitiveLabel||"",d=s.appendWholeWordsLabel||"",h=s.appendRegexLabel||"",u=s.history||[],g=!!s.flexibleHeight,p=!!s.flexibleWidth,m=s.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.HistoryInputBox(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",
ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:u,flexibleHeight:g,flexibleWidth:p,flexibleMaxHeight:m})),this.regex=this._register(new a.RegexCheckbox({appendTitle:h,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,
inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new a.WholeWordsCheckbox({appendTitle:d,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new a.CaseSensitiveCheckbox({appendTitle:c,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{
this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let v=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=v.indexOf(document.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%v.length:e.equals(15)&&(i=0===t?v.length-1:t-1),e.equals(9)?v[t].blur():i>=0&&v[i].focus(),n.EventHelper.stop(e,!0)}}});let f=document.createElement("div");f.className="controls",f.style.display=this._showOptionButtons?"block":"none",f.appendChild(this.caseSensitive.domNode),f.appendChild(this.wholeWords.domNode),f.appendChild(this.regex.domNode),this.domNode.appendChild(f),e&&e.appendChild(this.domNode),
this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}clear(){this.clearValidation(),this.setValue(""),this.focus()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}onSearchSubmit(){this.inputBox.addToHistory()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,
this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground}
;this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){
this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}focusOnRegex(){this.regex.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}clearValidation(){this.inputBox.hideMessage()}}t.FindInput=c,c.OPTION_CHANGE="optionChange"})),define(e[945],t([0,1,937,7,154,102,6,216,44,517]),(function(e,t,i,n,o,s,r,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaceInput=t.PreserveCaseCheckbox=void 0;const c=i.localize(0,null),d=i.localize(1,null);class h extends a.Checkbox{constructor(e){super({icon:l.Codicon.preserveCase,title:d+e.appendTitle,isChecked:e.isChecked,
inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}t.PreserveCaseCheckbox=h;class u extends s.Widget{constructor(e,t,i,s){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new r.Emitter),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new r.Emitter),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new r.Emitter),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new r.Emitter),this.onInput=this._onInput.event,this._onKeyUp=this._register(new r.Emitter),this.onKeyUp=this._onKeyUp.event,this._onPreserveCaseKeyDown=this._register(new r.Emitter),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=s.placeholder||"",this.validation=s.validation,
this.label=s.label||c,this.inputActiveOptionBorder=s.inputActiveOptionBorder,this.inputActiveOptionForeground=s.inputActiveOptionForeground,this.inputActiveOptionBackground=s.inputActiveOptionBackground,this.inputBackground=s.inputBackground,this.inputForeground=s.inputForeground,this.inputBorder=s.inputBorder,this.inputValidationInfoBorder=s.inputValidationInfoBorder,this.inputValidationInfoBackground=s.inputValidationInfoBackground,this.inputValidationInfoForeground=s.inputValidationInfoForeground,this.inputValidationWarningBorder=s.inputValidationWarningBorder,this.inputValidationWarningBackground=s.inputValidationWarningBackground,this.inputValidationWarningForeground=s.inputValidationWarningForeground,this.inputValidationErrorBorder=s.inputValidationErrorBorder,this.inputValidationErrorBackground=s.inputValidationErrorBackground,this.inputValidationErrorForeground=s.inputValidationErrorForeground;const a=s.history||[],l=!!s.flexibleHeight,d=!!s.flexibleWidth,u=s.flexibleMaxHeight
;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new o.HistoryInputBox(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:a,flexibleHeight:l,flexibleWidth:d,
flexibleMaxHeight:u})),this.preserveCase=this._register(new h({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(e=>{this._onPreserveCaseKeyDown.fire(e)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let g=[this.preserveCase.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=g.indexOf(document.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?g[t].blur():i>=0&&g[i].focus(),n.EventHelper.stop(e,!0)}}});let p=document.createElement("div");p.className="controls",
p.style.display=this._showOptionButtons?"block":"none",p.appendChild(this.preserveCase.domNode),this.domNode.appendChild(p),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}clear(){this.clearValidation(),this.setValue(""),this.focus()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}onSearchSubmit(){this.inputBox.addToHistory()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,
this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,
inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}
highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox&&this.inputBox.validate()}showMessage(e){this.inputBox&&this.inputBox.showMessage(e)}clearMessage(){this.inputBox&&this.inputBox.hideMessage()}clearValidation(){this.inputBox&&this.inputBox.hideMessage()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}t.ReplaceInput=u,u.OPTION_CHANGE="optionChange"})),define(e[413],t([0,1,940,24,30,78,7,74,15,2,138,514,12,44,100,342,80,101]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g,p,m,v,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanMnemonic=t.Menu=t.Direction=t.MENU_ESCAPED_MNEMONIC_REGEX=t.MENU_MNEMONIC_REGEX=void 0,t.MENU_MNEMONIC_REGEX=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,
t.MENU_ESCAPED_MNEMONIC_REGEX=/(&)?(&)([^\s&])/g;const S=g.registerIcon("menu-selection",g.Codicon.check),b=g.registerIcon("menu-submenu",g.Codicon.chevronRight);var _;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(_=t.Direction||(t.Direction={}));class C extends s.ActionBar{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:2,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,triggerKeys:{keys:[3,...u.isMacintosh||u.isLinux?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new c.DisposableStore),this.initializeStyleSheet(e),r.addDisposableListener(n,r.EventType.KEY_DOWN,e=>{new a.StandardKeyboardEvent(e).equals(2)&&e.preventDefault()}),
i.enableMnemonics&&this.menuDisposables.add(r.addDisposableListener(n,r.EventType.KEY_DOWN,e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){r.EventHelper.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof w&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}})),u.isLinux&&this._register(r.addDisposableListener(n,r.EventType.KEY_DOWN,e=>{const t=new a.StandardKeyboardEvent(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),r.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),r.EventHelper.stop(e,!0))})),this._register(r.addDisposableListener(this.domNode,r.EventType.MOUSE_OUT,e=>{let t=e.relatedTarget;r.isAncestor(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),
this._register(r.addDisposableListener(this.actionsList,r.EventType.MOUSE_OVER,e=>{let t=e.target;if(t&&r.isAncestor(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));let o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new d.DomScrollableElement(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const s=this.scrollableElement.getDomNode();s.style.position="",this._register(r.addDisposableListener(s,r.EventType.MOUSE_UP,e=>{e.preventDefault()})),n.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(e=>{var t;return null===(t=i.submenuIds)||void 0===t||!t.has(e.id)||(console.warn(`Found submenu cycle: ${e.id}`),!1)}),this.push(t,{icon:!0,label:!0,isMenu:!0}),
e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof E)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeStyleSheet(e){r.isInShadowDOM(e)?(this.styleSheet=r.createStyleSheet(e),this.styleSheet.textContent=x):(C.globalStyleSheet||(C.globalStyleSheet=r.createStyleSheet(),C.globalStyleSheet.textContent=x),this.styleSheet=C.globalStyleSheet)}style(e){const t=this.getContainer(),i=e.foregroundColor?`${e.foregroundColor}`:"",n=e.backgroundColor?`${e.backgroundColor}`:"",o=e.borderColor?`1px solid ${e.borderColor}`:"",s=e.shadowColor?`0 2px 4px ${e.shadowColor}`:"";t.style.border=o,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=s,this.viewItems&&this.viewItems.forEach(t=>{(t instanceof y||t instanceof E)&&t.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}get scrollOffset(){return this.menuElement.scrollTop}
trigger(e){if(e<=this.viewItems.length&&e>=0){const t=this.viewItems[e];if(t instanceof w)super.focus(e),t.open(!0);else{if(!(t instanceof y))return;super.run(t._action,t._context)}}}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register(r.addDisposableListener(this.element,r.EventType.MOUSE_UP,e=>{if(r.EventHelper.stop(e,!0),v.isFirefox){if(new f.StandardMouseEvent(e).rightButton)return;this.onClick(e)}setTimeout(()=>{
this.onClick(e)},0)})),this._register(r.addDisposableListener(this.element,r.EventType.CONTEXT_MENU,e=>{r.EventHelper.stop(e,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=r.append(this.element,r.$("a.action-menu-item")),this._action.id===o.Separator.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=r.append(this.item,r.$("span.menu-item-check"+S.cssSelector)),this.check.setAttribute("role","none"),this.label=r.append(this.item,r.$("span.action-label")),this.options.label&&this.options.keybinding&&(r.append(this.item,r.$("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),
this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){r.clearNode(this.label);let e=g.stripCodicons(this.getAction().label);if(e){const i=I(e);this.options.enableMnemonics||(e=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const o=t.MENU_MNEMONIC_REGEX.exec(e);if(o){e=n.escape(e),t.MENU_ESCAPED_MNEMONIC_REGEX.lastIndex=0;let i=t.MENU_ESCAPED_MNEMONIC_REGEX.exec(e);for(;i&&i[1];)i=t.MENU_ESCAPED_MNEMONIC_REGEX.exec(e);const s=e=>e.replace(/&&/g,"&");i?this.label.append(n.ltrim(s(e.substr(0,i.index))," "),r.$("u",{"aria-hidden":"true"},i[3]),n.rtrim(s(e.substr(i.index+i[0].length))," ")):this.label.innerText=s(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(o[1]?o[1]:o[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){let e=null
;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=i.localize(0,null,e,this.options.keybinding))),e&&this.item&&(this.item.title=e)}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&this.element.classList.remove("disabled"),this.item&&(this.item.classList.remove("disabled"),this.item.tabIndex=0)):(this.element&&this.element.classList.add("disabled"),this.item&&(this.item.classList.add("disabled"),r.removeTabIndexAndUpdateFocus(this.item)))}updateChecked(){this.item&&(this.getAction().checked?(this.item.classList.add("checked"),
this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(this.item.classList.remove("checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`thin solid ${this.menuStyle.selectionBorderColor}`:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=n)}style(e){this.menuStyle=e,this.applyStyle()}}class w extends y{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,
this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new c.DisposableStore),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:_.Right,this.showScheduler=new l.RunOnceScheduler(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new l.RunOnceScheduler(()=>{this.element&&!r.isAncestor(r.getActiveElement(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=r.append(this.item,r.$("span.submenu-indicator"+b.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(r.addDisposableListener(this.element,r.EventType.KEY_UP,e=>{let t=new a.StandardKeyboardEvent(e)
;(t.equals(17)||t.equals(3))&&(r.EventHelper.stop(e,!0),this.createSubmenu(!0))})),this._register(r.addDisposableListener(this.element,r.EventType.KEY_DOWN,e=>{let t=new a.StandardKeyboardEvent(e);r.getActiveElement()===this.item&&(t.equals(17)||t.equals(3))&&r.EventHelper.stop(e,!0)})),this._register(r.addDisposableListener(this.element,r.EventType.MOUSE_OVER,e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(r.addDisposableListener(this.element,r.EventType.MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register(r.addDisposableListener(this.element,r.EventType.FOCUS_OUT,e=>{this.element&&!r.isAncestor(r.getActiveElement(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}open(e){this.cleanupExistingSubmenu(!1),this.createSubmenu(e)}onClick(e){r.EventHelper.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){
if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=h.layout(e.width,t.width,{position:n===_.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new a.StandardKeyboardEvent(e).equals(15)&&(r.EventHelper.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),
this.submenuDisposables.add(r.addDisposableListener(this.submenuContainer,r.EventType.KEY_DOWN,e=>{new a.StandardKeyboardEvent(e).equals(15)&&r.EventHelper.stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e?`${e}`:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),
this.submenuContainer&&(this.submenuContainer=void 0)}}class E extends p.ActionViewItem{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}function I(e){const i=t.MENU_MNEMONIC_REGEX,n=i.exec(e);if(!n)return e;const o=!n[1];return e.replace(i,o?"$2$3":"").trim()}t.cleanMnemonic=I
;let x=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${m.formatRule(S)}\n${m.formatRule(b)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`
})),define(e[946],t([0,1,80,7,24,941,99,74,128,413,30,15,6,2,13,14,231,12,101,44,752]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g,p,m,v,f,S,b){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuBar=void 0;const _=n.$,C=b.registerIcon("menubar-more",b.Codicon.more);var y;!function(e){e[e.HIDDEN=0]="HIDDEN",e[e.VISIBLE=1]="VISIBLE",e[e.FOCUSED=2]="FOCUSED",e[e.OPEN=3]="OPEN"}(y||(y={}));class w extends g.Disposable{constructor(e,t={}){super(),this.container=e,this.options=t,this._mnemonicsInUse=!1,this.openedViaKeyboard=!1,this.awaitingAltRelease=!1,this.ignoreNextMouseUp=!1,this.updatePending=!1,this.numMenusShown=0,this.overflowLayoutScheduled=void 0,this.container.setAttribute("role","menubar"),void 0!==this.options.compactMode&&this.container.classList.add("compact"),this.menuCache=[],this.mnemonics=new Map,this._focusState=y.VISIBLE,this._onVisibilityChange=this._register(new u.Emitter),this._onFocusStateChange=this._register(new u.Emitter),this.createOverflowMenu(),
this.menuUpdater=this._register(new h.RunOnceScheduler(()=>this.update(),200)),this.actionRunner=this._register(new d.ActionRunner),this._register(this.actionRunner.onDidBeforeRun(()=>{this.setUnfocusedState()})),this._register(E.getInstance().event(this.onModifierKeyToggled,this)),this._register(n.addDisposableListener(this.container,n.EventType.KEY_DOWN,e=>{let t=new a.StandardKeyboardEvent(e),i=!0;const n=e.key?e.key.toLocaleLowerCase():"";if(t.equals(15)||f.isMacintosh&&t.equals(1026))this.focusPrevious();else if(t.equals(17)||f.isMacintosh&&t.equals(2))this.focusNext();else if(t.equals(9)&&this.isFocused&&!this.isOpen)this.setUnfocusedState();else if(!this.isOpen&&!t.ctrlKey&&this.options.enableMnemonics&&this.mnemonicsInUse&&this.mnemonics.has(n)){const e=this.mnemonics.get(n);this.onMenuTriggered(e,!1)}else i=!1;void 0===this.options.compactMode&&(t.equals(1026)||t.equals(2))&&t.preventDefault(),i&&(t.preventDefault(),t.stopPropagation())})),
this._register(n.addDisposableListener(window,n.EventType.MOUSE_DOWN,()=>{this.isFocused&&this.setUnfocusedState()})),this._register(n.addDisposableListener(this.container,n.EventType.FOCUS_IN,e=>{let t=e;t.relatedTarget&&(this.container.contains(t.relatedTarget)||(this.focusToReturn=t.relatedTarget))})),this._register(n.addDisposableListener(this.container,n.EventType.FOCUS_OUT,e=>{let t=e;t.relatedTarget?t.relatedTarget&&!this.container.contains(t.relatedTarget)&&(this.focusToReturn=void 0,this.setUnfocusedState()):this.setUnfocusedState()})),this._register(n.addDisposableListener(window,n.EventType.KEY_DOWN,e=>{if(!this.options.enableMnemonics||!e.altKey||e.ctrlKey||e.defaultPrevented)return;const t=e.key.toLocaleLowerCase();if(!this.mnemonics.has(t))return;this.mnemonicsInUse=!0,this.updateMnemonicVisibility(!0);const i=this.mnemonics.get(t);this.onMenuTriggered(i,!1)})),this.setUnfocusedState()}push(e){m.asArray(e).forEach(e=>{
const t=this.menuCache.length,i=c.cleanMnemonic(e.label),o=_("div.menubar-menu-button",{role:"menuitem",tabindex:-1,"aria-label":i,"aria-haspopup":!0}),s=_("div.menubar-menu-title",{role:"none","aria-hidden":!0});o.appendChild(s),this.container.insertBefore(o,this.overflowMenu.buttonElement);let r=c.MENU_MNEMONIC_REGEX.exec(e.label);if(r){let e=r[1]?r[1]:r[3];this.registerMnemonic(this.menuCache.length,e)}this.updateLabels(s,o,e.label),this._register(n.addDisposableListener(o,n.EventType.KEY_UP,e=>{let i=new a.StandardKeyboardEvent(e),n=!0;!i.equals(18)&&!i.equals(3)||this.isOpen?n=!1:(this.focusedMenu={index:t},this.openedViaKeyboard=!0,this.focusState=y.OPEN),n&&(i.preventDefault(),i.stopPropagation())})),this._register(l.Gesture.addTarget(o)),this._register(n.addDisposableListener(o,l.EventType.Tap,e=>{this.isOpen&&this.focusedMenu&&this.focusedMenu.holder&&n.isAncestor(e.initialTarget,this.focusedMenu.holder)||(this.ignoreNextMouseUp=!1,this.onMenuTriggered(t,!0),e.preventDefault(),e.stopPropagation())
})),this._register(n.addDisposableListener(o,n.EventType.MOUSE_DOWN,e=>{new S.StandardMouseEvent(e).leftButton?(this.isOpen?this.ignoreNextMouseUp=!1:(this.ignoreNextMouseUp=!0,this.onMenuTriggered(t,!0)),e.preventDefault(),e.stopPropagation()):e.preventDefault()})),this._register(n.addDisposableListener(o,n.EventType.MOUSE_UP,e=>{e.defaultPrevented||(this.ignoreNextMouseUp?this.ignoreNextMouseUp=!1:this.isFocused&&this.onMenuTriggered(t,!0))})),this._register(n.addDisposableListener(o,n.EventType.MOUSE_ENTER,()=>{this.isOpen&&!this.isCurrentMenu(t)?(this.menuCache[t].buttonElement.focus(),this.cleanupCustomMenu(),this.showCustomMenu(t,!1)):this.isFocused&&!this.isOpen&&(this.focusedMenu={index:t},o.focus())})),this.menuCache.push({label:e.label,actions:e.actions,buttonElement:o,titleElement:s})})}createOverflowMenu(){const e=void 0!==this.options.compactMode?s.localize(0,null):s.localize(1,null),t=void 0!==this.options.compactMode?e:void 0,i=_("div.menubar-menu-button",{role:"menuitem",
tabindex:void 0!==this.options.compactMode?0:-1,"aria-label":e,title:t,"aria-haspopup":!0}),o=_("div.menubar-menu-title.toolbar-toggle-more"+C.cssSelector,{role:"none","aria-hidden":!0});i.appendChild(o),this.container.appendChild(i),i.style.visibility="hidden",this._register(n.addDisposableListener(i,n.EventType.KEY_UP,e=>{let t=new a.StandardKeyboardEvent(e),i=!0;const n=[3];void 0===this.options.compactMode?n.push(18):(n.push(10),n.push(this.options.compactMode===c.Direction.Right?17:15)),n.some(e=>t.equals(e))&&!this.isOpen?(this.focusedMenu={index:w.OVERFLOW_INDEX},this.openedViaKeyboard=!0,this.focusState=y.OPEN):i=!1,i&&(t.preventDefault(),t.stopPropagation())})),this._register(l.Gesture.addTarget(i)),this._register(n.addDisposableListener(i,l.EventType.Tap,e=>{this.isOpen&&this.focusedMenu&&this.focusedMenu.holder&&n.isAncestor(e.initialTarget,this.focusedMenu.holder)||(this.ignoreNextMouseUp=!1,this.onMenuTriggered(w.OVERFLOW_INDEX,!0),e.preventDefault(),e.stopPropagation())})),
this._register(n.addDisposableListener(i,n.EventType.MOUSE_DOWN,e=>{new S.StandardMouseEvent(e).leftButton?(this.isOpen?this.ignoreNextMouseUp=!1:(this.ignoreNextMouseUp=!0,this.onMenuTriggered(w.OVERFLOW_INDEX,!0)),e.preventDefault(),e.stopPropagation()):e.preventDefault()})),this._register(n.addDisposableListener(i,n.EventType.MOUSE_UP,e=>{e.defaultPrevented||(this.ignoreNextMouseUp?this.ignoreNextMouseUp=!1:this.isFocused&&this.onMenuTriggered(w.OVERFLOW_INDEX,!0))})),this._register(n.addDisposableListener(i,n.EventType.MOUSE_ENTER,()=>{this.isOpen&&!this.isCurrentMenu(w.OVERFLOW_INDEX)?(this.overflowMenu.buttonElement.focus(),this.cleanupCustomMenu(),this.showCustomMenu(w.OVERFLOW_INDEX,!1)):this.isFocused&&!this.isOpen&&(this.focusedMenu={index:w.OVERFLOW_INDEX},i.focus())})),this.overflowMenu={buttonElement:i,titleElement:o,label:"More"}}updateMenu(e){const t=this.menuCache.filter(t=>t.label===e.label);t&&t.length&&(t[0].actions=e.actions)}dispose(){super.dispose(),this.menuCache.forEach(e=>{
e.titleElement.remove(),e.buttonElement.remove()}),this.overflowMenu.titleElement.remove(),this.overflowMenu.buttonElement.remove(),g.dispose(this.overflowLayoutScheduled),this.overflowLayoutScheduled=void 0}blur(){this.setUnfocusedState()}getWidth(){if(this.menuCache){const e=this.menuCache[0].buttonElement.getBoundingClientRect().left;return(this.hasOverflow?this.overflowMenu.buttonElement.getBoundingClientRect().right:this.menuCache[this.menuCache.length-1].buttonElement.getBoundingClientRect().right)-e}return 0}getHeight(){return this.container.clientHeight}toggleFocus(){this.isFocused||"hidden"===this.options.visibility?this.isOpen||this.setUnfocusedState():(this.mnemonicsInUse=!0,this.focusedMenu={index:this.numMenusShown>0?0:w.OVERFLOW_INDEX},this.focusState=y.FOCUSED)}updateOverflowAction(){var e,t;if(!this.menuCache||!this.menuCache.length)return;const i=this.container.offsetWidth;let n=0,o=void 0!==this.options.compactMode;const s=this.numMenusShown;this.numMenusShown=0;for(let e of this.menuCache){
if(!o){const t=e.buttonElement.offsetWidth;n+t>i?o=!0:(n+=t,this.numMenusShown++,this.numMenusShown>s&&(e.buttonElement.style.visibility="visible"))}o&&(e.buttonElement.style.visibility="hidden")}if(o){for(;n+this.overflowMenu.buttonElement.offsetWidth>i&&this.numMenusShown>0;){this.numMenusShown--;const e=this.menuCache[this.numMenusShown].buttonElement.offsetWidth;this.menuCache[this.numMenusShown].buttonElement.style.visibility="hidden",n-=e}this.overflowMenu.actions=[];for(let e=this.numMenusShown;ee.replace(/&&/g,"&");n?(e.innerText="",e.append(o.ltrim(s(t.substr(0,n.index))," "),_("mnemonic",{"aria-hidden":"true"},n[3]),o.rtrim(s(t.substr(n.index+n[0].length))," "))):e.innerText=s(t).trim()}else e.innerText=n.replace(/&&/g,"&");let s=c.MENU_MNEMONIC_REGEX.exec(i);if(s){let e=s[1]?s[1]:s[3]
;this.options.enableMnemonics?t.setAttribute("aria-keyshortcuts","Alt+"+e.toLocaleLowerCase()):t.removeAttribute("aria-keyshortcuts")}}style(e){this.menuStyle=e}update(e){e&&(this.options=e),this.isFocused?this.updatePending=!0:(this.menuCache.forEach(e=>{this.updateLabels(e.titleElement,e.buttonElement,e.label)}),this.overflowLayoutScheduled||(this.overflowLayoutScheduled=n.scheduleAtNextAnimationFrame(()=>{this.updateOverflowAction(),this.overflowLayoutScheduled=void 0})),this.setUnfocusedState())}registerMnemonic(e,t){this.mnemonics.set(t.toLocaleLowerCase(),e)}hideMenubar(){"none"!==this.container.style.display&&(this.container.style.display="none",this._onVisibilityChange.fire(!1))}showMenubar(){"flex"!==this.container.style.display&&(this.container.style.display="flex",this._onVisibilityChange.fire(!0),this.updateOverflowAction())}get focusState(){return this._focusState}set focusState(e){if(this._focusState>=y.FOCUSED&&e=y.FOCUSED)}get isVisible(){return this.focusState>=y.VISIBLE}get isFocused(){return this.focusState>=y.FOCUSED}get isOpen(){return this.focusState>=y.OPEN}get hasOverflow(){return this.numMenusShown{if(t.titleElement.children.length){let i=t.titleElement.children.item(0);i&&(i.style.textDecoration=this.options.alwaysOnMnemonics||e?"underline":"")}})}get mnemonicsInUse(){return this._mnemonicsInUse}set mnemonicsInUse(e){this._mnemonicsInUse=e}get onVisibilityChange(){return this._onVisibilityChange.event}get onFocusStateChange(){return this._onFocusStateChange.event}
onMenuTriggered(e,t){this.isOpen?this.isCurrentMenu(e)?this.setUnfocusedState():(this.cleanupCustomMenu(),this.showCustomMenu(e,this.openedViaKeyboard)):(this.focusedMenu={index:e},this.openedViaKeyboard=!t,this.focusState=y.OPEN)}onModifierKeyToggled(e){const t=!e.altKey&&!e.ctrlKey&&!e.shiftKey;"hidden"!==this.options.visibility&&(e.event&&!this.options.disableAltFocus&&159===v.ScanCodeUtils.toEnum(e.event.code)&&e.event.preventDefault(),this.isFocused&&"alt"===e.lastKeyPressed&&e.altKey&&(this.setUnfocusedState(),this.mnemonicsInUse=!1,this.awaitingAltRelease=!0),t&&"alt"===e.lastKeyPressed&&"alt"===e.lastKeyReleased&&(this.awaitingAltRelease||(this.isFocused||this.options.disableAltFocus&&"toggle"!==this.options.visibility?this.isOpen||this.setUnfocusedState():(this.mnemonicsInUse=!0,this.focusedMenu={index:this.numMenusShown>0?0:w.OVERFLOW_INDEX},this.focusState=y.FOCUSED))),e.altKey||"alt"!==e.lastKeyReleased||(this.awaitingAltRelease=!1),
this.options.enableMnemonics&&this.menuCache&&!this.isOpen&&this.updateMnemonicVisibility(!this.awaitingAltRelease&&e.altKey||this.mnemonicsInUse))}isCurrentMenu(e){return!!this.focusedMenu&&this.focusedMenu.index===e}cleanupCustomMenu(){this.focusedMenu&&(this.focusedMenu.index===w.OVERFLOW_INDEX?this.overflowMenu.buttonElement.focus():this.menuCache[this.focusedMenu.index].buttonElement.focus(),this.focusedMenu.holder&&(this.focusedMenu.holder.parentElement&&this.focusedMenu.holder.parentElement.classList.remove("open"),this.focusedMenu.holder.remove()),this.focusedMenu.widget&&this.focusedMenu.widget.dispose(),this.focusedMenu={index:this.focusedMenu.index})}showCustomMenu(e,t=!0){const i=e>=this.numMenusShown?w.OVERFLOW_INDEX:e,n=i===w.OVERFLOW_INDEX?this.overflowMenu:this.menuCache[i];if(!n.actions)return;const o=_("div.menubar-menu-items-holder",{title:""});n.buttonElement.classList.add("open"),this.options.compactMode===c.Direction.Right?(o.style.top="0px",
o.style.left=`${n.buttonElement.getBoundingClientRect().left+this.container.clientWidth}px`):this.options.compactMode===c.Direction.Left?(o.style.top="0px",o.style.right=`${this.container.clientWidth}px`,o.style.left="auto"):(o.style.top=`${this.container.clientHeight}px`,o.style.left=`${n.buttonElement.getBoundingClientRect().left}px`),n.buttonElement.appendChild(o);let s={getKeyBinding:this.options.getKeybinding,actionRunner:this.actionRunner,enableMnemonics:this.options.alwaysOnMnemonics||this.mnemonicsInUse&&this.options.enableMnemonics,ariaLabel:p.withNullAsUndefined(n.buttonElement.getAttribute("aria-label")),expandDirection:void 0!==this.options.compactMode?this.options.compactMode:c.Direction.Right,useEventAsContext:!0},r=this._register(new c.Menu(o,n.actions,s));this.menuStyle&&r.style(this.menuStyle),this._register(r.onDidCancel(()=>{this.focusState=y.FOCUSED})),i!==e?r.trigger(e-this.numMenusShown):r.focus(t),this.focusedMenu={index:i,holder:o,widget:r}}}t.MenuBar=w,w.OVERFLOW_INDEX=-1
;class E extends u.Emitter{constructor(){super(),this._subscriptions=new g.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1},this._subscriptions.add(r.domEvent(document.body,"keydown",!0)(e=>{const t=new a.StandardKeyboardEvent(e);if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))})),this._subscriptions.add(r.domEvent(document.body,"keyup",!0)(e=>{
!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus))})),this._subscriptions.add(r.domEvent(document.body,"mousedown",!0)(e=>{this._keyStatus.lastKeyPressed=void 0})),this._subscriptions.add(r.domEvent(document.body,"mouseup",!0)(e=>{this._keyStatus.lastKeyPressed=void 0})),this._subscriptions.add(r.domEvent(document.body,"mousemove",!0)(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)})),this._subscriptions.add(r.domEvent(window,"blur")(e=>{this._keyStatus.lastKeyPressed=void 0,
this._keyStatus.lastKeyReleased=void 0,this._keyStatus.altKey=!1,this._keyStatus.shiftKey=!1,this._keyStatus.shiftKey=!1,this.fire(this._keyStatus)}))}static getInstance(){return E.instance||(E.instance=new E),E.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}})),define(e[947],t([0,1,7,154,2,74,97,101,343]),(function(e,t,i,n,o,s,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickInputBox=void 0;const l=i.$;class c extends o.Disposable{constructor(e){super(),this.parent=e,this.onKeyDown=e=>i.addDisposableListener(this.inputBox.inputElement,i.EventType.KEY_DOWN,t=>{e(new s.StandardKeyboardEvent(t))}),this.onMouseDown=e=>i.addDisposableListener(this.inputBox.inputElement,i.EventType.MOUSE_DOWN,t=>{e(new a.StandardMouseEvent(t))}),this.onDidChange=e=>this.inputBox.onDidChange(e),this.container=i.append(this.parent,l(".quick-input-box")),this.inputBox=this._register(new n.InputBox(this.container,void 0))}get value(){return this.inputBox.value}set value(e){
this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}setPlaceholder(e){this.inputBox.setPlaceHolder(e)}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return"password"===this.inputBox.inputElement.type}set password(e){this.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.inputBox.setEnabled(e)}hasFocus(){return this.inputBox.hasFocus()}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===r.default.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===r.default.Info?1:e===r.default.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===r.default.Info?1:e===r.default.Warning?2:3)}setFocus(){
this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}t.QuickInputBox=c})),define(e[948],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/splitview/paneview",t)})),define(e[949],t([0,1,2,6,99,74,7,55,197,80,166,948,760]),(function(e,t,i,n,o,s,r,a,l,c,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaneView=t.DefaultPaneDndController=t.Pane=void 0;class u extends i.Disposable{constructor(e){super(),this.expandedSize=void 0,this._headerVisible=!0,this.styles={},this.animationTimer=void 0,this._onDidChange=this._register(new n.Emitter),this.onDidChange=this._onDidChange.event,this._onDidChangeExpansionState=this._register(new n.Emitter),this.onDidChangeExpansionState=this._onDidChangeExpansionState.event,this.orthogonalSize=0,this._expanded=void 0===e.expanded||!!e.expanded,this._orientation=void 0===e.orientation?0:e.orientation,this.ariaHeaderLabel=h.localize(0,null,e.title),
this._minimumBodySize="number"==typeof e.minimumBodySize?e.minimumBodySize:1===this._orientation?200:120,this._maximumBodySize="number"==typeof e.maximumBodySize?e.maximumBodySize:Number.POSITIVE_INFINITY,this.element=r.$(".pane")}get draggableElement(){return this.header}get dropTargetElement(){return this.element}get dropBackground(){return this._dropBackground}get minimumBodySize(){return this._minimumBodySize}set minimumBodySize(e){this._minimumBodySize=e,this._onDidChange.fire(void 0)}get maximumBodySize(){return this._maximumBodySize}set maximumBodySize(e){this._maximumBodySize=e,this._onDidChange.fire(void 0)}get headerSize(){return this.headerVisible?u.HEADER_SIZE:0}get minimumSize(){return this.headerSize+(!this.headerVisible||this.isExpanded()?this.minimumBodySize:0)}get maximumSize(){return this.headerSize+(!this.headerVisible||this.isExpanded()?this.maximumBodySize:0)}isExpanded(){return this._expanded}setExpanded(e){
return this._expanded!==!!e&&(this.element&&this.element.classList.toggle("expanded",e),this._expanded=!!e,this.updateHeader(),e?("number"==typeof this.animationTimer&&clearTimeout(this.animationTimer),r.append(this.element,this.body)):this.animationTimer=window.setTimeout(()=>{this.body.remove()},200),this._onDidChangeExpansionState.fire(e),this._onDidChange.fire(e?this.expandedSize:void 0),!0)}get headerVisible(){return this._headerVisible}set headerVisible(e){this._headerVisible!==!!e&&(this._headerVisible=!!e,this.updateHeader(),this._onDidChange.fire(void 0))}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.element&&(this.element.classList.toggle("horizontal",1===this.orientation),this.element.classList.toggle("vertical",0===this.orientation)),this.header&&this.updateHeader())}render(){this.element.classList.toggle("expanded",this.isExpanded()),this.element.classList.toggle("horizontal",1===this.orientation),
this.element.classList.toggle("vertical",0===this.orientation),this.header=r.$(".pane-header"),r.append(this.element,this.header),this.header.setAttribute("tabindex","0"),this.header.setAttribute("role","button"),this.header.setAttribute("aria-label",this.ariaHeaderLabel),this.renderHeader(this.header);const e=r.trackFocus(this.header);this._register(e),this._register(e.onDidFocus(()=>this.header.classList.add("focused"),null)),this._register(e.onDidBlur(()=>this.header.classList.remove("focused"),null)),this.updateHeader();const t=n.Event.chain(o.domEvent(this.header,"keydown")).map(e=>new s.StandardKeyboardEvent(e));this._register(t.filter(e=>3===e.keyCode||10===e.keyCode).event(()=>this.setExpanded(!this.isExpanded()),null)),this._register(t.filter(e=>15===e.keyCode).event(()=>this.setExpanded(!1),null)),this._register(t.filter(e=>17===e.keyCode).event(()=>this.setExpanded(!0),null)),this._register(o.domEvent(this.header,"click")(e=>{e.defaultPrevented||this.setExpanded(!this.isExpanded())},null)),
this.body=r.append(this.element,r.$(".pane-body")),this.renderBody(this.body),this.isExpanded()||this.body.remove()}layout(e){const t=this.headerVisible?u.HEADER_SIZE:0,i=0===this._orientation?this.orthogonalSize:e,n=0===this._orientation?e-t:this.orthogonalSize-t;this.isExpanded()&&(this.body.classList.toggle("wide",i>=600),this.layoutBody(n,i),this.expandedSize=e)}style(e){this.styles=e,this.header&&this.updateHeader()}updateHeader(){const e=!this.headerVisible||this.isExpanded();this.header.style.lineHeight=`${this.headerSize}px`,this.header.classList.toggle("hidden",!this.headerVisible),this.header.classList.toggle("expanded",e),this.header.setAttribute("aria-expanded",String(e)),this.header.style.color=this.styles.headerForeground?this.styles.headerForeground.toString():"",this.header.style.backgroundColor=this.styles.headerBackground?this.styles.headerBackground.toString():"",this.header.style.borderTop=this.styles.headerBorder&&0===this.orientation?`1px solid ${this.styles.headerBorder}`:"",
this._dropBackground=this.styles.dropBackground,this.element.style.borderLeft=this.styles.leftBorder&&1===this.orientation?`1px solid ${this.styles.leftBorder}`:""}}t.Pane=u,u.HEADER_SIZE=22;class g extends i.Disposable{constructor(e,t,i){super(),this.pane=e,this.dnd=t,this.context=i,this.dragOverCounter=0,this._onDidDrop=this._register(new n.Emitter),this.onDidDrop=this._onDidDrop.event,e.draggableElement.draggable=!0,this._register(o.domEvent(e.draggableElement,"dragstart")(this.onDragStart,this)),this._register(o.domEvent(e.dropTargetElement,"dragenter")(this.onDragEnter,this)),this._register(o.domEvent(e.dropTargetElement,"dragleave")(this.onDragLeave,this)),this._register(o.domEvent(e.dropTargetElement,"dragend")(this.onDragEnd,this)),this._register(o.domEvent(e.dropTargetElement,"drop")(this.onDrop,this))}onDragStart(e){var t;if(!this.dnd.canDrag(this.pane)||!e.dataTransfer)return e.preventDefault(),void e.stopPropagation();e.dataTransfer.effectAllowed="move",
c.isFirefox&&(null===(t=e.dataTransfer)||void 0===t||t.setData(d.DataTransfers.TEXT,this.pane.draggableElement.textContent||""));const i=r.append(document.body,r.$(".monaco-drag-image",{},this.pane.draggableElement.textContent||""));e.dataTransfer.setDragImage(i,-10,-10),setTimeout(()=>document.body.removeChild(i),0),this.context.draggable=this}onDragEnter(e){this.context.draggable&&this.context.draggable!==this&&this.dnd.canDrop(this.context.draggable.pane,this.pane)&&(this.dragOverCounter++,this.render())}onDragLeave(e){this.context.draggable&&this.context.draggable!==this&&this.dnd.canDrop(this.context.draggable.pane,this.pane)&&(this.dragOverCounter--,0===this.dragOverCounter&&this.render())}onDragEnd(e){this.context.draggable&&(this.dragOverCounter=0,this.render(),this.context.draggable=null)}onDrop(e){this.context.draggable&&(r.EventHelper.stop(e),this.dragOverCounter=0,this.render(),this.dnd.canDrop(this.context.draggable.pane,this.pane)&&this.context.draggable!==this&&this._onDidDrop.fire({
from:this.context.draggable.pane,to:this.pane}),this.context.draggable=null)}render(){let e=null;this.dragOverCounter>0&&(e=(this.pane.dropBackground||g.DefaultDragOverBackgroundColor).toString()),this.pane.dropTargetElement.style.backgroundColor=e||""}}g.DefaultDragOverBackgroundColor=new a.Color(new a.RGBA(128,128,128,.5));t.DefaultPaneDndController=class{canDrag(e){return!0}canDrop(e,t){return!0}};class p extends i.Disposable{constructor(e,t={}){var i;super(),this.dndContext={draggable:null},this.paneItems=[],this.orthogonalSize=0,this.size=0,this.animationTimer=void 0,this._onDidDrop=this._register(new n.Emitter),this.onDidDrop=this._onDidDrop.event,this.dnd=t.dnd,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.el=r.append(e,r.$(".monaco-pane-view")),this.splitview=this._register(new l.SplitView(this.el,{orientation:this.orientation})),this.onDidSashChange=this.splitview.onDidSashChange}addPane(e,t,n=this.splitview.length){const o=new i.DisposableStore
;e.onDidChangeExpansionState(this.setupAnimation,this,o);const s={pane:e,disposable:o};if(this.paneItems.splice(n,0,s),e.orientation=this.orientation,e.orthogonalSize=this.orthogonalSize,this.splitview.addView(e,t,n),this.dnd){const t=new g(e,this.dnd,this.dndContext);o.add(t),o.add(t.onDidDrop(this._onDidDrop.fire,this._onDidDrop))}}removePane(e){const t=this.paneItems.findIndex(t=>t.pane===e);-1!==t&&(this.splitview.removeView(t),this.paneItems.splice(t,1)[0].disposable.dispose())}movePane(e,t){const i=this.paneItems.findIndex(t=>t.pane===e),n=this.paneItems.findIndex(e=>e.pane===t);if(-1===i||-1===n)return;const[o]=this.paneItems.splice(i,1);this.paneItems.splice(n,0,o),this.splitview.moveView(i,n)}resizePane(e,t){const i=this.paneItems.findIndex(t=>t.pane===e);-1!==i&&this.splitview.resizeView(i,t)}getPaneSize(e){const t=this.paneItems.findIndex(t=>t.pane===e);return-1===t?-1:this.splitview.getViewSize(t)}layout(e,t){this.orthogonalSize=0===this.orientation?t:e,this.size=1===this.orientation?t:e
;for(const e of this.paneItems)e.pane.orthogonalSize=this.orthogonalSize;this.splitview.layout(this.size)}flipOrientation(e,t){this.orientation=0===this.orientation?1:0;const i=this.paneItems.map(e=>this.getPaneSize(e.pane));this.splitview.dispose(),r.clearNode(this.el),this.splitview=this._register(new l.SplitView(this.el,{orientation:this.orientation}));const n=0===this.orientation?t:e,o=1===this.orientation?t:e;this.paneItems.forEach((e,t)=>{e.pane.orthogonalSize=n,e.pane.orientation=this.orientation;const s=0===this.size?0:o*i[t]/this.size;this.splitview.addView(e.pane,s,t)}),this.size=o,this.orthogonalSize=n,this.splitview.layout(this.size)}setupAnimation(){"number"==typeof this.animationTimer&&window.clearTimeout(this.animationTimer),this.el.classList.add("animated"),this.animationTimer=window.setTimeout(()=>{this.animationTimer=void 0,this.el.classList.remove("animated")},200)}dispose(){super.dispose(),this.paneItems.forEach(e=>e.disposable.dispose())}}t.PaneView=p})),
define(e[950],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/toolbar/toolbar",t)})),define(e[217],t([0,1,950,30,78,2,13,44,6,302,763]),(function(e,t,i,n,o,s,r,a,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolBar=void 0;const d=a.registerIcon("toolbar-more",a.Codicon.more);class h extends s.Disposable{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new l.EventMultiplexer),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new s.DisposableStore,this.options=i,this.lookupKeybindings="function"==typeof this.options.getKeyBinding,this.toggleMenuAction=this._register(new u(()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()},i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),
this.actionBar=this._register(new o.ActionBar(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,actionViewItemProvider:e=>{if(e.id===u.ID)return this.toggleMenuActionViewItem=new c.DropdownMenuActionViewItem(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:d.classNamesArray,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e);if(t)return t}if(e instanceof n.SubmenuAction){const i=new c.DropdownMenuActionViewItem(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,
actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!0});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}set context(e){this.actionBar.context=e,this.toggleMenuActionViewItem&&this.toggleMenuActionViewItem.setActionContext(e);for(const t of this.submenuActionViewItems)t.setActionContext(e)}getElement(){return this.element}getItemsWidth(){let e=0;for(let t=0;t0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),
i.push(this.toggleMenuAction)),i.forEach(e=>{this.actionBar.push(e,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(e)})})}getKeybindingLabel(e){var t,i;const n=this.lookupKeybindings?null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e):void 0;return r.withNullAsUndefined(null==n?void 0:n.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}}t.ToolBar=h;class u extends n.Action{constructor(e,t){t=t||i.localize(0,null),super(u.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}u.ID="toolbar.toggle.more"})),define(e[951],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/tree/abstractTree",t)})),define(e[414],t([0,1,2,175,7,6,74,229,166,14,257,99,87,390,951,15,12,195,141,509,764]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g,p,m,v,f,S,b){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTree=t.RenderIndentGuides=t.ComposedTreeDelegate=void 0;class _ extends d.ElementsDragAndDropData{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}set context(e){this.data.context=e}get context(){return this.data.context}}function C(e){return e instanceof d.ElementsDragAndDropData?new _(e):e}class y{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=i.Disposable.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(C(e),t)}onDragOver(e,t,i,n,o=!0){const s=this.dnd.onDragOver(C(e),t&&t.element,i,n),r=this.autoExpandNode!==t;if(r&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return s;if(r&&"boolean"!=typeof s&&s.autoExpand&&(this.autoExpandDisposable=m.disposableTimeout(()=>{const e=this.modelProvider(),i=e.getNodeLocation(t)
;e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0},500)),"boolean"==typeof s||!s.accept||void 0===s.bubble||s.feedback){if(!o){return{accept:"boolean"==typeof s?s:s.accept,effect:"boolean"==typeof s?void 0:s.effect,feedback:[i]}}return s}if(1===s.bubble){const i=this.modelProvider(),o=i.getNodeLocation(t),s=i.getParentNodeLocation(o),r=i.getNode(s),a=s&&i.getListIndex(s);return this.onDragOver(e,r,a,n,!1)}const a=this.modelProvider(),l=a.getNodeLocation(t),d=a.getListIndex(l),h=a.getListRenderCount(l);return Object.assign(Object.assign({},s),{feedback:c.range(d,d+h)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(C(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}class w{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}
setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var E;t.ComposedTreeDelegate=w,function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(E=t.RenderIndentGuides||(t.RenderIndentGuides={}));class I{constructor(e,t=[]){this._elements=t,this.onDidChange=s.Event.forEach(e,e=>this._elements=e)}get elements(){return this._elements}}class x{constructor(e,t,n,o,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=x.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new S.SetMap,this.activeIndentNodes=new Set,this.indentGuidesDisposable=i.Disposable.None,this.disposables=new i.DisposableStore,this.templateId=e.templateId,this.updateOptions(r),s.Event.map(n,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)
}updateOptions(e={}){if(void 0!==e.indent&&(this.indent=f.clamp(e.indent,0,40)),void 0!==e.renderIndentGuides){const t=e.renderIndentGuides!==E.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const e=new i.DisposableStore;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=o.append(e,o.$(".monaco-tl-row")),n=o.append(t,o.$(".monaco-tl-indent")),s=o.append(t,o.$(".monaco-tl-twistie")),r=o.append(t,o.$(".monaco-tl-contents")),a=this.renderer.renderTemplate(r);return{container:e,indent:n,twistie:s,indentGuidesDisposable:i.Disposable.None,templateData:a}}renderElement(e,t,i,n){"number"==typeof n&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e))
;const o=x.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${o}px`,i.indent.style.width=`${o+this.indent-16}px`,this.renderTwistie(e,i),"number"==typeof n&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),
e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(t.twistie.classList.add(...b.treeItemExpandedIcon.classNamesArray,"collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove(...b.treeItemExpandedIcon.classNamesArray,"collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(o.clearNode(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const n=new i.DisposableStore,s=this.modelProvider();let r=e;for(;;){const e=s.getNodeLocation(r),a=s.getParentNodeLocation(e);if(!a)break;const l=s.getNode(a),c=o.$(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),
n.add(i.toDisposable(()=>this.renderedIndentGuides.delete(l,c))),r=l}t.indentGuidesDisposable=n}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach(e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(e){}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.remove("active"))}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),i.dispose(this.disposables)}}x.DefaultIndent=8;class k{constructor(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new i.DisposableStore,
e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const i=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return i;let n;if(0===(n="boolean"==typeof i?i?1:0:g.isFilterResult(i)?g.getVisibleState(i.visibility):i))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:u.FuzzyScore.Default,visibility:!0};const i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),n=i&&i.toString();if(void 0===n)return{data:u.FuzzyScore.Default,visibility:!0};const o=u.fuzzyScore(this._pattern,this._lowercasePattern,0,n,n.toLowerCase(),0,!0);return o?(this._matchCount++,{data:o,visibility:!0}):this.tree.options.filterOnType?2:{data:u.FuzzyScore.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){
i.dispose(this.disposables)}}class D{constructor(e,t,n,r,a){this.tree=e,this.view=n,this.filter=r,this.keyboardNavigationDelegate=a,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new s.Emitter,this.onDidChangeEmptyState=s.Event.latch(this._onDidChangeEmptyState.event),this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new s.Emitter,this.onDidChangePattern=this._onDidChangePattern.event,this.enabledDisposables=new i.DisposableStore,this.disposables=new i.DisposableStore,this.domNode=o.$(`.monaco-list-type-filter.${this.positionClassName}`),this.domNode.draggable=!0,h.domEvent(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=o.append(n.getHTMLElement(),o.$(".monaco-list-type-filter-message")),this.labelDomNode=o.append(this.domNode,o.$("span.label"));const l=o.append(this.domNode,o.$(".controls"));this._filterOnType=!!e.options.filterOnType,
this.filterOnTypeDomNode=o.append(l,o.$("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),h.domEvent(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=o.append(l,o.$("button.clear"+b.treeFilterClearIcon.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=p.localize(0,null),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}get empty(){return this._empty}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),
void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}toggle(){this.triggered=!this.triggered,this.triggered||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=s.Event.chain(h.domEvent(this.view.getHTMLElement(),"keydown")).filter(e=>!n.isInputElement(e.target)||e.target===this.filterOnTypeDomNode).filter(e=>"Dead"!==e.key&&!/^Media/.test(e.key)).map(e=>new r.StandardKeyboardEvent(e)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(e=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(e)&&!(18===e.keyCode||16===e.keyCode||15===e.keyCode||17===e.keyCode)||(this.pattern.length>0||this.triggered)&&(9===e.keyCode||1===e.keyCode)&&!e.altKey&&!e.ctrlKey&&!e.metaKey||1===e.keyCode&&(v.isMacintosh?e.altKey&&!e.metaKey:e.ctrlKey)&&!e.shiftKey).forEach(e=>{e.stopPropagation(),
e.preventDefault()}).event,t=h.domEvent(this.clearDomNode,"click");s.Event.chain(s.Event.any(e,t)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(v.isMacintosh?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),
e&&this.tree.focusNext(0,!0,void 0,e=>!u.FuzzyScore.isDefault(e.filterData));const i=this.tree.getFocus();if(i.length>0){const e=i[0];null===this.tree.getRelativeTop(e)&&this.tree.reveal(e,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=o.getDomNodePagePosition(e),n=e.clientWidth,s=n/2,r=this.domNode.clientWidth,a=new i.DisposableStore;let c=this.positionClassName;const d=()=>{switch(c){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=`${n-r-6}px`}};d(),this.domNode.classList.remove(c),this.domNode.classList.add("dragging"),a.add(i.toDisposable(()=>this.domNode.classList.remove("dragging"))),h.domEvent(document,"dragover")(e=>{e.preventDefault();const i=e.screenX-t;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),c=i{this.positionClassName=c,
this.domNode.className=`monaco-list-type-filter ${this.positionClassName}`,this.domNode.style.top="",this.domNode.style.left="",i.dispose(a)},null,a),l.StaticDND.CurrentDragAndDropData=new l.DragAndDropData("vscode-ui"),a.add(i.toDisposable(()=>l.StaticDND.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...b.treeFilterOnTypeOffIcon.classNamesArray),this.filterOnTypeDomNode.classList.add(...b.treeFilterOnTypeOnIcon.classNamesArray),this.filterOnTypeDomNode.title=p.localize(1,null)):(this.filterOnTypeDomNode.classList.remove(...b.treeFilterOnTypeOnIcon.classNamesArray),
this.filterOnTypeDomNode.classList.add(...b.treeFilterOnTypeOffIcon.classNamesArray),this.filterOnTypeDomNode.title=p.localize(2,null))}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=p.localize(3,null),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=p.localize(4,null,this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!u.FuzzyScore.isDefault(e.filterData))}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),i.dispose(this.disposables)}}
function T(e){let t=a.TreeMouseEventTarget.Unknown;return o.hasParentWithClass(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=a.TreeMouseEventTarget.Twistie:o.hasParentWithClass(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(t=a.TreeMouseEventTarget.Element),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function R(e){return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor}}function A(e,t){t(e),e.children.forEach(e=>A(e,t))}class M{constructor(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new s.Emitter,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){c.equals(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){
return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach(e=>A(e,i)),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>A(e,n));const o=new Map,s=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>A(e,s));const r=[];for(const e of this.nodes){const t=this.identityProvider.getId(e.element).toString();if(i.has(t)){const e=o.get(t);e&&r.push(e)}else r.push(e)}this._set(r,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class L extends n.MouseController{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(n.isInputElement(e.browserEvent.target)||n.isMonacoEditor(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e)
;if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,o=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let s=!1;if((s="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!o)return super.onViewPointer(e);if(this.tree.expandOnlyOnDoubleClick&&2!==e.browserEvent.detail&&!o)return super.onViewPointer(e);if(t.collapsible){const i=this.tree.model,n=i.getNodeLocation(t),r=e.browserEvent.altKey;if(i.setCollapsed(n,void 0,r),s&&o)return}super.onViewPointer(e)}onDoubleClick(e){e.browserEvent.target.classList.contains("monaco-tl-twistie")||super.onDoubleClick(e)}}class O extends n.List{constructor(e,t,i,n,o,s,r){super(e,t,i,n,r),this.focusTrait=o,this.selectionTrait=s}createMouseController(e){return new L(this,e.tree)}splice(e,t,i=[]){
if(super.splice(e,t,i),0===i.length)return;const n=[],o=[];i.forEach((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&o.push(e+i)}),n.length>0&&super.setFocus(c.distinctES6([...super.getFocus(),...n])),o.length>0&&super.setSelection(c.distinctES6([...super.getSelection(),...o]))}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(e=>this.element(e)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(e=>this.element(e)),t)}}t.AbstractTree=class{constructor(e,t,a,l,c={}){this._options=c,this.eventBufferer=new s.EventBufferer,this.disposables=new i.DisposableStore,this._onWillRefilter=new s.Emitter,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new s.Emitter,this.onDidUpdateOptions=this._onDidUpdateOptions.event;const d=new w(a),h=new s.Relay,u=new s.Relay,g=new I(u.event);this.renderers=l.map(e=>new x(e,()=>this.model,h.event,g,c));for(let e of this.renderers)this.disposables.add(e);let p;var m,v
;c.keyboardNavigationLabelProvider&&(p=new k(this,c.keyboardNavigationLabelProvider,c.filter),c=Object.assign(Object.assign({},c),{filter:p}),this.disposables.add(p)),this.focus=new M(c.identityProvider),this.selection=new M(c.identityProvider),this.view=new O(e,t,d,this.renderers,this.focus,this.selection,Object.assign(Object.assign({},(m=()=>this.model,(v=c)&&Object.assign(Object.assign({},v),{identityProvider:v.identityProvider&&{getId:e=>v.identityProvider.getId(e.element)},dnd:v.dnd&&new y(m,v.dnd),multipleSelectionController:v.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>v.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element})),isSelectionRangeChangeEvent:e=>v.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},accessibilityProvider:v.accessibilityProvider&&Object.assign(Object.assign({},v.accessibilityProvider),{getSetSize(e){
const t=m(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:v.accessibilityProvider&&v.accessibilityProvider.isChecked?e=>v.accessibilityProvider.isChecked(e.element):void 0,getRole:v.accessibilityProvider&&v.accessibilityProvider.getRole?e=>v.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>v.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>v.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:v.accessibilityProvider&&v.accessibilityProvider.getWidgetRole?()=>v.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:v.accessibilityProvider&&v.accessibilityProvider.getAriaLevel?e=>v.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:v.accessibilityProvider.getActiveDescendantId&&(e=>v.accessibilityProvider.getActiveDescendantId(e.element))}),
keyboardNavigationLabelProvider:v.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},v.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:e=>v.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}),enableKeyboardNavigation:v.simpleKeyboardNavigation}))),{tree:this})),this.model=this.createModel(e,this.view,c),h.input=this.model.onDidChangeCollapseState;const f=s.Event.forEach(this.model.onDidSplice,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)})});if(f(()=>null,null,this.disposables),u.input=s.Event.chain(s.Event.any(f,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]}).event,!1!==c.keyboardSupport){const e=s.Event.chain(this.view.onKeyDown).filter(e=>!n.isInputElement(e.target)).map(e=>new r.StandardKeyboardEvent(e))
;e.filter(e=>15===e.keyCode).on(this.onLeftArrow,this,this.disposables),e.filter(e=>17===e.keyCode).on(this.onRightArrow,this,this.disposables),e.filter(e=>10===e.keyCode).on(this.onSpace,this,this.disposables)}if(c.keyboardNavigationLabelProvider){const e=c.keyboardNavigationDelegate||n.DefaultKeyboardNavigationDelegate;this.typeFilterController=new D(this,this.model,this.view,p,e),this.focusNavigationFilter=e=>this.typeFilterController.shouldAllowFocus(e),this.disposables.add(this.typeFilterController)}this.styleElement=o.createStyleSheet(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===E.Always)}get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseClick(){return s.Event.map(this.view.onMouseClick,T)}get onMouseDblClick(){return s.Event.map(this.view.onMouseDblClick,T)}
get onContextMenu(){return s.Event.map(this.view.onContextMenu,R)}get onTap(){return s.Event.map(this.view.onTap,T)}get onPointer(){return s.Event.map(this.view.onPointer,T)}get onKeyDown(){return this.view.onKeyDown}get onKeyUp(){return this.view.onKeyUp}get onKeyPress(){return this.view.onKeyPress}get onDidFocus(){return this.view.onDidFocus}get onDidBlur(){return this.view.onDidBlur}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}get filterOnType(){return!!this._options.filterOnType}get onDidChangeTypeFilterPattern(){return this.typeFilterController?this.typeFilterController.onDidChangePattern:s.Event.None}get expandOnlyOnDoubleClick(){var e;return null!==(e=this._options.expandOnlyOnDoubleClick)&&void 0!==e&&e}get expandOnlyOnTwistieClick(){return void 0!==this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){
this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation,smoothScrolling:this._options.smoothScrolling,horizontalScrolling:this._options.horizontalScrolling}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===E.Always)}get options(){return this._options}updateWidth(e){const t=this.model.getListIndex(e);-1!==t&&this.view.updateWidth(t)}getHTMLElement(){return this.view.getHTMLElement()}get contentHeight(){return this.typeFilterController&&this.typeFilterController.filterOnType&&this.typeFilterController.empty?100:this.view.contentHeight}get onDidChangeContentHeight(){let e=this.view.onDidChangeContentHeight
;return this.typeFilterController&&(e=s.Event.any(e,s.Event.map(this.typeFilterController.onDidChangeEmptyState,()=>this.contentHeight))),e}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollLeft(){return this.view.scrollLeft}set scrollLeft(e){this.view.scrollLeft=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleElement(){const e=this.view.firstVisibleIndex;if(!(e<0||e>=this.view.length))return this.view.element(e).element}get lastVisibleElement(){const e=this.view.lastVisibleIndex;return this.view.element(e).element}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){this.view.domFocus()}isDOMFocused(){return this.getHTMLElement()===document.activeElement}layout(e,t){this.view.layout(e,t)}style(e){const t=`.${this.view.domId}`,i=[]
;e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}expandAll(){this.model.setCollapsed(this.model.rootRef,!1,!0)}collapseAll(){this.model.setCollapsed(this.model.rootRef,!0,!0)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}
isCollapsed(e){return this.model.isCollapsed(e)}toggleKeyboardNavigation(){this.view.toggleKeyboardNavigation(),this.typeFilterController&&this.typeFilterController.toggle()}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const i=e.map(e=>this.model.getNode(e));this.selection.set(i,t);const n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const i=e.map(e=>this.model.getNode(e));this.focus.set(i,t);const n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(n,t,!0)}focusNext(e=1,t=!1,i,n=this.focusNavigationFilter){this.view.focusNext(e,t,i,n)}focusPrevious(e=1,t=!1,i,n=this.focusNavigationFilter){this.view.focusPrevious(e,t,i,n)}focusNextPage(e,t=this.focusNavigationFilter){this.view.focusNextPage(e,t)}focusPreviousPage(e,t=this.focusNavigationFilter){this.view.focusPreviousPage(e,t)}focusLast(e,t=this.focusNavigationFilter){this.view.focusLast(e,t)}
focusFirst(e,t=this.focusNavigationFilter){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);-1!==i&&this.view.reveal(i,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(e=>e.visible))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation()
;const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}navigate(e){return new N(this.view,this.model,e)}dispose(){i.dispose(this.disposables),this.view.dispose()}};class N{constructor(e,t,i){this.view=e,this.model=t,this.index=i?this.model.getListIndex(i):-1}current(){return this.index<0||this.index>=this.view.length?null:this.view.element(this.index).element}previous(){return this.index--,this.current()}next(){return this.index++,this.current()}first(){return this.index=0,this.current()}last(){return this.index=this.view.length-1,this.current()}}})),define(e[550],t([0,1,414,229,339,96]),(function(e,t,i,n,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataTree=void 0;class r extends i.AbstractTree{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.nodesByIdentity=new Map,this.identityProvider=s.identityProvider}getInput(){return this.input}
setInput(e,t){if(t&&!this.identityProvider)throw new n.TreeError(this.user,"Can't restore tree view state without an identity provider");if(this.input=e,!t)return void this._refresh(e);const i=[],o=[];this._refresh(e,e=>{const i=this.identityProvider.getId(e).toString();return-1===t.expanded.indexOf(i)},e=>{const n=this.identityProvider.getId(e.element).toString();t.focus.indexOf(n)>-1&&i.push(e.element),t.selection.indexOf(n)>-1&&o.push(e.element)}),this.setFocus(i),this.setSelection(o),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}updateChildren(e=this.input){if(void 0===this.input)throw new n.TreeError(this.user,"Tree input not set");let t;this.identityProvider&&(t=e=>{const t=this.identityProvider.getId(e).toString(),i=this.nodesByIdentity.get(t);if(i)return i.collapsed}),this._refresh(e,t)}resort(e=this.input,t=!0){this.model.resort(e===this.input?null:e,t)}refresh(e){void 0!==e?this.model.rerender(e):this.view.rerender()}_refresh(e,t,i){let n;if(this.identityProvider){const e=new Set,t=i
;i=i=>{const n=this.identityProvider.getId(i.element).toString();e.add(n),this.nodesByIdentity.set(n,i),t&&t(i)},n=t=>{const i=this.identityProvider.getId(t.element).toString();e.has(i)||this.nodesByIdentity.delete(i)}}this.model.setChildren(e===this.input?null:e,this.iterate(e,t).elements,i,n)}iterate(e,t){const i=[...this.dataSource.getChildren(e)];return{elements:s.Iterable.map(i,e=>{const{elements:i,size:n}=this.iterate(e,t);return{element:e,children:i,collapsible:this.dataSource.hasChildren?this.dataSource.hasChildren(e):void 0,collapsed:0===n?void 0:t&&t(e)}}),size:i.length}}createModel(e,t,i){return new o.ObjectTreeModel(e,t,i)}getViewState(){if(!this.identityProvider)throw new n.TreeError(this.user,"Can't get tree view state without an identity provider");const e=e=>this.identityProvider.getId(e).toString(),t=this.getFocus().map(e),i=this.getSelection().map(e),o=[],s=this.model.getNode(),r=[s];for(;r.length>0;){const t=r.shift();t!==s&&t.collapsible&&!t.collapsed&&o.push(e(t.element)),
r.push(...t.children)}return{focus:t,selection:i,expanded:o,scrollTop:this.scrollTop}}}t.DataTree=r})),define(e[415],t([0,1,96,414,339,722,95]),(function(e,t,i,n,s,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompressibleObjectTree=t.ObjectTree=void 0;class l extends n.AbstractTree{constructor(e,t,i,n,o={}){super(e,t,i,n,o)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=i.Iterable.empty()){this.model.setChildren(e,t)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}updateElementHeight(e,t){this.model.updateElementHeight(e,t)}resort(e,t=!0){this.model.resort(e,t)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new s.ObjectTreeModel(e,t,i)}}t.ObjectTree=l;class c{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){
return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){const o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}o([a.memoize],c.prototype,"compressedTreeNodeProvider",null);t.CompressibleObjectTree=class extends l{constructor(e,t,i,n,o={}){const s=()=>this;super(e,t,i,n.map(e=>new c(s,e)),function(e,t){return t&&Object.assign(Object.assign({},t),{
keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(i){let n;try{n=e().getCompressedTreeNode(i)}catch(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i)}return 1===n.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(i):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(n.element.elements)}}})}(s,o))}setChildren(e,t=i.Iterable.empty()){this.model.setChildren(e,t)}createModel(e,t,i){return new r.CompressibleObjectTreeModel(e,t,i)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}})),define(e[416],t([0,1,414,415,229,2,6,15,96,257,21,390,509]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u){"use strict";function g(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}
function p(e,t){return!!t.parent&&(t.parent===e||p(e,t.parent))}Object.defineProperty(t,"__esModule",{value:!0}),t.CompressibleAsyncDataTree=t.AsyncDataTree=void 0;class m{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new m(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class v{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){
return e.slow?t.classList.add(...u.treeItemLoadingIcon.classNamesArray):t.classList.remove(...u.treeItemLoadingIcon.classNamesArray),!1}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function f(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)}}function S(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}function b(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,anchor:e.anchor}}class _ extends c.ElementsDragAndDropData{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}set context(e){this.data.context=e}get context(){return this.data.context}}function C(e){return e instanceof c.ElementsDragAndDropData?new _(e):e}class y{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){
if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(C(e),t)}onDragOver(e,t,i,n,o=!0){return this.dnd.onDragOver(C(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(C(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function w(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new y(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element})),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,
getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)
}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),additionalScrollHeight:e.additionalScrollHeight})}function E(e,t){t(e),e.children.forEach(e=>E(e,t))}class I{constructor(e,t,i,n,a,l={}){this.user=e,this.dataSource=a,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.Emitter,this._onDidChangeNodeSlowState=new r.Emitter,this.nodeMapper=new o.WeakMapper(e=>new m(e)),this.disposables=new s.DisposableStore,this.identityProvider=l.identityProvider,this.autoExpandSingleChildren=void 0!==l.autoExpandSingleChildren&&l.autoExpandSingleChildren,this.sorter=l.sorter,this.collapseByDefault=l.collapseByDefault,this.tree=this.createTree(e,t,i,n,l),this.root=g({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),
this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return r.Event.map(this.tree.onDidChangeFocus,f)}get onDidChangeSelection(){return r.Event.map(this.tree.onDidChangeSelection,f)}get onKeyDown(){return this.tree.onKeyDown}get onMouseClick(){return r.Event.map(this.tree.onMouseClick,S)}get onMouseDblClick(){return r.Event.map(this.tree.onMouseDblClick,S)}get onContextMenu(){return r.Event.map(this.tree.onContextMenu,b)}get onTap(){return r.Event.map(this.tree.onTap,S)}get onPointer(){return r.Event.map(this.tree.onPointer,S)}get onDidFocus(){return this.tree.onDidFocus}get onDidBlur(){return this.tree.onDidBlur}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidUpdateOptions(){return this.tree.onDidUpdateOptions}get filterOnType(){return this.tree.filterOnType}get expandOnlyOnTwistieClick(){
if("boolean"==typeof this.tree.expandOnlyOnTwistieClick)return this.tree.expandOnlyOnTwistieClick;const e=this.tree.expandOnlyOnTwistieClick;return t=>e(this.nodes.get(t===this.root.element?null:t)||null)}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,o,s,r){const a=new i.ComposedTreeDelegate(o),l=s.map(e=>new v(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),c=w(r)||{};return new n.ObjectTree(e,t,a,l,c)}updateOptions(e={}){this.tree.updateOptions(e)}get options(){return this.tree.options}getHTMLElement(){return this.tree.getHTMLElement()}get contentHeight(){return this.tree.contentHeight}get onDidChangeContentHeight(){return this.tree.onDidChangeContentHeight}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollLeft(){return this.tree.scrollLeft}set scrollLeft(e){this.tree.scrollLeft=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}get lastVisibleElement(){
return this.tree.lastVisibleElement.element}get ariaLabel(){return this.tree.ariaLabel}set ariaLabel(e){this.tree.ariaLabel=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async updateChildren(e=this.root.element,t=!0,i=!1){await this._updateChildren(e,t,i)}async _updateChildren(e=this.root.element,t=!0,i=!1,n){if(void 0===this.root.element)throw new o.TreeError(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.Event.toPromise(this._onDidRender.event));const s=this.getDataNode(e);if(await this.refreshAndRenderNode(s,t,n),i)try{this.tree.rerender(s)
}catch(e){}}resort(e=this.root.element,t=!0){this.tree.resort(this.getDataNode(e),t)}hasNode(e){return e===this.root.element||this.nodes.has(e)}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}updateWidth(e){const t=this.getDataNode(e);this.tree.updateWidth(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if(void 0===this.root.element)throw new o.TreeError(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.Event.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await r.Event.toPromise(this._onDidRender.event)),
i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await r.Event.toPromise(this._onDidRender.event)),n}toggleCollapsed(e,t=!1){return this.tree.toggleCollapsed(this.getDataNode(e),t)}expandAll(){this.tree.expandAll()}collapseAll(){this.tree.collapseAll()}isCollapsible(e){return this.tree.isCollapsible(this.getDataNode(e))}isCollapsed(e){return this.tree.isCollapsed(this.getDataNode(e))}toggleKeyboardNavigation(){this.tree.toggleKeyboardNavigation()}refilter(){this.tree.refilter()}setSelection(e,t){const i=e.map(e=>this.getDataNode(e));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map(e=>e.element)}setFocus(e,t){const i=e.map(e=>this.getDataNode(e));this.tree.setFocus(i,t)}focusNext(e=1,t=!1,i){this.tree.focusNext(e,t,i)}focusPrevious(e=1,t=!1,i){this.tree.focusPrevious(e,t,i)}focusNextPage(e){this.tree.focusNextPage(e)}focusPreviousPage(e){
this.tree.focusPreviousPage(e)}focusLast(e){this.tree.focusLast(e)}focusFirst(e){this.tree.focusFirst(e)}getFocus(){return this.tree.getFocus().map(e=>e.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getRelativeTop(e){return this.tree.getRelativeTop(this.getDataNode(e))}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new o.TreeError(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i){await this.refreshNode(e,t,i),this.render(e,i)}async refreshNode(e,t,i){let n;return this.subTreeRefreshPromises.forEach((o,s)=>{!n&&function(e,t){return e===t||p(e,t)||p(t,e)}(s,e)&&(n=o.then(()=>this.refreshNode(e,t,i)))}),n||this.doRefreshSubTree(e,t,i)}async doRefreshSubTree(e,t,i){let n
;e.refreshPromise=new Promise(e=>n=e),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const o=await this.doRefreshNode(e,t,i);e.stale=!1,await Promise.all(o.map(e=>this.doRefreshSubTree(e,t,i)))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=a.timeout(800);t.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},e=>null),n=this.doGetChildren(e).finally(()=>t.cancel())}else n=Promise.resolve(l.Iterable.empty());try{const o=await n;return this.setChildren(e,o,t,i)}catch(t){if(e!==this.root&&this.tree.collapse(e===this.root?null:e),d.isPromiseCanceledError(t))return[];throw t}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);return t||(t=a.createCancelablePromise(async()=>{const t=await this.dataSource.getChildren(e.element);return this.processChildren(t)}),
this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(d.onUnexpectedError))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const s=new Map,r=new Map;for(const t of e.children)if(s.set(t.element,t),this.identityProvider){const e=this.tree.isCollapsed(t);r.set(t.id,{node:t,collapsed:e})}const a=[],l=o.map(t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=g({element:t,parent:e,hasChildren:o});return o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(i.collapsedByDefault=!1,a.push(i)),i}const l=this.identityProvider.getId(t).toString(),c=r.get(l);if(c){const e=c.node;return s.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?c.collapsed?(e.children.forEach(e=>E(e,e=>this.nodes.delete(e.element))),
e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(e.collapsedByDefault=!1,a.push(e)),e}const d=g({element:t,parent:e,id:l,hasChildren:o});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(d),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(d),n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1?a.push(d):o&&this.collapseByDefault&&!this.collapseByDefault(t)&&(d.collapsedByDefault=!1,a.push(d)),d});for(const e of s.values())E(e,e=>this.nodes.delete(e.element));for(const e of l)this.nodes.set(e.element,e);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].collapsedByDefault=!1,a.push(l[0])),a}render(e,t){const i=e.children.map(e=>this.asTreeElement(e,t));this.tree.setChildren(e===this.root?null:e,i),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){
if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return i=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?l.Iterable.map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}getViewState(){if(!this.identityProvider)throw new o.TreeError(this.user,"Can't get tree view state without an identity provider");const e=e=>this.identityProvider.getId(e).toString(),t=this.getFocus().map(e),i=this.getSelection().map(e),n=[],s=this.tree.getNode(),r=[s];for(;r.length>0;){const t=r.shift();t!==s&&t.collapsible&&!t.collapsed&&n.push(e(t.element.element)),r.push(...t.children)}return{focus:t,selection:i,expanded:n,scrollTop:this.scrollTop}}dispose(){this.disposables.dispose()}}t.AsyncDataTree=I;class x{constructor(e){this.node=e}get element(){return{
elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new x(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class k{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}
renderTwistie(e,t){return e.slow?t.classList.add(...u.treeItemLoadingIcon.classNamesArray):t.classList.remove(...u.treeItemLoadingIcon.classNamesArray),!1}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=s.dispose(this.disposables)}}t.CompressibleAsyncDataTree=class extends I{constructor(e,t,i,n,s,r,a={}){super(e,t,i,s,r,a),this.compressionDelegate=n,this.compressibleNodeMapper=new o.WeakMapper(e=>new x(e)),this.filter=a.filter}createTree(e,t,o,s,r){const a=new i.ComposedTreeDelegate(o),l=s.map(e=>new k(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),c=function(e){const t=e&&w(e)
;return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(e=>e.element))})})}(r)||{};return new n.CompressibleObjectTree(e,t,a,l,c)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}getViewState(){if(!this.identityProvider)throw new o.TreeError(this.user,"Can't get tree view state without an identity provider");const e=e=>this.identityProvider.getId(e).toString(),t=this.getFocus().map(e),i=this.getSelection().map(e),n=[],s=this.tree.getCompressedTreeNode(),r=[s];for(;r.length>0;){const t=r.shift();if(t!==s&&t.collapsible&&!t.collapsed)for(const i of t.element.elements)n.push(e(i.element));r.push(...t.children)}return{focus:t,
selection:i,expanded:n,scrollTop:this.scrollTop}}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=e=>this.identityProvider.getId(e).toString(),n=e=>{const t=new Set;for(const n of e){const e=this.tree.getCompressedTreeNode(n===this.root?null:n);if(e.element)for(const n of e.element.elements)t.add(i(n.element))}return t},o=n(this.tree.getSelection()),s=n(this.tree.getFocus());super.render(e,t);const r=this.getSelection();let a=!1;const l=this.getFocus();let c=!1;const d=e=>{const t=e.element;if(t)for(let e=0;e{const t=function(e){
return"boolean"==typeof e?e?1:0:h.isFilterResult(e)?h.getVisibleState(e.visibility):h.getVisibleState(e)}(this.filter.filter(e,1));if(2===t)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===t})),super.processChildren(e)}}})),define(e[952],t([3,4]),(function(e,t){return e.create("vs/base/browser/ui/tree/treeDefaults",t)})),define(e[551],t([0,1,952,30]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollapseAllAction=void 0;class o extends n.Action{constructor(e,t){super("vs.tree.collapse",i.localize(0,null),"collapse-all",t),this.viewer=e}async run(){this.viewer.collapseAll(),this.viewer.setSelection([]),this.viewer.setFocus([]),this.viewer.domFocus(),this.viewer.focusFirst()}}t.CollapseAllAction=o})),define(e[953],t([3,4]),(function(e,t){return e.create("vs/base/common/date",t)})),define(e[198],t([0,1,24,953]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
t.toLocalISOString=t.fromNow=void 0;const o=60,s=60*o,r=24*s,a=7*r,l=30*r,c=365*r;t.fromNow=function e(t,i){"number"!=typeof t&&(t=t.getTime());const d=Math.round(((new Date).getTime()-t)/1e3);if(d<-30)return n.localize(0,null,e((new Date).getTime()+1e3*d,!1));if(d<30)return n.localize(1,null);let h;return d1?i.localize(4,null,s,n.length):s}if(n.isString(t))return t;if(t.detail){const e=t.detail;if(e.error)return s(e.error,r);if(e.exception)return s(e.exception,r)}return t.stack?s(t,r):t.message?t.message:i.localize(5,null)}})),define(e[955],t([3,4]),(function(e,t){return e.create("vs/base/common/jsonErrorMessages",t)})),define(e[347],t([0,1,955]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParseErrorMessage=void 0,t.getParseErrorMessage=function(e){switch(e){case 1:return i.localize(0,null);case 2:return i.localize(1,null);case 3:return i.localize(2,null);case 4:return i.localize(3,null);case 5:return i.localize(4,null);case 6:return i.localize(5,null);case 7:return i.localize(6,null);case 8:return i.localize(7,null);case 9:return i.localize(8,null);default:return""}}})),define(e[956],t([3,4]),(function(e,t){
return e.create("vs/base/common/keybindingLabels",t)})),define(e[303],t([0,1,956]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserSettingsLabelProvider=t.ElectronAcceleratorLabelProvider=t.AriaLabelProvider=t.UILabelProvider=t.ModifierLabelProvider=void 0;class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let s=0,r=t.length;s{t.checkbox.offsetParent||e.preventDefault()})),t.checkbox=i.append(n,_("input.quick-input-list-checkbox")),
t.checkbox.type="checkbox",t.toDisposeTemplate.push(i.addStandardDisposableListener(t.checkbox,i.EventType.CHANGE,e=>{t.element.checked=t.checkbox.checked}));const o=i.append(n,_(".quick-input-list-rows")),s=i.append(o,_(".quick-input-list-row")),r=i.append(o,_(".quick-input-list-row"));t.label=new c.IconLabel(s,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0});const a=i.append(s,_(".quick-input-list-entry-keybinding"));t.keybinding=new S.KeybindingLabel(a,g.OS);const l=i.append(r,_(".quick-input-list-label-meta"));return t.detail=new d.HighlightedLabel(l,!0),t.separator=i.append(t.entry,_(".quick-input-list-separator")),t.actionBar=new p.ActionBar(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=n.dispose(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(e=>i.checkbox.checked=e))
;const{labelHighlights:o,descriptionHighlights:s,detailHighlights:r}=e,a=Object.create(null);a.matches=o||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=s||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,a),i.keybinding.set(e.item.keybinding),i.detail.set(e.saneDetail,r),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear();const l=e.item.buttons;l&&l.length?(i.actionBar.push(l.map((t,i)=>{let n=t.iconClass||(t.iconPath?v.getIconClass(t.iconPath):void 0);t.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible");const o=new m.Action(`id-${i}`,"",n,!0,()=>(e.fireButtonTriggered({button:t,item:e.item}),Promise.resolve()));return o.tooltip=t.tooltip||"",o}),{icon:!0,label:!1}),
i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=n.dispose(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=n.dispose(e.toDisposeElement),e.toDisposeTemplate=n.dispose(e.toDisposeTemplate)}}y.ID="listelement";class w{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return y.ID}}var E;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage"}(E=t.QuickInputListFocus||(t.QuickInputListFocus={}));class I{constructor(e,t,n){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new a.Emitter,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new a.Emitter,
this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new a.Emitter,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new a.Emitter,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new a.Emitter,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new a.Emitter,this.onKeyDown=this._onKeyDown.event,this._onLeave=new a.Emitter,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=i.append(this.parent,_(".quick-input-list"));const o=new w,s=new x;this.list=n.createList("QuickInput",this.container,o,[new y],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:s}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{const t=new l.StandardKeyboardEvent(e)
;switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(g.isMacintosh?e.metaKey:e.ctrlKey)&&this.list.setFocus(u.range(this.list.length));break;case 16:const t=this.list.getFocus();1===t.length&&0===t[0]&&this._onLeave.fire();break;case 18:const i=this.list.getFocus();1===i.length&&i[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(i.addDisposableListener(this.container,i.EventType.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}
get onDidChangeFocus(){return a.Event.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return a.Event.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=n.dispose(this.elementDisposables);const t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,a,l;if("separator"!==n.type){
const c=o&&e[o-1],d=n.label&&n.label.replace(/\r?\n/g," "),h=n.description&&n.description.replace(/\r?\n/g," "),u=n.detail&&n.detail.replace(/\r?\n/g," "),g=n.ariaLabel||[d,h,u].map(e=>e&&s.parseCodicons(e).text).filter(e=>!!e).join(", ");i.push(new C({index:o,item:n,saneLabel:d,saneAriaLabel:g,saneDescription:h,saneDetail:u,labelHighlights:null===(r=n.highlights)||void 0===r?void 0:r.label,descriptionHighlights:null===(a=n.highlights)||void 0===a?void 0:a.description,detailHighlights:null===(l=n.highlights)||void 0===l?void 0:l.detail,checked:!1,separator:c&&"separator"===c.type?c:void 0,fireButtonTriggered:t}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getElementsCount(){
return this.inputElements.length}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){const e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}getSelectedElements(){return this.list.getSelectedElements().map(e=>e.item)}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const i of e)t.add(i);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return
;switch(e===E.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=E.First),e===E.Previous&&0===this.list.getFocus()[0]&&(e=E.Last),e===E.Second&&this.list.length<2&&(e=E.First),e){case E.First:this.list.focusFirst();break;case E.Second:this.list.focusNth(1);break;case E.Last:this.list.focusLast();break;case E.Next:this.list.focusNext();break;case E.Previous:this.list.focusPrevious();break;case E.NextPage:this.list.focusNextPage();break;case E.PreviousPage:this.list.focusPreviousPage()}const t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;(e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)?this.elements.forEach(t=>{
const i=this.matchOnLabel?f.withNullAsUndefined(s.matchesFuzzyCodiconAware(e,s.parseCodicons(t.saneLabel))):void 0,n=this.matchOnDescription?f.withNullAsUndefined(s.matchesFuzzyCodiconAware(e,s.parseCodicons(t.saneDescription||""))):void 0,o=this.matchOnDetail?f.withNullAsUndefined(s.matchesFuzzyCodiconAware(e,s.parseCodicons(t.saneDetail||""))):void 0;i||n||o?(t.labelHighlights=i,t.descriptionHighlights=n,t.detailHighlights=o,t.hidden=!1):(t.labelHighlights=void 0,t.descriptionHighlights=void 0,t.detailHighlights=void 0,t.hidden=!t.item.alwaysShow),t.separator=void 0}):this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});const t=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((e,t)=>(function(e,t,i){const n=e.labelHighlights||[],o=t.labelHighlights||[];if(n.length&&!o.length)return-1
;if(!n.length&&o.length)return 1;if(0===n.length&&0===o.length)return 0;return r.compareAnything(e.saneLabel,t.saneLabel,i)})(e,t,i))}return this.elementsToIndexes=t.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=n.dispose(this.elementDisposables),this.disposables=n.dispose(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),
this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}o([h.memoize],I.prototype,"onDidChangeFocus",null),o([h.memoize],I.prototype,"onDidChangeSelection",null),t.QuickInputList=I;class x{getWidgetAriaLabel(){return b.localize(0,null)}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}})),define(e[960],t([0,1,512,7,31,959,947,74,957,213,214,6,174,2,97,78,30,14,15,524,44,343]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g,p,m,v,f,S,b,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickInputController=void 0;const C=n.$,y={iconClass:_.registerIcon("quick-input-back",_.Codicon.arrowLeft).classNames,tooltip:l.localize(0,null),handle:-1};class w extends g.Disposable{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,
this.onDidTriggerButtonEmitter=this._register(new h.Emitter),this.onDidHideEmitter=this._register(new h.Emitter),this.onDisposeEmitter=this._register(new h.Emitter),this.visibleDisposables=this._register(new g.DisposableStore),this.onDidTriggerButton=this.onDidTriggerButtonEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDispose=this.onDisposeEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){
this._ignoreFocusOut=e,this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire()}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ;");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new S.TimeoutTimer,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),
!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter(e=>e===y);this.ui.leftActionBar.push(e.map((e,t)=>{const i=new v.Action(`id-${t}`,"",e.iconClass||b.getIconClass(e.iconPath),!0,async()=>{this.onDidTriggerButtonEmitter.fire(e)});return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter(e=>e!==y);this.ui.rightActionBar.push(t.map((e,t)=>{const i=new v.Action(`id-${t}`,"",e.iconClass||b.getIconClass(e.iconPath),!0,async()=>{this.onDidTriggerButtonEmitter.fire(e)});return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey)}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}
getSteps(){return this.step&&this.totalSteps?l.localize(1,null,this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e===p.default.Error){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class E extends w{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new h.Emitter),this.onDidAcceptEmitter=this._register(new h.Emitter),this.onDidCustomEmitter=this._register(new h.Emitter),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,
this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?i.ItemActivation.NONE:i.ItemActivation.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new h.Emitter),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new h.Emitter),this.onDidTriggerItemButtonEmitter=this._register(new h.Emitter),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidCustom=this.onDidCustomEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,
this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value=e||"",this.update()}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel
}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?i.NO_KEY_MODS:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){
return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}inputHasFocus(){return!!this.visible&&this.ui.inputBox.hasFocus()}focusOnInput(){this.ui.inputBox.setFocus()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}get hideCheckAll(){return!!this._hideCheckAll}set hideCheckAll(e){this._hideCheckAll=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(s.QuickInputListFocus.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()
})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(s.QuickInputListFocus.Next),this.canSelectMany&&this.ui.list.domFocus(),n.EventHelper.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(s.QuickInputListFocus.Previous):this.ui.list.focus(s.QuickInputListFocus.Last),this.canSelectMany&&this.ui.list.domFocus(),n.EventHelper.stop(e,!0);break;case 12:this.ui.list.focus(s.QuickInputListFocus.NextPage),this.canSelectMany&&this.ui.list.domFocus(),n.EventHelper.stop(e,!0);break;case 11:this.ui.list.focus(s.QuickInputListFocus.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),n.EventHelper.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!0}));break;case 14:
!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(s.QuickInputListFocus.First),n.EventHelper.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(s.QuickInputListFocus.Last),n.EventHelper.stop(e,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.onDidAcceptEmitter.fire({inBackground:!1})})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&f.equals(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{
this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&f.equals(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.onDidAcceptEmitter.fire({inBackground:t instanceof MouseEvent&&1===t.button}))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&f.equals(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}registerQuickNavigation(){return n.addDisposableListener(this.ui.container,n.EventType.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new a.StandardKeyboardEvent(e),i=t.keyCode
;this._quickNavigate.keybindings.some(e=>{const[n,o]=e.getParts();return!o&&(n.shiftKey&&4===i?!(t.ctrlKey||t.altKey||t.metaKey):!(!n.altKey||6!==i)||(!(!n.ctrlKey||5!==i)||!(!n.metaKey||57!==i)))})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!1})),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=!1,t=!1;this._hideInput&&this._items.length>0&&(this.ui.isScreenReaderOptimized()?t=!0:e=!0),this.ui.container.classList.toggle("hidden-input",e&&!this.description);const n={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!e,progressBar:!e,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};if(this.ui.setVisibilities(n),super.update(),
this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),t)this.ui.inputBox.ariaLabel="";else{const e=this.ariaLabel||this.placeholder||E.DEFAULT_ARIA_LABEL;this.ui.inputBox.ariaLabel!==e&&(this.ui.inputBox.ariaLabel=e)}if(this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),
this._itemActivation){case i.ItemActivation.NONE:this._itemActivation=i.ItemActivation.FIRST;break;case i.ItemActivation.SECOND:this.ui.list.focus(s.QuickInputListFocus.Second),this._itemActivation=i.ItemActivation.FIRST;break;case i.ItemActivation.LAST:this.ui.list.focus(s.QuickInputListFocus.Last),this._itemActivation=i.ItemActivation.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),
this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.validationMessage?(this.ui.message.textContent=this.validationMessage,this.showMessageDecoration(p.default.Error)):(this.ui.message.textContent=null,this.showMessageDecoration(p.default.Ignore)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),n.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(s.QuickInputListFocus.First))}}E.DEFAULT_ARIA_LABEL=l.localize(2,null);class I extends w{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.noValidationMessage=I.noPromptMessage,this.onDidValueChangeEmitter=this._register(new h.Emitter),this.onDidAcceptEmitter=this._register(new h.Emitter),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",
this.update()}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}get prompt(){return this._prompt}set prompt(e){this._prompt=e,this.noValidationMessage=e?l.localize(4,null,e):I.noPromptMessage,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0};this.ui.setVisibilities(e),
super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password),this.validationMessage||this.ui.message.textContent===this.noValidationMessage||(this.ui.message.textContent=this.noValidationMessage,this.showMessageDecoration(p.default.Ignore)),this.validationMessage&&this.ui.message.textContent!==this.validationMessage&&(this.ui.message.textContent=this.validationMessage,this.showMessageDecoration(p.default.Error))}}I.noPromptMessage=l.localize(3,null);class x extends g.Disposable{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new h.Emitter),
this.onDidCustomEmitter=this._register(new h.Emitter),this.onDidTriggerButtonEmitter=this._register(new h.Emitter),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new h.Emitter),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new h.Emitter),this.onHide=this.onHideEmitter.event,this.backButton=y,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(n.addDisposableListener(window,n.EventType.KEY_DOWN,e,!0)),this._register(n.addDisposableListener(window,n.EventType.KEY_UP,e,!0)),this._register(n.addDisposableListener(window,n.EventType.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=n.append(this.parentElement,C(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none"
;const t=n.createStyleSheet(e),i=n.append(e,C(".quick-input-titlebar")),o=this._register(new m.ActionBar(i));o.domNode.classList.add("quick-input-left-action-bar");const h=n.append(i,C(".quick-input-title")),g=this._register(new m.ActionBar(i));g.domNode.classList.add("quick-input-right-action-bar");const p=n.append(e,C(".quick-input-description")),v=n.append(e,C(".quick-input-header")),f=n.append(v,C("input.quick-input-check-all"));f.type="checkbox",this._register(n.addStandardDisposableListener(f,n.EventType.CHANGE,e=>{const t=f.checked;O.setAllVisibleChecked(t)})),this._register(n.addDisposableListener(f,n.EventType.CLICK,e=>{(e.x||e.y)&&y.setFocus()}));const S=n.append(v,C(".quick-input-description")),b=n.append(v,C(".quick-input-and-message")),_=n.append(b,C(".quick-input-filter")),y=this._register(new r.QuickInputBox(_));y.setAttribute("aria-describedby",`${this.idPrefix}message`);const w=n.append(_,C(".quick-input-visible-count"));w.setAttribute("aria-live","polite"),
w.setAttribute("aria-atomic","true");const I=new c.CountBadge(w,{countFormat:l.localize(5,null)}),x=n.append(_,C(".quick-input-count"));x.setAttribute("aria-live","polite");const k=new c.CountBadge(x,{countFormat:l.localize(6,null)}),D=n.append(v,C(".quick-input-action")),T=new u.Button(D);T.label=l.localize(7,null),this._register(T.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));const R=n.append(v,C(".quick-input-action")),A=new u.Button(R);A.label=l.localize(8,null),this._register(A.onDidClick(e=>{this.onDidCustomEmitter.fire()}));const M=n.append(b,C(`#${this.idPrefix}message.quick-input-message`)),L=new d.ProgressBar(e);L.getContainer().classList.add("quick-input-progress");const O=this._register(new s.QuickInputList(e,this.idPrefix+"list",this.options));this._register(O.onChangedAllVisibleChecked(e=>{f.checked=e})),this._register(O.onChangedVisibleCount(e=>{I.setCount(e)})),this._register(O.onChangedCheckedCount(e=>{k.setCount(e)})),this._register(O.onLeave(()=>{setTimeout(()=>{y.setFocus(),
this.controller instanceof E&&this.controller.canSelectMany&&O.clearFocus()},0)})),this._register(O.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const N=n.trackFocus(e);return this._register(N),this._register(n.addDisposableListener(e,n.EventType.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(N.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(),this.previousFocusElement=void 0})),this._register(n.addDisposableListener(e,n.EventType.FOCUS,e=>{y.setFocus()})),this._register(n.addDisposableListener(e,n.EventType.KEY_DOWN,t=>{const i=new a.StandardKeyboardEvent(t);switch(i.keyCode){case 3:n.EventHelper.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:n.EventHelper.stop(t,!0),this.hide();break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){const o=[".action-label.codicon"]
;e.classList.contains("show-checkboxes")?o.push("input"):o.push("input[type=text]"),this.getUI().list.isDisplayed()&&o.push(".monaco-list");const s=e.querySelectorAll(o.join(", "));i.shiftKey&&i.target===s[0]?(n.EventHelper.stop(t,!0),s[s.length-1].focus()):i.shiftKey||i.target!==s[s.length-1]||(n.EventHelper.stop(t,!0),s[0].focus())}}})),this.ui={container:e,styleSheet:t,leftActionBar:o,titleBar:i,title:h,description1:p,description2:S,rightActionBar:g,checkAll:f,filterContainer:_,inputBox:y,visibleCountContainer:w,visibleCount:I,countContainer:x,count:k,okContainer:D,ok:T,message:M,customButtonContainer:R,customButton:A,progressBar:L,list:O,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),
setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},i=o.CancellationToken.None){return new Promise((n,o)=>{let s=e=>{s=n,t.onKeyMods&&t.onKeyMods(r.keyMods),n(e)};if(i.isCancellationRequested)return void s(void 0);const r=this.createQuickPick();let a;const l=[r,r.onDidAccept(()=>{if(r.canSelectMany)s(r.selectedItems.slice()),r.hide();else{const e=r.activeItems[0];e&&(s(e),r.hide())}}),r.onDidChangeActive(e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)}),r.onDidChangeSelection(e=>{if(!r.canSelectMany){const t=e[0];t&&(s(t),r.hide())}}),r.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{const t=r.items.indexOf(e.item);if(-1!==t){const e=r.items.slice();e.splice(t,1),r.items=e}}}))),r.onDidChangeValue(e=>{!a||e||1===r.activeItems.length&&r.activeItems[0]===a||(r.activeItems=[a])
}),i.onCancellationRequested(()=>{r.hide()}),r.onDidHide(()=>{g.dispose(l),s(void 0)})];r.canSelectMany=!!t.canPickMany,r.placeholder=t.placeHolder,r.ignoreFocusOut=!!t.ignoreFocusLost,r.matchOnDescription=!!t.matchOnDescription,r.matchOnDetail=!!t.matchOnDetail,r.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,r.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,r.quickNavigate=t.quickNavigate,r.contextKey=t.contextKey,r.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{a=t,r.busy=!1,r.items=e,r.canSelectMany&&(r.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),a&&(r.activeItems=[a])}),r.show(),Promise.resolve(e).then(void 0,e=>{o(e),r.hide()})})}input(e={},t=o.CancellationToken.None){return new Promise(i=>{if(t.isCancellationRequested)return void i(void 0);const n=this.createInputBox(),o=e.validateInput||(()=>Promise.resolve(void 0)),s=h.Event.debounce(n.onDidChangeValue,(e,t)=>t,100);let r=e.value||"",a=Promise.resolve(o(r));const l=[n,s(e=>{e!==r&&(a=Promise.resolve(o(e)),
r=e),a.then(t=>{e===r&&(n.validationMessage=t||void 0)})}),n.onDidAccept(()=>{const e=n.value;e!==r&&(a=Promise.resolve(o(e)),r=e),a.then(t=>{t?e===r&&(n.validationMessage=t):(i(e),n.hide())})}),t.onCancellationRequested(()=>{n.hide()}),n.onDidHide(()=>{g.dispose(l),i(void 0)})];n.value=e.value||"",n.valueSelection=e.valueSelection,n.prompt=e.prompt,n.placeholder=e.placeHolder,n.password=!!e.password,n.ignoreFocusOut=!!e.ignoreFocusLost,n.show()})}createQuickPick(){const e=this.getUI();return new E(e)}createInputBox(){const e=this.getUI();return new I(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(p.default.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),t.message.textContent="",
t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();y.tooltip=n?l.localize(9,null,n):l.localize(10,null),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",
t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}
hide(){var e;const t=this.controller;if(t){const i=!(null===(e=this.ui)||void 0===e?void 0:e.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",i||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),t.didHide()}}focus(){this.isDisplayed()&&this.getUI().inputBox.setFocus()}toggle(){this.isDisplayed()&&this.controller instanceof E&&this.controller.canSelectMany&&this.getUI().list.toggleCheckbox()}navigate(e,t){this.isDisplayed()&&this.getUI().list.isDisplayed()&&(this.getUI().list.focus(e?s.QuickInputListFocus.Next:s.QuickInputListFocus.Previous),t&&this.controller instanceof E&&(this.controller.quickNavigate=t))}async accept(e={alt:!1,ctrlCmd:!1}){this.keyMods.alt=e.alt,this.keyMods.ctrlCmd=e.ctrlCmd,this.onDidAcceptEmitter.fire()}async back(){this.onDidTriggerButtonEmitter.fire(this.backButton)}async cancel(){
this.hide()}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,x.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 5px 8px ${o}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),
this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const s=[];this.styles.list.listInactiveFocusForeground&&(s.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`),s.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)),this.styles.list.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`);const r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}isDisplayed(){return this.ui&&"none"!==this.ui.container.style.display}}t.QuickInputController=x,x.MAX_WIDTH=600})),define(e[961],t([3,4]),(function(e,t){
return e.create("vs/editor/browser/controller/coreCommands",t)})),define(e[962],t([3,4]),(function(e,t){return e.create("vs/editor/browser/controller/textAreaHandler",t)})),define(e[963],t([3,4]),(function(e,t){return e.create("vs/editor/browser/editorExtensions",t)})),define(e[964],t([3,4]),(function(e,t){return e.create("vs/editor/browser/widget/codeEditorWidget",t)})),define(e[965],t([3,4]),(function(e,t){return e.create("vs/editor/browser/widget/diffEditorWidget",t)})),define(e[966],t([3,4]),(function(e,t){return e.create("vs/editor/browser/widget/diffReview",t)})),define(e[967],t([3,4]),(function(e,t){return e.create("vs/editor/browser/widget/inlineDiffMargin",t)})),define(e[968],t([0,1,967,7,30,2,18,44]),(function(e,t,i,n,o,s,r,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineDiffMargin=void 0;class l extends s.Disposable{constructor(e,t,s,l,c,d){super(),this._viewZoneId=e,this._marginDomNode=t,this.editor=s,this.diff=l,this._contextMenuService=c,this._clipboardService=d,
this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=a.Codicon.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const h=s.getOption(51),u=s.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${h}px`,this._diffActions.style.lineHeight=`${h}px`,this._marginDomNode.appendChild(this._diffActions);const g=[];g.push(new o.Action("diff.clipboard.copyDeletedContent",l.originalEndLineNumber>l.modifiedStartLineNumber?i.localize(0,null):i.localize(1,null),void 0,!0,async()=>{await this._clipboardService.writeText(l.originalContent.join(u)+u)}));let p=0,m=void 0;l.originalEndLineNumber>l.modifiedStartLineNumber&&(m=new o.Action("diff.clipboard.copyDeletedLineContent",i.localize(2,null,l.originalStartLineNumber),void 0,!0,async()=>{await this._clipboardService.writeText(l.originalContent[p])}),g.push(m)),
s.getOption(72)||g.push(new o.Action("diff.inline.revertChange",i.localize(3,null),void 0,!0,async()=>{if(0===l.modifiedEndLineNumber){const e=s.getModel().getLineMaxColumn(l.modifiedStartLineNumber);s.executeEdits("diffEditor",[{range:new r.Range(l.modifiedStartLineNumber,e,l.modifiedStartLineNumber,e),text:u+l.originalContent.join(u)}])}else{const e=s.getModel().getLineMaxColumn(l.modifiedEndLineNumber);s.executeEdits("diffEditor",[{range:new r.Range(l.modifiedStartLineNumber,1,l.modifiedEndLineNumber,e),text:l.originalContent.join(u)}])}}));const v=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(m&&(m.label=i.localize(4,null,l.originalStartLineNumber+p)),g),autoSelectFirstItem:!0})};this._register(n.addStandardDisposableListener(this._diffActions,"mousedown",e=>{const{top:t,height:i}=n.getDomNodePagePosition(this._diffActions);let o=Math.floor(h/3);e.preventDefault(),v(e.posx,t+i+o)})),this._register(s.onMouseMove(e=>{if(8===e.target.type||5===e.target.type){
e.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,p=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h)):this.visibility=!1}else this.visibility=!1})),this._register(s.onMouseDown(e=>{if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._viewZoneId&&(e.event.preventDefault(),p=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,h),v(e.event.posx,e.event.posy+h))}}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,i){const{top:o}=n.getDomNodePagePosition(e),s=t-o,r=Math.floor(s/i),a=r*i;return this._diffActions.style.top=`${a}px`,r}}t.InlineDiffMargin=l})),define(e[969],t([3,4]),(function(e,t){return e.create("vs/editor/common/config/commonEditorConfig",t)})),define(e[970],t([3,4]),(function(e,t){return e.create("vs/editor/common/config/editorOptions",t)})),
define(e[111],t([0,1,970,12,262]),(function(e,t,i,n,o){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.EditorOptions=t.EditorOption=t.editorOptionsRegistry=t.EDITOR_MODEL_DEFAULTS=t.EDITOR_FONT_DEFAULTS=t.WrappingIndent=t.filterValidationDecorations=t.RenderLineNumbersType=t.EditorLayoutInfoComputer=t.RenderMinimap=t.EditorFontLigatures=t.cursorStyleToString=t.TextEditorCursorStyle=t.TextEditorCursorBlinkingStyle=t.ComputeOptionsMemory=t.ValidatedEditorOptions=t.ConfigurationChangedEvent=t.MINIMAP_GUTTER_WIDTH=t.EditorAutoIndentStrategy=void 0,function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(t.EditorAutoIndentStrategy||(t.EditorAutoIndentStrategy={})),t.MINIMAP_GUTTER_WIDTH=8;t.ConfigurationChangedEvent=class{constructor(e){this._values=e}hasChanged(e){return this._values[e]}};t.ValidatedEditorOptions=class{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){
this._values[e]=t}};class r{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}t.ComputeOptionsMemory=r;class a{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class l{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class c{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}class d extends c{static boolean(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return d.boolean(e,this.defaultValue)}}class h extends c{constructor(e,t,i,n,o,s){void 0!==s&&(s.type="integer",s.default=i,s.minimum=n,s.maximum=o),super(e,t,i,s),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){if(void 0===e)return t
;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),0|(o=Math.min(n,o)))}validate(e){return h.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class u extends c{constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(u.float(e,this.defaultValue))}}class g extends c{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return g.string(e,this.defaultValue)}}class p extends c{constructor(e,t,i,n,o){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}static stringSet(e,t,i){return"string"!=typeof e?t:-1===i.indexOf(e)?t:e}validate(e){return p.stringSet(e,this.defaultValue,this._allowedValues)}}class m extends a{constructor(e,t,i,n,o,s,r){
void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e?this.defaultValue:-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}!function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(t.TextEditorCursorBlinkingStyle||(t.TextEditorCursorBlinkingStyle={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(s=t.TextEditorCursorStyle||(t.TextEditorCursorStyle={})),t.cursorStyleToString=function(e){switch(e){case s.Line:return"line";case s.Block:return"block";case s.Underline:return"underline";case s.LineThin:return"line-thin";case s.BlockOutline:return"block-outline";case s.UnderlineThin:return"underline-thin"}};class v extends a{constructor(){super(37,"fontLigatures",v.OFF,{anyOf:[{
type:"boolean",description:i.localize(16,null)},{type:"string",description:i.localize(17,null)}],description:i.localize(18,null),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?v.OFF:"true"===e?v.ON:e:Boolean(e)?v.ON:v.OFF}}t.EditorFontLigatures=v,v.OFF='"liga" off, "calt" off',v.ON='"liga" on, "calt" on';class f extends a{constructor(){super(39,"fontWeight",t.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:f.MINIMUM_VALUE,maximum:f.MAXIMUM_VALUE,errorMessage:i.localize(20,null)},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:f.SUGGESTION_VALUES}],default:t.EDITOR_FONT_DEFAULTS.fontWeight,description:i.localize(21,null)})}validate(e){return"normal"===e||"bold"===e?e:String(h.clampedInt(e,t.EDITOR_FONT_DEFAULTS.fontWeight,f.MINIMUM_VALUE,f.MAXIMUM_VALUE))}}f.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],f.MINIMUM_VALUE=1,f.MAXIMUM_VALUE=1e3;!function(e){e[e.None=0]="None",
e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(t.RenderMinimap||(t.RenderMinimap={}));class S extends l{constructor(){super(117,[42,50,31,56,84,52,53,86,106,109,110,2])}compute(e,t,i){return S.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,i){const n=e.outerWidth,o=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,
minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*o),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:o};const r=i.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(2*e.minimap.scale):e.minimap.scale
;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,v=e.verticalScrollbarWidth,f=e.viewLineCount,b=e.remainingWidth,_=e.isViewportWrapping,C=h?2:3;let y=Math.floor(s*o);const w=y/s;let E=!1,I=!1,x=C*u,k=u/s,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:r,minimapLineCount:c}=S.computeContainedMinimapLineCount({viewLineCount:f,scrollBeyondLastLine:d,height:o,lineHeight:l,pixelRatio:s});if(f/c>1)E=!0,I=!0,x=1,k=(u=1)/s;else{let o=!1,c=u+1;if("fit"===p){const t=Math.ceil((f+n)*x);_&&a&&b<=i.stableFitRemainingWidth?(o=!0,c=i.stableFitMaxMinimapScale):(o=t>y,_&&o?(i.stableMinimapLayoutInput=e,i.stableFitRemainingWidth=b):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0))}if("fill"===p||o){E=!0;const e=u;x=Math.min(l*s,Math.max(1,Math.floor(1/r))),(u=Math.min(c,Math.max(1,Math.floor(x/C))))>e&&(D=Math.min(2,u/e)),k=u/s/D,y=Math.ceil(Math.max(t,f+n)*x),_&&o&&(i.stableFitMaxMinimapScale=u)}}}
const T=Math.floor(g*k),R=Math.min(T,Math.max(0,Math.floor((b-v-2)*k/(c+k)))+t.MINIMAP_GUTTER_WIDTH);let A=Math.floor(s*R);const M=A/s;return{renderMinimap:h?1:2,minimapLeft:"left"===m?0:n-R-v,minimapWidth:R,minimapHeightIsEditorHeight:E,minimapIsSampling:I,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:A=Math.floor(A*D),minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:M,minimapCanvasOuterHeight:w}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(106),g=e.get(109),p=e.get(110),m=e.get(2),v=t.isDominatedByLongLines,f=e.get(42),b=0!==e.get(52).renderType,_=e.get(53),C=e.get(86),y=e.get(56),w=e.get(84),E=w.verticalScrollbarSize,I=w.verticalHasArrows,x=w.arrowSize,k=w.horizontalScrollbarSize,D=e.get(50),T=e.get(31);let R;if("string"==typeof D&&/^\d+(\.\d+)?ch$/.test(D)){const e=parseFloat(D.substr(0,D.length-2));R=h.clampedInt(e*a,0,0,1e3)
}else R=h.clampedInt(D,0,0,1e3);T&&(R+=16);let A=0;if(b){const e=Math.max(s,_);A=Math.round(e*l)}let M=0;f&&(M=o);let L=0,O=L+M,N=O+A,P=N+R;const F=i-M-A-R;let B=!1,V=!1,W=-1;2!==m&&(p&&v?(B=!0,V=!0):"on"===u||"bounded"===u?V=!0:"wordWrapColumn"===u&&(W=g));const z=S._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,minimap:y,verticalScrollbarWidth:E,viewLineCount:d,remainingWidth:F,isViewportWrapping:V},t.memory||new r);0!==z.renderMinimap&&0===z.minimapLeft&&(L+=z.minimapWidth,O+=z.minimapWidth,N+=z.minimapWidth,P+=z.minimapWidth);const U=F-z.minimapWidth,K=Math.max(1,Math.floor((U-E-2)/a)),H=I?x:0;return V&&(W=Math.max(1,K),"bounded"===u&&(W=Math.min(W,g))),{width:i,height:n,glyphMarginLeft:L,glyphMarginWidth:M,lineNumbersLeft:O,lineNumbersWidth:A,decorationsLeft:N,decorationsWidth:R,contentLeft:P,contentWidth:U,minimap:z,viewportColumn:K,isWordWrapMinified:B,isViewportWrapping:V,wrappingColumn:W,verticalScrollbarWidth:E,
horizontalScrollbarHeight:k,overviewRuler:{top:H,width:E,height:n-2*H,right:0}}}}t.EditorLayoutInfoComputer=S;!function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(t.RenderLineNumbersType||(t.RenderLineNumbersType={}));t.filterValidationDecorations=function(e){const t=e.get(79);return"editable"===t?e.get(72):"on"!==t};function b(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}!function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(t.WrappingIndent||(t.WrappingIndent={}));function _(e){return t.editorOptionsRegistry[e.id]=e,e}t.EDITOR_FONT_DEFAULTS={fontFamily:n.isMacintosh?"Menlo, Monaco, 'Courier New', monospace":n.isLinux?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:n.isMacintosh?12:14,lineHeight:0,letterSpacing:0},t.EDITOR_MODEL_DEFAULTS={
tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},t.editorOptionsRegistry=[],function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingOvertype=6]="autoClosingOvertype",e[e.autoClosingQuotes=7]="autoClosingQuotes",e[e.autoIndent=8]="autoIndent",e[e.automaticLayout=9]="automaticLayout",e[e.autoSurround=10]="autoSurround",e[e.codeLens=11]="codeLens",e[e.colorDecorators=12]="colorDecorators",e[e.columnSelection=13]="columnSelection",e[e.comments=14]="comments",e[e.contextmenu=15]="contextmenu",e[e.copyWithSyntaxHighlighting=16]="copyWithSyntaxHighlighting",e[e.cursorBlinking=17]="cursorBlinking",e[e.cursorSmoothCaretAnimation=18]="cursorSmoothCaretAnimation",
e[e.cursorStyle=19]="cursorStyle",e[e.cursorSurroundingLines=20]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=21]="cursorSurroundingLinesStyle",e[e.cursorWidth=22]="cursorWidth",e[e.disableLayerHinting=23]="disableLayerHinting",e[e.disableMonospaceOptimizations=24]="disableMonospaceOptimizations",e[e.dragAndDrop=25]="dragAndDrop",e[e.emptySelectionClipboard=26]="emptySelectionClipboard",e[e.extraEditorClassName=27]="extraEditorClassName",e[e.fastScrollSensitivity=28]="fastScrollSensitivity",e[e.find=29]="find",e[e.fixedOverflowWidgets=30]="fixedOverflowWidgets",e[e.folding=31]="folding",e[e.foldingStrategy=32]="foldingStrategy",e[e.foldingHighlight=33]="foldingHighlight",e[e.unfoldOnClickAfterEndOfLine=34]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=35]="fontFamily",e[e.fontInfo=36]="fontInfo",e[e.fontLigatures=37]="fontLigatures",e[e.fontSize=38]="fontSize",e[e.fontWeight=39]="fontWeight",e[e.formatOnPaste=40]="formatOnPaste",e[e.formatOnType=41]="formatOnType",e[e.glyphMargin=42]="glyphMargin",
e[e.gotoLocation=43]="gotoLocation",e[e.hideCursorInOverviewRuler=44]="hideCursorInOverviewRuler",e[e.highlightActiveIndentGuide=45]="highlightActiveIndentGuide",e[e.hover=46]="hover",e[e.inDiffEditor=47]="inDiffEditor",e[e.letterSpacing=48]="letterSpacing",e[e.lightbulb=49]="lightbulb",e[e.lineDecorationsWidth=50]="lineDecorationsWidth",e[e.lineHeight=51]="lineHeight",e[e.lineNumbers=52]="lineNumbers",e[e.lineNumbersMinChars=53]="lineNumbersMinChars",e[e.links=54]="links",e[e.matchBrackets=55]="matchBrackets",e[e.minimap=56]="minimap",e[e.mouseStyle=57]="mouseStyle",e[e.mouseWheelScrollSensitivity=58]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=59]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=60]="multiCursorMergeOverlapping",e[e.multiCursorModifier=61]="multiCursorModifier",e[e.multiCursorPaste=62]="multiCursorPaste",e[e.occurrencesHighlight=63]="occurrencesHighlight",e[e.overviewRulerBorder=64]="overviewRulerBorder",e[e.overviewRulerLanes=65]="overviewRulerLanes",e[e.padding=66]="padding",
e[e.parameterHints=67]="parameterHints",e[e.peekWidgetDefaultFocus=68]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=69]="definitionLinkOpensInPeek",e[e.quickSuggestions=70]="quickSuggestions",e[e.quickSuggestionsDelay=71]="quickSuggestionsDelay",e[e.readOnly=72]="readOnly",e[e.renameOnType=73]="renameOnType",e[e.renderControlCharacters=74]="renderControlCharacters",e[e.renderIndentGuides=75]="renderIndentGuides",e[e.renderFinalNewline=76]="renderFinalNewline",e[e.renderLineHighlight=77]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=78]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=79]="renderValidationDecorations",e[e.renderWhitespace=80]="renderWhitespace",e[e.revealHorizontalRightPadding=81]="revealHorizontalRightPadding",e[e.roundedSelection=82]="roundedSelection",e[e.rulers=83]="rulers",e[e.scrollbar=84]="scrollbar",e[e.scrollBeyondLastColumn=85]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=86]="scrollBeyondLastLine",
e[e.scrollPredominantAxis=87]="scrollPredominantAxis",e[e.selectionClipboard=88]="selectionClipboard",e[e.selectionHighlight=89]="selectionHighlight",e[e.selectOnLineNumbers=90]="selectOnLineNumbers",e[e.showFoldingControls=91]="showFoldingControls",e[e.showUnused=92]="showUnused",e[e.snippetSuggestions=93]="snippetSuggestions",e[e.smoothScrolling=94]="smoothScrolling",e[e.stopRenderingLineAfter=95]="stopRenderingLineAfter",e[e.suggest=96]="suggest",e[e.suggestFontSize=97]="suggestFontSize",e[e.suggestLineHeight=98]="suggestLineHeight",e[e.suggestOnTriggerCharacters=99]="suggestOnTriggerCharacters",e[e.suggestSelection=100]="suggestSelection",e[e.tabCompletion=101]="tabCompletion",e[e.tabIndex=102]="tabIndex",e[e.unusualLineTerminators=103]="unusualLineTerminators",e[e.useTabStops=104]="useTabStops",e[e.wordSeparators=105]="wordSeparators",e[e.wordWrap=106]="wordWrap",e[e.wordWrapBreakAfterCharacters=107]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=108]="wordWrapBreakBeforeCharacters",
e[e.wordWrapColumn=109]="wordWrapColumn",e[e.wordWrapMinified=110]="wordWrapMinified",e[e.wrappingIndent=111]="wrappingIndent",e[e.wrappingStrategy=112]="wrappingStrategy",e[e.showDeprecated=113]="showDeprecated",e[e.editorClassName=114]="editorClassName",e[e.pixelRatio=115]="pixelRatio",e[e.tabFocusMode=116]="tabFocusMode",e[e.layoutInfo=117]="layoutInfo",e[e.wrappingInfo=118]="wrappingInfo"}(t.EditorOption||(t.EditorOption={})),t.EditorOptions={acceptSuggestionOnCommitCharacter:_(new d(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:i.localize(106,null)})),acceptSuggestionOnEnter:_(new p(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",i.localize(107,null),""],markdownDescription:i.localize(108,null)})),accessibilitySupport:_(new class extends a{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[i.localize(0,null),i.localize(1,null),i.localize(2,null)],default:"auto",description:i.localize(3,null)})}
validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:_(new h(3,"accessibilityPageSize",10,1,1073741824,{description:i.localize(109,null)})),ariaLabel:_(new g(4,"ariaLabel",i.localize(110,null))),autoClosingBrackets:_(new p(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i.localize(111,null),i.localize(112,null),""],description:i.localize(113,null)})),autoClosingOvertype:_(new p(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",i.localize(114,null),""],description:i.localize(115,null)})),autoClosingQuotes:_(new p(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i.localize(116,null),i.localize(117,null),""],description:i.localize(118,null)})),
autoIndent:_(new m(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[i.localize(119,null),i.localize(120,null),i.localize(121,null),i.localize(122,null),i.localize(123,null)],description:i.localize(124,null)})),automaticLayout:_(new d(9,"automaticLayout",!1)),autoSurround:_(new p(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[i.localize(125,null),i.localize(126,null),i.localize(127,null),""],description:i.localize(128,null)})),codeLens:_(new d(11,"codeLens",!0,{description:i.localize(129,null)})),colorDecorators:_(new d(12,"colorDecorators",!0,{description:i.localize(130,null)})),columnSelection:_(new d(13,"columnSelection",!1,{description:i.localize(131,null)})),comments:_(new class extends a{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(14,"comments",e,{
"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:i.localize(4,null)},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:i.localize(5,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:d.boolean(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:d.boolean(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:_(new d(15,"contextmenu",!0)),copyWithSyntaxHighlighting:_(new d(16,"copyWithSyntaxHighlighting",!0,{description:i.localize(132,null)})),cursorBlinking:_(new m(17,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:i.localize(133,null)})),cursorSmoothCaretAnimation:_(new d(18,"cursorSmoothCaretAnimation",!1,{description:i.localize(134,null)})),
cursorStyle:_(new m(19,"cursorStyle",s.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return s.Line;case"block":return s.Block;case"underline":return s.Underline;case"line-thin":return s.LineThin;case"block-outline":return s.BlockOutline;case"underline-thin":return s.UnderlineThin}}),{description:i.localize(135,null)})),cursorSurroundingLines:_(new h(20,"cursorSurroundingLines",0,0,1073741824,{description:i.localize(136,null)})),cursorSurroundingLinesStyle:_(new p(21,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[i.localize(137,null),i.localize(138,null)],description:i.localize(139,null)})),cursorWidth:_(new h(22,"cursorWidth",0,0,1073741824,{markdownDescription:i.localize(140,null)})),disableLayerHinting:_(new d(23,"disableLayerHinting",!1)),disableMonospaceOptimizations:_(new d(24,"disableMonospaceOptimizations",!1)),dragAndDrop:_(new d(25,"dragAndDrop",!0,{description:i.localize(141,null)})),
emptySelectionClipboard:_(new class extends d{constructor(){super(26,"emptySelectionClipboard",!0,{description:i.localize(6,null)})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),extraEditorClassName:_(new g(27,"extraEditorClassName","")),fastScrollSensitivity:_(new u(28,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:i.localize(142,null)})),find:_(new class extends a{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(29,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:i.localize(7,null)},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:i.localize(8,null)},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[i.localize(9,null),i.localize(10,null),i.localize(11,null)],
description:i.localize(12,null)},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:i.localize(13,null),included:n.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:i.localize(14,null)},"editor.find.loop":{type:"boolean",default:e.loop,description:i.localize(15,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:d.boolean(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:d.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":p.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:d.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),
addExtraSpaceOnTop:d.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:d.boolean(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:_(new d(30,"fixedOverflowWidgets",!1)),folding:_(new d(31,"folding",!0,{description:i.localize(143,null)})),foldingStrategy:_(new p(32,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[i.localize(144,null),i.localize(145,null)],description:i.localize(146,null)})),foldingHighlight:_(new d(33,"foldingHighlight",!0,{description:i.localize(147,null)})),unfoldOnClickAfterEndOfLine:_(new d(34,"unfoldOnClickAfterEndOfLine",!1,{description:i.localize(148,null)})),fontFamily:_(new g(35,"fontFamily",t.EDITOR_FONT_DEFAULTS.fontFamily,{description:i.localize(149,null)})),fontInfo:_(new class extends l{constructor(){super(36)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:_(new v),fontSize:_(new class extends c{constructor(){super(38,"fontSize",t.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,
default:t.EDITOR_FONT_DEFAULTS.fontSize,description:i.localize(19,null)})}validate(e){let i=u.float(e,this.defaultValue);return 0===i?t.EDITOR_FONT_DEFAULTS.fontSize:u.clamp(i,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:_(new f),formatOnPaste:_(new d(40,"formatOnPaste",!1,{description:i.localize(150,null)})),formatOnType:_(new d(41,"formatOnType",!1,{description:i.localize(151,null)})),glyphMargin:_(new d(42,"glyphMargin",!0,{description:i.localize(152,null)})),gotoLocation:_(new class extends a{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],
default:e.multiple,enumDescriptions:[i.localize(22,null),i.localize(23,null),i.localize(24,null)]};super(43,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:i.localize(25,null)},"editor.gotoLocation.multipleDefinitions":Object.assign({description:i.localize(26,null)},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:i.localize(27,null)},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:i.localize(28,null)},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:i.localize(29,null)},t),"editor.gotoLocation.multipleReferences":Object.assign({description:i.localize(30,null)},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:i.localize(31,null)},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,description:i.localize(32,null)},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",
default:e.alternativeDeclarationCommand,description:i.localize(33,null)},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,description:i.localize(34,null)},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,description:i.localize(35,null)}})}validate(e){var t,i,n,o,s;if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{multiple:p.stringSet(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:p.stringSet(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:p.stringSet(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:p.stringSet(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),
multipleImplementations:null!==(o=r.multipleImplementations)&&void 0!==o?o:p.stringSet(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(s=r.multipleReferences)&&void 0!==s?s:p.stringSet(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:g.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:g.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:g.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:g.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:g.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:_(new d(44,"hideCursorInOverviewRuler",!1,{description:i.localize(153,null)})),
highlightActiveIndentGuide:_(new d(45,"highlightActiveIndentGuide",!0,{description:i.localize(154,null)})),hover:_(new class extends a{constructor(){const e={enabled:!0,delay:300,sticky:!0};super(46,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:i.localize(36,null)},"editor.hover.delay":{type:"number",default:e.delay,description:i.localize(37,null)},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:i.localize(38,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:d.boolean(t.enabled,this.defaultValue.enabled),delay:h.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:d.boolean(t.sticky,this.defaultValue.sticky)}}}),inDiffEditor:_(new d(47,"inDiffEditor",!1)),letterSpacing:_(new u(48,"letterSpacing",t.EDITOR_FONT_DEFAULTS.letterSpacing,e=>u.clamp(e,-5,20),{description:i.localize(155,null)})),lightbulb:_(new class extends a{constructor(){const e={enabled:!0};super(49,"lightbulb",e,{"editor.lightbulb.enabled":{
type:"boolean",default:e.enabled,description:i.localize(39,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:d.boolean(t.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:_(new c(50,"lineDecorationsWidth",10)),lineHeight:_(new class extends h{constructor(){super(51,"lineHeight",t.EDITOR_FONT_DEFAULTS.lineHeight,0,150,{description:i.localize(40,null)})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:_(new class extends a{constructor(){super(52,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[i.localize(59,null),i.localize(60,null),i.localize(61,null),i.localize(62,null)],default:"on",description:i.localize(63,null)})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),
lineNumbersMinChars:_(new h(53,"lineNumbersMinChars",5,1,300)),links:_(new d(54,"links",!0,{description:i.localize(156,null)})),matchBrackets:_(new p(55,"matchBrackets","always",["always","near","never"],{description:i.localize(157,null)})),minimap:_(new class extends a{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(56,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:i.localize(41,null)},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[i.localize(42,null),i.localize(43,null),i.localize(44,null)],default:e.size,description:i.localize(45,null)},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:i.localize(46,null)},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:i.localize(47,null)},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,
enum:[1,2,3],description:i.localize(48,null)},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:i.localize(49,null)},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:i.localize(50,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:d.boolean(t.enabled,this.defaultValue.enabled),size:p.stringSet(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:p.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:p.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:d.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:h.clampedInt(t.scale,1,1,3),maxColumn:h.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:_(new p(57,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:_(new u(58,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:i.localize(158,null)})),
mouseWheelZoom:_(new d(59,"mouseWheelZoom",!1,{markdownDescription:i.localize(159,null)})),multiCursorMergeOverlapping:_(new d(60,"multiCursorMergeOverlapping",!0,{description:i.localize(160,null)})),multiCursorModifier:_(new m(61,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?n.isMacintosh?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[i.localize(161,null),i.localize(162,null)],markdownDescription:i.localize(163,null)})),multiCursorPaste:_(new p(62,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[i.localize(164,null),i.localize(165,null)],markdownDescription:i.localize(166,null)})),occurrencesHighlight:_(new d(63,"occurrencesHighlight",!0,{description:i.localize(167,null)})),overviewRulerBorder:_(new d(64,"overviewRulerBorder",!0,{description:i.localize(168,null)})),overviewRulerLanes:_(new h(65,"overviewRulerLanes",3,0,3)),padding:_(new class extends a{constructor(){super(66,"padding",{top:0,bottom:0},{"editor.padding.top":{
type:"number",default:0,minimum:0,maximum:1e3,description:i.localize(51,null)},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:i.localize(52,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:h.clampedInt(t.top,0,0,1e3),bottom:h.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:_(new class extends a{constructor(){const e={enabled:!0,cycle:!1};super(67,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:i.localize(53,null)},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:i.localize(54,null)}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:d.boolean(t.enabled,this.defaultValue.enabled),cycle:d.boolean(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:_(new p(68,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[i.localize(169,null),i.localize(170,null)],description:i.localize(171,null)})),
definitionLinkOpensInPeek:_(new d(69,"definitionLinkOpensInPeek",!1,{description:i.localize(172,null)})),quickSuggestions:_(new class extends a{constructor(){const e={other:!0,comments:!1,strings:!1};super(70,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:i.localize(55,null)},comments:{type:"boolean",default:e.comments,description:i.localize(56,null)},other:{type:"boolean",default:e.other,description:i.localize(57,null)}}}],default:e,description:i.localize(58,null)}),this.defaultValue=e}validate(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){const t=e,i={other:d.boolean(t.other,this.defaultValue.other),comments:d.boolean(t.comments,this.defaultValue.comments),strings:d.boolean(t.strings,this.defaultValue.strings)};return!!(i.other&&i.comments&&i.strings)||!!(i.other||i.comments||i.strings)&&i}return this.defaultValue}}),quickSuggestionsDelay:_(new h(71,"quickSuggestionsDelay",10,0,1073741824,{
description:i.localize(173,null)})),readOnly:_(new d(72,"readOnly",!1)),renameOnType:_(new d(73,"renameOnType",!1,{description:i.localize(174,null)})),renderControlCharacters:_(new d(74,"renderControlCharacters",!1,{description:i.localize(175,null)})),renderIndentGuides:_(new d(75,"renderIndentGuides",!0,{description:i.localize(176,null)})),renderFinalNewline:_(new d(76,"renderFinalNewline",!0,{description:i.localize(177,null)})),renderLineHighlight:_(new p(77,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",i.localize(178,null)],description:i.localize(179,null)})),renderLineHighlightOnlyWhenFocus:_(new d(78,"renderLineHighlightOnlyWhenFocus",!1,{description:i.localize(180,null)})),renderValidationDecorations:_(new p(79,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:_(new p(80,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{
enumDescriptions:["",i.localize(181,null),i.localize(182,null),i.localize(183,null),""],description:i.localize(184,null)})),revealHorizontalRightPadding:_(new h(81,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:_(new d(82,"roundedSelection",!0,{description:i.localize(185,null)})),rulers:_(new class extends a{constructor(){const e=[],t={type:"number",description:i.localize(64,null)};super(83,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:i.localize(65,null),format:"color-hex"}}}]},default:e,description:i.localize(66,null)})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if("number"==typeof i)t.push({column:h.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"==typeof i){const e=i;t.push({column:h.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:_(new class extends a{constructor(){super(84,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,
useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,i=h.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=h.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:h.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:b(t.vertical,this.defaultValue.vertical),horizontal:b(t.horizontal,this.defaultValue.horizontal),useShadows:d.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:d.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:d.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:d.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),
alwaysConsumeMouseWheel:d.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:h.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:h.clampedInt(t.verticalSliderSize,n,0,1e3)}}}),scrollBeyondLastColumn:_(new h(85,"scrollBeyondLastColumn",5,0,1073741824,{description:i.localize(186,null)})),scrollBeyondLastLine:_(new d(86,"scrollBeyondLastLine",!0,{description:i.localize(187,null)})),scrollPredominantAxis:_(new d(87,"scrollPredominantAxis",!0,{description:i.localize(188,null)})),selectionClipboard:_(new d(88,"selectionClipboard",!0,{description:i.localize(189,null),included:n.isLinux})),selectionHighlight:_(new d(89,"selectionHighlight",!0,{description:i.localize(190,null)})),selectOnLineNumbers:_(new d(90,"selectOnLineNumbers",!0)),showFoldingControls:_(new p(91,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[i.localize(191,null),i.localize(192,null)],
description:i.localize(193,null)})),showUnused:_(new d(92,"showUnused",!0,{description:i.localize(194,null)})),showDeprecated:_(new d(113,"showDeprecated",!0,{description:i.localize(195,null)})),snippetSuggestions:_(new p(93,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[i.localize(196,null),i.localize(197,null),i.localize(198,null),i.localize(199,null)],description:i.localize(200,null)})),smoothScrolling:_(new d(94,"smoothScrolling",!1,{description:i.localize(201,null)})),stopRenderingLineAfter:_(new h(95,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:_(new class extends a{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,
showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,statusBar:{visible:!1}};super(96,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[i.localize(67,null),i.localize(68,null)],default:e.insertMode,description:i.localize(69,null)},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:i.localize(70,null)},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:i.localize(71,null)},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:i.localize(72,null)},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:i.localize(73,null)},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:i.localize(74,null)},
"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.maxVisibleSuggestions,minimum:1,maximum:15,description:i.localize(75,null)},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:i.localize(76,null)},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:i.localize(77,null)},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:i.localize(78,null)},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:i.localize(79,null)},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:i.localize(80,null)},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:i.localize(81,null)},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:i.localize(82,null)},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:i.localize(83,null)},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:i.localize(84,null)},
"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:i.localize(85,null)},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:i.localize(86,null)},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:i.localize(87,null)},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:i.localize(88,null)},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:i.localize(89,null)},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:i.localize(90,null)},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:i.localize(91,null)},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:i.localize(92,null)},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:i.localize(93,null)},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:i.localize(94,null)},"editor.suggest.showWords":{type:"boolean",
default:!0,markdownDescription:i.localize(95,null)},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:i.localize(96,null)},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:i.localize(97,null)},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:i.localize(98,null)},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:i.localize(99,null)},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:i.localize(100,null)},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:i.localize(101,null)},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:i.localize(102,null)},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:i.localize(103,null)},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:i.localize(104,null)},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,
markdownDescription:i.localize(105,null)}})}validate(e){var t;if(!e||"object"!=typeof e)return this.defaultValue;const i=e;return{insertMode:p.stringSet(i.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:d.boolean(i.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:d.boolean(i.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:d.boolean(i.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:d.boolean(i.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:d.boolean(i.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:h.clampedInt(i.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:d.boolean(i.showMethods,this.defaultValue.showMethods),showFunctions:d.boolean(i.showFunctions,this.defaultValue.showFunctions),showConstructors:d.boolean(i.showConstructors,this.defaultValue.showConstructors),
showFields:d.boolean(i.showFields,this.defaultValue.showFields),showVariables:d.boolean(i.showVariables,this.defaultValue.showVariables),showClasses:d.boolean(i.showClasses,this.defaultValue.showClasses),showStructs:d.boolean(i.showStructs,this.defaultValue.showStructs),showInterfaces:d.boolean(i.showInterfaces,this.defaultValue.showInterfaces),showModules:d.boolean(i.showModules,this.defaultValue.showModules),showProperties:d.boolean(i.showProperties,this.defaultValue.showProperties),showEvents:d.boolean(i.showEvents,this.defaultValue.showEvents),showOperators:d.boolean(i.showOperators,this.defaultValue.showOperators),showUnits:d.boolean(i.showUnits,this.defaultValue.showUnits),showValues:d.boolean(i.showValues,this.defaultValue.showValues),showConstants:d.boolean(i.showConstants,this.defaultValue.showConstants),showEnums:d.boolean(i.showEnums,this.defaultValue.showEnums),showEnumMembers:d.boolean(i.showEnumMembers,this.defaultValue.showEnumMembers),
showKeywords:d.boolean(i.showKeywords,this.defaultValue.showKeywords),showWords:d.boolean(i.showWords,this.defaultValue.showWords),showColors:d.boolean(i.showColors,this.defaultValue.showColors),showFiles:d.boolean(i.showFiles,this.defaultValue.showFiles),showReferences:d.boolean(i.showReferences,this.defaultValue.showReferences),showFolders:d.boolean(i.showFolders,this.defaultValue.showFolders),showTypeParameters:d.boolean(i.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:d.boolean(i.showSnippets,this.defaultValue.showSnippets),showUsers:d.boolean(i.showUsers,this.defaultValue.showUsers),showIssues:d.boolean(i.showIssues,this.defaultValue.showIssues),statusBar:{visible:d.boolean(null===(t=i.statusBar)||void 0===t?void 0:t.visible,!!this.defaultValue.statusBar.visible)}}}}),suggestFontSize:_(new h(97,"suggestFontSize",0,0,1e3,{markdownDescription:i.localize(202,null)})),suggestLineHeight:_(new h(98,"suggestLineHeight",0,0,1e3,{markdownDescription:i.localize(203,null)})),
suggestOnTriggerCharacters:_(new d(99,"suggestOnTriggerCharacters",!0,{description:i.localize(204,null)})),suggestSelection:_(new p(100,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[i.localize(205,null),i.localize(206,null),i.localize(207,null)],description:i.localize(208,null)})),tabCompletion:_(new p(101,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[i.localize(209,null),i.localize(210,null),i.localize(211,null)],description:i.localize(212,null)})),tabIndex:_(new h(102,"tabIndex",0,-1,1073741824)),unusualLineTerminators:_(new p(103,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[i.localize(213,null),i.localize(214,null),i.localize(215,null)],description:i.localize(216,null)})),useTabStops:_(new d(104,"useTabStops",!0,{description:i.localize(217,null)})),wordSeparators:_(new g(105,"wordSeparators",o.USUAL_WORD_SEPARATORS,{description:i.localize(218,null)})),
wordWrap:_(new p(106,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[i.localize(219,null),i.localize(220,null),i.localize(221,null),i.localize(222,null)],description:i.localize(223,null)})),wordWrapBreakAfterCharacters:_(new g(107,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:_(new g(108,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:_(new h(109,"wordWrapColumn",80,1,1073741824,{markdownDescription:i.localize(224,null)})),wordWrapMinified:_(new d(110,"wordWrapMinified",!0)),wrappingIndent:_(new m(111,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[i.localize(225,null),i.localize(226,null),i.localize(227,null),i.localize(228,null)],description:i.localize(229,null)})),
wrappingStrategy:_(new p(112,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[i.localize(230,null),i.localize(231,null)],description:i.localize(232,null)})),editorClassName:_(new class extends l{constructor(){super(114,[57,27])}compute(e,t,i){const n=["monaco-editor"];return t.get(27)&&n.push(t.get(27)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(57)?n.push("mouse-default"):"copy"===t.get(57)&&n.push("mouse-copy"),t.get(92)&&n.push("showUnused"),t.get(113)&&n.push("showDeprecated"),n.join(" ")}}),pixelRatio:_(new class extends l{constructor(){super(115)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:_(new class extends l{constructor(){super(116,[72])}compute(e,t,i){return!!t.get(72)||e.tabFocusMode}}),layoutInfo:_(new S),wrappingInfo:_(new class extends l{constructor(){super(118,[117])}compute(e,t,i){const n=t.get(117);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,
wrappingColumn:n.wrappingColumn}}})}})),define(e[264],t([0,1,12,111,345]),(function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontInfo=t.BareFontInfo=void 0;const s=i.isMacintosh?1.5:1.35,r=8;class a{constructor(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i){const n=e.get(35),o=e.get(39),s=e.get(38),r=e.get(37),l=e.get(51),c=e.get(48);return a._create(n,o,s,r,l,c,t,i)}static createFromRawSettings(e,t,i=!1){const o=n.EditorOptions.fontFamily.validate(e.fontFamily),s=n.EditorOptions.fontWeight.validate(e.fontWeight),r=n.EditorOptions.fontSize.validate(e.fontSize),l=n.EditorOptions.fontLigatures2.validate(e.fontLigatures),c=n.EditorOptions.lineHeight.validate(e.lineHeight),d=n.EditorOptions.letterSpacing.validate(e.letterSpacing)
;return a._create(o,s,r,l,c,d,t,i)}static _create(e,t,i,n,l,c,d,h){0===l?l=Math.round(s*i):l0&&(this.changes=r.compressConsecutiveTextChanges(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(a.writeUInt32BE(e,t?t.length:0,i),i+=4,t)for(const n of t)a.writeUInt32BE(e,n.selectionStartLineNumber,i),i+=4,a.writeUInt32BE(e,n.selectionStartColumn,i),i+=4,a.writeUInt32BE(e,n.positionLineNumber,i),i+=4,a.writeUInt32BE(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=a.readUInt32BE(e,t);t+=4;for(let s=0;se.toString()).join(", ")}matchesResource(e){return(s.URI.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,n,o){this._data instanceof d&&this._data.append(e,t,i,n,o)}close(){this._data instanceof d&&(this._data=this._data.serialize())}undo(){if(s.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){
if(s.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}t.SingleModelEditStackElement=h;class u{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=c(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}setDelegate(e){this._delegate=e}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}getMissingModels(){const e=[];for(const t of this._editStackElementsArr)s.URI.isUri(t.model)&&e.push(t.model);return e}matchesResource(e){const t=c(e)
;return this._editStackElementsMap.has(t)}setModel(e){const t=c(s.URI.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=c(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,n,o){const s=c(e.uri);this._editStackElementsMap.get(s).append(e,t,i,n,o)}close(){this._isOpen=!1}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=c(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${l.basename(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function g(e){return"\n"===e.getEOL()?0:1}function p(e){return!!e&&(e instanceof h||e instanceof u)}t.MultiModelEditStackElement=u,t.isEditStackElement=p
;class m{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);p(e)&&e.close()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(p(t)&&t.canAppend(this._model))return t;const i=new h(this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],g(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),o=this._model.applyEdits(t,!0),s=m._computeCursorState(i,o),r=o.map((e,t)=>({index:t,textChange:e.textChange}));return r.sort((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition),n.append(this._model,r.map(e=>e.textChange),g(this._model),this._model.getAlternativeVersionId(),s),s}
static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return n.onUnexpectedError(e),null}}}t.EditStack=m})),define(e[973],t([3,4]),(function(e,t){return e.create("vs/editor/common/modes/modesRegistry",t)})),define(e[974],t([3,4]),(function(e,t){return e.create("vs/editor/common/standaloneStrings",t)})),define(e[975],t([0,1,974]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleServicesNLS=t.ToggleHighContrastNLS=t.StandaloneCodeEditorNLS=t.QuickOutlineNLS=t.QuickCommandNLS=t.QuickHelpNLS=t.GoToLineNLS=t.InspectTokensNLS=t.AccessibilityHelpNLS=void 0,function(e){e.noSelection=i.localize(0,null),e.singleSelectionRange=i.localize(1,null),e.singleSelection=i.localize(2,null),e.multiSelectionRange=i.localize(3,null),e.multiSelection=i.localize(4,null),e.emergencyConfOn=i.localize(5,null),e.openingDocs=i.localize(6,null),e.readonlyDiffEditor=i.localize(7,null),e.editableDiffEditor=i.localize(8,null),e.readonlyEditor=i.localize(9,null),
e.editableEditor=i.localize(10,null),e.changeConfigToOnMac=i.localize(11,null),e.changeConfigToOnWinLinux=i.localize(12,null),e.auto_on=i.localize(13,null),e.auto_off=i.localize(14,null),e.tabFocusModeOnMsg=i.localize(15,null),e.tabFocusModeOnMsgNoKb=i.localize(16,null),e.tabFocusModeOffMsg=i.localize(17,null),e.tabFocusModeOffMsgNoKb=i.localize(18,null),e.openDocMac=i.localize(19,null),e.openDocWinLinux=i.localize(20,null),e.outroMsg=i.localize(21,null),e.showAccessibilityHelpAction=i.localize(22,null)}(t.AccessibilityHelpNLS||(t.AccessibilityHelpNLS={})),function(e){e.inspectTokensAction=i.localize(23,null)}(t.InspectTokensNLS||(t.InspectTokensNLS={})),function(e){e.gotoLineActionLabel=i.localize(24,null)}(t.GoToLineNLS||(t.GoToLineNLS={})),function(e){e.helpQuickAccessActionLabel=i.localize(25,null)}(t.QuickHelpNLS||(t.QuickHelpNLS={})),function(e){e.quickCommandActionLabel=i.localize(26,null),e.quickCommandHelp=i.localize(27,null)}(t.QuickCommandNLS||(t.QuickCommandNLS={})),function(e){
e.quickOutlineActionLabel=i.localize(28,null),e.quickOutlineByCategoryActionLabel=i.localize(29,null)}(t.QuickOutlineNLS||(t.QuickOutlineNLS={})),function(e){e.editorViewAccessibleLabel=i.localize(30,null),e.accessibilityHelpMessage=i.localize(31,null)}(t.StandaloneCodeEditorNLS||(t.StandaloneCodeEditorNLS={})),function(e){e.toggleHighContrast=i.localize(32,null)}(t.ToggleHighContrastNLS||(t.ToggleHighContrastNLS={})),function(e){e.bulkEditServiceSummary=i.localize(33,null)}(t.SimpleServicesNLS||(t.SimpleServicesNLS={}))})),define(e[976],t([3,4]),(function(e,t){return e.create("vs/editor/common/view/editorColorRegistry",t)})),define(e[977],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/anchorSelect/anchorSelect",t)})),define(e[978],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/bracketMatching/bracketMatching",t)})),define(e[979],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/caretOperations/caretOperations",t)})),define(e[980],t([3,4]),(function(e,t){
return e.create("vs/editor/contrib/caretOperations/transpose",t)})),define(e[981],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/clipboard/clipboard",t)})),define(e[982],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/codeAction/codeActionCommands",t)})),define(e[983],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/codeAction/lightBulbWidget",t)})),define(e[984],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/codelens/codelensController",t)})),define(e[985],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/comment/comment",t)})),define(e[986],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/contextmenu/contextmenu",t)})),define(e[987],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/cursorUndo/cursorUndo",t)})),define(e[988],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/documentSymbols/outlineTree",t)})),define(e[989],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/find/findController",t)})),
define(e[990],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/find/findWidget",t)})),define(e[991],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/folding/folding",t)})),define(e[992],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/fontZoom/fontZoom",t)})),define(e[993],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/format/format",t)})),define(e[994],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/format/formatActions",t)})),define(e[995],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoError/gotoError",t)})),define(e[996],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoError/gotoErrorWidget",t)})),define(e[997],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoSymbol/goToCommands",t)})),define(e[998],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition",t)})),define(e[999],t([3,4]),(function(e,t){
return e.create("vs/editor/contrib/gotoSymbol/peek/referencesController",t)})),define(e[1e3],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoSymbol/peek/referencesTree",t)})),define(e[1001],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoSymbol/peek/referencesWidget",t)})),define(e[1002],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoSymbol/referencesModel",t)})),define(e[348],t([0,1,1002,6,17,2,24,212,18,67,21]),(function(e,t,i,n,o,s,r,a,l,c,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferencesModel=t.FileReferences=t.FilePreview=t.OneReference=void 0;class h{constructor(e,t,i,n,o){this.isProviderFirst=e,this.parent=t,this.uri=i,this._range=n,this._rangeCallback=o,this.id=a.defaultGenerator.nextId()}get range(){return this._range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){return i.localize(0,null,o.basename(this.uri),this.range.startLineNumber,this.range.startColumn)}}t.OneReference=h;class u{constructor(e){
this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:o-t}),c=new l.Range(n,a.startColumn,n,o),d=new l.Range(s,r,s,1073741824),h=i.getValueInRange(c).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:h+u+i.getValueInRange(d).replace(/\s+$/,""),highlight:{start:h.length,end:h.length+u.length}}}}t.FilePreview=u;class g{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new c.ResourceMap}dispose(){s.dispose(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?i.localize(1,null,o.basename(this.uri),this.uri.fsPath):i.localize(2,null,e,o.basename(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this
;for(let t of this.children)if(!this._previews.has(t.uri))try{const i=await e.createModelReference(t.uri);this._previews.set(t.uri,new u(i))}catch(e){d.onUnexpectedError(e)}return this}}t.FileReferences=g;class p{constructor(e,t){this._disposables=new s.DisposableStore,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let r;e.sort(p._compareReferences);for(let t of e)if(r&&o.extUri.isEqual(r.uri,t.uri,!0)||(r=new g(this,t.uri),this.groups.push(r)),0===r.children.length||0!==p._compareReferences(t,r.children[r.children.length-1])){const e=new h(i===t,r,t.uri,t.targetSelectionRange||t.range,e=>this._onDidChangeReferenceRange.fire(e));this.references.push(e),r.children.push(e)}}dispose(){s.dispose(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new p(this._links,this._title)}get title(){return this._title}
get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?i.localize(3,null):1===this.references.length?i.localize(4,null,this.references[0].uri.fsPath):1===this.groups.length?i.localize(5,null,this.references.length,this.groups[0].uri.fsPath):i.localize(6,null,this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:i}=e,n=i.children.indexOf(e),o=i.children.length,s=i.parent.groups.length;return 1===s||t&&n+10?(n=t?(n+1)%o:(n+o-1)%o,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%s,i.parent.groups[n].children[0]):(n=(n+s-1)%s,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map((i,n)=>({idx:n,prefixLen:r.commonPrefixLength(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)
})).sort((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&l.Range.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return o.extUri.compare(e.uri,t.uri)||l.Range.compareRangesUsingStarts(e.range,t.range)}}t.ReferencesModel=p})),define(e[1003],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/gotoSymbol/symbolNavigation",t)})),define(e[1004],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/hover/hover",t)})),define(e[1005],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/hover/modesContentHover",t)})),define(e[1006],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/inPlaceReplace/inPlaceReplace",t)})),define(e[1007],t([3,4]),(function(e,t){
return e.create("vs/editor/contrib/indentation/indentation",t)})),define(e[1008],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/linesOperations/linesOperations",t)})),define(e[1009],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/links/links",t)})),define(e[1010],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/message/messageController",t)})),define(e[1011],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/multicursor/multicursor",t)})),define(e[1012],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/parameterHints/parameterHints",t)})),define(e[1013],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/parameterHints/parameterHintsWidget",t)})),define(e[1014],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/peekView/peekView",t)})),define(e[1015],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/quickAccess/gotoLineQuickAccess",t)})),define(e[1016],t([3,4]),(function(e,t){
return e.create("vs/editor/contrib/quickAccess/gotoSymbolQuickAccess",t)})),define(e[1017],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/rename/onTypeRename",t)})),define(e[1018],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/rename/rename",t)})),define(e[1019],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/rename/renameInputField",t)})),define(e[1020],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/smartSelect/smartSelect",t)})),define(e[1021],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/snippet/snippetVariables",t)})),define(e[1022],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/suggest/suggestController",t)})),define(e[1023],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/suggest/suggestWidget",t)})),define(e[1024],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode",t)})),define(e[1025],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/tokenization/tokenization",t)})),
define(e[1026],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/unusualLineTerminators/unusualLineTerminators",t)})),define(e[1027],t([3,4]),(function(e,t){return e.create("vs/editor/contrib/wordHighlighter/wordHighlighter",t)})),define(e[1028],t([3,4]),(function(e,t){return e.create("vs/platform/actions/browser/menuEntryActionViewItem",t)})),define(e[1029],t([3,4]),(function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)})),define(e[1030],t([3,4]),(function(e,t){return e.create("vs/platform/dialogs/common/dialogs",t)})),define(e[1031],t([3,4]),(function(e,t){return e.create("vs/platform/extensionManagement/common/extensionManagement",t)})),define(e[1032],t([3,4]),(function(e,t){return e.create("vs/platform/extensions/common/extensionValidator",t)})),define(e[1033],t([3,4]),(function(e,t){return e.create("vs/platform/files/browser/indexedDBFileSystemProvider",t)})),define(e[1034],t([3,4]),(function(e,t){return e.create("vs/platform/files/common/fileService",t)})),
define(e[1035],t([3,4]),(function(e,t){return e.create("vs/platform/files/common/files",t)})),define(e[1036],t([3,4]),(function(e,t){return e.create("vs/platform/files/common/io",t)})),define(e[1037],t([3,4]),(function(e,t){return e.create("vs/platform/keybinding/common/abstractKeybindingService",t)})),define(e[1038],t([3,4]),(function(e,t){return e.create("vs/platform/list/browser/listService",t)})),define(e[1039],t([3,4]),(function(e,t){return e.create("vs/platform/markers/common/markers",t)})),define(e[1040],t([3,4]),(function(e,t){return e.create("vs/platform/quickinput/browser/commandsQuickAccess",t)})),define(e[1041],t([3,4]),(function(e,t){return e.create("vs/platform/quickinput/browser/helpQuickAccess",t)})),define(e[1042],t([3,4]),(function(e,t){return e.create("vs/platform/request/common/request",t)})),define(e[1043],t([3,4]),(function(e,t){return e.create("vs/platform/telemetry/common/telemetryService",t)})),define(e[1044],t([3,4]),(function(e,t){
return e.create("vs/platform/theme/common/colorRegistry",t)})),define(e[1045],t([3,4]),(function(e,t){return e.create("vs/platform/theme/common/iconRegistry",t)})),define(e[1046],t([3,4]),(function(e,t){return e.create("vs/platform/theme/common/tokenClassificationRegistry",t)})),define(e[1047],t([3,4]),(function(e,t){return e.create("vs/platform/undoRedo/common/undoRedoService",t)})),define(e[1048],t([3,4]),(function(e,t){return e.create("vs/platform/update/common/update.config.contribution",t)})),define(e[1049],t([3,4]),(function(e,t){return e.create("vs/platform/userDataSync/common/abstractSynchronizer",t)})),define(e[1050],t([3,4]),(function(e,t){return e.create("vs/platform/userDataSync/common/keybindingsSync",t)})),define(e[1051],t([3,4]),(function(e,t){return e.create("vs/platform/userDataSync/common/settingsSync",t)})),define(e[1052],t([3,4]),(function(e,t){return e.create("vs/platform/userDataSync/common/userDataAutoSyncService",t)})),define(e[1053],t([3,4]),(function(e,t){
return e.create("vs/platform/userDataSync/common/userDataSync",t)})),define(e[1054],t([3,4]),(function(e,t){return e.create("vs/platform/userDataSync/common/userDataSyncMachines",t)})),define(e[1055],t([3,4]),(function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)})),define(e[1056],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadAuthentication",t)})),define(e[1057],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadCustomEditors",t)})),define(e[1058],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadExtensionService",t)})),define(e[1059],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadFileSystemEventService",t)})),define(e[1060],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadMessageService",t)})),define(e[1061],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadProgress",t)})),define(e[1062],t([3,4]),(function(e,t){
return e.create("vs/workbench/api/browser/mainThreadSaveParticipant",t)})),define(e[1063],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadTask",t)})),define(e[1064],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadWebviews",t)})),define(e[1065],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/mainThreadWorkspace",t)})),define(e[1066],t([3,4]),(function(e,t){return e.create("vs/workbench/api/browser/viewsExtensionPoint",t)})),define(e[1067],t([3,4]),(function(e,t){return e.create("vs/workbench/api/common/configurationExtensionPoint",t)})),define(e[1068],t([3,4]),(function(e,t){return e.create("vs/workbench/api/common/jsonValidationExtensionPoint",t)})),define(e[1069],t([3,4]),(function(e,t){return e.create("vs/workbench/api/common/menusExtensionPoint",t)})),define(e[1070],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/developerActions",t)})),define(e[1071],t([3,4]),(function(e,t){
return e.create("vs/workbench/browser/actions/helpActions",t)})),define(e[1072],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/layoutActions",t)})),define(e[1073],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/navigationActions",t)})),define(e[1074],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/quickAccessActions",t)})),define(e[1075],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/textInputActions",t)})),define(e[1076],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/windowActions",t)})),define(e[1077],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/workspaceActions",t)})),define(e[1078],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/actions/workspaceCommands",t)})),define(e[1079],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/activitybar/activitybarActions",t)})),define(e[1080],t([3,4]),(function(e,t){
return e.create("vs/workbench/browser/parts/activitybar/activitybarPart",t)})),define(e[1081],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/compositeBar",t)})),define(e[1082],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/compositeBarActions",t)})),define(e[1083],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/compositePart",t)})),define(e[1084],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/binaryDiffEditor",t)})),define(e[1085],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/binaryEditor",t)})),define(e[1086],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/breadcrumbs",t)})),define(e[1087],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/breadcrumbsControl",t)})),define(e[1088],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/breadcrumbsPicker",t)})),define(e[1089],t([3,4]),(function(e,t){
return e.create("vs/workbench/browser/parts/editor/editor.contribution",t)})),define(e[1090],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorActions",t)})),define(e[1091],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorCommands",t)})),define(e[1092],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorDropTarget",t)})),define(e[1093],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorGroupView",t)})),define(e[1094],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorQuickAccess",t)})),define(e[1095],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorStatus",t)})),define(e[1096],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/editorWidgets",t)})),define(e[1097],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/tabsTitleControl",t)})),define(e[1098],t([3,4]),(function(e,t){
return e.create("vs/workbench/browser/parts/editor/textDiffEditor",t)})),define(e[1099],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/textEditor",t)})),define(e[1100],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/textResourceEditor",t)})),define(e[1101],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/editor/titleControl",t)})),define(e[1102],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsActions",t)})),define(e[1103],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsAlerts",t)})),define(e[1104],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsCenter",t)})),define(e[1105],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsCommands",t)})),define(e[1106],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsList",t)
})),define(e[1107],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsStatus",t)})),define(e[1108],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/notifications/notificationsViewer",t)})),define(e[1109],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/panel/panelActions",t)})),define(e[1110],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/panel/panelPart",t)})),define(e[1111],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/sidebar/sidebarPart",t)})),define(e[1112],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/statusbar/statusbarPart",t)})),define(e[1113],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/titlebar/menubarControl",t)})),define(e[1114],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/titlebar/titlebarPart",t)})),define(e[1115],t([3,4]),(function(e,t){
return e.create("vs/workbench/browser/parts/views/viewPaneContainer",t)})),define(e[1116],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/parts/views/viewsService",t)})),define(e[1117],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/viewlet",t)})),define(e[1118],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/workbench",t)})),define(e[1119],t([3,4]),(function(e,t){return e.create("vs/workbench/browser/workbench.contribution",t)})),define(e[1120],t([3,4]),(function(e,t){return e.create("vs/workbench/common/actions",t)})),define(e[1121],t([3,4]),(function(e,t){return e.create("vs/workbench/common/configuration",t)})),define(e[1122],t([3,4]),(function(e,t){return e.create("vs/workbench/common/editor",t)})),define(e[1123],t([3,4]),(function(e,t){return e.create("vs/workbench/common/editor/diffEditorInput",t)})),define(e[1124],t([3,4]),(function(e,t){return e.create("vs/workbench/common/theme",t)})),define(e[1125],t([3,4]),(function(e,t){
return e.create("vs/workbench/common/views",t)})),define(e[1126],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/bulkEdit/browser/bulkEditService",t)})),define(e[1127],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution",t)})),define(e[1128],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane",t)})),define(e[1129],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview",t)})),define(e[1130],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree",t)})),define(e[1131],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution",t)})),define(e[1132],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek",t)})),define(e[1133],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/callHierarchy/browser/callHierarchyTree",t)})),define(e[1134],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeActions/common/codeActionsContribution",t)})),define(e[1135],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint",t)})),define(e[1136],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeActions/common/documentationExtensionPoint",t)})),define(e[1137],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/accessibility/accessibility",t)})),define(e[1138],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/diffEditorHelper",t)})),define(e[1139],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/find/simpleFindReplaceWidget",t)})),define(e[1140],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget",t)})),define(e[1141],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens",t)})),define(e[1142],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/inspectKeybindings",t)})),define(e[1143],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint",t)})),define(e[1144],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/largeFileOptimizations",t)})),define(e[1145],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess",t)})),define(e[1146],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess",t)})),define(e[1147],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/saveParticipants",t)})),define(e[1148],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/toggleColumnSelection",t)})),
define(e[1149],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/toggleMinimap",t)})),define(e[1150],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier",t)})),define(e[1151],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter",t)})),define(e[1152],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace",t)})),define(e[1153],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/codeEditor/browser/toggleWordWrap",t)})),define(e[1154],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/commentGlyphWidget",t)})),define(e[1155],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/commentNode",t)})),define(e[1156],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/commentThreadWidget",t)})),define(e[1157],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/comments/browser/comments.contribution",t)})),define(e[1158],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/commentsEditorContribution",t)})),define(e[1159],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/commentsTreeViewer",t)})),define(e[1160],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/commentsView",t)})),define(e[1161],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/browser/reactionsAction",t)})),define(e[1162],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/comments/common/commentModel",t)})),define(e[1163],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/customEditor/browser/customEditors",t)})),define(e[1164],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/customEditor/common/contributedCustomEditors",t)})),define(e[1165],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/customEditor/common/extensionPoint",t)})),define(e[1166],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/breakpointEditorContribution",t)})),define(e[1167],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/breakpointWidget",t)})),define(e[1168],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/breakpointsView",t)})),define(e[1169],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/callStackEditorContribution",t)})),define(e[1170],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/callStackView",t)})),define(e[1171],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debug.contribution",t)})),define(e[1172],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugActionViewItems",t)})),define(e[1173],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugActions",t)})),
define(e[1174],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugCommands",t)})),define(e[1175],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugConfigurationManager",t)})),define(e[1176],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugEditorActions",t)})),define(e[1177],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugEditorContribution",t)})),define(e[1178],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugHover",t)})),define(e[1179],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugQuickAccess",t)})),define(e[1180],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugService",t)})),define(e[1181],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugSession",t)})),define(e[1182],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/debug/browser/debugStatus",t)})),define(e[1183],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugTaskRunner",t)})),define(e[1184],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugToolBar",t)})),define(e[1185],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/debugViewlet",t)})),define(e[1186],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/exceptionWidget",t)})),define(e[1187],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/linkDetector",t)})),define(e[1188],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/loadedScriptsView",t)})),define(e[1189],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/rawDebugSession",t)})),define(e[1190],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/repl",t)})),define(e[1191],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/debug/browser/replFilter",t)})),define(e[1192],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/replViewer",t)})),define(e[1193],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/statusbarColorProvider",t)})),define(e[1194],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/variablesView",t)})),define(e[1195],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/watchExpressionsView",t)})),define(e[1196],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/browser/welcomeView",t)})),define(e[1197],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/abstractDebugAdapter",t)})),define(e[1198],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/debug",t)})),define(e[1199],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/debugContentProvider",t)})),define(e[1200],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/debug/common/debugModel",t)})),define(e[1201],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/debugSchemas",t)})),define(e[1202],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/debugSource",t)})),define(e[1203],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/debugger",t)})),define(e[1204],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/debug/common/replModel",t)})),define(e[1205],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/emmet/browser/actions/expandAbbreviation",t)})),define(e[1206],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/emmet/browser/actions/showEmmetCommands",t)})),define(e[1207],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/experiments/browser/experiments.contribution",t)})),define(e[1208],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/configBasedRecommendations",t)})),
define(e[1209],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/dynamicWorkspaceRecommendations",t)})),define(e[1210],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/exeBasedRecommendations",t)})),define(e[1211],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionEditor",t)})),define(e[1212],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService",t)})),define(e[1213],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensions.contribution",t)})),define(e[1214],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsActions",t)})),define(e[1215],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsActivationProgress",t)})),define(e[1216],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/extensions/browser/extensionsDependencyChecker",t)})),define(e[1217],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsQuickAccess",t)})),define(e[1218],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsViewer",t)})),define(e[1219],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsViewlet",t)})),define(e[1220],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsViews",t)})),define(e[1221],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsWidgets",t)})),define(e[1222],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/extensionsWorkbenchService",t)})),define(e[1223],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/fileBasedRecommendations",t)})),define(e[1224],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/extensions/browser/remoteExtensionsInstaller",t)})),define(e[1225],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/browser/workspaceRecommendations",t)})),define(e[1226],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/common/extensionsFileTemplate",t)})),define(e[1227],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/common/extensionsInput",t)})),define(e[1228],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/extensions/common/extensionsUtils",t)})),define(e[1229],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/externalTerminal/browser/externalTerminal.contribution",t)})),define(e[1230],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/feedback/browser/feedback",t)})),define(e[1231],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/feedback/browser/feedbackStatusbarItem",t)})),define(e[1232],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/files/browser/editors/binaryFileEditor",t)})),define(e[1233],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/editors/textFileEditor",t)})),define(e[1234],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler",t)})),define(e[1235],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/explorerViewlet",t)})),define(e[1236],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/fileActions",t)})),define(e[1237],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/fileActions.contribution",t)})),define(e[1238],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/fileCommands",t)})),define(e[1239],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/files.contribution",t)})),define(e[1240],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/files/browser/files.web.contribution",t)})),define(e[1241],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/views/emptyView",t)})),define(e[1242],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/views/explorerDecorationsProvider",t)})),define(e[1243],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/views/explorerView",t)})),define(e[1244],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/views/explorerViewer",t)})),define(e[1245],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/browser/views/openEditorsView",t)})),define(e[1246],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/common/dirtyFilesIndicator",t)})),define(e[1247],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/files/common/editors/fileEditorInput",t)})),define(e[1248],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/files/common/workspaceWatcher",t)})),define(e[1249],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/format/browser/formatActionsMultiple",t)})),define(e[1250],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/format/browser/formatActionsNone",t)})),define(e[1251],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/format/browser/formatModified",t)})),define(e[1252],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/issue/browser/issue.web.contribution",t)})),define(e[1253],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/keybindings/browser/keybindings.contribution",t)})),define(e[1254],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/logs/common/logs.contribution",t)})),define(e[1255],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/logs/common/logsActions",t)})),define(e[1256],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/markers",t)})),
define(e[1257],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/markers.contribution",t)})),define(e[1258],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/markersFileDecorations",t)})),define(e[1259],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/markersTreeViewer",t)})),define(e[1260],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/markersView",t)})),define(e[1261],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/markersViewActions",t)})),define(e[1262],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/markers/browser/messages",t)})),define(e[1263],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/contrib/coreActions",t)})),define(e[1264],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/contrib/find/findController",t)})),define(e[1265],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/notebook/browser/contrib/fold/folding",t)})),define(e[1266],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/contrib/format/formatting",t)})),define(e[1267],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/contrib/status/editorStatus",t)})),define(e[1268],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/diff/notebookDiffActions",t)})),define(e[1269],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/diff/notebookTextDiffEditor",t)})),define(e[1270],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/extensionPoint",t)})),define(e[1271],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/notebook.contribution",t)})),define(e[1272],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/notebookEditor",t)})),define(e[1273],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/notebook/browser/notebookEditorWidget",t)})),define(e[1274],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/notebookKernelAssociation",t)})),define(e[1275],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/notebookServiceImpl",t)})),define(e[1276],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer",t)})),define(e[1277],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/view/renderers/cellWidgets",t)})),define(e[1278],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/view/renderers/codeCell",t)})),define(e[1279],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/browser/viewModel/markdownCellViewModel",t)})),define(e[1280],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/notebook/common/model/notebookTextModel",t)})),define(e[1281],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/notebook/common/notebookEditorModel",t)})),define(e[1282],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/outline/browser/outline.contribution",t)})),define(e[1283],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/outline/browser/outlinePane",t)})),define(e[1284],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/output/browser/logViewer",t)})),define(e[1285],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/output/browser/output.contribution",t)})),define(e[1286],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/output/browser/outputView",t)})),define(e[1287],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/performance/browser/performance.contribution",t)})),define(e[1288],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/performance/browser/perfviewEditor",t)})),define(e[1289],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/keybindingWidgets",t)})),
define(e[1290],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/keybindingsEditor",t)})),define(e[1291],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/keybindingsEditorContribution",t)})),define(e[1292],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/keyboardLayoutPicker",t)})),define(e[1293],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/preferences.contribution",t)})),define(e[1294],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/preferencesActions",t)})),define(e[1295],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/preferencesEditor",t)})),define(e[1296],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/preferencesRenderers",t)})),define(e[1297],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/preferencesWidgets",t)})),
define(e[1298],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/settingsEditor2",t)})),define(e[1299],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/settingsLayout",t)})),define(e[1300],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/settingsTree",t)})),define(e[1301],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/settingsTreeModels",t)})),define(e[1302],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/settingsWidgets",t)})),define(e[1303],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/browser/tocTree",t)})),define(e[1304],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/preferences/common/preferencesContribution",t)})),define(e[1305],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/quickaccess/browser/commandsQuickAccess",t)})),define(e[1306],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/quickaccess/browser/quickAccess.contribution",t)})),define(e[1307],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/quickaccess/browser/viewQuickAccess",t)})),define(e[1308],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/relauncher/browser/relauncher.contribution",t)})),define(e[1309],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/remote/browser/explorerViewItems",t)})),define(e[1310],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/remote/browser/remote",t)})),define(e[1311],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/remote/browser/remoteIndicator",t)})),define(e[1312],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/remote/browser/tunnelView",t)})),define(e[1313],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/remote/common/remote.contribution",t)})),define(e[1314],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/sash/browser/sash.contribution",t)})),
define(e[1315],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/scm/browser/activity",t)})),define(e[1316],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/scm/browser/dirtydiffDecorator",t)})),define(e[1317],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/scm/browser/scm.contribution",t)})),define(e[1318],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/scm/browser/scmRepositoriesViewPane",t)})),define(e[1319],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/scm/browser/scmViewPane",t)})),define(e[1320],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/scm/browser/scmViewPaneContainer",t)})),define(e[1321],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/anythingQuickAccess",t)})),define(e[1322],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/patternInputWidget",t)})),define(e[1323],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/search/browser/replaceService",t)})),define(e[1324],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/search.contribution",t)})),define(e[1325],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/searchActions",t)})),define(e[1326],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/searchResultsView",t)})),define(e[1327],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/searchView",t)})),define(e[1328],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/searchWidget",t)})),define(e[1329],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/browser/symbolsQuickAccess",t)})),define(e[1330],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/search/common/queryBuilder",t)})),define(e[1331],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/searchEditor/browser/searchEditor",t)})),
define(e[1332],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/searchEditor/browser/searchEditor.contribution",t)})),define(e[1333],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/searchEditor/browser/searchEditorActions",t)})),define(e[1334],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/searchEditor/browser/searchEditorInput",t)})),define(e[1335],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/searchEditor/browser/searchEditorSerialization",t)})),define(e[1336],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/snippets/browser/configureSnippets",t)})),define(e[1337],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/snippets/browser/insertSnippet",t)})),define(e[1338],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/snippets/browser/snippetCompletionProvider",t)})),define(e[1339],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/snippets/browser/snippets.contribution",t)})),
define(e[1340],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/snippets/browser/snippetsFile",t)})),define(e[1341],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/snippets/browser/snippetsService",t)})),define(e[1342],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/surveys/browser/languageSurveys.contribution",t)})),define(e[1343],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/surveys/browser/nps.contribution",t)})),define(e[1344],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/browser/abstractTaskService",t)})),define(e[1345],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/browser/runAutomaticTasks",t)})),define(e[1346],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/browser/task.contribution",t)}));define(e[1347],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/browser/taskQuickPick",t)})),define(e[1348],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/tasks/browser/taskService",t)})),define(e[1349],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/browser/tasksQuickAccess",t)})),define(e[1350],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/browser/terminalTaskSystem",t)})),define(e[1351],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/jsonSchemaCommon",t)})),define(e[1352],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/jsonSchema_v1",t)})),define(e[1353],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/jsonSchema_v2",t)})),define(e[1354],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/problemMatcher",t)})),define(e[1355],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/taskConfiguration",t)})),define(e[1356],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/taskDefinitionRegistry",t)})),
define(e[1357],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/taskTemplates",t)})),define(e[1358],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/tasks/common/tasks",t)})),define(e[1359],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/environmentVariableInfo",t)})),define(e[1360],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/links/terminalLink",t)})),define(e[1361],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/links/terminalLinkManager",t)})),define(e[1362],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/links/terminalWordLinkProvider",t)})),define(e[1363],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminal.contribution",t)})),define(e[1364],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminalActions",t)})),define(e[1365],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/terminal/browser/terminalConfigHelper",t)})),define(e[1366],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminalInstance",t)})),define(e[1367],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy",t)})),define(e[1368],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminalQuickAccess",t)})),define(e[1369],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminalService",t)})),define(e[1370],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/browser/terminalView",t)})),define(e[1371],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/common/terminal",t)})),define(e[1372],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/common/terminalColorRegistry",t)})),define(e[1373],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/terminal/common/terminalConfiguration",t)})),define(e[1374],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/terminal/common/terminalMenu",t)})),define(e[1375],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/themes/browser/themes.contribution",t)})),define(e[1376],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/timeline/browser/timeline.contribution",t)})),define(e[1377],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/timeline/browser/timelinePane",t)})),define(e[1378],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/update/browser/releaseNotesEditor",t)})),define(e[1379],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/update/browser/update",t)})),define(e[1380],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/update/browser/update.contribution",t)})),define(e[1381],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/url/browser/trustedDomains",t)})),
define(e[1382],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/url/browser/trustedDomainsValidator",t)})),define(e[1383],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/url/browser/url.contribution",t)})),define(e[1384],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/userDataSync/browser/userDataSync",t)})),define(e[1385],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/userDataSync/browser/userDataSync.contribution",t)})),define(e[1386],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/userDataSync/browser/userDataSyncMergesView",t)})),define(e[1387],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/userDataSync/browser/userDataSyncViews",t)})),define(e[1388],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/views/browser/treeView",t)})),define(e[1389],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/watermark/browser/watermark",t)})),define(e[1390],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/webview/browser/baseWebviewElement",t)})),define(e[1391],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/webviewPanel/browser/webviewCommands",t)})),define(e[1392],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution",t)})),define(e[1393],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/common/viewsWelcomeContribution",t)})),define(e[1394],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/common/viewsWelcomeExtensionPoint",t)})),define(e[1395],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/overlay/browser/welcomeOverlay",t)})),define(e[1396],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/page/browser/vs_code_welcome_page",t)})),define(e[1397],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/page/browser/welcomePage",t)})),define(e[1398],t([3,4]),(function(e,t){
return e.create("vs/workbench/contrib/welcome/page/browser/welcomePage.contribution",t)})),define(e[1399],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/telemetryOptOut/browser/telemetryOptOut",t)})),define(e[1400],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/walkThrough/browser/editor/editorWalkThrough",t)})),define(e[1401],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/walkThrough/browser/walkThrough.contribution",t)})),define(e[1402],t([3,4]),(function(e,t){return e.create("vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart",t)})),define(e[1403],t([3,4]),(function(e,t){return e.create("vs/workbench/services/authentication/browser/authenticationService",t)})),define(e[1404],t([3,4]),(function(e,t){return e.create("vs/workbench/services/configuration/common/configurationEditingService",t)})),define(e[1405],t([3,4]),(function(e,t){return e.create("vs/workbench/services/configuration/common/jsonEditingService",t)})),
define(e[1406],t([3,4]),(function(e,t){return e.create("vs/workbench/services/configurationResolver/browser/configurationResolverService",t)})),define(e[1407],t([3,4]),(function(e,t){return e.create("vs/workbench/services/configurationResolver/common/configurationResolverSchema",t)})),define(e[1408],t([3,4]),(function(e,t){return e.create("vs/workbench/services/configurationResolver/common/configurationResolverUtils",t)})),define(e[1409],t([3,4]),(function(e,t){return e.create("vs/workbench/services/configurationResolver/common/variableResolver",t)})),define(e[1410],t([3,4]),(function(e,t){return e.create("vs/workbench/services/decorations/browser/decorationsService",t)})),define(e[1411],t([3,4]),(function(e,t){return e.create("vs/workbench/services/dialogs/browser/abstractFileDialogService",t)})),define(e[1412],t([3,4]),(function(e,t){return e.create("vs/workbench/services/dialogs/browser/dialogService",t)})),define(e[1413],t([3,4]),(function(e,t){
return e.create("vs/workbench/services/dialogs/browser/simpleFileDialog",t)})),define(e[1414],t([3,4]),(function(e,t){return e.create("vs/workbench/services/editor/browser/editorService",t)})),define(e[1415],t([3,4]),(function(e,t){return e.create("vs/workbench/services/editor/common/editorOpenWith",t)})),define(e[1416],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensionManagement/common/extensionEnablementService",t)})),define(e[1417],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensionManagement/common/extensionManagementServerService",t)})),define(e[1418],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensionManagement/common/extensionManagementService",t)})),define(e[1419],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensionManagement/common/webExtensionManagementService",t)})),define(e[1420],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensionManagement/common/webExtensionsScannerService",t)})),
define(e[1421],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/browser/extensionService",t)})),define(e[1422],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/browser/extensionUrlHandler",t)})),define(e[1423],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/browser/webWorkerExtensionHost",t)})),define(e[1424],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/common/abstractExtensionService",t)})),define(e[1425],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/common/extensionHostManager",t)})),define(e[1426],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/common/extensionsRegistry",t)})),define(e[1427],t([3,4]),(function(e,t){return e.create("vs/workbench/services/extensions/common/remoteExtensionHost",t)})),define(e[1428],t([3,4]),(function(e,t){return e.create("vs/workbench/services/keybinding/browser/keybindingService",t)})),
define(e[1429],t([3,4]),(function(e,t){return e.create("vs/workbench/services/keybinding/browser/keymapService",t)})),define(e[1430],t([3,4]),(function(e,t){return e.create("vs/workbench/services/keybinding/common/keybindingEditing",t)})),define(e[1431],t([3,4]),(function(e,t){return e.create("vs/workbench/services/label/common/labelService",t)})),define(e[1432],t([3,4]),(function(e,t){return e.create("vs/workbench/services/lifecycle/browser/lifecycleService",t)})),define(e[1433],t([3,4]),(function(e,t){return e.create("vs/workbench/services/mode/common/workbenchModeService",t)})),define(e[1434],t([3,4]),(function(e,t){return e.create("vs/workbench/services/notification/common/notificationService",t)})),define(e[1435],t([3,4]),(function(e,t){return e.create("vs/workbench/services/preferences/browser/preferencesService",t)})),define(e[1436],t([3,4]),(function(e,t){return e.create("vs/workbench/services/preferences/common/keybindingsEditorModel",t)})),define(e[1437],t([3,4]),(function(e,t){
return e.create("vs/workbench/services/preferences/common/preferences",t)})),define(e[1438],t([3,4]),(function(e,t){return e.create("vs/workbench/services/preferences/common/preferencesEditorInput",t)})),define(e[1439],t([3,4]),(function(e,t){return e.create("vs/workbench/services/preferences/common/preferencesModels",t)})),define(e[1440],t([3,4]),(function(e,t){return e.create("vs/workbench/services/preferences/common/preferencesValidation",t)})),define(e[1441],t([3,4]),(function(e,t){return e.create("vs/workbench/services/progress/browser/progressService",t)})),define(e[1442],t([3,4]),(function(e,t){return e.create("vs/workbench/services/remote/common/abstractRemoteAgentService",t)})),define(e[1443],t([3,4]),(function(e,t){return e.create("vs/workbench/services/textMate/browser/abstractTextMateService",t)})),define(e[1444],t([3,4]),(function(e,t){return e.create("vs/workbench/services/textMate/common/TMGrammarFactory",t)})),define(e[1445],t([3,4]),(function(e,t){
return e.create("vs/workbench/services/textMate/common/TMGrammars",t)})),define(e[1446],t([3,4]),(function(e,t){return e.create("vs/workbench/services/textfile/browser/textFileService",t)})),define(e[1447],t([3,4]),(function(e,t){return e.create("vs/workbench/services/textfile/common/textFileEditorModel",t)})),define(e[1448],t([3,4]),(function(e,t){return e.create("vs/workbench/services/textfile/common/textFileEditorModelManager",t)})),define(e[1449],t([3,4]),(function(e,t){return e.create("vs/workbench/services/textfile/common/textFileSaveParticipant",t)})),define(e[1450],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/browser/fileIconThemeData",t)})),define(e[1451],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/browser/productIconThemeData",t)})),define(e[1452],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/browser/workbenchThemeService",t)})),define(e[1453],t([3,4]),(function(e,t){
return e.create("vs/workbench/services/themes/common/colorExtensionPoint",t)})),define(e[1454],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/colorThemeData",t)})),define(e[1455],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/colorThemeSchema",t)})),define(e[1456],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/fileIconThemeSchema",t)})),define(e[1457],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/productIconThemeSchema",t)})),define(e[1458],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/themeConfiguration",t)})),define(e[1459],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/themeExtensionPoints",t)})),define(e[1460],t([3,4]),(function(e,t){return e.create("vs/workbench/services/themes/common/tokenClassificationExtensionPoint",t)})),define(e[1461],t([3,4]),(function(e,t){
return e.create("vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService",t)})),define(e[1462],t([3,4]),(function(e,t){return e.create("vs/workbench/services/userDataSync/common/userDataSync",t)})),define(e[1463],t([3,4]),(function(e,t){return e.create("vs/workbench/services/views/browser/viewDescriptorService",t)})),define(e[1464],t([3,4]),(function(e,t){return e.create("vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant",t)})),define(e[1465],t([3,4]),(function(e,t){return e.create("vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService",t)})),define(e[1466],t([0,1,7]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserClipboardService=void 0;t.BrowserClipboardService=class{constructor(){this.mapTextToType=new Map,this.findText="",this.resources=[]}async writeText(e,t){if(t)return void this.mapTextToType.set(t,e);try{return await navigator.clipboard.writeText(e)}catch(e){console.error(e)}
const n=document.activeElement,o=document.body.appendChild(i.$("textarea",{"aria-hidden":!0}));o.style.height="1px",o.style.width="1px",o.style.position="absolute",o.value=e,o.focus(),o.select(),document.execCommand("copy"),n instanceof HTMLElement&&n.focus(),document.body.removeChild(o)}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await navigator.clipboard.readText()}catch(e){return console.error(e),""}}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){this.resources=e}async readResources(){return this.resources}async hasResources(){return this.resources.length>0}}})),define(e[1467],t([0,1,6,2]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionHostDebugChannelClient=t.ExtensionHostDebugBroadcastChannel=void 0;class o{constructor(){this._onCloseEmitter=new i.Emitter,this._onReloadEmitter=new i.Emitter,this._onTerminateEmitter=new i.Emitter,this._onLogToEmitter=new i.Emitter,
this._onAttachEmitter=new i.Emitter}call(e,t,i){switch(t){case"close":return Promise.resolve(this._onCloseEmitter.fire({sessionId:i[0]}));case"reload":return Promise.resolve(this._onReloadEmitter.fire({sessionId:i[0]}));case"terminate":return Promise.resolve(this._onTerminateEmitter.fire({sessionId:i[0]}));case"log":return Promise.resolve(this._onLogToEmitter.fire({sessionId:i[0],log:i[1]}));case"attach":return Promise.resolve(this._onAttachEmitter.fire({sessionId:i[0],port:i[1],subId:i[2]}))}throw new Error("Method not implemented.")}listen(e,t,i){switch(t){case"close":return this._onCloseEmitter.event;case"reload":return this._onReloadEmitter.event;case"terminate":return this._onTerminateEmitter.event;case"log":return this._onLogToEmitter.event;case"attach":return this._onAttachEmitter.event}throw new Error("Method not implemented.")}}t.ExtensionHostDebugBroadcastChannel=o,o.ChannelName="extensionhostdebugservice";class s extends n.Disposable{constructor(e){super(),this.channel=e}reload(e){
this.channel.call("reload",[e])}get onReload(){return this.channel.listen("reload")}close(e){this.channel.call("close",[e])}get onClose(){return this.channel.listen("close")}attachSession(e,t,i){this.channel.call("attach",[e,t,i])}get onAttachSession(){return this.channel.listen("attach")}logToSession(e,t){this.channel.call("log",[e,t])}get onLogToSession(){return this.channel.listen("log")}terminateSession(e,t){this.channel.call("terminate",[e,t])}get onTerminateSession(){return this.channel.listen("terminate")}openExtensionDevelopmentHostWindow(e,t,i){return this.channel.call("openExtensionDevelopmentHostWindow",[e,t,i])}}t.ExtensionHostDebugChannelClient=s})),define(e[1468],t([0,1,7,14]),(function(e,t,i,n){"use strict";function o(e,t){const n=Object.create(null);for(let t=0;te.trim())).map(e=>`.${e}`).join("");t.unshift(`${e}${o}${s}`),i=i.parentElement}throw new Error(`Active element not found. Current active element is '${t.join(" > ")}'. Looking for ${e}`)}return!0}async getElements(e,t){const i=document.querySelectorAll(e),n=[];for(let e=0;eo.has(e)?e:e.replace(l,"a"))},t.getRemotes=function(e,t=!1){const i=[];let n;for(;n=a.exec(e);){const e=u(n[1],t);e&&i.push(e)}return i}})),define(e[1471],t([0,1,6,10,510,41]),(function(e,t,i,n,o,s){"use strict";function r(e,t){return n.URI.revive(t?t.transformIncoming(e):e)}function a(e,t){t=t||o.DefaultURITransformer;const i=e.manifest,n=o.transformAndReviveIncomingURIs(Object.assign(Object.assign({},e),{
manifest:void 0}),t);return Object.assign(Object.assign({},n),{manifest:i})}function l(e,t){return t?s.cloneAndChange(e,e=>e instanceof n.URI?t.transformOutgoingURI(e):void 0):e}Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionTipsChannel=t.ExtensionManagementChannelClient=t.ExtensionManagementChannel=void 0;t.ExtensionManagementChannel=class{constructor(e,t){this.service=e,this.getUriTransformer=t,this.onInstallExtension=i.Event.buffer(e.onInstallExtension,!0),this.onDidInstallExtension=i.Event.buffer(e.onDidInstallExtension,!0),this.onUninstallExtension=i.Event.buffer(e.onUninstallExtension,!0),this.onDidUninstallExtension=i.Event.buffer(e.onDidUninstallExtension,!0)}listen(e,t){const n=this.getUriTransformer(e);switch(t){case"onInstallExtension":return this.onInstallExtension;case"onDidInstallExtension":return i.Event.map(this.onDidInstallExtension,e=>Object.assign(Object.assign({},e),{local:e.local?l(e.local,n):e.local}));case"onUninstallExtension":return this.onUninstallExtension
;case"onDidUninstallExtension":return this.onDidUninstallExtension}throw new Error("Invalid listen")}call(e,t,i){const n=this.getUriTransformer(e);switch(t){case"zip":return this.service.zip(a(i[0],n)).then(e=>(function(e,t){return t?t.transformOutgoingURI(e):e})(e,n));case"unzip":return this.service.unzip(r(i[0],n));case"install":return this.service.install(r(i[0],n));case"getManifest":return this.service.getManifest(r(i[0],n));case"canInstall":return this.service.canInstall(i[0]);case"installFromGallery":return this.service.installFromGallery(i[0]);case"uninstall":return this.service.uninstall(a(i[0],n),i[1]);case"reinstallFromGallery":return this.service.reinstallFromGallery(a(i[0],n));case"getInstalled":return this.service.getInstalled(i[0]).then(e=>e.map(e=>l(e,n)));case"updateMetadata":return this.service.updateMetadata(a(i[0],n),i[1]).then(e=>l(e,n));case"getExtensionsReport":return this.service.getExtensionsReport()}throw new Error("Invalid call")}};t.ExtensionManagementChannelClient=class{
constructor(e){this.channel=e}get onInstallExtension(){return this.channel.listen("onInstallExtension")}get onDidInstallExtension(){return i.Event.map(this.channel.listen("onDidInstallExtension"),e=>Object.assign(Object.assign({},e),{local:e.local?a(e.local,null):e.local}))}get onUninstallExtension(){return this.channel.listen("onUninstallExtension")}get onDidUninstallExtension(){return this.channel.listen("onDidUninstallExtension")}zip(e){return Promise.resolve(this.channel.call("zip",[e]).then(e=>n.URI.revive(e)))}unzip(e){return Promise.resolve(this.channel.call("unzip",[e]))}install(e){return Promise.resolve(this.channel.call("install",[e])).then(e=>a(e,null))}getManifest(e){return Promise.resolve(this.channel.call("getManifest",[e]))}async canInstall(e){return!0}installFromGallery(e){return Promise.resolve(this.channel.call("installFromGallery",[e])).then(e=>a(e,null))}uninstall(e,t=!1){return Promise.resolve(this.channel.call("uninstall",[e,t]))}reinstallFromGallery(e){
return Promise.resolve(this.channel.call("reinstallFromGallery",[e]))}getInstalled(e=null){return Promise.resolve(this.channel.call("getInstalled",[e])).then(e=>e.map(e=>a(e,null)))}updateMetadata(e,t){return Promise.resolve(this.channel.call("updateMetadata",[e,t])).then(e=>a(e,null))}getExtensionsReport(){return Promise.resolve(this.channel.call("getExtensionsReport"))}};t.ExtensionTipsChannel=class{constructor(e){this.service=e}listen(e,t){throw new Error("Invalid listen")}call(e,t,i){switch(t){case"getConfigBasedTips":return this.service.getConfigBasedTips(n.URI.revive(i[0]));case"getImportantExecutableBasedTips":return this.service.getImportantExecutableBasedTips();case"getOtherExecutableBasedTips":return this.service.getOtherExecutableBasedTips();case"getAllWorkspacesTips":return this.service.getAllWorkspacesTips()}throw new Error("Invalid call")}}})),define(e[1472],t([0,1,41]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localizeManifest=void 0
;const n=/^%([\w\d.-]+)%$/i;t.localizeManifest=function(e,t){return i.cloneAndChange(e,e=>{if("string"!=typeof e)return;const i=n.exec(e);return i?t[i[1]]||e:void 0})}})),define(e[1473],t([0,1,1032]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVersionValid=t.isEngineValid=t.isValidExtensionVersion=t.isValidVersion=t.normalizeVersion=t.parseVersion=t.isValidVersionStr=void 0;const n=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/;function o(e){return"*"===(e=e.trim())||n.test(e)}function s(e){if(!o(e))return null;if("*"===(e=e.trim()))return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};let t=e.match(n);return t?{hasCaret:"^"===t[1],hasGreaterEquals:">="===t[1],majorBase:"x"===t[2]?0:parseInt(t[2],10),majorMustEqual:"x"!==t[2],minorBase:"x"===t[4]?0:parseInt(t[4],10),minorMustEqual:"x"!==t[4],patchBase:"x"===t[6]?0:parseInt(t[6],10),patchMustEqual:"x"!==t[6],
preRelease:t[8]||null}:null}function r(e){if(!e)return null;let t=e.majorBase,i=e.majorMustEqual,n=e.minorBase,o=e.minorMustEqual,s=e.patchBase,r=e.patchMustEqual;return e.hasCaret&&(0===t?r=!1:(o=!1,r=!1)),{majorBase:t,majorMustEqual:i,minorBase:n,minorMustEqual:o,patchBase:s,patchMustEqual:r,isMinimum:e.hasGreaterEquals}}function a(e,t){let i,n;if(i="string"==typeof e?r(s(e)):e,n="string"==typeof t?r(s(t)):t,!i||!n)return!1;let o=i.majorBase,a=i.minorBase,l=i.patchBase,c=n.majorBase,d=n.minorBase,h=n.patchBase,u=n.majorMustEqual,g=n.minorMustEqual,p=n.patchMustEqual;return n.isMinimum?o>c||!(od||!(a=h):(1!==o||0!==c||u&&g&&p||(c=1,d=0,h=0,u=!0,g=!1,p=!1),!(oc?!u:!(ad?!g:!(lh)||!p))))}function l(e,t,n=[]){let o=r(s(t));if(!o)return n.push(i.localize(0,null,t)),!1;if(0===o.majorBase){if(!o.majorMustEqual||!o.minorMustEqual)return n.push(i.localize(1,null,t)),!1}else if(!o.majorMustEqual)return n.push(i.localize(2,null,t)),!1
;return!!a(e,o)||(n.push(i.localize(3,null,e,t)),!1)}t.isValidVersionStr=o,t.parseVersion=s,t.normalizeVersion=r,t.isValidVersion=a,t.isValidExtensionVersion=function(e,t,i){return!(!t.isBuiltin&&void 0!==t.main)||l(e,t.engines.vscode,i)},t.isEngineValid=function(e,t){return"*"===e||l(t,e)},t.isVersionValid=l})),define(e[90],t([0,1]),(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSyncDescriptor=t.SyncDescriptor=void 0;class i{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}t.SyncDescriptor=i;t.createSyncDescriptor=(e,...t)=>new i(e,t)})),define(e[33],t([0,1,90]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSingletonServiceDescriptors=t.registerSingleton=void 0;const n=[];t.registerSingleton=function(e,t,o){n.push([e,new i.SyncDescriptor(t,[],o)])},t.getSingletonServiceDescriptors=function(){return n}})),define(e[1474],t([0,1]),(function(e,t){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.Graph=t.Node=void 0;class i{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}t.Node=i;t.Graph=class{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let n=this._nodes.get(t);return n||(n=new i(e),this._nodes.set(t,n)),n}lookup(e){return this._nodes.get(this._hashFn(e))}isEmpty(){return 0===this._nodes.size}toString(){let e=[];for(let[t,i]of this._nodes)e.push(`${t}, (incoming)[${[...i.incoming.keys()].join(", ")}], (outgoing)[${[...i.outgoing.keys()].join(",")}]`);return e.join("\n")}}})),
define(e[5],t([0,1]),(function(e,t){"use strict";var i;function n(e,t,n,o){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:o}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:o}],t[i.DI_TARGET]=t)}function o(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,i,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,o,!1)};return t.toString=()=>e,i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0}),t.optional=t.createDecorator=t.IInstantiationService=t._util=void 0,function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=o("instantiationService"),t.createDecorator=o,t.optional=function(e){return function(t,i,o){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,o,!0)}}})),
define(e[143],t([0,1,5,10,13]),(function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceFileEdit=t.ResourceTextEdit=t.ResourceEdit=t.IBulkEditService=void 0,t.IBulkEditService=i.createDecorator("IWorkspaceEditService");class s{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(function(e){return o.isObject(e)&&n.URI.isUri(e.resource)&&o.isObject(e.edit)}(e))return new r(e.resource,e.edit,e.modelVersionId,e.metadata);if(function(e){return o.isObject(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}(e))return new a(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")})}}t.ResourceEdit=s;class r extends s{constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i,this.metadata=n}}t.ResourceTextEdit=r;class a extends s{constructor(e,t,i,n){super(n),this.oldResource=e,this.newResource=t,this.options=i,this.metadata=n}}t.ResourceFileEdit=a})),define(e[72],t([0,1,5]),(function(e,t,i){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.ICodeEditorService=void 0,t.ICodeEditorService=i.createDecorator("codeEditorService")})),define(e[155],t([0,1,5]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEditorWorkerService=t.ID_EDITOR_WORKER_SERVICE=void 0,t.ID_EDITOR_WORKER_SERVICE="editorWorkerService",t.IEditorWorkerService=i.createDecorator(t.ID_EDITOR_WORKER_SERVICE)})),define(e[417],t([0,1,5]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IMarkerDecorationsService=void 0,t.IMarkerDecorationsService=i.createDecorator("markerDecorationsService")})),define(e[50],t([0,1,5]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IModeService=void 0,t.IModeService=i.createDecorator("modeService")})),define(e[46],t([0,1,5]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldSynchronizeModel=t.IModelService=void 0,t.IModelService=i.createDecorator("modelService"),
t.shouldSynchronizeModel=function(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}})),define(e[349],t([0,1,6,133,2,67,195,893,46]),(function(e,t,i,n,o,s,r,a,l){"use strict";function c(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageFeatureRequestDelays=t.LanguageFeatureRegistry=void 0;class d{constructor(){this._clock=0,this._entries=[],this._onDidChange=new i.Emitter}get onDidChange(){return this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),o.toDisposable(()=>{if(i){let e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}
ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))}),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}}_updateScores(e){let t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(let t of this._entries)if(t._score=a.score(t.selector,e.uri,e.getLanguageIdentifier().language,l.shouldSynchronizeModel(e)),c(t.selector)&&t._score>0){for(let e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(d._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:e._timet._time?-1:0}}t.LanguageFeatureRegistry=d;t.LanguageFeatureRequestDelays=class{constructor(e,t,i=Number.MAX_SAFE_INTEGER){
this._registry=e,this.min=t,this.max=i,this._cache=new s.LRUCache(50,.7)}_key(e){return e.id+n.hash(this._registry.all(e))}_clamp(e){return void 0===e?this.min:Math.min(this.max,Math.max(this.min,Math.floor(1.3*e)))}get(e){const t=this._key(e),i=this._cache.get(t);return this._clamp(null==i?void 0:i.value)}update(e,t){const i=this._key(e);let n=this._cache.get(i);return n||(n=new r.MovingAverage,this._cache.set(i,n)),n.update(t),this.get(e)}}})),define(e[45],t([0,1,10,18,349,899,44]),(function(e,t,i,n,o,s,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
t.TokenizationRegistry=t.DocumentRangeSemanticTokensProviderRegistry=t.DocumentSemanticTokensProviderRegistry=t.FoldingRangeProviderRegistry=t.SelectionRangeRegistry=t.ColorProviderRegistry=t.LinkProviderRegistry=t.OnTypeFormattingEditProviderRegistry=t.DocumentRangeFormattingEditProviderRegistry=t.DocumentFormattingEditProviderRegistry=t.CodeActionProviderRegistry=t.CodeLensProviderRegistry=t.TypeDefinitionProviderRegistry=t.ImplementationProviderRegistry=t.DeclarationProviderRegistry=t.DefinitionProviderRegistry=t.OnTypeRenameProviderRegistry=t.DocumentHighlightProviderRegistry=t.DocumentSymbolProviderRegistry=t.EvaluatableExpressionProviderRegistry=t.HoverProviderRegistry=t.SignatureHelpProviderRegistry=t.CompletionProviderRegistry=t.RenameProviderRegistry=t.ReferenceProviderRegistry=t.CommentMode=t.CommentThreadCollapsibleState=t.FoldingRangeKind=t.SymbolKinds=t.SymbolTag=t.SymbolKind=t.isLocationLink=t.DocumentHighlightKind=t.SignatureHelpTriggerKind=t.CodeActionTriggerType=t.CompletionTriggerKind=t.CompletionItemInsertTextRule=t.CompletionItemTag=t.completionKindFromString=t.completionKindToCssClass=t.CompletionItemKind=t.TokenMetadata=t.MetadataConsts=t.StandardTokenType=t.ColorId=t.FontStyle=t.LanguageIdentifier=t.LanguageId=void 0,
function(e){e[e.Null=0]="Null",e[e.PlainText=1]="PlainText"}(t.LanguageId||(t.LanguageId={}));t.LanguageIdentifier=class{constructor(e,t){this.language=e,this.id=t}},function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"}(t.FontStyle||(t.FontStyle={})),function(e){e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground"}(t.ColorId||(t.ColorId={})),function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=4]="RegEx"}(t.StandardTokenType||(t.StandardTokenType={})),function(e){e[e.LANGUAGEID_MASK=255]="LANGUAGEID_MASK",e[e.TOKEN_TYPE_MASK=1792]="TOKEN_TYPE_MASK",e[e.FONT_STYLE_MASK=14336]="FONT_STYLE_MASK",e[e.FOREGROUND_MASK=8372224]="FOREGROUND_MASK",e[e.BACKGROUND_MASK=4286578688]="BACKGROUND_MASK",e[e.ITALIC_MASK=2048]="ITALIC_MASK",e[e.BOLD_MASK=4096]="BOLD_MASK",e[e.UNDERLINE_MASK=8192]="UNDERLINE_MASK",e[e.SEMANTIC_USE_ITALIC=1]="SEMANTIC_USE_ITALIC",
e[e.SEMANTIC_USE_BOLD=2]="SEMANTIC_USE_BOLD",e[e.SEMANTIC_USE_UNDERLINE=4]="SEMANTIC_USE_UNDERLINE",e[e.SEMANTIC_USE_FOREGROUND=8]="SEMANTIC_USE_FOREGROUND",e[e.SEMANTIC_USE_BACKGROUND=16]="SEMANTIC_USE_BACKGROUND",e[e.LANGUAGEID_OFFSET=0]="LANGUAGEID_OFFSET",e[e.TOKEN_TYPE_OFFSET=8]="TOKEN_TYPE_OFFSET",e[e.FONT_STYLE_OFFSET=11]="FONT_STYLE_OFFSET",e[e.FOREGROUND_OFFSET=14]="FOREGROUND_OFFSET",e[e.BACKGROUND_OFFSET=23]="BACKGROUND_OFFSET"}(t.MetadataConsts||(t.MetadataConsts={}));t.TokenMetadata=class{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`
;return 1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;"),4&n&&(o+="text-decoration: underline;"),o}},function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(t.CompletionItemKind||(t.CompletionItemKind={})),t.completionKindToCssClass=function(){let e=Object.create(null);return e[0]="symbol-method",e[1]="symbol-function",
e[2]="symbol-constructor",e[3]="symbol-field",e[4]="symbol-variable",e[5]="symbol-class",e[6]="symbol-struct",e[7]="symbol-interface",e[8]="symbol-module",e[9]="symbol-property",e[10]="symbol-event",e[11]="symbol-operator",e[12]="symbol-unit",e[13]="symbol-value",e[14]="symbol-constant",e[15]="symbol-enum",e[16]="symbol-enum-member",e[17]="symbol-keyword",e[27]="symbol-snippet",e[18]="symbol-text",e[19]="symbol-color",e[20]="symbol-file",e[21]="symbol-reference",e[22]="symbol-customcolor",e[23]="symbol-folder",e[24]="symbol-type-parameter",e[25]="account",e[26]="issues",function(t){const i=e[t];let n=i&&r.iconRegistry.get(i);return n||(console.info("No codicon found for CompletionItemKind "+t),n=r.Codicon.symbolProperty),n.classNames}}(),t.completionKindFromString=function(){let e=Object.create(null);return e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,
e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=27,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24,e.account=25,e.issue=26,function(t,i){let n=e[t];return void 0!==n||i||(n=9),n}}(),function(e){e[e.Deprecated=1]="Deprecated"}(t.CompletionItemTag||(t.CompletionItemTag={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(t.CompletionItemInsertTextRule||(t.CompletionItemInsertTextRule={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t.CompletionTriggerKind||(t.CompletionTriggerKind={})),function(e){e[e.Auto=1]="Auto",e[e.Manual=2]="Manual"}(t.CodeActionTriggerType||(t.CodeActionTriggerType={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})),function(e){
e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(t.DocumentHighlightKind||(t.DocumentHighlightKind={})),t.isLocationLink=function(e){return e&&i.URI.isUri(e.uri)&&n.Range.isIRange(e.range)&&(n.Range.isIRange(e.originSelectionRange)||n.Range.isIRange(e.targetSelectionRange))},function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(t.SymbolKind||(t.SymbolKind={})),function(e){
e[e.Deprecated=1]="Deprecated"}(t.SymbolTag||(t.SymbolTag={})),function(e){const t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);const i=new Map;i.set(0,"file"),i.set(1,"module"),i.set(2,"namespace"),i.set(3,"package"),i.set(4,"class"),i.set(5,"method"),i.set(6,"property"),i.set(7,"field"),i.set(8,"constructor"),i.set(9,"enum"),i.set(10,"interface"),i.set(11,"function"),i.set(12,"variable"),i.set(13,"constant"),i.set(14,"string"),i.set(15,"number"),i.set(16,"boolean"),i.set(17,"array"),i.set(18,"object"),i.set(19,"key"),i.set(20,"null"),
i.set(21,"enum-member"),i.set(22,"struct"),i.set(23,"event"),i.set(24,"operator"),i.set(25,"type-parameter"),e.fromString=function(e){return t.get(e)},e.toString=function(e){return i.get(e)},e.toCssClassName=function(e,t){const n=i.get(e);let o=n&&r.iconRegistry.get("symbol-"+n);return o||(console.info("No codicon found for SymbolKind "+e),o=r.Codicon.symbolProperty),`${t?"inline":"block"} ${o.classNames}`}}(t.SymbolKinds||(t.SymbolKinds={}));class a{constructor(e){this.value=e}}t.FoldingRangeKind=a,a.Comment=new a("comment"),a.Imports=new a("imports"),a.Region=new a("region"),function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(t.CommentThreadCollapsibleState||(t.CommentThreadCollapsibleState={})),function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"}(t.CommentMode||(t.CommentMode={})),t.ReferenceProviderRegistry=new o.LanguageFeatureRegistry,t.RenameProviderRegistry=new o.LanguageFeatureRegistry,t.CompletionProviderRegistry=new o.LanguageFeatureRegistry,
t.SignatureHelpProviderRegistry=new o.LanguageFeatureRegistry,t.HoverProviderRegistry=new o.LanguageFeatureRegistry,t.EvaluatableExpressionProviderRegistry=new o.LanguageFeatureRegistry,t.DocumentSymbolProviderRegistry=new o.LanguageFeatureRegistry,t.DocumentHighlightProviderRegistry=new o.LanguageFeatureRegistry,t.OnTypeRenameProviderRegistry=new o.LanguageFeatureRegistry,t.DefinitionProviderRegistry=new o.LanguageFeatureRegistry,t.DeclarationProviderRegistry=new o.LanguageFeatureRegistry,t.ImplementationProviderRegistry=new o.LanguageFeatureRegistry,t.TypeDefinitionProviderRegistry=new o.LanguageFeatureRegistry,t.CodeLensProviderRegistry=new o.LanguageFeatureRegistry,t.CodeActionProviderRegistry=new o.LanguageFeatureRegistry,t.DocumentFormattingEditProviderRegistry=new o.LanguageFeatureRegistry,t.DocumentRangeFormattingEditProviderRegistry=new o.LanguageFeatureRegistry,t.OnTypeFormattingEditProviderRegistry=new o.LanguageFeatureRegistry,t.LinkProviderRegistry=new o.LanguageFeatureRegistry,
t.ColorProviderRegistry=new o.LanguageFeatureRegistry,t.SelectionRangeRegistry=new o.LanguageFeatureRegistry,t.FoldingRangeProviderRegistry=new o.LanguageFeatureRegistry,t.DocumentSemanticTokensProviderRegistry=new o.LanguageFeatureRegistry,t.DocumentRangeSemanticTokensProviderRegistry=new o.LanguageFeatureRegistry,t.TokenizationRegistry=new s.TokenizationRegistryImpl})),define(e[350],t([0,1,45]),(function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SlicedLineTokens=t.LineTokens=void 0;class n{constructor(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}equals(e){return e instanceof n&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){
return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)];return i.TokenMetadata.getLanguageId(t)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return i.TokenMetadata.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return i.TokenMetadata.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return i.TokenMetadata.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return i.TokenMetadata.getInlineStyleFromMetadata(n,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new o(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;it&&(n=o)}return i}}t.LineTokens=n;class o{
constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i)break;this._tokensCount++}}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){
return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}t.SlicedLineTokens=o})),define(e[351],t([0,1,14,350,47,18,45,66]),(function(e,t,i,n,o,s,r,a){"use strict";function l(e){let t=0,i=0,n=0,o=0;for(let s=0,r=e.length;s>>0}Object.defineProperty(t,"__esModule",{value:!0}),t.TokensStore=t.TokensStore2=t.MultilineTokens=t.MultilineTokens2=t.LineTokens2=t.SparseEncodedTokens=t.MultilineTokensBuilder=t.countEOL=t.StringEOL=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.Invalid=3]="Invalid",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.StringEOL||(t.StringEOL={})),t.countEOL=l;const d=new Uint32Array(0).buffer;t.MultilineTokensBuilder=class{constructor(){this.tokens=[]}add(e,t){if(this.tokens.length>0){const i=this.tokens[this.tokens.length-1]
;if(i.startLineNumber+i.tokens.length-1+1===e)return void i.tokens.push(t)}this.tokens.push(new p(e,[t]))}static deserialize(e){let t=0;const i=a.readUInt32BE(e,t);t+=4;let n=[];for(let o=0;oe)){let o=n;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let s=n;for(;se||d===e&&u>=t)&&(de||h===e&&g>=t){if(ho?p-=o-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>o)){c=!0;continue}p-=o-i}else if(uo)){c=!0;continue}p=u===t?(g=i)+(p-o):(g=0)+(p-o)}else if(u>n){if(0===a&&!c){l=r;break}u-=a}else{if(!(u===n&&g>=o))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=o-i,p-=o-i}const v=4*l;s[v]=u,s[v+1]=g,s[v+2]=p,s[v+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,o,s){
const r=0===i&&1===n&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let s=0;s0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,s){this._acceptDeleteRange(e),this._acceptInsertText(new o.Position(e.startLineNumber,e.startColumn),t,i,n,s),this._updateEndLineNumber()}_acceptDeleteRange(e){
if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this.startLineNumber,i=e.endLineNumber-this.startLineNumber;if(i<0){const e=i-t;return void(this.startLineNumber-=e)}const n=this.tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){const n=-t;this.startLineNumber-=n,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(0===t&&0===i)return;const s=e.lineNumber-this.startLineNumber;s<0?this.startLineNumber+=t:s>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(s,e.column-1,t,i,n,o)}}t.MultilineTokens2=g;class p{constructor(e,t){this.startLineNumber=e,this.tokens=t}static deserialize(e,t,i){const n=new Uint32Array(e.buffer),o=a.readUInt32BE(e,t);t+=4;const s=a.readUInt32BE(e,t);t+=4;let r=[];for(let i=0;i=this.tokens.length)){
if(t<0&&i>=this.tokens.length)return this.startLineNumber=0,void(this.tokens=[]);if(t!==i)if(t>=0)if(this.tokens[t]=f._deleteEnding(this.tokens[t],e.startColumn-1),i=this.tokens.length||(0!==t?(this.tokens[n]=f._deleteEnding(this.tokens[n],e.column-1),this.tokens[n]=f._insert(this.tokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this.tokens[n]=f._insert(this.tokens[n],e.column-1,i))}_insertLines(e,t){if(0===t)return;let n=[]
;for(let e=0;e0){const i=t[0].getRange(),o=t[t.length-1].getRange();if(!i||!o)return e;n=e.plusRange(i).plusRange(o)}let o=null;for(let e=0,t=this._pieces.length;en.endLineNumber){o=o||{index:e};break}if(i.removeTokens(n),i.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(i.endLineNumbern.endLineNumber){o=o||{index:e};continue}const[s,r]=i.split(n);s.isEmpty()?o=o||{index:e}:r.isEmpty()||(this._pieces.splice(e,1,s,r),e++,t++,o=o||{index:e})}return o=o||{index:this._pieces.length},
t.length>0&&(this._pieces=i.arrayInsert(this._pieces,o.index,t)),n}isComplete(){return this._isComplete}addSemanticTokens(e,t){const i=this._pieces;if(0===i.length)return t;const o=i[v._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!o)return t;const s=t.getCount(),r=o.getCount();let a=0,l=[],c=0,d=0;const h=(e,t)=>{e!==d&&(d=e,l[c++]=e,l[c++]=t)};for(let e=0;e>>0,c=~l>>>0;for(;at)){for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}n=o-1}}return i}acceptEdit(e,t,i,n,o){for(const s of this._pieces)s.acceptEdit(e,t,i,n,o)}}t.TokensStore2=v;class f{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,i){let o=null;if(t1&&(t=r.TokenMetadata.getLanguageId(n[1])!==e),!t)return d}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=c(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}
_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[];for(let e=0;e=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=f._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=f._deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null
;i=this._len||(0!==t?(this._lineTokens[n]=f._deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=f._insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=f._insert(this._lineTokens[n],e.column-1,i))}static _deleteBeginning(e,t){return null===e||e===d?e:f._delete(e,0,t)}static _deleteEnding(e,t){if(null===e||e===d)return e;const i=m(e),n=i[i.length-2];return f._delete(e,t,n)}static _delete(e,t,i){if(null===e||e===d||t===i)return e;const o=m(e),s=o.length>>>1;if(0===t&&o[o.length-2]===i)return d;const r=n.LineTokens.findIndexInTokensArray(o,t),a=r>0?o[r-1<<1]:0;if(ic&&(o[l++]=t,o[l++]=o[1+(e<<1)],c=t)}if(l===o.length)return e;let u=new Uint32Array(l);return u.set(o.subarray(0,l),0),u.buffer}static _append(e,t){if(t===d)return e;if(e===d)return t;if(null===e)return e;if(null===t)return null;const i=m(e),n=m(t),o=n.length>>>1;let s=new Uint32Array(i.length+n.length);s.set(i,0);let r=i.length;const a=i[i.length-2];for(let e=0;e>>1;let r=n.LineTokens.findIndexInTokensArray(o,t);if(r>0){o[r-1<<1]===t&&r--}for(let e=r;ee.sortIndex-t.sortIndex)}this._mightContainRTL=o,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=d;const f=this._doApplyEdits(u);let S=null;if(t&&m.length>0){m.sort((e,t)=>t.lineNumber-e.lineNumber),S=[];for(let e=0,t=m.length;e0&&m[e-1].lineNumber===t)continue;let i=m[e].oldContent,o=this.getLineContent(t);0!==o.length&&o!==i&&-1===n.firstNonWhitespaceIndex(o)&&S.push(t)}}return this._onDidChangeContent.fire(),new s.ApplyEditsResult(v,f,S)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1
;const i=e[0].range,n=e[e.length-1].range,s=new o.Range(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let r=i.startLineNumber,l=i.startColumn;const c=[];for(let i=0,n=e.length;i0&&c.push(n.text),r=s.endLineNumber,l=s.endColumn}const d=c.join(""),[h,u,g]=a.countEOL(d);return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,0),text:d,eolCount:h,firstLineLength:u,lastLineLength:g,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(c._sortOpsDescending);let t=[];for(let i=0;i0){const e=s+1;c=1===e?new o.Range(i,n,i,n+r):new o.Range(i,n,i+e-1,l+1)}else c=new o.Range(i,n,i,n);return c}static _getInverseEditRanges(e){let t=[],i=0,n=0,s=null;for(let r=0,a=e.length;r0){const e=d.eolCount+1
;c=1===e?new o.Range(a,l,a,l+d.firstLineLength):new o.Range(a,l,a+e-1,d.lastLineLength+1)}else c=new o.Range(a,l,a,l);i=c.endLineNumber,n=c.endColumn,t.push(c),s=d}return t}static _sortOpsAscending(e,t){let i=o.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){let i=o.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}t.PieceTreeTextBuffer=c})),define(e[553],t([0,1,24,537,552]),(function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PieceTreeTextBufferBuilder=t.PieceTreeTextBufferFactory=void 0;class s{constructor(e,t,i,n,o,s,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=s,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e);let i=this._chunks
;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,o=i.length;e=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,
this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=n.createLineStarts(this._tmpLineStarts,e);this.chunks.push(new n.StringBuffer(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=i.containsRTL(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=i.containsUnusualLineTerminators(e))}finish(e=!0){return this._finish(),new s(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1]
;e.buffer+=String.fromCharCode(this._previousChar);let t=n.createLineStartsFast(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}})),define(e[265],t([0,1,403,45]),(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nullTokenize2=t.nullTokenize=t.NULL_LANGUAGE_IDENTIFIER=t.NULL_MODE_ID=t.NULL_STATE=void 0;t.NULL_STATE=new class{clone(){return this}equals(e){return this===e}},t.NULL_MODE_ID="vs.editor.nullMode",t.NULL_LANGUAGE_IDENTIFIER=new n.LanguageIdentifier(t.NULL_MODE_ID,0),t.nullTokenize=function(e,t,n,o){return new i.TokenizationResult([new i.Token(o,"",e)],n)},t.nullTokenize2=function(e,n,o,s){let r=new Uint32Array(2);return r[0]=s,r[1]=(16384|e<<0|2<<23)>>>0,new i.TokenizationResult2(r,null===o?t.NULL_STATE:o)}})),define(e[1475],t([0,1,14,21,350,47,45,265,2,232,351,12]),(function(e,t,i,n,o,s,r,a,l,c,d,h){"use strict";var u;Object.defineProperty(t,"__esModule",{value:!0}),t.TextModelTokenization=t.TokenizationStateStore=void 0,function(e){
e[e.CHEAP_TOKENIZATION_LENGTH_LIMIT=2048]="CHEAP_TOKENIZATION_LENGTH_LIMIT"}(u||(u={}));class g{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[],o=[];for(let e=0;e=0;t--)this._invalidateLine(e.startLineNumber+t-1);this._acceptDeleteRange(e),this._acceptInsertText(new s.Position(e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)}}t.TokenizationStateStore=g;class p extends l.Disposable{constructor(e){super(),this._isDisposed=!1,this._textModel=e,
this._tokenizationStateStore=new g,this._tokenizationSupport=null,this._register(r.TokenizationRegistry.onDidChange(e=>{const t=this._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeRawContentFast(e=>{e.containsEvent(1)&&this._resetTokenizationState()})),this._register(this._textModel.onDidChangeContentFast(e=>{for(let t=0,i=e.changes.length;t{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[e,t]=function(e){const t=e.getLanguageIdentifier()
;let i=e.isTooLargeForTokenization()?null:r.TokenizationRegistry.get(t.language),o=null;if(i)try{o=i.getInitialState()}catch(e){n.onUnexpectedError(e),i=null}return[i,o]}(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&h.setImmediate(()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(e=this._textModel.getLineCount()){const t=new d.MultilineTokensBuilder,i=c.StopWatch.create(!1);for(;this._hasLinesToTokenize()&&!(i.elapsed()>1);){if(this._tokenizeOneInvalidLine(t)>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)}tokenizeViewport(e,t){const i=new d.MultilineTokensBuilder;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new d.MultilineTokensBuilder
;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)}isCheapToTokenize(e){if(!this._tokenizationSupport)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e0&&e>=1;e--){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);if(0!==t&&t=0;e--){a=m(r,this._tokenizationSupport,o[e],a).endState}for(let n=t;n<=i;n++){let t=this._textModel.getLineContent(n),i=m(r,this._tokenizationSupport,t,a);e.add(n,i.tokens),this._tokenizationStateStore.setFakeTokens(n-1),a=i.endState}}}function m(e,t,i,s){let r=null;if(t)try{r=t.tokenize2(i,s.clone(),0)}catch(e){
n.onUnexpectedError(e)}return r||(r=a.nullTokenize2(e.id,i,s,0)),o.LineTokens.convertToEndOffset(r.tokens,i.length),r}t.TextModelTokenization=p})),define(e[75],t([0,1,21,6,2,24,10,111,47,18,60,129,305,889,535,553,891,296,1475,262,134,265,404,405,351,55]),(function(e,t,i,n,o,s,r,a,l,c,d,h,u,g,p,m,v,f,S,b,_,C,y,w,E,I){"use strict";function x(){return new m.PieceTreeTextBufferBuilder}function k(e){const t=x();return t.acceptChunk(e),t.finish()}function D(e,t){return("string"==typeof e?k(e):e).create(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeContentEmitter=t.DidChangeDecorationsEmitter=t.ModelDecorationOptions=t.ModelDecorationMinimapOptions=t.ModelDecorationOverviewRulerOptions=t.TextModel=t.LONG_LINE_BOUNDARY=t.createTextBuffer=t.createTextBufferFactoryFromSnapshot=t.createTextBufferFactoryFromStream=t.createTextBufferFactory=void 0,t.createTextBufferFactory=k,t.createTextBufferFactoryFromStream=function(e,t,i){return new Promise((n,o)=>{const s=x();let r=!1;e.on("data",e=>{if(i){
const t=i(e);t&&(r=!0,o(t))}t&&(e=t(e)),s.acceptChunk("string"==typeof e?e:e.toString())}),e.on("error",e=>{r||(r=!0,o(e))}),e.on("end",()=>{r||(r=!0,n(s.finish()))})})},t.createTextBufferFactoryFromSnapshot=function(e){let t,i=x();for(;"string"==typeof(t=e.read());)i.acceptChunk(t);return i.finish()},t.createTextBuffer=D;let T=0;const R=999;t.LONG_LINE_BOUNDARY=1e4;class A{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,i=0;for(;;){let n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const M=()=>{throw new Error("Invalid change accessor")};var L;!function(e){e[e.Relaxed=0]="Relaxed",e[e.SurrogatePairs=1]="SurrogatePairs"}(L||(L={}));class O{constructor(){this._searchCanceledBrand=void 0}}function N(e){return e instanceof O?null:e}O.INSTANCE=new O;class P extends o.Disposable{constructor(e,t,i,o=null,a){super(),this._onWillDispose=this._register(new n.Emitter),
this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new G),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new n.Emitter),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new n.Emitter),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new n.Emitter),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new n.Emitter),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new n.Emitter),this.onDidChangeAttached=this._onDidChangeAttached.event,this._eventEmitter=this._register(new $),T++,this.id="$model"+T,this.isForSimpleWidget=t.isForSimpleWidget,this._associatedResource=null==o?r.URI.parse("inmemory://model/"+T):o,this._undoRedoService=a,this._attachedEditorCount=0,this._buffer=D(e,t.defaultEOL),
this._options=P.resolveOptions(this._buffer,t);const l=this._buffer.getLineCount(),d=this._buffer.getValueLengthInRange(new c.Range(1,1,l,this._buffer.getLineLength(l)+1),0);t.largeFileOptimizations?this._isTooLargeForTokenization=d>P.LARGE_FILE_SIZE_THRESHOLD||l>P.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=d>P.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=i||C.NULL_LANGUAGE_IDENTIFIER,this._languageRegistryListener=_.LanguageConfigurationRegistry.onDidChange(e=>{e.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=s.singleLetterHash(T),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new F,this._commandManager=new u.EditStack(this,a),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new E.TokensStore,
this._tokens2=new E.TokensStore2,this._tokenization=new S.TextModelTokenization(this)}static resolveOptions(e,t){if(t.detectIndentation){const i=g.guessIndentation(e,t.tabSize,t.insertSpaces);return new h.TextModelResolvedOptions({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h.TextModelResolvedOptions({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}onDidChangeRawContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.rawContentChangedEvent))}onDidChangeRawContent(e){return this._eventEmitter.slowEvent(t=>e(t.rawContentChangedEvent))}onDidChangeContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.contentChangedEvent))}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),
this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._isDisposing=!1}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}equalsTextBuffer(e){return this._assertNotDisposed(),this._buffer.equals(e)}getTextBuffer(){return this._assertNotDisposed(),this._buffer}_emitContentChangedEvent(e,t){this._isDisposing||this._eventEmitter.fire(new v.InternalModelContentChangeEvent(e,t))}setValue(e){if(this._assertNotDisposed(),null===e)return;const t=D(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}_createContentChanged2(e,t,i,n,o,s,r){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:s,isFlush:r}}setValueFromTextBuffer(e){if(this._assertNotDisposed(),null===e)return;const t=this.getFullModelRange(),i=this.getValueLengthInRange(t),n=this.getLineCount(),o=this.getLineMaxColumn(n);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),
this._decorations=Object.create(null),this._decorationsTree=new F,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new v.ModelRawContentChangedEvent([new v.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new c.Range(1,1,n,o),0,i,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new v.ModelRawContentChangedEvent([new v.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new c.Range(1,1,o,s),0,n,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)}_onAfterEOLChange(){
const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,i=0
;const n=this._buffer.getLineCount();for(let o=1;o<=n;o++){const n=this._buffer.getLineLength(o);n>=t.LONG_LINE_BOUNDARY?i+=n:e+=n}return i>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.indentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s=new h.TextModelResolvedOptions({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o});if(this._options.equals(s))return;let r=this._options.createChangeEvent(s);this._options=s,this._onDidChangeOptions.fire(r)}detectIndentation(e,t){this._assertNotDisposed();let i=g.guessIndentation(this._buffer,t,e)
;this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}static _normalizeIndentationFromWhitespace(e,t,i){let n=0;for(let i=0;i({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}
createSnapshot(e=!1){return new A(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){
return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o,s;if(i<1)o=1,s=1;else if(i>t)o=t,s=this.getLineMaxColumn(o);else if(o=0|i,n<=1)s=1;else{const e=this.getLineMaxColumn(o);s=n>=e?e:0|n}const r=e.endLineNumber,a=e.endColumn
;let l,h;if(r<1)l=1,h=1;else if(r>t)l=t,h=this.getLineMaxColumn(l);else if(l=0|r,a<=1)h=1;else{const e=this.getLineMaxColumn(l);h=a>=e?e:0|a}return i===o&&n===s&&r===l&&a===h&&e instanceof c.Range&&!(e instanceof d.Selection)?e:new c.Range(o,s,l,h)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(s.isHighSurrogate(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(n<1)return new l.Position(1,1);if(n>r)return new l.Position(r,this.getLineMaxColumn(r));if(o<=1)return new l.Position(n,1);const a=this.getLineMaxColumn(n);if(o>=a)return new l.Position(n,a);if(1===i){const e=this._buffer.getLineCharCode(n,o-2)
;if(s.isHighSurrogate(e))return new l.Position(n,o-1)}return new l.Position(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof l.Position&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(o,r,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,a=s.isHighSurrogate(e),l=s.isHighSurrogate(t);return!a&&!l}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof c.Range&&!(e instanceof d.Selection)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,o=t.column,r=i.lineNumber,a=i.column;{
const e=o>1?this._buffer.getLineCharCode(n,o-2):0,t=a>1&&a<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,a-2):0,i=s.isHighSurrogate(e),l=s.isHighSurrogate(t);return i||l?n===r&&o===a?new c.Range(n,o-1,r,a-1):i&&l?new c.Range(n,o-1,r,a+1):i?new c.Range(n,o-1,r,a):new c.Range(n,o,r,a+1):new c.Range(n,o,r,a)}}modifyPosition(e,t){this._assertNotDisposed();let i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new c.Range(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,s,r=R){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every(e=>c.Range.isIRange(e))&&(a=t.map(e=>this.validateRange(e)))),null===a&&(a=[this.getFullModelRange()]),a=a.sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);const l=[];let d
;if(l.push(a.reduce((e,t)=>c.Range.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t))),!i&&e.indexOf("\n")<0){const t=new f.SearchParams(e,i,n,o).parseSearchRequest();if(!t)return[];d=e=>this.findMatchesLineByLine(e,t,s,r)}else d=t=>f.TextModelSearch.findMatches(this,new f.SearchParams(e,i,n,o),t,s,r);return l.map(d).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new f.SearchParams(e,i,n,o).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new c.Range(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),d=this.findMatchesLineByLine(l,t,s,1);return f.TextModelSearch.findNextMatch(this,new f.SearchParams(e,i,n,o),r,s),d.length>0?d[0]:(l=new c.Range(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),(d=this.findMatchesLineByLine(l,t,s,1)).length>0?d[0]:null)}return f.TextModelSearch.findNextMatch(this,new f.SearchParams(e,i,n,o),r,s)}findPreviousMatch(e,t,i,n,o,s){
this._assertNotDisposed();const r=this.validatePosition(t);return f.TextModelSearch.findPreviousMatch(this,new f.SearchParams(e,i,n,o),r,s)}pushStackElement(){this._commandManager.pushStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof h.ValidAnnotatedEditOperation?e:new h.ValidAnnotatedEditOperation(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(e.range),text:e.text})),n=!0;if(e)for(let t=0,o=e.length;to.endLineNumber,r=o.startLineNumber>t.endLineNumber;if(!n&&!r){s=!0;break}}if(!s){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;et.endLineNumber)&&!(n===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0)||n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1))){s=!1;break}}
if(s){const e=new c.Range(n,1,n,o);t.push(new h.ValidAnnotatedEditOperation(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){const o=e.map(e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new c.Range(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}});this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map(e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new c.Range(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}});this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)
}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),n=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),o=this._buffer.getLineCount(),s=n.changes;if(this._trimAutoWhitespaceLines=n.trimAutoWhitespaceLineNumbers,0!==s.length){let e=[],t=i;for(let i=0,n=s.length;i0?n.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(n.rangeOffset,n.rangeLength,n.text.length,n.forceMoveMarkers)
;const c=n.range.startLineNumber,d=n.range.endLineNumber,h=d-c,u=r,g=Math.min(h,u),p=u-h;for(let i=g;i>=0;i--){const n=c+i,s=o-t-p+n;e.push(new v.ModelRawLineChanged(n,this.getLineContent(s)))}if(gthis._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,H(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)},o=null;try{o=t(n)}catch(e){i.onUnexpectedError(e)}return n.addDecoration=M,n.changeDecoration=M,n.changeDecorationOptions=M,n.removeDecoration=M,n.deltaDecorations=M,o}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}
_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:K[i]}])[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),r=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),s,r,o),n.setOptions(K[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,i=t.length;ethis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){let o=this.getLineCount(),s=Math.min(o,Math.max(1,e)),r=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(r);return this._getDecorationsInRange(new c.Range(s,1,r,a),i,n)}getDecorationsInRange(e,t=0,i=!1){let n=this.validateRange(e);return this._getDecorationsInRange(n,t,i)}getOverviewRulerDecorations(e=0,t=!1){const i=this.getVersionId(),n=this._decorationsTree.search(e,t,!0,i);return this._ensureNodesHaveRanges(n)}getAllDecorations(e=0,t=!1){const i=this.getVersionId(),n=this._decorationsTree.search(e,t,!1,i);return this._ensureNodesHaveRanges(n)}_getDecorationsInRange(e,t,i){const n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),s=this.getVersionId(),r=this._decorationsTree.intervalSearch(n,o,t,i,s)
;return this._ensureNodesHaveRanges(r)}_ensureNodesHaveRanges(e){for(let t=0,i=e.length;tthis.getLineCount())throw new Error("Illegal value for lineNumber")
;this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t,!1)}setTokens(e){if(0===e.length)return;let t=[];for(let i=0,n=e.length;i0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}setSemanticTokens(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasSemanticTokens(){return this._tokens2.isComplete()}setPartialSemanticTokens(e,t){if(this.hasSemanticTokens())return;const i=this._tokens2.setPartial(e,t)
;this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}clearSemanticTokens(){this._tokens2.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||this._onDidChangeTokens.fire(e)}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}
tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),i=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,i)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(e){if(this._languageIdentifier.id===e.id)return;let t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const i=this.validatePosition(new l.Position(e,t)),n=this.getLineTokens(i.lineNumber);return n.getLanguageId(n.findTokenIndexAtOffset(i.column-1))}getWordAtPosition(e){this._assertNotDisposed()
;const t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[s,r]=P._findLanguageBoundaries(n,o),a=b.getWordAtText(t.column,_.LanguageConfigurationRegistry.getWordDefinition(n.getLanguageId(o)),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(o>0&&s===t.column-1){const[s,r]=P._findLanguageBoundaries(n,o-1),a=b.getWordAtText(t.column,_.LanguageConfigurationRegistry.getWordDefinition(n.getLanguageId(o-1)),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let o=e.getLineContent().length;for(let n=t,s=e.getCount();n=0;e--){const t=i.getEndOffset(e);if(t<=n)break;y.ignoreBracketsInToken(i.getStandardTokenType(e))&&(n=t)}const a=Math.min(o.length,e.column-1+r.maxBracketLength);let l=null;for(;;){
const i=w.BracketsUtils.findNextBracketInRange(r.forwardRegex,t,o,n,a);if(!i)break;if(i.startColumn<=e.column&&e.column<=i.endColumn){const e=o.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),t=this._matchFoundBracket(i,r.textIsBracket[e],r.textIsOpenBracket[e],null);if(t){if(t instanceof O)return null;l=t}}n=i.endColumn-1}if(l)return l}if(s>0&&i.getStartOffset(s)===e.column-1){const r=s-1,a=_.LanguageConfigurationRegistry.getBracketsSupport(i.getLanguageId(r));if(a&&!y.ignoreBracketsInToken(i.getStandardTokenType(r))){const s=Math.max(0,e.column-1-a.maxBracketLength);let l=Math.min(o.length,e.column-1+a.maxBracketLength);for(let e=r+1;e=l)break;y.ignoreBracketsInToken(i.getStandardTokenType(e))&&(l=t)}const c=w.BracketsUtils.findPrevBracketInRange(a.reversedRegex,t,o,s,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){
const e=o.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),t=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],null);if(t)return t instanceof O?null:t}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof O?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageIdentifier.id,o=e.reversedRegex;let s=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return O.INSTANCE;const c=w.BracketsUtils.findPrevBracketInRange(o,t,n,a,l);if(!c)break;const d=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?s++:e.isClose(d)&&s--,0===s)return c;l=c.startColumn-1}return null};for(let e=t.lineNumber;e>=1;e--){const i=this._getLineTokens(e),o=i.getCount(),s=this._buffer.getLineContent(e);let r=o-1,l=s.length,c=s.length;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1);let d=!0;for(;r>=0;r--){
const t=i.getLanguageId(r)===n&&!y.ignoreBracketsInToken(i.getStandardTokenType(r));if(t)d?l=i.getStartOffset(r):(l=i.getStartOffset(r),c=i.getEndOffset(r));else if(d&&l!==c){const t=a(e,s,l,c);if(t)return t}d=t}if(d&&l!==c){const t=a(e,s,l,c);if(t)return t}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageIdentifier.id,o=e.forwardRegex;let s=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return O.INSTANCE;const c=w.BracketsUtils.findNextBracketInRange(o,t,n,a,l);if(!c)break;const d=n.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?s++:e.isClose(d)&&s--,0===s)return c;a=c.endColumn-1}return null},l=this.getLineCount();for(let e=t.lineNumber;e<=l;e++){const i=this._getLineTokens(e),o=i.getCount(),s=this._buffer.getLineContent(e);let r=0,l=0,c=0;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1);let d=!0;for(;r=1;e--){const o=this._getLineTokens(e),s=o.getCount(),r=this._buffer.getLineContent(e);let a=s-1,l=r.length,c=r.length;if(e===t.lineNumber){a=o.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const e=o.getLanguageId(a);i!==e&&(i=e,n=_.LanguageConfigurationRegistry.getBracketsSupport(i))}let d=!0;for(;a>=0;a--){const t=o.getLanguageId(a);if(i!==t){if(n&&d&&l!==c){const t=w.BracketsUtils.findPrevBracketInRange(n.reversedRegex,e,r,l,c);if(t)return this._toFoundBracket(n,t);d=!1}i=t,n=_.LanguageConfigurationRegistry.getBracketsSupport(i)}const s=!!n&&!y.ignoreBracketsInToken(o.getStandardTokenType(a));if(s)d?l=o.getStartOffset(a):(l=o.getStartOffset(a),c=o.getEndOffset(a));else if(n&&d&&l!==c){
const t=w.BracketsUtils.findPrevBracketInRange(n.reversedRegex,e,r,l,c);if(t)return this._toFoundBracket(n,t)}d=s}if(n&&d&&l!==c){const t=w.BracketsUtils.findPrevBracketInRange(n.reversedRegex,e,r,l,c);if(t)return this._toFoundBracket(n,t)}}return null}findNextBracket(e){const t=this.validatePosition(e),i=this.getLineCount();let n=-1,o=null;for(let e=t.lineNumber;e<=i;e++){const i=this._getLineTokens(e),s=i.getCount(),r=this._buffer.getLineContent(e);let a=0,l=0,c=0;if(e===t.lineNumber){a=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const e=i.getLanguageId(a);n!==e&&(n=e,o=_.LanguageConfigurationRegistry.getBracketsSupport(n))}let d=!0;for(;aDate.now()-e<=t}const n=this.validatePosition(e),o=this.getLineCount(),s=new Map;let r=[];const a=(e,t)=>{if(!s.has(e)){let i=[];for(let e=0,n=t?t.brackets.length:0;e{for(;;){if(i&&++l%100==0&&!i())return O.INSTANCE;const a=w.BracketsUtils.findNextBracketInRange(e.forwardRegex,t,n,o,s);if(!a)break;const c=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),d=e.textIsBracket[c];if(d&&(d.isOpen(c)?r[d.index]++:d.isClose(c)&&r[d.index]--,-1===r[d.index]))return this._matchFoundBracket(a,d,!1,i);o=a.endColumn-1}return null};let d=-1,h=null;for(let e=n.lineNumber;e<=o;e++){
const t=this._getLineTokens(e),i=t.getCount(),o=this._buffer.getLineContent(e);let s=0,r=0,l=0;if(e===n.lineNumber){s=t.findTokenIndexAtOffset(n.column-1),r=n.column-1,l=n.column-1;const e=t.getLanguageId(s);d!==e&&a(d=e,h=_.LanguageConfigurationRegistry.getBracketsSupport(d))}let u=!0;for(;sn)throw new Error("Illegal value for lineNumber");const o=_.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),s=Boolean(o&&o.offSide);let r=-2,a=-1,l=-2,c=-1;const d=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t=0){l=t,c=e;break}}}};let h=-2,u=-1,g=-2,p=-1;const m=e=>{if(-2===h){h=-1,u=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){h=t,u=e;break}}}if(-1!==g&&(-2===g||g=0){g=t,p=e;break}}}};let v=0,f=!0,S=0,b=!0,C=0,y=0;for(let o=0;f||b;o++){const r=e-o,g=e+o;o>1&&(r<1||r1&&(g>n||g>i)&&(b=!1),o>5e4&&(f=!1,b=!1);let _=-1;if(f){const e=this._computeIndentLevel(r-1);e>=0?(l=r-1,c=e,_=Math.ceil(e/this._options.indentSize)):(d(r),_=this._getIndentLevelForWhitespaceLine(s,a,c))}let w=-1;if(b){const e=this._computeIndentLevel(g-1);e>=0?(h=g-1,u=e,w=Math.ceil(e/this._options.indentSize)):(m(g),w=this._getIndentLevelForWhitespaceLine(s,u,p))}if(0!==o){if(1===o){if(g<=n&&w>=0&&y+1===w){f=!1,v=g,S=g,C=w;continue}if(r>=1&&_>=0&&_-1===y){b=!1,v=r,S=r,C=_;continue}if(v=e,S=e,0===(C=y))return{startLineNumber:v,endLineNumber:S,indent:C}}f&&(_>=C?v=r:f=!1),b&&(w>=C?S=g:b=!1)}else y=_}return{startLineNumber:v,endLineNumber:S,indent:C}}getLinesIndentGuides(e,t){this._assertNotDisposed();const i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=_.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),o=Boolean(n&&n.offSide);let s=new Array(t-e+1),r=-2,a=-1,l=-2,c=-1
;for(let n=e;n<=t;n++){let t=n-e;const d=this._computeIndentLevel(n-1);if(d>=0)r=n-1,a=d,s[t]=Math.ceil(d/this._options.indentSize);else{if(-2===r){r=-1,a=-1;for(let e=n-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){r=e,a=t;break}}}if(-1!==l&&(-2===l||l=0){l=e,c=t;break}}}s[t]=this._getIndentLevelForWhitespaceLine(o,a,c)}}return s}_getIndentLevelForWhitespaceLine(e,t,i){return-1===t||-1===i?0:t0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}t.DidChangeContentEmitter=$})),define(e[139],t([0,1,21,24,47,18,60,75,134]),(function(e,t,i,n,o,s,r,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isQuote=t.CursorColumns=t.EditOperationResult=t.CursorState=t.PartialViewCursorState=t.PartialModelCursorState=t.CursorContext=t.SingleCursorState=t.CursorConfiguration=t.EditOperationType=t.RevealTarget=void 0,function(e){e[e.Primary=0]="Primary",e[e.TopMost=1]="TopMost",e[e.BottomMost=2]="BottomMost"}(t.RevealTarget||(t.RevealTarget={})),function(e){
e[e.Other=0]="Other",e[e.Typing=1]="Typing",e[e.DeletingLeft=2]="DeletingLeft",e[e.DeletingRight=3]="DeletingRight"}(t.EditOperationType||(t.EditOperationType={}));const c=()=>!0,d=()=>!1,h=e=>" "===e||"\t"===e;class u{constructor(e,t,i){this._languageIdentifier=e;const n=i.options,o=n.get(117);this.readOnly=n.get(72),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.lineHeight=n.get(51),this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=n.get(104),this.wordSeparators=n.get(105),this.emptySelectionClipboard=n.get(26),this.copyWithSyntaxHighlighting=n.get(16),this.multiCursorMergeOverlapping=n.get(60),this.multiCursorPaste=n.get(62),this.autoClosingBrackets=n.get(5),this.autoClosingQuotes=n.get(7),this.autoClosingOvertype=n.get(6),this.autoSurround=n.get(10),this.autoIndent=n.get(8),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:u._getShouldAutoClose(e,this.autoClosingQuotes),
bracket:u._getShouldAutoClose(e,this.autoClosingBrackets)};const s=l.LanguageConfigurationRegistry.getAutoClosingPairs(e.id);this.autoClosingPairsOpen2=s.autoClosingPairsOpen,this.autoClosingPairsClose2=s.autoClosingPairsClose;let r=u._getSurroundingPairs(e);if(r)for(const e of r)this.surroundingPairs[e.open]=e.close}static shouldRecreate(e){return e.hasChanged(117)||e.hasChanged(105)||e.hasChanged(26)||e.hasChanged(60)||e.hasChanged(62)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(104)||e.hasChanged(51)||e.hasChanged(72)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=u._getElectricCharacters(this._languageIdentifier);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return a.TextModel.normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return l.LanguageConfigurationRegistry.getElectricCharacters(e.id)}catch(e){return i.onUnexpectedError(e),null}}
static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return h;case"languageDefined":return u._getLanguageDefinedShouldAutoClose(e);case"always":return c;case"never":return d}}static _getLanguageDefinedShouldAutoClose(e){try{const t=l.LanguageConfigurationRegistry.getAutoCloseBeforeSet(e.id);return e=>-1!==t.indexOf(e)}catch(e){return i.onUnexpectedError(e),d}}static _getSurroundingPairs(e){try{return l.LanguageConfigurationRegistry.getSurroundingPairs(e.id)}catch(e){return i.onUnexpectedError(e),null}}}t.CursorConfiguration=u;class g{constructor(e,t,i,n){this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=i,this.leftoverVisibleColumns=n,this.selection=g._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){
return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,n){return e?new g(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o.Position(t,i),n):new g(new s.Range(t,i,t,i),n,new o.Position(t,i),n)}static _computeSelection(e,t){let i,n,o,s;return e.isEmpty()?(i=e.startLineNumber,n=e.startColumn,o=t.lineNumber,s=t.column):t.isBeforeOrEqual(e.getStartPosition())?(i=e.endLineNumber,n=e.endColumn,o=t.lineNumber,s=t.column):(i=e.startLineNumber,n=e.startColumn,o=t.lineNumber,s=t.column),new r.Selection(i,n,o,s)}}t.SingleCursorState=g;t.CursorContext=class{constructor(e,t,i){this.model=e,this.coordinatesConverter=t,this.cursorConfig=i}};class p{constructor(e){this.modelState=e,this.viewState=null}}t.PartialModelCursorState=p;class m{constructor(e){this.modelState=null,this.viewState=e}}t.PartialViewCursorState=m;class v{constructor(e,t){this.modelState=e,this.viewState=t}static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){
const t=e.selectionStartLineNumber,i=e.selectionStartColumn,n=e.positionLineNumber,r=e.positionColumn,a=new g(new s.Range(t,i,t,i),0,new o.Position(n,r),0);return v.fromModelState(a)}static fromModelSelections(e){let t=[];for(let i=0,n=e.length;i=65536?2:1,9===t)r=f.nextRenderTabStop(r,i);else{let i=n.getGraphemeBreakType(t);for(;a=65536?2:1,i=o}
n.isFullWidthCharacter(t)||n.isEmojiImprecise(t)?r+=2:r+=1}}return r}static toStatusbarColumn(e,t,i){const o=e.length,s=t-1=65536?2:1,9===t?r=f.nextRenderTabStop(r,i):r+=1}return r+1}static visibleColumnFromColumn2(e,t,i){return this.visibleColumnFromColumn(t.getLineContent(i.lineNumber),i.column,e.tabSize)}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const o=e.length;let s=0,r=1,a=0;for(;a