@rsdoctor/client 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/resource/js/monaco-1.cbaae4ad.js +5 -0
- package/dist/resource/js/{monaco-1.6a6d9fbd.js.LICENSE.txt → monaco-1.cbaae4ad.js.LICENSE.txt} +319 -340
- package/dist/resource/js/{monaco-13.dd2ff536.js → monaco-12.e2a3ecd4.js} +2 -2
- package/dist/resource/js/{monaco-14.2fef89fc.js → monaco-13.cc63a6b1.js} +2 -2
- package/dist/resource/js/{monaco-14.2fef89fc.js.LICENSE.txt → monaco-13.cc63a6b1.js.LICENSE.txt} +171 -163
- package/dist/resource/js/{monaco-12.6dc645fd.js → monaco-14.88babdfb.js} +3 -3
- package/dist/resource/js/{monaco-12.6dc645fd.js.LICENSE.txt → monaco-14.88babdfb.js.LICENSE.txt} +226 -214
- package/dist/resource/js/monaco-2.5e6b3e6c.js +25 -0
- package/dist/resource/js/{monaco-7.8e6e32f9.js.LICENSE.txt → monaco-2.5e6b3e6c.js.LICENSE.txt} +308 -332
- package/dist/resource/js/{monaco-2.89e3d3e1.js → monaco-3.993fc057.js} +2 -2
- package/dist/resource/js/{monaco-3.ae0e86c1.js → monaco-4.73c5efca.js} +2 -2
- package/dist/resource/js/{monaco-5.521603f3.js → monaco-5.91d0f99a.js} +4 -4
- package/dist/resource/js/{monaco-5.521603f3.js.LICENSE.txt → monaco-5.91d0f99a.js.LICENSE.txt} +174 -156
- package/dist/resource/js/monaco-7.e19e48d5.js +2 -0
- package/dist/resource/js/{monaco-4.afbf6d73.js.LICENSE.txt → monaco-7.e19e48d5.js.LICENSE.txt} +314 -321
- package/dist/resource/js/{monaco-8.e8d2f2de.js → monaco-8.48f5e877.js} +3 -3
- package/dist/resource/js/{monaco-8.e8d2f2de.js.LICENSE.txt → monaco-8.48f5e877.js.LICENSE.txt} +192 -204
- package/dist/resource/js/monaco-9.eb8aef3e.js +71 -0
- package/dist/resource/js/{monaco-9.d66d09e1.js.LICENSE.txt → monaco-9.eb8aef3e.js.LICENSE.txt} +364 -338
- package/package.json +3 -3
- package/dist/resource/js/monaco-1.6a6d9fbd.js +0 -5
- package/dist/resource/js/monaco-4.afbf6d73.js +0 -2
- package/dist/resource/js/monaco-7.8e6e32f9.js +0 -25
- package/dist/resource/js/monaco-9.d66d09e1.js +0 -71
- /package/dist/resource/css/{monaco-13.86c79c6e.css → monaco-12.86c79c6e.css} +0 -0
- /package/dist/resource/css/{monaco-14.f69f0e8c.css → monaco-13.f69f0e8c.css} +0 -0
- /package/dist/resource/css/{monaco-12.d38f1964.css → monaco-14.d38f1964.css} +0 -0
- /package/dist/resource/css/{monaco-7.681f0305.css → monaco-2.681f0305.css} +0 -0
- /package/dist/resource/css/{monaco-2.bc87f9b2.css → monaco-3.bc87f9b2.css} +0 -0
- /package/dist/resource/css/{monaco-3.37d5626c.css → monaco-4.37d5626c.css} +0 -0
- /package/dist/resource/css/{monaco-4.b782cd98.css → monaco-7.b782cd98.css} +0 -0
- /package/dist/resource/js/{monaco-13.dd2ff536.js.LICENSE.txt → monaco-12.e2a3ecd4.js.LICENSE.txt} +0 -0
- /package/dist/resource/js/{monaco-2.89e3d3e1.js.LICENSE.txt → monaco-3.993fc057.js.LICENSE.txt} +0 -0
- /package/dist/resource/js/{monaco-3.ae0e86c1.js.LICENSE.txt → monaco-4.73c5efca.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! For license information please see monaco-8.
|
|
1
|
+
/*! For license information please see monaco-8.48f5e877.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["790"],{972646:function(e,t,i){"use strict";i.r(t),i.d(t,{BrowserFeatures:function(){return s}});var o=i("259527"),n=i("207875");let s={clipboard:{writeText:n.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:n.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:n.isNative||o.isStandalone()?0:navigator.keyboard||o.isSafari?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},794861:function(e,t,i){"use strict";i.r(t),i.d(t,{HighlightedLabel:function(){return r}});var o=i("409737"),n=i("572740"),s=i("500777");class r{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=o.append(e,o.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",o){!e&&(e=""),o&&(e=r.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&s.equals(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){let e=[],t=0;for(let i of this.highlights){if(i.end===i.start)continue;if(t<i.start){let s=this.text.substring(t,i.start);e.push(o.$("span",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(s):[s])),t=i.end}let s=this.text.substring(i.start,i.end),r=o.$("span.highlight",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(s):[s]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){let i=this.text.substring(t);e.push(o.$("span",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(i):[i]))}o.reset(this.domNode,...e),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let i=0,o=0;return e.replace(/\r\n|\r|\n/g,(e,n)=>{for(let s of(o="\r\n"===e?-1:0,n+=i,t))!(s.end<=n)&&(s.start>=n&&(s.start+=o),s.end>=n&&(s.end+=o));return i+=o,"\u23CE"})}}},392924:function(e,t,i){"use strict";i.r(t),i.d(t,{Menu:function(){return k}});var o,n,s=i("259527"),r=i("266569"),a=i("409737"),l=i("85763"),c=i("919219"),u=i("362880"),d=i("268587"),h=i("297617"),m=i("98153"),g=i("842401"),p=i("431453"),f=i("467518"),b=i("871628"),_=i("947578"),y=i("919527"),C=i("207875"),v=i("266763");let S=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,w=/(&)?(&)([^\s&])/g;(o=n||(n={}))[o.Right=0]="Right",o[o.Left=1]="Left";class k extends u.ActionBar{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");let o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,n),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...C.isMacintosh||C.isLinux?[10]:[]],keyDown:!0}}),this.menuElement=o,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new y.DisposableStore),this.initializeOrUpdateStyleSheet(e,{}),this._register(r.Gesture.addTarget(o)),(0,a.addDisposableListener)(o,a.EventType.KEY_DOWN,e=>{new l.StandardKeyboardEvent(e).equals(2)&&e.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add((0,a.addDisposableListener)(o,a.EventType.KEY_DOWN,e=>{let t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){a.EventHelper.stop(e,!0);let i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof I&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){let e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}})),C.isLinux&&this._register((0,a.addDisposableListener)(o,a.EventType.KEY_DOWN,e=>{let t=new l.StandardKeyboardEvent(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),a.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),a.EventHelper.stop(e,!0))})),this._register((0,a.addDisposableListener)(this.domNode,a.EventType.MOUSE_OUT,e=>{let t=e.relatedTarget;!(0,a.isAncestor)(t,this.domNode)&&(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register((0,a.addDisposableListener)(this.actionsList,a.EventType.MOUSE_OVER,e=>{let t=e.target;if(t&&(0,a.isAncestor)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})),this._register(r.Gesture.addTarget(this.actionsList)),this._register((0,a.addDisposableListener)(this.actionsList,r.EventType.Tap,e=>{let t=e.initialTarget;if(t&&(0,a.isAncestor)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));let n={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new g.DomScrollableElement(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let s=this.scrollableElement.getDomNode();s.style.position="",this._register((0,a.addDisposableListener)(o,r.EventType.Change,e=>{a.EventHelper.stop(e,!0);let t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})})),this._register((0,a.addDisposableListener)(s,a.EventType.MOUSE_UP,e=>{e.preventDefault()})),o.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?!void 0:!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 L)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeOrUpdateStyleSheet(e,t){!this.styleSheet&&((0,a.isInShadowDOM)(e)?this.styleSheet=(0,a.createStyleSheet)(e):(!k.globalStyleSheet&&(k.globalStyleSheet=(0,a.createStyleSheet)()),this.styleSheet=k.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`
|
|
3
3
|
.monaco-menu {
|
|
4
4
|
font-size: 13px;
|
|
@@ -389,7 +389,7 @@ ${(0,h.formatRule)(b.Codicon.menuSubmenu)}
|
|
|
389
389
|
.monaco-scrollable-element > .scrollbar > .slider.active {
|
|
390
390
|
background: ${s};
|
|
391
391
|
}
|
|
392
|
-
`)})},60075:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRuler:function(){return r}});var o=i("670758"),n=i("780801"),s=i("448331");class r extends s.ViewEventHandler{constructor(e,t){super(),this._context=e;let i=this._context.configuration.options;this._domNode=(0,o.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new n.OverviewZoneManager(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),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;let e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,o,e),!0}_renderOneLane(e,t,i,o){let n=0,s=0,r=0;for(let a of t){let t=a.colorId,l=a.from,c=a.to;t!==n?(e.fillRect(0,s,o,r-s),n=t,e.fillStyle=i[n],s=l,r=c):r>=l?r=Math.max(r,c):(e.fillRect(0,s,o,r-s),s=l,r=c)}e.fillRect(0,s,o,r-s)}}},412880:function(e,t,i){"use strict";i.r(t),i.d(t,{SelectionsOverlay:function(){return u}}),i("915745");var o=i("707202"),n=i("897085"),s=i("439703");class r{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class a{constructor(e,t){this.lineNumber=e,this.ranges=t}}function l(e){return new r(e)}function c(e){return new a(e.lineNumber,e.ranges.map(l))}class u extends o.DynamicViewOverlay{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;let t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!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}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++)if(e[t].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){let o=this._typicalHalfwidthCharacterWidth/4,n=null,s=null;if(i&&i.length>0&&t.length>0){let o=t[0].lineNumber;if(o===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===o&&(n=i[e].ranges[0]);let r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!s&&e>=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);n&&!n.startStyle&&(n=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e<i;e++){let r=t[e].ranges[0],a=r.left,l=r.left+r.width,c={top:0,bottom:0},u={top:0,bottom:0};if(e>0){let i=t[e-1].ranges[0].left,n=t[e-1].ranges[0].left+t[e-1].ranges[0].width;d(a-i)<o?c.top=2:a>i&&(c.top=1),d(l-n)<o?u.top=2:i<l&&l<n&&(u.top=1)}else n&&(c.top=n.startStyle.top,u.top=n.endStyle.top);if(e+1<i){let i=t[e+1].ranges[0].left,n=t[e+1].ranges[0].left+t[e+1].ranges[0].width;d(a-i)<o?c.bottom=2:i<a&&a<n&&(c.bottom=1),d(l-n)<o?u.bottom=2:l<n&&(u.bottom=1)}else s&&(c.bottom=s.startStyle.bottom,u.bottom=s.endStyle.bottom);r.startStyle=c,r.endStyle=u}}_getVisibleRangesWithStyle(e,t,i){let o=(t.linesVisibleRangesForRange(e,!0)||[]).map(c);return!this._visibleRangesHaveGaps(o)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,o,i),o}_createSelectionPiece(e,t,i,o,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;left:"+o.toString()+"px;width:"+n.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,i,o){if(0===o.length)return;let n=!!o[0].ranges[0].startStyle,s=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=o[0].lineNumber,l=o[o.length-1].lineNumber;for(let c=0,d=o.length;c<d;c++){let d=o[c],h=d.lineNumber,m=h-t,g=i&&(h===l||h===a)?r:s,p=i&&h===a?1:0,f="",b="";for(let e=0,t=d.ranges.length;e<t;e++){let t=d.ranges[e];if(n){let e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){f+=this._createSelectionPiece(p,g,u.SELECTION_CLASS_NAME,t.left-u.ROUNDED_PIECE_WIDTH,u.ROUNDED_PIECE_WIDTH);let i=u.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+u.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+u.SELECTION_BOTTOM_RIGHT),f+=this._createSelectionPiece(p,g,i,t.left-u.ROUNDED_PIECE_WIDTH,u.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){f+=this._createSelectionPiece(p,g,u.SELECTION_CLASS_NAME,t.left+t.width,u.ROUNDED_PIECE_WIDTH);let e=u.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+u.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+u.SELECTION_BOTTOM_LEFT),f+=this._createSelectionPiece(p,g,e,t.left+t.width,u.ROUNDED_PIECE_WIDTH)}}let i=u.SELECTION_CLASS_NAME;if(n){let e=t.startStyle,o=t.endStyle;0===e.top&&(i+=" "+u.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+u.SELECTION_BOTTOM_LEFT),0===o.top&&(i+=" "+u.SELECTION_TOP_RIGHT),0===o.bottom&&(i+=" "+u.SELECTION_BOTTOM_RIGHT)}b+=this._createSelectionPiece(p,g,i,t.left,t.width)}e[m][0]+=f,e[m][1]+=b}}prepareRender(e){let t=[],i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let e=i;e<=o;e++)t[e-i]=["",""];let n=[];for(let o=0,s=this._selections.length;o<s;o++){let s=this._selections[o];if(s.isEmpty()){n[o]=null;continue}let r=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[o]);n[o]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function d(e){return e<0?-e:e}u.SELECTION_CLASS_NAME="selected-text",u.SELECTION_TOP_LEFT="top-left-radius",u.SELECTION_BOTTOM_LEFT="bottom-left-radius",u.SELECTION_TOP_RIGHT="top-right-radius",u.SELECTION_BOTTOM_RIGHT="bottom-right-radius",u.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",u.ROUNDED_PIECE_WIDTH=10,(0,s.registerThemingParticipant)((e,t)=>{let i=e.getColor(n.editorSelectionBackground);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);let o=e.getColor(n.editorInactiveSelection);o&&t.addRule(`.monaco-editor .selected-text { background-color: ${o}; }`);let s=e.getColor(n.editorSelectionForeground);s&&!s.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${s}; }`)})},694614:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewCursors:function(){return d}}),i("432036");var o=i("670758"),n=i("467518"),s=i("71956"),r=i("20801"),a=i("416637"),l=i("126939"),c=i("439703"),u=i("774697");class d extends s.ViewPart{constructor(e){super(e);let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new r.ViewCursor(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,o.createFastDomNode)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new n.TimeoutTimer,this._cursorFlatBlinkInterval=new n.IntervalTimer,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){let e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){let e=new r.ViewCursor(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){let e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let e=0;e<t.length;e++)this._secondaryCursors[e].onCursorPositionChanged(t[e])}onCursorStateChanged(e){let t=[];for(let i=0,o=e.selections.length;i<o;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));let i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){let t=t=>{for(let i=0,o=e.ranges.length;i<o;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(let e of this._secondaryCursors)if(t(e.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let e=this._getCursorBlinking(),t=0===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!t&&5!==e&&(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},d.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},d.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(!this._selectionIsEmpty&&(e+=" has-selection"),this._cursorStyle){case a.TextEditorCursorStyle.Line:e+=" cursor-line-style";break;case a.TextEditorCursorStyle.Block:e+=" cursor-block-style";break;case a.TextEditorCursorStyle.Underline:e+=" cursor-underline-style";break;case a.TextEditorCursorStyle.LineThin:e+=" cursor-line-thin-style";break;case a.TextEditorCursorStyle.BlockOutline:e+=" cursor-block-outline-style";break;case a.TextEditorCursorStyle.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],i=0,o=this._primaryCursor.render(e);o&&(t[i++]=o);for(let o=0,n=this._secondaryCursors.length;o<n;o++){let n=this._secondaryCursors[o].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}d.BLINK_INTERVAL=500,(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorCursorForeground);if(i){let o=e.getColor(l.editorCursorBackground);!o&&(o=i.opposite()),t.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${i}; }`),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${o}; }`),(0,u.isHighContrast)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}})},175323:function(e,t,i){"use strict";i.r(t),i.d(t,{BareFontInfo:function(){return a},FontInfo:function(){return l}});var o=i("207875"),n=i("416637"),s=i("183140");let r=o.isMacintosh?1.5:1.35;class a{constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,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){let o=e.get(45),n=e.get(49),s=e.get(48),r=e.get(47),l=e.get(61),c=e.get(58);return a._create(o,n,s,r,l,c,t,i)}static _create(e,t,i,o,n,l,c,u){0===n?n=r*i:n<8&&(n*=i),(n=Math.round(n))<8&&(n=8);let d=1+(u?0:.1*s.EditorZoom.getZoomLevel());return i*=d,n*=d,new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:o,lineHeight:n,letterSpacing:l})}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){let e=n.EDITOR_FONT_DEFAULTS.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},457938:function(e,t,i){"use strict";i.r(t),i.d(t,{Position:function(){return o}});class o{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new o(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return o.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return o.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return o.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let i=0|e.lineNumber,o=0|t.lineNumber;if(i===o){let i=0|e.column;return i-(0|t.column)}return i-o}clone(){return new o(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new o(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},861065:function(e,t,i){"use strict";i.r(t),i.d(t,{Selection:function(){return s}});var o=i("457938"),n=i("761045");class s extends n.Range{constructor(e,t,i,o){super(e,t,i,o),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=o}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new o.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new o.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,o=e.length;i<o;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,o,n){return 0===n?new s(e,t,i,o):new s(i,o,e,t)}}},812315:function(e,t,i){"use strict";i.r(t),i.d(t,{WordOperations:function(){return c},WordPartOperations:function(){return u}});var o=i("266763"),n=i("607910"),s=i("452862"),r=i("840890"),a=i("457938"),l=i("761045");class c{static _createWord(e,t,i,o,n){return{start:o,end:n,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(o,e,i)}static _doFindPreviousWordOnLine(e,t,i){let o=0;for(let n=i.column-2;n>=0;n--){let i=e.charCodeAt(n),s=t.get(i);if(0===s){if(2===o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1));o=1}else if(2===s){if(1===o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1));o=2}else if(1===s&&0!==o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1))}return 0!==o?this._createWord(e,o,1,0,this._findEndOfWord(e,t,o,0)):null}static _findEndOfWord(e,t,i,o){let n=e.length;for(let s=o;s<n;s++){let o=e.charCodeAt(s),n=t.get(o);if(1===n||1===i&&2===n||2===i&&0===n)return s}return n}static _findNextWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(o,e,i)}static _doFindNextWordOnLine(e,t,i){let o=0,n=e.length;for(let s=i.column-1;s<n;s++){let i=e.charCodeAt(s),n=t.get(i);if(0===n){if(2===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s);o=1}else if(2===n){if(1===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s);o=2}else if(1===n&&0!==o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s)}return 0!==o?this._createWord(e,o,1,this._findStartOfWord(e,t,o,n-1),n):null}static _findStartOfWord(e,t,i,o){for(let n=o;n>=0;n--){let o=e.charCodeAt(n),s=t.get(o);if(1===s||1===i&&2===s||2===i&&0===s)return n+1}return 0}static moveWordLeft(e,t,i,o){let n=i.lineNumber,s=i.column;1===s&&n>1&&(n-=1,s=t.getLineMaxColumn(n));let r=c._findPreviousWordOnLine(e,t,new a.Position(n,s));if(0===o)return new a.Position(n,r?r.start+1:1);if(1===o)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1))),new a.Position(n,r?r.start+1:1);if(3===o){for(;r&&2===r.wordType;)r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1));return new a.Position(n,r?r.start+1:1)}return r&&s<=r.end+1&&(r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1))),new a.Position(n,r?r.end+1:1)}static _moveWordPartLeft(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.Position(i-1,e.getLineMaxColumn(i-1)):t;let s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){let t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(r))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(r)&&e+1<n){let t=s.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,1)}static moveWordRight(e,t,i,o){let n=i.lineNumber,s=i.column,r=!1;s===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(r=!0,n+=1,s=1);let l=c._findNextWordOnLine(e,t,new a.Position(n,s));if(2===o)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),s=l?l.end+1:t.getLineMaxColumn(n);else if(3===o){for(r&&(s=0);l&&(2===l.wordType||l.start+1<=s);)l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1));s=l?l.start+1:t.getLineMaxColumn(n)}else l&&!r&&s>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(n);return new a.Position(n,s)}static _moveWordPartRight(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.Position(i+1,1):t;let s=e.getLineContent(i);for(let e=t.column+1;e<n;e++){let t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95!==t&&95===r||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(r))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(r)&&e+1<n){let t=s.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,n)}static _deleteWordLeftWhitespace(e,t){let i=e.getLineContent(t.lineNumber),n=t.column-2,s=o.lastNonWhitespaceIndex(i,n);return s+1<n?new l.Range(t.lineNumber,s+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(s.DeleteOperations.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){let t=e.selection.getPosition();return new l.Range(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}let u=new a.Position(n.positionLineNumber,n.positionColumn),d=u.lineNumber,h=u.column;if(1===d&&1===h)return null;if(r){let e=this._deleteWordLeftWhitespace(o,u);if(e)return e}let m=c._findPreviousWordOnLine(i,o,u);return 0===t?m?h=m.start+1:h>1?h=1:(d--,h=o.getLineMaxColumn(d)):(m&&h<=m.end+1&&(m=c._findPreviousWordOnLine(i,o,new a.Position(d,m.start+1))),m?h=m.end+1:h>1?h=1:(d--,h=o.getLineMaxColumn(d))),new l.Range(d,h,u.lineNumber,u.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;let o=new a.Position(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,o);return n?n:this._deleteInsideWordDetermineDeleteRange(e,t,o)}static _charAtIsWhitespace(e,t){let i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=i.length;if(0===o)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let s=Math.min(t.column-1,o-1);if(!this._charAtIsWhitespace(i,s))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;s+1<o&&this._charAtIsWhitespace(i,s+1);)s++;return new l.Range(t.lineNumber,n+1,t.lineNumber,s+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){let o,n,s=t.getLineContent(i.lineNumber),r=s.length;if(0===r)return i.lineNumber>1?new l.Range(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Range(i.lineNumber,1,i.lineNumber+1,1):new l.Range(i.lineNumber,1,i.lineNumber,1);let a=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Range(i.lineNumber,e,i.lineNumber,t)),u=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<r&&this._charAtIsWhitespace(s,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return a(t,i)},d=c._findPreviousWordOnLine(e,t,i);if(d&&(o=d).start+1<=i.column&&i.column<=o.end+1)return u(d);let h=c._findNextWordOnLine(e,t,i);return h&&(n=h).start+1<=i.column&&i.column<=n.end+1?u(h):d&&h?a(d.end+1,h.start+1):d?a(d.start+1,d.end+1):h?a(h.start+1,h.end+1):a(1,r+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartLeft(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let o=t;o<i;o++){let t=e.charAt(o);if(" "!==t&&" "!==t)return o}return i}static _deleteWordRightWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=t.column-1,n=this._findFirstNonWhitespaceChar(i,o);return o+1<n?new l.Range(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,s=e.whitespaceHeuristics;if(!n.isEmpty())return n;let r=new a.Position(n.positionLineNumber,n.positionColumn),u=r.lineNumber,d=r.column,h=o.getLineCount(),m=o.getLineMaxColumn(u);if(u===h&&d===m)return null;if(s){let e=this._deleteWordRightWhitespace(o,r);if(e)return e}let g=c._findNextWordOnLine(i,o,r);return 2===t?g?d=g.end+1:d<m||u===h?d=m:(u++,d=(g=c._findNextWordOnLine(i,o,new a.Position(u,1)))?g.start+1:o.getLineMaxColumn(u)):(g&&d>=g.start+1&&(g=c._findNextWordOnLine(i,o,new a.Position(u,g.end+1))),g?d=g.start+1:d<m||u===h?d=m:(u++,d=(g=c._findNextWordOnLine(i,o,new a.Position(u,1)))?g.start+1:o.getLineMaxColumn(u))),new l.Range(u,d,r.lineNumber,r.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartRight(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _createWordAtPosition(e,t,i){let o=new l.Range(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(o),startColumn:o.startColumn,endColumn:o.endColumn}}static getWordAtPosition(e,t,i){let o=(0,r.getMapForWordSeparators)(t),n=c._findPreviousWordOnLine(o,e,i);if(n&&1===n.wordType&&n.start<=i.column-1&&i.column-1<=n.end)return c._createWordAtPosition(e,i.lineNumber,n);let s=c._findNextWordOnLine(o,e,i);return s&&1===s.wordType&&s.start<=i.column-1&&i.column-1<=s.end?c._createWordAtPosition(e,i.lineNumber,s):null}static word(e,t,i,o,s){let u,d,h;let m=(0,r.getMapForWordSeparators)(e.wordSeparators),g=c._findPreviousWordOnLine(m,t,s),p=c._findNextWordOnLine(m,t,s);if(!o){let e,i;return g&&1===g.wordType&&g.start<=s.column-1&&s.column-1<=g.end?(e=g.start+1,i=g.end+1):p&&1===p.wordType&&p.start<=s.column-1&&s.column-1<=p.end?(e=p.start+1,i=p.end+1):(e=g?g.end+1:1,i=p?p.start+1:t.getLineMaxColumn(s.lineNumber)),new n.SingleCursorState(new l.Range(s.lineNumber,e,s.lineNumber,i),0,new a.Position(s.lineNumber,i),0)}g&&1===g.wordType&&g.start<s.column-1&&s.column-1<g.end?(u=g.start+1,d=g.end+1):p&&1===p.wordType&&p.start<s.column-1&&s.column-1<p.end?(u=p.start+1,d=p.end+1):(u=s.column,d=s.column);let f=s.lineNumber;if(i.selectionStart.containsPosition(s))h=i.selectionStart.endColumn;else if(s.isBeforeOrEqual(i.selectionStart.getStartPosition())){h=u;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.endColumn)}else{h=d;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.startColumn)}return i.move(!0,f,h,0)}}class u extends c{static deleteWordPartLeft(e){let t=d([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){let t=d([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){let o=d([c.moveWordLeft(e,t,i,0),c.moveWordLeft(e,t,i,2),c._moveWordPartLeft(t,i)]);return o.sort(a.Position.compare),o[2]}static moveWordPartRight(e,t,i){let o=d([c.moveWordRight(e,t,i,0),c.moveWordRight(e,t,i,2),c._moveWordPartRight(t,i)]);return o.sort(a.Position.compare),o[0]}}function d(e){return e.filter(e=>!!e)}},343349:function(e,t,i){"use strict";i.r(t),i.d(t,{DiffComputer:function(){return u}});var o=i("160012"),n=i("266763");function s(e,t,i,n){return new o.LcsDiff(e,t,i).ComputeDiff(n)}class r{constructor(e){let t=[],i=[];for(let o=0,n=e.length;o<n;o++)t[o]=d(e[o],1),i[o]=h(e[o],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){let e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){let o=[],n=[],s=[],r=0;for(let a=t;a<=i;a++){let t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)o[r]=t.charCodeAt(e-1),n[r]=a+1,s[r]=e,r++;!e&&a<i&&(o[r]=10,n[r]=a+1,s[r]=t.length+1,r++)}return new a(o,n,s)}}class a{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class l{constructor(e,t,i,o,n,s,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=o,this.modifiedStartLineNumber=n,this.modifiedStartColumn=s,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let o=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),u=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1);return new l(o,n,s,r,a,c,u,i.getEndColumn(e.modifiedStart+e.modifiedLength-1))}}class c{constructor(e,t,i,o,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=o,this.charChanges=n}static createFromDiffResult(e,t,i,o,n,r,a){let u,d,h,m,g;if(0===t.originalLength?(u=i.getStartLineNumber(t.originalStart)-1,d=0):(u=i.getStartLineNumber(t.originalStart),d=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=o.getStartLineNumber(t.modifiedStart)-1,m=0):(h=o.getStartLineNumber(t.modifiedStart),m=o.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){let r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),c=o.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&c.getElements().length>0){let e=s(r,c,n,!0).changes;a&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let o=1,n=e.length;o<n;o++){let n=e[o],s=n.originalStart-(i.originalStart+i.originalLength);3>Math.min(s,n.modifiedStart-(i.modifiedStart+i.modifiedLength))?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),g=[];for(let t=0,i=e.length;t<i;t++)g.push(l.createFromDiffChange(e[t],r,c))}}return new c(u,d,h,m,g)}}class u{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new r(e),this.modified=new r(t),this.continueLineDiff=m(i.maxComputationTime),this.continueCharDiff=m(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let e=s(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let i=0,o=t.length;i<o;i++)e.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}let o=[],n=0,r=0;for(let e=-1,i=t.length;e<i;e++){let s=e+1<i?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,l=s?s.modifiedStart:this.modifiedLines.length;for(;n<a&&r<l;){let e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=d(e,1),s=d(t,1);for(;i>1&&s>1;){let o=e.charCodeAt(i-2);if(o!==t.charCodeAt(s-2))break;i--,s--}(i>1||s>1)&&this._pushTrimWhitespaceCharChange(o,n+1,1,i,r+1,1,s)}{let i=h(e,1),s=h(t,1),a=e.length+1,l=t.length+1;for(;i<a&&s<l;){let t=e.charCodeAt(i-1);if(t!==e.charCodeAt(s-1))break;i++,s++}(i<a||s<l)&&this._pushTrimWhitespaceCharChange(o,n+1,i,a,r+1,s,l)}}n++,r++}s&&(o.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=s.originalLength,r+=s.modifiedLength)}return{quitEarly:i,changes:o}}_pushTrimWhitespaceCharChange(e,t,i,o,n,s,r){let a;if(!this._mergeTrimWhitespaceCharChange(e,t,i,o,n,s,r))this.shouldComputeCharChanges&&(a=[new l(t,i,t,o,n,s,n,r)]),e.push(new c(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,o,n,s,r){let a=e.length;if(0===a)return!1;let c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new l(t,i,t,o,n,s,n,r)),!0)}}function d(e,t){let i=n.firstNonWhitespaceIndex(e);return -1===i?t:i+1}function h(e,t){let i=n.lastNonWhitespaceIndex(e);return -1===i?t:i+2}function m(e){if(0===e)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}},310067:function(e,t,i){"use strict";i.r(t),i.d(t,{score:function(){return function e(t,i,s,r,a,l){if(Array.isArray(t)){let o=0;for(let n of t){let t=e(n,i,s,r,a,l);if(10===t)return t;t>o&&(o=t)}return o}if("string"==typeof t)return r?"*"===t?5:t===s?10:0:0;if(!t)return 0;else{let{language:e,pattern:c,scheme:u,hasAccessToAllModels:d,notebookType:h}=t;if(!r&&!d)return 0;h&&a&&(i=a);let m=0;if(u){if(u===i.scheme)m=10;else{if("*"!==u)return 0;m=5}}if(e){if(e===s)m=10;else{if("*"!==e)return 0;m=Math.max(m,5)}}if(h){if(h===l)m=10;else{if("*"!==h||void 0===l)return 0;m=Math.max(m,5)}}if(c){let e;if(!((e="string"==typeof c?c:Object.assign(Object.assign({},c),{base:(0,n.normalize)(c.base)}))===i.fsPath||(0,o.match)(e,i.fsPath)))return 0;m=10}return m}}}});var o=i("379462"),n=i("555410")},464587:function(e,t,i){"use strict";i.r(t),i.d(t,{concat23Trees:function(){return n},concat23TreesOfSameHeight:function(){return s}});var o=i("992296");function n(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,o=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===o;)t++;return t-i>=2?s(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let o=i(),n=i();if(!n)return o;for(let e=i();e;e=i())r(o,n)<=r(n,e)?(o=a(o,n),n=e):n=a(n,e);return a(o,n)}function s(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let n=i>>1;for(let s=0;s<n;s++){let n=s<<1;e[s]=o.ListAstNode.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return o.ListAstNode.create23(e[0],e[1],i>=3?e[2]:null,t)}function r(e,t){return Math.abs(e.listHeight-t.listHeight)}function a(e,t){return e.listHeight===t.listHeight?o.ListAstNode.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let n=e=e.toMutable(),s=[];for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw Error("unexpected");s.push(n),n=n.makeLastElementMutable()}for(let e=s.length-1;e>=0;e--){let t=s[e];i?t.childrenLength>=3?i=o.ListAstNode.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?o.ListAstNode.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let s=t;for(let e=n.length-1;e>=0;e--){let t=n[e];s?t.childrenLength>=3?s=o.ListAstNode.create23(s,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?o.ListAstNode.create23(s,e,null,!1):e}(t,e)}},276345:function(e,t,i){"use strict";i.r(t),i.d(t,{ColorizedBracketPairsDecorationProvider:function(){return l}});var o=i("916904"),n=i("919527"),s=i("761045"),r=i("126939"),a=i("439703");class l extends n.Disposable{constructor(e){super(),this.textModel=e,this.colorProvider=new c,this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(e=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(void 0===t||!this.colorizationOptions.enabled)return[];let o=[];for(let t of this.textModel.bracketPairs.getBracketsInRange(e))o.push({id:`bracket${t.range.toString()}-${t.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(t,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:t.range});return o}getAllDecorations(e,t){return void 0!==e&&this.colorizationOptions.enabled?this.getDecorationsInRange(new s.Range(1,1,this.textModel.getLineCount(),1),e,t):[]}}class c{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}(0,a.registerThemingParticipant)((e,t)=>{let i=[r.editorBracketHighlightingForeground1,r.editorBracketHighlightingForeground2,r.editorBracketHighlightingForeground3,r.editorBracketHighlightingForeground4,r.editorBracketHighlightingForeground5,r.editorBracketHighlightingForeground6],o=new c;t.addRule(`.monaco-editor .${o.unexpectedClosingBracketClassName} { color: ${e.getColor(r.editorBracketHighlightingUnexpectedBracketForeground)}; }`);let n=i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent());for(let e=0;e<30;e++){let i=n[e%n.length];t.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}})},780801:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRulerZone:function(){return n},OverviewZoneManager:function(){return s}});class o{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){if(e.colorId===t.colorId)return e.from===t.from?e.to-t.to:e.from-t.from;return e.colorId-t.colorId}}class n{constructor(e,t,i,o){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=o,this._colorZone=null}static compare(e,t){if(e.color===t.color){if(e.startLineNumber===t.startLineNumber)return e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines;return e.startLineNumber-t.startLineNumber}return e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class s{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){let e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),s=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){let l=this._zones[a];if(!e){let e=l.getColorZones();if(e){r.push(e);continue}}let c=this._getVerticalOffsetForLine(l.startLineNumber),u=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:c+l.heightInLines*t,d=Math.floor(n*c),h=Math.floor(n*u),m=Math.floor((d+h)/2),g=h-m;g<s&&(g=s),m-g<0&&(m=g),m+g>i&&(m=i-g);let p=l.color,f=this._color2Id[p];!f&&(f=++this._lastAssignedId,this._color2Id[p]=f,this._id2Color[f]=p);let b=new o(m-g,m+g,f);l.setColorZone(b),r.push(b)}return this._colorZonesInvalid=!1,r.sort(o.compare),r}}},243017:function(e,t,i){"use strict";i.r(t),i.d(t,{FindOptionsWidget:function(){return u}});var o=i("409737"),n=i("25806"),s=i("795832"),r=i("467518"),a=i("399742"),l=i("897085"),c=i("439703");class u extends s.Widget{constructor(e,t,i,s){super(),this._hideSoon=this._register(new r.RunOnceScheduler(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let c=s.getColorTheme().getColor(l.inputActiveOptionBorder),u=s.getColorTheme().getColor(l.inputActiveOptionForeground),d=s.getColorTheme().getColor(l.inputActiveOptionBackground);this.caseSensitive=this._register(new n.CaseSensitiveToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new n.WholeWordsToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new n.RegexToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(o.addDisposableListener(this._domNode,o.EventType.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register(o.addDisposableListener(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(s.getColorTheme()),this._register(s.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return u.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){!this._isVisible&&(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(l.inputActiveOptionBorder),inputActiveOptionForeground:e.getColor(l.inputActiveOptionForeground),inputActiveOptionBackground:e.getColor(l.inputActiveOptionBackground)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}u.ID="editor.contrib.findOptionsWidget",(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorWidgetBackground);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);let o=e.getColor(l.editorWidgetForeground);o&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${o}; }`);let n=e.getColor(l.widgetShadow);n&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);let s=e.getColor(l.contrastBorder);s&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)})},457553:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("183140"),s=i("708339");class r extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:s.localize("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(n.EditorZoom.getZoomLevel()+1)}}class a extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:s.localize("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(n.EditorZoom.getZoomLevel()-1)}}class l extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:s.localize("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(0)}}(0,o.registerEditorAction)(r),(0,o.registerEditorAction)(a),(0,o.registerEditorAction)(l)},445281:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("88936"),s=i("668383"),r=i("40172");(0,o.registerEditorContribution)(s.InlayHintsController.ID,s.InlayHintsController),n.HoverParticipantRegistry.register(r.InlayHintsHover)},49429:function(e,t,i){"use strict";i.r(t),i.d(t,{GhostTextController:function(){return b},ShowNextInlineSuggestionAction:function(){return C},ShowPreviousInlineSuggestionAction:function(){return v},TriggerInlineSuggestionAction:function(){return S}});var o=i("916904"),n=i("919527"),s=i("266763"),r=i("159923"),a=i("394798"),l=i("976617"),c=i("953938"),u=i("981849"),d=i("708339"),h=i("549436"),m=i("706301"),g=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,o){t(i,o,e)}},f=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let b=class e extends n.Disposable{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new n.MutableDisposable),this.activeModelDidChangeEmitter=this._register(new o.Emitter),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(108)&&this.updateModelController(),e.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){let e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(y,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return(null===(i=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===i?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,!this.activeController.value&&this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return f(this,void 0,void 0,function*(){let t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t})}};b.inlineSuggestionVisible=new h.RawContextKey("inlineSuggestionVisible",!1,d.localize("inlineSuggestionVisible","Whether an inline suggestion is visible")),b.inlineSuggestionHasIndentation=new h.RawContextKey("inlineSuggestionHasIndentation",!1,d.localize("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),b.inlineSuggestionHasIndentationLessThanTabSize=new h.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,d.localize("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),b.ID="editor.contrib.ghostTextController",b=g([p(1,m.IInstantiationService)],b);class _{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=b.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=b.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=b.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let y=class extends n.Disposable{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new _(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(c.GhostTextModel,this.editor)),this.widget=this._register(this.instantiationService.createInstance(u.GhostTextWidget,this.editor,this.model)),this._register((0,n.toDisposable)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set((null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText)!==void 0);let t=!1,i=!0,o=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&o&&o.parts.length>0){let{column:e,lines:n}=o.parts[0],r=n[0],l=this.editor.getModel().getLineIndentColumn(o.lineNumber);if(e<=l){let e=(0,s.firstNonWhitespaceIndex)(r);-1===e&&(e=r.length-1),t=e>0;let o=this.editor.getModel().getOptions().tabSize;i=a.CursorColumns.visibleColumnFromColumn(r,e+1,o)<o}}this.contextKeys.inlineCompletionSuggestsIndentation.set(t),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(i)}};y=g([p(1,m.IInstantiationService),p(2,h.IContextKeyService)],y);class C extends r.EditorAction{constructor(){super({id:C.ID,label:d.localize("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showNextInlineCompletion(),t.focus())})}}C.ID="editor.action.inlineSuggest.showNext";class v extends r.EditorAction{constructor(){super({id:v.ID,label:d.localize("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())})}}v.ID="editor.action.inlineSuggest.showPrevious";class S extends r.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:d.localize("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:l.EditorContextKeys.writable})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&e.trigger()})}}},265628:function(e,t,i){"use strict";i.r(t),i.d(t,{SuggestWidgetInlineCompletionProvider:function(){return m}});var o=i("603868"),n=i("467518"),s=i("916904"),r=i("919527"),a=i("457938"),l=i("761045"),c=i("259842"),u=i("718628"),d=i("258156"),h=i("211962");class m extends r.Disposable{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new s.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new n.RunOnceScheduler(()=>{!this.isSuggestWidgetVisible&&this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let i=d.SuggestController.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(e,t,n)=>{let s=this.editor.getModel(),r=(0,h.minimizeInlineCompletion)(s,this.suggestControllerPreselector());if(!r)return -1;let l=a.Position.lift(t),c=n.map((e,t)=>{let o=g(i,l,e,this.isShiftKeyPressed),n=(0,h.minimizeInlineCompletion)(s,null==o?void 0:o.normalizedInlineCompletion);if(!!n)return{index:t,valid:function(e,t){return t.startLineNumber===e.startLineNumber&&t.startColumn===e.startColumn&&(t.endLineNumber<e.endLineNumber||t.endLineNumber===e.endLineNumber&&t.endColumn<=e.endColumn)}(r.range,n.range)&&r.insertText.startsWith(n.insertText),prefixLength:n.insertText.length,suggestItem:e}}).filter(e=>e&&e.valid),u=(0,o.findMaxBy)(c,(0,o.compareBy)(e=>e.prefixLength,o.numberComparator));return u?u.index:-1}}));let e=!1,t=()=>{!e&&(e=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(s.Event.once(i.model.onDidTrigger)(e=>{t()}))}this.update(this._isActive)}get state(){if(this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){let t=this.getSuggestItemInfo(),i=!1;!function(e,t){return e===t||!!e&&!!t&&e.completionItemKind===t.completionItemKind&&e.isSnippetText===t.isSnippetText&&(0,h.normalizedInlineCompletionsEquals)(e.normalizedInlineCompletion,t.normalizedInlineCompletion)}(this._currentSuggestItemInfo,t)&&(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){let e=d.SuggestController.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem();if(t)return g(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=d.SuggestController.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){let e=d.SuggestController.get(this.editor);e&&e.forceRenderingAbove()}}function g(e,t,i,o){if(Array.isArray(i.completion.additionalTextEdits)&&i.completion.additionalTextEdits.length>0)return{completionItemKind:i.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:l.Range.fromPositions(t,t),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=i.completion,s=!1;if(4&i.completion.insertTextRules){let i=new c.SnippetParser().parse(n),o=e.editor.getModel();if(i.children.length>100)return;u.SnippetSession.adjustWhitespace(o,t,i,!0,!0),n=i.toString(),s=!0}let r=e.getOverwriteInfo(i,o);return{isSnippetText:s,completionItemKind:i.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:l.Range.fromPositions(t.delta(0,-r.overwriteBefore),t.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}},209882:function(e,t,i){"use strict";i.r(t),i.d(t,{getLinks:function(){return f}});var o=i("603868"),n=i("500862"),s=i("161111"),r=i("919527"),a=i("744138"),l=i("938505"),c=i("761045"),u=i("357233"),d=i("326896"),h=i("678540"),m=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};class g{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return m(this,void 0,void 0,function*(){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url)?this.resolve(e):Promise.reject(Error("missing"))):Promise.reject(Error("missing"))})}}class p{constructor(e){this._disposables=new r.DisposableStore;let t=[];for(let[i,o]of e){let e=i.links.map(e=>new g(e,o));t=p._union(t,e),(0,r.isDisposable)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let i,o,n,s;let r=[];for(i=0,n=0,o=e.length,s=t.length;i<o&&n<s;){let o=e[i],s=t[n];if(c.Range.areIntersectingOrTouching(o.range,s.range)){i++;continue}0>c.Range.compareRangesUsingStarts(o.range,s.range)?(r.push(o),i++):(r.push(s),n++)}for(;i<o;i++)r.push(e[i]);for(;n<s;n++)r.push(t[n]);return r}}function f(e,t,i){let n=[];return Promise.all(e.ordered(t).reverse().map((e,o)=>Promise.resolve(e.provideLinks(t,i)).then(t=>{t&&(n[o]=[t,e])},s.onUnexpectedExternalError))).then(()=>{let e=new p((0,o.coalesce)(n));return i.isCancellationRequested?(e.dispose(),new p([])):e})}d.CommandsRegistry.registerCommand("_executeLinkProvider",(e,...t)=>m(void 0,void 0,void 0,function*(){let[i,o]=t;(0,a.assertType)(i instanceof l.URI),"number"!=typeof o&&(o=0);let{linkProvider:s}=e.get(h.ILanguageFeaturesService),r=e.get(u.IModelService).getModel(i);if(!r)return[];let c=yield f(s,r,n.CancellationToken.None);if(!c)return[];for(let e=0;e<Math.min(o,c.links.length);e++)yield c.links[e].resolve(n.CancellationToken.None);let d=c.links.slice(0);return c.dispose(),d}))},402304:function(e,t,i){"use strict";i.r(t),i.d(t,{MessageController:function(){return h}});var o,n,s=i("794555"),r=i("467518"),a=i("919527");i("178697");var l=i("159923"),c=i("761045"),u=i("708339"),d=i("549436");let h=class e{constructor(t,i){this._messageWidget=new a.MutableDisposable,this._messageListeners=new a.DisposableStore,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i)}static get(t){return t.getContribution(e.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,s.alert)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new g(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new r.TimeoutTimer(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(i?!i.containsPosition(e.target.position)&&this.closeMessage():i=new c.Range(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(g.fadeOut(this._messageWidget.value))}};h.ID="editor.contrib.messageController",h.MESSAGE_VISIBLE=new d.RawContextKey("messageVisible",!1,u.localize("messageVisible","Whether the editor is currently showing an inline message")),h=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(o=1,n=d.IContextKeyService,function(e,t){n(e,t,1)})],h);let m=l.EditorCommand.bindToContribution(h.get);(0,l.registerEditorCommand)(new m({id:"leaveEditorMessage",precondition:h.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class g{constructor(e,{lineNumber:t,column:i},o){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);let s=document.createElement("div");s.classList.add("message"),s.textContent=o,this._domNode.appendChild(s);let r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.registerEditorContribution)(h.ID,h)},195635:function(e,t,i){"use strict";i.r(t);var o=i("871628"),n=i("708339"),s=i("897085"),r=i("439703");let a=(0,s.registerColor)("symbolIcon.arrayForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,s.registerColor)("symbolIcon.booleanForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,s.registerColor)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,s.registerColor)("symbolIcon.colorForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,s.registerColor)("symbolIcon.constantForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,s.registerColor)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,s.registerColor)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,s.registerColor)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,s.registerColor)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,s.registerColor)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,s.registerColor)("symbolIcon.fileForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,s.registerColor)("symbolIcon.folderForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,s.registerColor)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,s.registerColor)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,s.registerColor)("symbolIcon.keyForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,s.registerColor)("symbolIcon.keywordForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,s.registerColor)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,s.registerColor)("symbolIcon.moduleForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,s.registerColor)("symbolIcon.namespaceForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,s.registerColor)("symbolIcon.nullForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,s.registerColor)("symbolIcon.numberForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,s.registerColor)("symbolIcon.objectForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,s.registerColor)("symbolIcon.operatorForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,s.registerColor)("symbolIcon.packageForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,s.registerColor)("symbolIcon.propertyForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,s.registerColor)("symbolIcon.referenceForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,s.registerColor)("symbolIcon.snippetForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,s.registerColor)("symbolIcon.stringForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,s.registerColor)("symbolIcon.structForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,s.registerColor)("symbolIcon.textForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,s.registerColor)("symbolIcon.typeParameterForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=(0,s.registerColor)("symbolIcon.unitForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=(0,s.registerColor)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,r.registerThemingParticipant)((e,t)=>{let i=e.getColor(a);i&&t.addRule(`${o.Codicon.symbolArray.cssSelector} { color: ${i}; }`);let n=e.getColor(l);n&&t.addRule(`${o.Codicon.symbolBoolean.cssSelector} { color: ${n}; }`);let s=e.getColor(c);s&&t.addRule(`${o.Codicon.symbolClass.cssSelector} { color: ${s}; }`);let r=e.getColor(w);r&&t.addRule(`${o.Codicon.symbolMethod.cssSelector} { color: ${r}; }`);let V=e.getColor(u);V&&t.addRule(`${o.Codicon.symbolColor.cssSelector} { color: ${V}; }`);let W=e.getColor(d);W&&t.addRule(`${o.Codicon.symbolConstant.cssSelector} { color: ${W}; }`);let U=e.getColor(h);U&&t.addRule(`${o.Codicon.symbolConstructor.cssSelector} { color: ${U}; }`);let H=e.getColor(m);H&&t.addRule(`
|
|
392
|
+
`)})},60075:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRuler:function(){return r}});var o=i("670758"),n=i("780801"),s=i("448331");class r extends s.ViewEventHandler{constructor(e,t){super(),this._context=e;let i=this._context.configuration.options;this._domNode=(0,o.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new n.OverviewZoneManager(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),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;let e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,o,e),!0}_renderOneLane(e,t,i,o){let n=0,s=0,r=0;for(let a of t){let t=a.colorId,l=a.from,c=a.to;t!==n?(e.fillRect(0,s,o,r-s),n=t,e.fillStyle=i[n],s=l,r=c):r>=l?r=Math.max(r,c):(e.fillRect(0,s,o,r-s),s=l,r=c)}e.fillRect(0,s,o,r-s)}}},412880:function(e,t,i){"use strict";i.r(t),i.d(t,{SelectionsOverlay:function(){return u}}),i("915745");var o=i("707202"),n=i("897085"),s=i("439703");class r{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class a{constructor(e,t){this.lineNumber=e,this.ranges=t}}function l(e){return new r(e)}function c(e){return new a(e.lineNumber,e.ranges.map(l))}class u extends o.DynamicViewOverlay{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;let t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!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}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++)if(e[t].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){let o=this._typicalHalfwidthCharacterWidth/4,n=null,s=null;if(i&&i.length>0&&t.length>0){let o=t[0].lineNumber;if(o===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===o&&(n=i[e].ranges[0]);let r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!s&&e>=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);n&&!n.startStyle&&(n=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e<i;e++){let r=t[e].ranges[0],a=r.left,l=r.left+r.width,c={top:0,bottom:0},u={top:0,bottom:0};if(e>0){let i=t[e-1].ranges[0].left,n=t[e-1].ranges[0].left+t[e-1].ranges[0].width;d(a-i)<o?c.top=2:a>i&&(c.top=1),d(l-n)<o?u.top=2:i<l&&l<n&&(u.top=1)}else n&&(c.top=n.startStyle.top,u.top=n.endStyle.top);if(e+1<i){let i=t[e+1].ranges[0].left,n=t[e+1].ranges[0].left+t[e+1].ranges[0].width;d(a-i)<o?c.bottom=2:i<a&&a<n&&(c.bottom=1),d(l-n)<o?u.bottom=2:l<n&&(u.bottom=1)}else s&&(c.bottom=s.startStyle.bottom,u.bottom=s.endStyle.bottom);r.startStyle=c,r.endStyle=u}}_getVisibleRangesWithStyle(e,t,i){let o=(t.linesVisibleRangesForRange(e,!0)||[]).map(c);return!this._visibleRangesHaveGaps(o)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,o,i),o}_createSelectionPiece(e,t,i,o,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;left:"+o.toString()+"px;width:"+n.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,i,o){if(0===o.length)return;let n=!!o[0].ranges[0].startStyle,s=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=o[0].lineNumber,l=o[o.length-1].lineNumber;for(let c=0,d=o.length;c<d;c++){let d=o[c],h=d.lineNumber,m=h-t,g=i&&(h===l||h===a)?r:s,p=i&&h===a?1:0,f="",b="";for(let e=0,t=d.ranges.length;e<t;e++){let t=d.ranges[e];if(n){let e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){f+=this._createSelectionPiece(p,g,u.SELECTION_CLASS_NAME,t.left-u.ROUNDED_PIECE_WIDTH,u.ROUNDED_PIECE_WIDTH);let i=u.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+u.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+u.SELECTION_BOTTOM_RIGHT),f+=this._createSelectionPiece(p,g,i,t.left-u.ROUNDED_PIECE_WIDTH,u.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){f+=this._createSelectionPiece(p,g,u.SELECTION_CLASS_NAME,t.left+t.width,u.ROUNDED_PIECE_WIDTH);let e=u.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+u.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+u.SELECTION_BOTTOM_LEFT),f+=this._createSelectionPiece(p,g,e,t.left+t.width,u.ROUNDED_PIECE_WIDTH)}}let i=u.SELECTION_CLASS_NAME;if(n){let e=t.startStyle,o=t.endStyle;0===e.top&&(i+=" "+u.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+u.SELECTION_BOTTOM_LEFT),0===o.top&&(i+=" "+u.SELECTION_TOP_RIGHT),0===o.bottom&&(i+=" "+u.SELECTION_BOTTOM_RIGHT)}b+=this._createSelectionPiece(p,g,i,t.left,t.width)}e[m][0]+=f,e[m][1]+=b}}prepareRender(e){let t=[],i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let e=i;e<=o;e++)t[e-i]=["",""];let n=[];for(let o=0,s=this._selections.length;o<s;o++){let s=this._selections[o];if(s.isEmpty()){n[o]=null;continue}let r=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[o]);n[o]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function d(e){return e<0?-e:e}u.SELECTION_CLASS_NAME="selected-text",u.SELECTION_TOP_LEFT="top-left-radius",u.SELECTION_BOTTOM_LEFT="bottom-left-radius",u.SELECTION_TOP_RIGHT="top-right-radius",u.SELECTION_BOTTOM_RIGHT="bottom-right-radius",u.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",u.ROUNDED_PIECE_WIDTH=10,(0,s.registerThemingParticipant)((e,t)=>{let i=e.getColor(n.editorSelectionBackground);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);let o=e.getColor(n.editorInactiveSelection);o&&t.addRule(`.monaco-editor .selected-text { background-color: ${o}; }`);let s=e.getColor(n.editorSelectionForeground);s&&!s.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${s}; }`)})},694614:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewCursors:function(){return d}}),i("432036");var o=i("670758"),n=i("467518"),s=i("71956"),r=i("20801"),a=i("416637"),l=i("126939"),c=i("439703"),u=i("774697");class d extends s.ViewPart{constructor(e){super(e);let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new r.ViewCursor(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,o.createFastDomNode)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new n.TimeoutTimer,this._cursorFlatBlinkInterval=new n.IntervalTimer,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){let e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){let e=new r.ViewCursor(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){let e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let e=0;e<t.length;e++)this._secondaryCursors[e].onCursorPositionChanged(t[e])}onCursorStateChanged(e){let t=[];for(let i=0,o=e.selections.length;i<o;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));let i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){let t=t=>{for(let i=0,o=e.ranges.length;i<o;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(let e of this._secondaryCursors)if(t(e.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let e=this._getCursorBlinking(),t=0===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!t&&5!==e&&(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},d.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},d.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(!this._selectionIsEmpty&&(e+=" has-selection"),this._cursorStyle){case a.TextEditorCursorStyle.Line:e+=" cursor-line-style";break;case a.TextEditorCursorStyle.Block:e+=" cursor-block-style";break;case a.TextEditorCursorStyle.Underline:e+=" cursor-underline-style";break;case a.TextEditorCursorStyle.LineThin:e+=" cursor-line-thin-style";break;case a.TextEditorCursorStyle.BlockOutline:e+=" cursor-block-outline-style";break;case a.TextEditorCursorStyle.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],i=0,o=this._primaryCursor.render(e);o&&(t[i++]=o);for(let o=0,n=this._secondaryCursors.length;o<n;o++){let n=this._secondaryCursors[o].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}d.BLINK_INTERVAL=500,(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorCursorForeground);if(i){let o=e.getColor(l.editorCursorBackground);!o&&(o=i.opposite()),t.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${i}; }`),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${o}; }`),(0,u.isHighContrast)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}})},175323:function(e,t,i){"use strict";i.r(t),i.d(t,{BareFontInfo:function(){return a},FontInfo:function(){return l}});var o=i("207875"),n=i("416637"),s=i("183140");let r=o.isMacintosh?1.5:1.35;class a{constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,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){let o=e.get(45),n=e.get(49),s=e.get(48),r=e.get(47),l=e.get(61),c=e.get(58);return a._create(o,n,s,r,l,c,t,i)}static _create(e,t,i,o,n,l,c,u){0===n?n=r*i:n<8&&(n*=i),(n=Math.round(n))<8&&(n=8);let d=1+(u?0:.1*s.EditorZoom.getZoomLevel());return i*=d,n*=d,new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:o,lineHeight:n,letterSpacing:l})}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){let e=n.EDITOR_FONT_DEFAULTS.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},457938:function(e,t,i){"use strict";i.r(t),i.d(t,{Position:function(){return o}});class o{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new o(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return o.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return o.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return o.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let i=0|e.lineNumber,o=0|t.lineNumber;if(i===o){let i=0|e.column;return i-(0|t.column)}return i-o}clone(){return new o(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new o(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},861065:function(e,t,i){"use strict";i.r(t),i.d(t,{Selection:function(){return s}});var o=i("457938"),n=i("761045");class s extends n.Range{constructor(e,t,i,o){super(e,t,i,o),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=o}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new o.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new o.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,o=e.length;i<o;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,o,n){return 0===n?new s(e,t,i,o):new s(i,o,e,t)}}},812315:function(e,t,i){"use strict";i.r(t),i.d(t,{WordOperations:function(){return c},WordPartOperations:function(){return u}});var o=i("266763"),n=i("607910"),s=i("452862"),r=i("840890"),a=i("457938"),l=i("761045");class c{static _createWord(e,t,i,o,n){return{start:o,end:n,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(o,e,i)}static _doFindPreviousWordOnLine(e,t,i){let o=0;for(let n=i.column-2;n>=0;n--){let i=e.charCodeAt(n),s=t.get(i);if(0===s){if(2===o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1));o=1}else if(2===s){if(1===o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1));o=2}else if(1===s&&0!==o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1))}return 0!==o?this._createWord(e,o,1,0,this._findEndOfWord(e,t,o,0)):null}static _findEndOfWord(e,t,i,o){let n=e.length;for(let s=o;s<n;s++){let o=e.charCodeAt(s),n=t.get(o);if(1===n||1===i&&2===n||2===i&&0===n)return s}return n}static _findNextWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(o,e,i)}static _doFindNextWordOnLine(e,t,i){let o=0,n=e.length;for(let s=i.column-1;s<n;s++){let i=e.charCodeAt(s),n=t.get(i);if(0===n){if(2===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s);o=1}else if(2===n){if(1===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s);o=2}else if(1===n&&0!==o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s)}return 0!==o?this._createWord(e,o,1,this._findStartOfWord(e,t,o,n-1),n):null}static _findStartOfWord(e,t,i,o){for(let n=o;n>=0;n--){let o=e.charCodeAt(n),s=t.get(o);if(1===s||1===i&&2===s||2===i&&0===s)return n+1}return 0}static moveWordLeft(e,t,i,o){let n=i.lineNumber,s=i.column;1===s&&n>1&&(n-=1,s=t.getLineMaxColumn(n));let r=c._findPreviousWordOnLine(e,t,new a.Position(n,s));if(0===o)return new a.Position(n,r?r.start+1:1);if(1===o)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1))),new a.Position(n,r?r.start+1:1);if(3===o){for(;r&&2===r.wordType;)r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1));return new a.Position(n,r?r.start+1:1)}return r&&s<=r.end+1&&(r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1))),new a.Position(n,r?r.end+1:1)}static _moveWordPartLeft(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.Position(i-1,e.getLineMaxColumn(i-1)):t;let s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){let t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(r))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(r)&&e+1<n){let t=s.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,1)}static moveWordRight(e,t,i,o){let n=i.lineNumber,s=i.column,r=!1;s===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(r=!0,n+=1,s=1);let l=c._findNextWordOnLine(e,t,new a.Position(n,s));if(2===o)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),s=l?l.end+1:t.getLineMaxColumn(n);else if(3===o){for(r&&(s=0);l&&(2===l.wordType||l.start+1<=s);)l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1));s=l?l.start+1:t.getLineMaxColumn(n)}else l&&!r&&s>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(n);return new a.Position(n,s)}static _moveWordPartRight(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.Position(i+1,1):t;let s=e.getLineContent(i);for(let e=t.column+1;e<n;e++){let t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95!==t&&95===r||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(r))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(r)&&e+1<n){let t=s.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,n)}static _deleteWordLeftWhitespace(e,t){let i=e.getLineContent(t.lineNumber),n=t.column-2,s=o.lastNonWhitespaceIndex(i,n);return s+1<n?new l.Range(t.lineNumber,s+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(s.DeleteOperations.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){let t=e.selection.getPosition();return new l.Range(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}let u=new a.Position(n.positionLineNumber,n.positionColumn),d=u.lineNumber,h=u.column;if(1===d&&1===h)return null;if(r){let e=this._deleteWordLeftWhitespace(o,u);if(e)return e}let m=c._findPreviousWordOnLine(i,o,u);return 0===t?m?h=m.start+1:h>1?h=1:(d--,h=o.getLineMaxColumn(d)):(m&&h<=m.end+1&&(m=c._findPreviousWordOnLine(i,o,new a.Position(d,m.start+1))),m?h=m.end+1:h>1?h=1:(d--,h=o.getLineMaxColumn(d))),new l.Range(d,h,u.lineNumber,u.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;let o=new a.Position(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,o);return n?n:this._deleteInsideWordDetermineDeleteRange(e,t,o)}static _charAtIsWhitespace(e,t){let i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=i.length;if(0===o)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let s=Math.min(t.column-1,o-1);if(!this._charAtIsWhitespace(i,s))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;s+1<o&&this._charAtIsWhitespace(i,s+1);)s++;return new l.Range(t.lineNumber,n+1,t.lineNumber,s+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){let o,n,s=t.getLineContent(i.lineNumber),r=s.length;if(0===r)return i.lineNumber>1?new l.Range(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Range(i.lineNumber,1,i.lineNumber+1,1):new l.Range(i.lineNumber,1,i.lineNumber,1);let a=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Range(i.lineNumber,e,i.lineNumber,t)),u=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<r&&this._charAtIsWhitespace(s,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return a(t,i)},d=c._findPreviousWordOnLine(e,t,i);if(d&&(o=d).start+1<=i.column&&i.column<=o.end+1)return u(d);let h=c._findNextWordOnLine(e,t,i);return h&&(n=h).start+1<=i.column&&i.column<=n.end+1?u(h):d&&h?a(d.end+1,h.start+1):d?a(d.start+1,d.end+1):h?a(h.start+1,h.end+1):a(1,r+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartLeft(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let o=t;o<i;o++){let t=e.charAt(o);if(" "!==t&&" "!==t)return o}return i}static _deleteWordRightWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=t.column-1,n=this._findFirstNonWhitespaceChar(i,o);return o+1<n?new l.Range(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,s=e.whitespaceHeuristics;if(!n.isEmpty())return n;let r=new a.Position(n.positionLineNumber,n.positionColumn),u=r.lineNumber,d=r.column,h=o.getLineCount(),m=o.getLineMaxColumn(u);if(u===h&&d===m)return null;if(s){let e=this._deleteWordRightWhitespace(o,r);if(e)return e}let g=c._findNextWordOnLine(i,o,r);return 2===t?g?d=g.end+1:d<m||u===h?d=m:(u++,d=(g=c._findNextWordOnLine(i,o,new a.Position(u,1)))?g.start+1:o.getLineMaxColumn(u)):(g&&d>=g.start+1&&(g=c._findNextWordOnLine(i,o,new a.Position(u,g.end+1))),g?d=g.start+1:d<m||u===h?d=m:(u++,d=(g=c._findNextWordOnLine(i,o,new a.Position(u,1)))?g.start+1:o.getLineMaxColumn(u))),new l.Range(u,d,r.lineNumber,r.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartRight(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _createWordAtPosition(e,t,i){let o=new l.Range(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(o),startColumn:o.startColumn,endColumn:o.endColumn}}static getWordAtPosition(e,t,i){let o=(0,r.getMapForWordSeparators)(t),n=c._findPreviousWordOnLine(o,e,i);if(n&&1===n.wordType&&n.start<=i.column-1&&i.column-1<=n.end)return c._createWordAtPosition(e,i.lineNumber,n);let s=c._findNextWordOnLine(o,e,i);return s&&1===s.wordType&&s.start<=i.column-1&&i.column-1<=s.end?c._createWordAtPosition(e,i.lineNumber,s):null}static word(e,t,i,o,s){let u,d,h;let m=(0,r.getMapForWordSeparators)(e.wordSeparators),g=c._findPreviousWordOnLine(m,t,s),p=c._findNextWordOnLine(m,t,s);if(!o){let e,i;return g&&1===g.wordType&&g.start<=s.column-1&&s.column-1<=g.end?(e=g.start+1,i=g.end+1):p&&1===p.wordType&&p.start<=s.column-1&&s.column-1<=p.end?(e=p.start+1,i=p.end+1):(e=g?g.end+1:1,i=p?p.start+1:t.getLineMaxColumn(s.lineNumber)),new n.SingleCursorState(new l.Range(s.lineNumber,e,s.lineNumber,i),0,new a.Position(s.lineNumber,i),0)}g&&1===g.wordType&&g.start<s.column-1&&s.column-1<g.end?(u=g.start+1,d=g.end+1):p&&1===p.wordType&&p.start<s.column-1&&s.column-1<p.end?(u=p.start+1,d=p.end+1):(u=s.column,d=s.column);let f=s.lineNumber;if(i.selectionStart.containsPosition(s))h=i.selectionStart.endColumn;else if(s.isBeforeOrEqual(i.selectionStart.getStartPosition())){h=u;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.endColumn)}else{h=d;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.startColumn)}return i.move(!0,f,h,0)}}class u extends c{static deleteWordPartLeft(e){let t=d([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){let t=d([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){let o=d([c.moveWordLeft(e,t,i,0),c.moveWordLeft(e,t,i,2),c._moveWordPartLeft(t,i)]);return o.sort(a.Position.compare),o[2]}static moveWordPartRight(e,t,i){let o=d([c.moveWordRight(e,t,i,0),c.moveWordRight(e,t,i,2),c._moveWordPartRight(t,i)]);return o.sort(a.Position.compare),o[0]}}function d(e){return e.filter(e=>!!e)}},343349:function(e,t,i){"use strict";i.r(t),i.d(t,{DiffComputer:function(){return u}});var o=i("160012"),n=i("266763");function s(e,t,i,n){return new o.LcsDiff(e,t,i).ComputeDiff(n)}class r{constructor(e){let t=[],i=[];for(let o=0,n=e.length;o<n;o++)t[o]=d(e[o],1),i[o]=h(e[o],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){let e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){let o=[],n=[],s=[],r=0;for(let a=t;a<=i;a++){let t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)o[r]=t.charCodeAt(e-1),n[r]=a+1,s[r]=e,r++;!e&&a<i&&(o[r]=10,n[r]=a+1,s[r]=t.length+1,r++)}return new a(o,n,s)}}class a{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class l{constructor(e,t,i,o,n,s,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=o,this.modifiedStartLineNumber=n,this.modifiedStartColumn=s,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let o=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),u=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1);return new l(o,n,s,r,a,c,u,i.getEndColumn(e.modifiedStart+e.modifiedLength-1))}}class c{constructor(e,t,i,o,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=o,this.charChanges=n}static createFromDiffResult(e,t,i,o,n,r,a){let u,d,h,m,g;if(0===t.originalLength?(u=i.getStartLineNumber(t.originalStart)-1,d=0):(u=i.getStartLineNumber(t.originalStart),d=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=o.getStartLineNumber(t.modifiedStart)-1,m=0):(h=o.getStartLineNumber(t.modifiedStart),m=o.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){let r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),c=o.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&c.getElements().length>0){let e=s(r,c,n,!0).changes;a&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let o=1,n=e.length;o<n;o++){let n=e[o],s=n.originalStart-(i.originalStart+i.originalLength);3>Math.min(s,n.modifiedStart-(i.modifiedStart+i.modifiedLength))?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),g=[];for(let t=0,i=e.length;t<i;t++)g.push(l.createFromDiffChange(e[t],r,c))}}return new c(u,d,h,m,g)}}class u{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new r(e),this.modified=new r(t),this.continueLineDiff=m(i.maxComputationTime),this.continueCharDiff=m(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let e=s(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let i=0,o=t.length;i<o;i++)e.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}let o=[],n=0,r=0;for(let e=-1,i=t.length;e<i;e++){let s=e+1<i?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,l=s?s.modifiedStart:this.modifiedLines.length;for(;n<a&&r<l;){let e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=d(e,1),s=d(t,1);for(;i>1&&s>1;){let o=e.charCodeAt(i-2);if(o!==t.charCodeAt(s-2))break;i--,s--}(i>1||s>1)&&this._pushTrimWhitespaceCharChange(o,n+1,1,i,r+1,1,s)}{let i=h(e,1),s=h(t,1),a=e.length+1,l=t.length+1;for(;i<a&&s<l;){let t=e.charCodeAt(i-1);if(t!==e.charCodeAt(s-1))break;i++,s++}(i<a||s<l)&&this._pushTrimWhitespaceCharChange(o,n+1,i,a,r+1,s,l)}}n++,r++}s&&(o.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=s.originalLength,r+=s.modifiedLength)}return{quitEarly:i,changes:o}}_pushTrimWhitespaceCharChange(e,t,i,o,n,s,r){let a;if(!this._mergeTrimWhitespaceCharChange(e,t,i,o,n,s,r))this.shouldComputeCharChanges&&(a=[new l(t,i,t,o,n,s,n,r)]),e.push(new c(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,o,n,s,r){let a=e.length;if(0===a)return!1;let c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new l(t,i,t,o,n,s,n,r)),!0)}}function d(e,t){let i=n.firstNonWhitespaceIndex(e);return -1===i?t:i+1}function h(e,t){let i=n.lastNonWhitespaceIndex(e);return -1===i?t:i+2}function m(e){if(0===e)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}},464587:function(e,t,i){"use strict";i.r(t),i.d(t,{concat23Trees:function(){return n},concat23TreesOfSameHeight:function(){return s}});var o=i("992296");function n(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,o=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===o;)t++;return t-i>=2?s(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let o=i(),n=i();if(!n)return o;for(let e=i();e;e=i())r(o,n)<=r(n,e)?(o=a(o,n),n=e):n=a(n,e);return a(o,n)}function s(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let n=i>>1;for(let s=0;s<n;s++){let n=s<<1;e[s]=o.ListAstNode.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return o.ListAstNode.create23(e[0],e[1],i>=3?e[2]:null,t)}function r(e,t){return Math.abs(e.listHeight-t.listHeight)}function a(e,t){return e.listHeight===t.listHeight?o.ListAstNode.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let n=e=e.toMutable(),s=[];for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw Error("unexpected");s.push(n),n=n.makeLastElementMutable()}for(let e=s.length-1;e>=0;e--){let t=s[e];i?t.childrenLength>=3?i=o.ListAstNode.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?o.ListAstNode.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let s=t;for(let e=n.length-1;e>=0;e--){let t=n[e];s?t.childrenLength>=3?s=o.ListAstNode.create23(s,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?o.ListAstNode.create23(s,e,null,!1):e}(t,e)}},276345:function(e,t,i){"use strict";i.r(t),i.d(t,{ColorizedBracketPairsDecorationProvider:function(){return l}});var o=i("916904"),n=i("919527"),s=i("761045"),r=i("126939"),a=i("439703");class l extends n.Disposable{constructor(e){super(),this.textModel=e,this.colorProvider=new c,this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(e=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(void 0===t||!this.colorizationOptions.enabled)return[];let o=[];for(let t of this.textModel.bracketPairs.getBracketsInRange(e))o.push({id:`bracket${t.range.toString()}-${t.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(t,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:t.range});return o}getAllDecorations(e,t){return void 0!==e&&this.colorizationOptions.enabled?this.getDecorationsInRange(new s.Range(1,1,this.textModel.getLineCount(),1),e,t):[]}}class c{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}(0,a.registerThemingParticipant)((e,t)=>{let i=[r.editorBracketHighlightingForeground1,r.editorBracketHighlightingForeground2,r.editorBracketHighlightingForeground3,r.editorBracketHighlightingForeground4,r.editorBracketHighlightingForeground5,r.editorBracketHighlightingForeground6],o=new c;t.addRule(`.monaco-editor .${o.unexpectedClosingBracketClassName} { color: ${e.getColor(r.editorBracketHighlightingUnexpectedBracketForeground)}; }`);let n=i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent());for(let e=0;e<30;e++){let i=n[e%n.length];t.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}})},780801:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRulerZone:function(){return n},OverviewZoneManager:function(){return s}});class o{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){if(e.colorId===t.colorId)return e.from===t.from?e.to-t.to:e.from-t.from;return e.colorId-t.colorId}}class n{constructor(e,t,i,o){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=o,this._colorZone=null}static compare(e,t){if(e.color===t.color){if(e.startLineNumber===t.startLineNumber)return e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines;return e.startLineNumber-t.startLineNumber}return e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class s{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){let e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),s=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){let l=this._zones[a];if(!e){let e=l.getColorZones();if(e){r.push(e);continue}}let c=this._getVerticalOffsetForLine(l.startLineNumber),u=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:c+l.heightInLines*t,d=Math.floor(n*c),h=Math.floor(n*u),m=Math.floor((d+h)/2),g=h-m;g<s&&(g=s),m-g<0&&(m=g),m+g>i&&(m=i-g);let p=l.color,f=this._color2Id[p];!f&&(f=++this._lastAssignedId,this._color2Id[p]=f,this._id2Color[f]=p);let b=new o(m-g,m+g,f);l.setColorZone(b),r.push(b)}return this._colorZonesInvalid=!1,r.sort(o.compare),r}}},243017:function(e,t,i){"use strict";i.r(t),i.d(t,{FindOptionsWidget:function(){return u}});var o=i("409737"),n=i("25806"),s=i("795832"),r=i("467518"),a=i("399742"),l=i("897085"),c=i("439703");class u extends s.Widget{constructor(e,t,i,s){super(),this._hideSoon=this._register(new r.RunOnceScheduler(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let c=s.getColorTheme().getColor(l.inputActiveOptionBorder),u=s.getColorTheme().getColor(l.inputActiveOptionForeground),d=s.getColorTheme().getColor(l.inputActiveOptionBackground);this.caseSensitive=this._register(new n.CaseSensitiveToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new n.WholeWordsToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new n.RegexToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(o.addDisposableListener(this._domNode,o.EventType.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register(o.addDisposableListener(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(s.getColorTheme()),this._register(s.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return u.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){!this._isVisible&&(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(l.inputActiveOptionBorder),inputActiveOptionForeground:e.getColor(l.inputActiveOptionForeground),inputActiveOptionBackground:e.getColor(l.inputActiveOptionBackground)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}u.ID="editor.contrib.findOptionsWidget",(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorWidgetBackground);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);let o=e.getColor(l.editorWidgetForeground);o&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${o}; }`);let n=e.getColor(l.widgetShadow);n&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);let s=e.getColor(l.contrastBorder);s&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)})},445281:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("88936"),s=i("668383"),r=i("40172");(0,o.registerEditorContribution)(s.InlayHintsController.ID,s.InlayHintsController),n.HoverParticipantRegistry.register(r.InlayHintsHover)},49429:function(e,t,i){"use strict";i.r(t),i.d(t,{GhostTextController:function(){return b},ShowNextInlineSuggestionAction:function(){return C},ShowPreviousInlineSuggestionAction:function(){return v},TriggerInlineSuggestionAction:function(){return S}});var o=i("916904"),n=i("919527"),s=i("266763"),r=i("159923"),a=i("394798"),l=i("976617"),c=i("953938"),u=i("981849"),d=i("708339"),h=i("549436"),m=i("706301"),g=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,o){t(i,o,e)}},f=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let b=class e extends n.Disposable{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new n.MutableDisposable),this.activeModelDidChangeEmitter=this._register(new o.Emitter),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(108)&&this.updateModelController(),e.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){let e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(y,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return(null===(i=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===i?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,!this.activeController.value&&this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return f(this,void 0,void 0,function*(){let t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t})}};b.inlineSuggestionVisible=new h.RawContextKey("inlineSuggestionVisible",!1,d.localize("inlineSuggestionVisible","Whether an inline suggestion is visible")),b.inlineSuggestionHasIndentation=new h.RawContextKey("inlineSuggestionHasIndentation",!1,d.localize("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),b.inlineSuggestionHasIndentationLessThanTabSize=new h.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,d.localize("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),b.ID="editor.contrib.ghostTextController",b=g([p(1,m.IInstantiationService)],b);class _{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=b.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=b.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=b.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let y=class extends n.Disposable{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new _(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(c.GhostTextModel,this.editor)),this.widget=this._register(this.instantiationService.createInstance(u.GhostTextWidget,this.editor,this.model)),this._register((0,n.toDisposable)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set((null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText)!==void 0);let t=!1,i=!0,o=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&o&&o.parts.length>0){let{column:e,lines:n}=o.parts[0],r=n[0],l=this.editor.getModel().getLineIndentColumn(o.lineNumber);if(e<=l){let e=(0,s.firstNonWhitespaceIndex)(r);-1===e&&(e=r.length-1),t=e>0;let o=this.editor.getModel().getOptions().tabSize;i=a.CursorColumns.visibleColumnFromColumn(r,e+1,o)<o}}this.contextKeys.inlineCompletionSuggestsIndentation.set(t),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(i)}};y=g([p(1,m.IInstantiationService),p(2,h.IContextKeyService)],y);class C extends r.EditorAction{constructor(){super({id:C.ID,label:d.localize("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showNextInlineCompletion(),t.focus())})}}C.ID="editor.action.inlineSuggest.showNext";class v extends r.EditorAction{constructor(){super({id:v.ID,label:d.localize("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())})}}v.ID="editor.action.inlineSuggest.showPrevious";class S extends r.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:d.localize("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:l.EditorContextKeys.writable})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&e.trigger()})}}},265628:function(e,t,i){"use strict";i.r(t),i.d(t,{SuggestWidgetInlineCompletionProvider:function(){return m}});var o=i("603868"),n=i("467518"),s=i("916904"),r=i("919527"),a=i("457938"),l=i("761045"),c=i("259842"),u=i("718628"),d=i("258156"),h=i("211962");class m extends r.Disposable{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new s.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new n.RunOnceScheduler(()=>{!this.isSuggestWidgetVisible&&this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let i=d.SuggestController.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(e,t,n)=>{let s=this.editor.getModel(),r=(0,h.minimizeInlineCompletion)(s,this.suggestControllerPreselector());if(!r)return -1;let l=a.Position.lift(t),c=n.map((e,t)=>{let o=g(i,l,e,this.isShiftKeyPressed),n=(0,h.minimizeInlineCompletion)(s,null==o?void 0:o.normalizedInlineCompletion);if(!!n)return{index:t,valid:function(e,t){return t.startLineNumber===e.startLineNumber&&t.startColumn===e.startColumn&&(t.endLineNumber<e.endLineNumber||t.endLineNumber===e.endLineNumber&&t.endColumn<=e.endColumn)}(r.range,n.range)&&r.insertText.startsWith(n.insertText),prefixLength:n.insertText.length,suggestItem:e}}).filter(e=>e&&e.valid),u=(0,o.findMaxBy)(c,(0,o.compareBy)(e=>e.prefixLength,o.numberComparator));return u?u.index:-1}}));let e=!1,t=()=>{!e&&(e=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(s.Event.once(i.model.onDidTrigger)(e=>{t()}))}this.update(this._isActive)}get state(){if(this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){let t=this.getSuggestItemInfo(),i=!1;!function(e,t){return e===t||!!e&&!!t&&e.completionItemKind===t.completionItemKind&&e.isSnippetText===t.isSnippetText&&(0,h.normalizedInlineCompletionsEquals)(e.normalizedInlineCompletion,t.normalizedInlineCompletion)}(this._currentSuggestItemInfo,t)&&(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){let e=d.SuggestController.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem();if(t)return g(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=d.SuggestController.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){let e=d.SuggestController.get(this.editor);e&&e.forceRenderingAbove()}}function g(e,t,i,o){if(Array.isArray(i.completion.additionalTextEdits)&&i.completion.additionalTextEdits.length>0)return{completionItemKind:i.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:l.Range.fromPositions(t,t),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=i.completion,s=!1;if(4&i.completion.insertTextRules){let i=new c.SnippetParser().parse(n),o=e.editor.getModel();if(i.children.length>100)return;u.SnippetSession.adjustWhitespace(o,t,i,!0,!0),n=i.toString(),s=!0}let r=e.getOverwriteInfo(i,o);return{isSnippetText:s,completionItemKind:i.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:l.Range.fromPositions(t.delta(0,-r.overwriteBefore),t.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}},209882:function(e,t,i){"use strict";i.r(t),i.d(t,{getLinks:function(){return f}});var o=i("603868"),n=i("500862"),s=i("161111"),r=i("919527"),a=i("744138"),l=i("938505"),c=i("761045"),u=i("357233"),d=i("326896"),h=i("678540"),m=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};class g{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return m(this,void 0,void 0,function*(){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url)?this.resolve(e):Promise.reject(Error("missing"))):Promise.reject(Error("missing"))})}}class p{constructor(e){this._disposables=new r.DisposableStore;let t=[];for(let[i,o]of e){let e=i.links.map(e=>new g(e,o));t=p._union(t,e),(0,r.isDisposable)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let i,o,n,s;let r=[];for(i=0,n=0,o=e.length,s=t.length;i<o&&n<s;){let o=e[i],s=t[n];if(c.Range.areIntersectingOrTouching(o.range,s.range)){i++;continue}0>c.Range.compareRangesUsingStarts(o.range,s.range)?(r.push(o),i++):(r.push(s),n++)}for(;i<o;i++)r.push(e[i]);for(;n<s;n++)r.push(t[n]);return r}}function f(e,t,i){let n=[];return Promise.all(e.ordered(t).reverse().map((e,o)=>Promise.resolve(e.provideLinks(t,i)).then(t=>{t&&(n[o]=[t,e])},s.onUnexpectedExternalError))).then(()=>{let e=new p((0,o.coalesce)(n));return i.isCancellationRequested?(e.dispose(),new p([])):e})}d.CommandsRegistry.registerCommand("_executeLinkProvider",(e,...t)=>m(void 0,void 0,void 0,function*(){let[i,o]=t;(0,a.assertType)(i instanceof l.URI),"number"!=typeof o&&(o=0);let{linkProvider:s}=e.get(h.ILanguageFeaturesService),r=e.get(u.IModelService).getModel(i);if(!r)return[];let c=yield f(s,r,n.CancellationToken.None);if(!c)return[];for(let e=0;e<Math.min(o,c.links.length);e++)yield c.links[e].resolve(n.CancellationToken.None);let d=c.links.slice(0);return c.dispose(),d}))},402304:function(e,t,i){"use strict";i.r(t),i.d(t,{MessageController:function(){return h}});var o,n,s=i("794555"),r=i("467518"),a=i("919527");i("178697");var l=i("159923"),c=i("761045"),u=i("708339"),d=i("549436");let h=class e{constructor(t,i){this._messageWidget=new a.MutableDisposable,this._messageListeners=new a.DisposableStore,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i)}static get(t){return t.getContribution(e.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,s.alert)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new g(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new r.TimeoutTimer(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(i?!i.containsPosition(e.target.position)&&this.closeMessage():i=new c.Range(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(g.fadeOut(this._messageWidget.value))}};h.ID="editor.contrib.messageController",h.MESSAGE_VISIBLE=new d.RawContextKey("messageVisible",!1,u.localize("messageVisible","Whether the editor is currently showing an inline message")),h=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(o=1,n=d.IContextKeyService,function(e,t){n(e,t,1)})],h);let m=l.EditorCommand.bindToContribution(h.get);(0,l.registerEditorCommand)(new m({id:"leaveEditorMessage",precondition:h.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class g{constructor(e,{lineNumber:t,column:i},o){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);let s=document.createElement("div");s.classList.add("message"),s.textContent=o,this._domNode.appendChild(s);let r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.registerEditorContribution)(h.ID,h)},195635:function(e,t,i){"use strict";i.r(t);var o=i("871628"),n=i("708339"),s=i("897085"),r=i("439703");let a=(0,s.registerColor)("symbolIcon.arrayForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,s.registerColor)("symbolIcon.booleanForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,s.registerColor)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,s.registerColor)("symbolIcon.colorForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,s.registerColor)("symbolIcon.constantForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,s.registerColor)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,s.registerColor)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,s.registerColor)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,s.registerColor)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,s.registerColor)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,s.registerColor)("symbolIcon.fileForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,s.registerColor)("symbolIcon.folderForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,s.registerColor)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,s.registerColor)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,s.registerColor)("symbolIcon.keyForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,s.registerColor)("symbolIcon.keywordForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,s.registerColor)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,s.registerColor)("symbolIcon.moduleForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,s.registerColor)("symbolIcon.namespaceForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,s.registerColor)("symbolIcon.nullForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,s.registerColor)("symbolIcon.numberForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,s.registerColor)("symbolIcon.objectForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,s.registerColor)("symbolIcon.operatorForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,s.registerColor)("symbolIcon.packageForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,s.registerColor)("symbolIcon.propertyForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,s.registerColor)("symbolIcon.referenceForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,s.registerColor)("symbolIcon.snippetForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,s.registerColor)("symbolIcon.stringForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,s.registerColor)("symbolIcon.structForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,s.registerColor)("symbolIcon.textForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,s.registerColor)("symbolIcon.typeParameterForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=(0,s.registerColor)("symbolIcon.unitForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=(0,s.registerColor)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,r.registerThemingParticipant)((e,t)=>{let i=e.getColor(a);i&&t.addRule(`${o.Codicon.symbolArray.cssSelector} { color: ${i}; }`);let n=e.getColor(l);n&&t.addRule(`${o.Codicon.symbolBoolean.cssSelector} { color: ${n}; }`);let s=e.getColor(c);s&&t.addRule(`${o.Codicon.symbolClass.cssSelector} { color: ${s}; }`);let r=e.getColor(w);r&&t.addRule(`${o.Codicon.symbolMethod.cssSelector} { color: ${r}; }`);let V=e.getColor(u);V&&t.addRule(`${o.Codicon.symbolColor.cssSelector} { color: ${V}; }`);let W=e.getColor(d);W&&t.addRule(`${o.Codicon.symbolConstant.cssSelector} { color: ${W}; }`);let U=e.getColor(h);U&&t.addRule(`${o.Codicon.symbolConstructor.cssSelector} { color: ${U}; }`);let H=e.getColor(m);H&&t.addRule(`
|
|
393
393
|
${o.Codicon.symbolValue.cssSelector},${o.Codicon.symbolEnum.cssSelector} { color: ${H}; }`);let z=e.getColor(g);z&&t.addRule(`${o.Codicon.symbolEnumMember.cssSelector} { color: ${z}; }`);let $=e.getColor(p);$&&t.addRule(`${o.Codicon.symbolEvent.cssSelector} { color: ${$}; }`);let q=e.getColor(f);q&&t.addRule(`${o.Codicon.symbolField.cssSelector} { color: ${q}; }`);let j=e.getColor(b);j&&t.addRule(`${o.Codicon.symbolFile.cssSelector} { color: ${j}; }`);let G=e.getColor(_);G&&t.addRule(`${o.Codicon.symbolFolder.cssSelector} { color: ${G}; }`);let Z=e.getColor(y);Z&&t.addRule(`${o.Codicon.symbolFunction.cssSelector} { color: ${Z}; }`);let Q=e.getColor(C);Q&&t.addRule(`${o.Codicon.symbolInterface.cssSelector} { color: ${Q}; }`);let Y=e.getColor(v);Y&&t.addRule(`${o.Codicon.symbolKey.cssSelector} { color: ${Y}; }`);let X=e.getColor(S);X&&t.addRule(`${o.Codicon.symbolKeyword.cssSelector} { color: ${X}; }`);let J=e.getColor(k);J&&t.addRule(`${o.Codicon.symbolModule.cssSelector} { color: ${J}; }`);let ee=e.getColor(E);ee&&t.addRule(`${o.Codicon.symbolNamespace.cssSelector} { color: ${ee}; }`);let et=e.getColor(I);et&&t.addRule(`${o.Codicon.symbolNull.cssSelector} { color: ${et}; }`);let ei=e.getColor(L);ei&&t.addRule(`${o.Codicon.symbolNumber.cssSelector} { color: ${ei}; }`);let eo=e.getColor(x);eo&&t.addRule(`${o.Codicon.symbolObject.cssSelector} { color: ${eo}; }`);let en=e.getColor(T);en&&t.addRule(`${o.Codicon.symbolOperator.cssSelector} { color: ${en}; }`);let es=e.getColor(D);es&&t.addRule(`${o.Codicon.symbolPackage.cssSelector} { color: ${es}; }`);let er=e.getColor(N);er&&t.addRule(`${o.Codicon.symbolProperty.cssSelector} { color: ${er}; }`);let ea=e.getColor(A);ea&&t.addRule(`${o.Codicon.symbolReference.cssSelector} { color: ${ea}; }`);let el=e.getColor(M);el&&t.addRule(`${o.Codicon.symbolSnippet.cssSelector} { color: ${el}; }`);let ec=e.getColor(O);ec&&t.addRule(`${o.Codicon.symbolString.cssSelector} { color: ${ec}; }`);let eu=e.getColor(R);eu&&t.addRule(`${o.Codicon.symbolStruct.cssSelector} { color: ${eu}; }`);let ed=e.getColor(P);ed&&t.addRule(`${o.Codicon.symbolText.cssSelector} { color: ${ed}; }`);let eh=e.getColor(F);eh&&t.addRule(`${o.Codicon.symbolTypeParameter.cssSelector} { color: ${eh}; }`);let em=e.getColor(K);em&&t.addRule(`${o.Codicon.symbolUnit.cssSelector} { color: ${em}; }`);let eg=e.getColor(B);eg&&t.addRule(`${o.Codicon.symbolVariable.cssSelector} { color: ${eg}; }`)})},196444:function(e,t,i){"use strict";i.r(t);var o=i("919527"),n=i("437454"),s=i("159923"),r=i("583368"),a=i("708339"),l=i("664641"),c=function(e,t){return function(i,o){t(i,o,e)}};let u="ignoreUnusualLineTerminators",d=class extends o.Disposable{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{!e.isUndoing&&this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){var e,t,i,o;return e=this,t=void 0,i=void 0,o=function*(){var e,t;if("off"===this._config||!this._editor.hasModel())return;let i=this._editor.getModel();if(!i.mightContainUnusualLineTerminators())return;if(!(!0===(e=this._codeEditorService,t=i,e.getModelProperty(t.uri,u))||this._editor.getOption(83))){if("auto"===this._config){i.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:a.localize("unusualLineTerminators.title","Unusual Line Terminators"),message:a.localize("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.localize("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.basename)(i.uri)),primaryButton:a.localize("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:a.localize("unusualLineTerminators.ignore","Ignore")})).confirmed){!function(e,t,i){e.setModelProperty(t.uri,u,i)}(this._codeEditorService,i,!0);return}i.removeUnusualLineTerminators(this._editor.getSelections())}},new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})}};d.ID="editor.contrib.unusualLineTerminatorsDetector",d=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([c(1,l.IDialogService),c(2,r.ICodeEditorService)],d),(0,s.registerEditorContribution)(d.ID,d)},911465:function(e,t,i){"use strict";i.r(t);var o,n,s=i("432682"),r=i("112721"),a=i("507194"),l=i("583368"),c=i("744138"),u=i("782272"),d=i("916904"),h=i("159923"),m=i("976617"),g=i("479895");let p=class extends s.AbstractGotoLineQuickAccessProvider{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=d.Event.None}get activeTextEditorControl(){return(0,c.withNullAsUndefined)(this.editorService.getFocusedCodeEditor())}};p=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(o=0,n=l.ICodeEditorService,function(e,t){n(e,t,0)})],p);class f extends h.EditorAction{constructor(){super({id:f.ID,label:u.GoToLineNLS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:m.EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(g.IQuickInputService).quickAccess.show(p.PREFIX)}}f.ID="editor.action.gotoLine",(0,h.registerEditorAction)(f),r.Registry.as(a.Extensions.Quickaccess).registerQuickAccessProvider({ctor:p,prefix:p.PREFIX,helpEntries:[{description:u.GoToLineNLS.gotoLineActionLabel,commandId:f.ID}]})},747562:function(e,t,i){"use strict";i.r(t),i.d(t,{EditorScopedLayoutService:function(){return d}});var o=i("409737"),n=i("916904"),s=i("280655"),r=i("583368"),a=i("772243"),l=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,o){t(i,o,e)}};let u=class{constructor(e){this._codeEditorService=e,this.onDidLayout=n.Event.None,this.offset={top:0,quickPickTop:0}}get dimension(){return!this._dimension&&(this._dimension=o.getClientArea(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}};u=l([c(0,r.ICodeEditorService)],u);let d=class extends u{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};d=l([c(1,r.ICodeEditorService)],d),(0,a.registerSingleton)(s.ILayoutService,u)},175526:function(e,t,i){"use strict";i.r(t),i.d(t,{HC_BLACK_THEME_NAME:function(){return y},HC_LIGHT_THEME_NAME:function(){return C},StandaloneThemeService:function(){return L},VS_DARK_THEME_NAME:function(){return _},VS_LIGHT_THEME_NAME:function(){return b}});var o=i("409737"),n=i("259527"),s=i("835271"),r=i("916904"),a=i("274854"),l=i("755699"),c=i("464618"),u=i("168658"),d=i("112721"),h=i("897085"),m=i("439703"),g=i("919527"),p=i("774697"),f=i("791563");let b="vs",_="vs-dark",y="hc-black",C="hc-light",v=d.Registry.as(h.Extensions.ColorContribution),S=d.Registry.as(m.Extensions.ThemingContribution);class w{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(k(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let e=new Map;for(let t in this.themeData.colors)e.set(t,s.Color.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=E(this.themeData.base);for(let i in t.colors)!e.has(i)&&e.set(i,s.Color.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){let i=this.getColors().get(e);return i?i:!1!==t?this.getDefault(e):void 0}getDefault(e){let t=this.defaultColors[e];return t?t:(t=v.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case b:return p.ColorScheme.LIGHT;case y:return p.ColorScheme.HIGH_CONTRAST_DARK;case C:return p.ColorScheme.HIGH_CONTRAST_LIGHT;default:return p.ColorScheme.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let i=E(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}let i=this.themeData.colors["editor.foreground"],o=this.themeData.colors["editor.background"];if(i||o){let t={token:""};i&&(t.foreground=i),o&&(t.background=o),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=c.TokenTheme.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){let o=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=l.TokenMetadata.getForeground(o),s=l.TokenMetadata.getFontStyle(o);return{foreground:n,italic:!!(1&s),bold:!!(2&s),underline:!!(4&s),strikethrough:!!(8&s)}}}function k(e){return e===b||e===_||e===y||e===C}function E(e){switch(e){case b:return u.vs;case _:return u.vs_dark;case y:return u.hc_black;case C:return u.hc_light}}function I(e){let t=E(e);return new w(e,t)}class L extends g.Disposable{constructor(){super(),this._onColorThemeChange=this._register(new r.Emitter),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.Emitter),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new f.UnthemedProductIconTheme,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(b,I(b)),this._knownThemes.set(_,I(_)),this._knownThemes.set(y,I(y)),this._knownThemes.set(C,I(C));let e=(0,f.getIconsStyleSheet)(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|
|
394
394
|
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(b),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),(0,n.addMatchMediaChangeListener)("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return o.isInShadowDOM(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return!this._globalStyleElement&&(this._globalStyleElement=o.createStyleSheet(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),g.Disposable.None}_registerShadowDomContainer(e){let t=o.createStyleSheet(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t){this._styleElements.splice(e,1);return}}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw Error("Illegal theme name!");if(!k(t.base)&&!k(e))throw Error("Illegal theme base!");this._knownThemes.set(e,new w(e,t)),k(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(b),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){let e=window.matchMedia("(forced-colors: active)").matches;if(e!==(0,p.isHighContrast)(this._theme.type)){let t;t=(0,p.isDark)(this._theme.type)?e?y:_:e?C:b,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){let e=[],t={},i={addRule:i=>{!t[i]&&(e.push(i),t[i]=!0)}};S.getThemingParticipants().forEach(e=>e(this._theme,i,this._environment));let o=[];for(let e of v.getColors()){let t=this._theme.getColor(e.id,!0);t&&o.push(`${(0,h.asCssVariableName)(e.id)}: ${t.toString()};`)}i.addRule(`.monaco-editor { ${o.join("\n")} }`);let n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule((0,c.generateTokensCSSForColorMap)(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.TokenizationRegistry.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
|
|
395
|
-
${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},182498:function(e,t,i){"use strict";i.r(t),i.d(t,{MenuEntryActionViewItem:function(){return I},createActionViewItem:function(){return T},createAndFillInActionBarActions:function(){return E}});var o=i("409737"),n=i("85763"),s=i("268587"),r=i("998200"),a=i("431453"),l=i("102881"),c=i("919527"),u=i("207875");i("519625");var d=i("708339"),h=i("351553"),m=i("549436"),g=i("158935"),p=i("706301"),f=i("534752"),b=i("297669"),_=i("243692"),y=i("439703"),C=i("774697"),v=i("744138"),S=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,o){t(i,o,e)}},k=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};function E(e,t,i,o,n,s,r){let l=e.getActions(t);return function(e,t,i,o=e=>"navigation"===e,n=Number.MAX_SAFE_INTEGER,s=()=>!1,r=!1){let l,c;Array.isArray(t)?(l=t,c=t):(l=t.primary,c=t.secondary);let u=new Set;for(let[t,n]of e){let e;for(let s of(o(t)?(e=l).length>0&&r&&e.push(new a.Separator):(e=c).length>0&&e.push(new a.Separator),n)){i&&(s=s instanceof h.MenuItemAction&&s.alt?s.alt:s);let o=e.push(s);s instanceof a.SubmenuAction&&u.add({group:t,action:s,index:o-1})}}for(let{group:e,action:t,index:i}of u){let r=o(e)?l:c,a=t.actions;(a.length<=1||r.length+a.length-2<=n)&&s(t,e,r.length)&&r.splice(i,1,...a)}if(l!==c&&l.length>n){let e=l.splice(n,l.length-n);c.unshift(...e,new a.Separator)}}(l,i,!1,"string"==typeof o?e=>e===o:o,n,s,r),function(e){let t=new c.DisposableStore;for(let[,i]of e)for(let e of i)t.add(e);return t}(l)}let I=class extends s.ActionViewItem{constructor(e,t,i,n,s,r,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.MutableDisposable),this._altKey=o.ModifierKeyEmitter.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return k(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(u.isWindows||u.isLinux)&&this._altKey.keyStatus.shiftKey,n=()=>{var e;let o=t&&i&&!!(null===(e=this._commandAction.alt)||void 0===e?void 0:e.enabled);o!==this._wantsAltCommand&&(this._wantsAltCommand=o,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{i=e.altKey||(u.isWindows||u.isLinux)&&e.shiftKey,n()})),this._register((0,o.addDisposableListener)(e,"mouseleave",e=>{t=!1,n()})),this._register((0,o.addDisposableListener)(e,"mouseenter",e=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),o=this._commandAction.tooltip||this._commandAction.label,n=i?(0,d.localize)("titleAndKb","{0} ({1})",o,i):o;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){let e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),o=i?(0,d.localize)("titleAndKb","{0} ({1})",e,i):e;n=(0,d.localize)("titleAndKbAndAlt","{0}\n[{1}] {2}",n,l.UILabelProvider.modifierLabels[u.OS].altKey,o)}return n}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;let{element:i,label:n}=this;if(!i||!n)return;let s=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(s){if(y.ThemeIcon.isThemeIcon(s)){let e=y.ThemeIcon.asClassNameArray(s);n.classList.add(...e),this._itemClassDispose.value=(0,c.toDisposable)(()=>{n.classList.remove(...e)})}else n.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(s.dark):(0,o.asCSSUrl)(s.light),n.classList.add("icon"),this._itemClassDispose.value=(0,c.combinedDisposable)((0,c.toDisposable)(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}}};I=S([w(2,f.IKeybindingService),w(3,b.INotificationService),w(4,m.IContextKeyService),w(5,y.IThemeService),w(6,g.IContextMenuService)],I);let L=class extends r.DropdownMenuActionViewItem{constructor(e,t,i,o){var n,s;super(e,{getActions:()=>e.actions},i,Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null!==(n=null==t?void 0:t.menuAsChild)&&void 0!==n&&n,classNames:null!==(s=null==t?void 0:t.classNames)&&void 0!==s?s:y.ThemeIcon.isThemeIcon(e.item.icon)?y.ThemeIcon.asClassName(e.item.icon):void 0})),this._contextMenuService=i,this._themeService=o}render(e){super.render(e),(0,v.assertType)(this.element),e.classList.add("menu-entry");let{icon:t}=this._action.item;if(t&&!y.ThemeIcon.isThemeIcon(t)){this.element.classList.add("icon");let e=()=>{this.element&&(this.element.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(t.dark):(0,o.asCSSUrl)(t.light))};e(),this._register(this._themeService.onDidColorThemeChange(()=>{e()}))}}};L=S([w(2,g.IContextMenuService),w(3,y.IThemeService)],L);let x=class extends s.BaseActionViewItem{constructor(e,t,i,o,n,s,l,c){var u,d,m;let g;super(null,e),this._keybindingService=i,this._notificationService=o,this._contextMenuService=n,this._menuService=s,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let p=c.get(this._storageKey,1);p&&(g=e.actions.find(e=>p===e.id)),!g&&(g=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,g,{keybinding:this._getDefaultActionKeybindingLabel(g)});let f=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(u=null==t?void 0:t.menuAsChild)||void 0===u||u,classNames:null!==(d=null==t?void 0:t.classNames)&&void 0!==d?d:["codicon","codicon-chevron-down"],actionRunner:null!==(m=null==t?void 0:t.actionRunner)&&void 0!==m?m:new a.ActionRunner});this._dropdown=new r.DropdownMenuActionViewItem(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof h.MenuItemAction&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.ActionRunner{runAction(e,t){return k(this,void 0,void 0,function*(){yield e.run(void 0)})}},this._container&&this._defaultAction.render((0,o.prepend)(this._container,(0,o.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){let t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let t=(0,o.$)(".action-container");this._defaultAction.render((0,o.append)(this._container,t)),this._register((0,o.addDisposableListener)(t,o.EventType.KEY_DOWN,e=>{let t=new n.StandardKeyboardEvent(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));let i=(0,o.$)(".dropdown-action-container");this._dropdown.render((0,o.append)(this._container,i)),this._register((0,o.addDisposableListener)(i,o.EventType.KEY_DOWN,e=>{var t;let i=new n.StandardKeyboardEvent(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function T(e,t,i){if(t instanceof h.MenuItemAction)return e.createInstance(I,t,i);if(t instanceof h.SubmenuItemAction)return t.item.rememberDefaultAction?e.createInstance(x,t,i):e.createInstance(L,t,i)}x=S([w(2,f.IKeybindingService),w(3,b.INotificationService),w(4,g.IContextMenuService),w(5,h.IMenuService),w(6,p.IInstantiationService),w(7,_.IStorageService)],x)},351553:function(e,t,i){"use strict";i.r(t),i.d(t,{IMenuService:function(){return f},MenuId:function(){return p},MenuItemAction:function(){return y},MenuRegistry:function(){return b},SubmenuItemAction:function(){return _},isIMenuItem:function(){return g}});var o=i("431453"),n=i("871628"),s=i("916904"),r=i("780189"),a=i("919527"),l=i("662300"),c=i("326896"),u=i("549436"),d=i("706301"),h=i("439703"),m=function(e,t){return function(i,o){t(i,o,e)}};function g(e){return void 0!==e.command}class p{constructor(e){if(p._instances.has(e))throw TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);p._instances.set(e,this),this.id=e}}p._instances=new Map,p.CommandPalette=new p("CommandPalette"),p.DebugBreakpointsContext=new p("DebugBreakpointsContext"),p.DebugCallStackContext=new p("DebugCallStackContext"),p.DebugConsoleContext=new p("DebugConsoleContext"),p.DebugVariablesContext=new p("DebugVariablesContext"),p.DebugWatchContext=new p("DebugWatchContext"),p.DebugToolBar=new p("DebugToolBar"),p.DebugToolBarStop=new p("DebugToolBarStop"),p.EditorContext=new p("EditorContext"),p.SimpleEditorContext=new p("SimpleEditorContext"),p.EditorContextCopy=new p("EditorContextCopy"),p.EditorContextPeek=new p("EditorContextPeek"),p.EditorContextShare=new p("EditorContextShare"),p.EditorTitle=new p("EditorTitle"),p.EditorTitleRun=new p("EditorTitleRun"),p.EditorTitleContext=new p("EditorTitleContext"),p.EmptyEditorGroup=new p("EmptyEditorGroup"),p.EmptyEditorGroupContext=new p("EmptyEditorGroupContext"),p.ExplorerContext=new p("ExplorerContext"),p.ExtensionContext=new p("ExtensionContext"),p.GlobalActivity=new p("GlobalActivity"),p.CommandCenter=new p("CommandCenter"),p.LayoutControlMenuSubmenu=new p("LayoutControlMenuSubmenu"),p.LayoutControlMenu=new p("LayoutControlMenu"),p.MenubarMainMenu=new p("MenubarMainMenu"),p.MenubarAppearanceMenu=new p("MenubarAppearanceMenu"),p.MenubarDebugMenu=new p("MenubarDebugMenu"),p.MenubarEditMenu=new p("MenubarEditMenu"),p.MenubarCopy=new p("MenubarCopy"),p.MenubarFileMenu=new p("MenubarFileMenu"),p.MenubarGoMenu=new p("MenubarGoMenu"),p.MenubarHelpMenu=new p("MenubarHelpMenu"),p.MenubarLayoutMenu=new p("MenubarLayoutMenu"),p.MenubarNewBreakpointMenu=new p("MenubarNewBreakpointMenu"),p.MenubarPanelAlignmentMenu=new p("MenubarPanelAlignmentMenu"),p.MenubarPanelPositionMenu=new p("MenubarPanelPositionMenu"),p.MenubarPreferencesMenu=new p("MenubarPreferencesMenu"),p.MenubarRecentMenu=new p("MenubarRecentMenu"),p.MenubarSelectionMenu=new p("MenubarSelectionMenu"),p.MenubarShare=new p("MenubarShare"),p.MenubarSwitchEditorMenu=new p("MenubarSwitchEditorMenu"),p.MenubarSwitchGroupMenu=new p("MenubarSwitchGroupMenu"),p.MenubarTerminalMenu=new p("MenubarTerminalMenu"),p.MenubarViewMenu=new p("MenubarViewMenu"),p.MenubarHomeMenu=new p("MenubarHomeMenu"),p.OpenEditorsContext=new p("OpenEditorsContext"),p.ProblemsPanelContext=new p("ProblemsPanelContext"),p.SCMChangeContext=new p("SCMChangeContext"),p.SCMResourceContext=new p("SCMResourceContext"),p.SCMResourceFolderContext=new p("SCMResourceFolderContext"),p.SCMResourceGroupContext=new p("SCMResourceGroupContext"),p.SCMSourceControl=new p("SCMSourceControl"),p.SCMTitle=new p("SCMTitle"),p.SearchContext=new p("SearchContext"),p.StatusBarWindowIndicatorMenu=new p("StatusBarWindowIndicatorMenu"),p.StatusBarRemoteIndicatorMenu=new p("StatusBarRemoteIndicatorMenu"),p.TestItem=new p("TestItem"),p.TestItemGutter=new p("TestItemGutter"),p.TestPeekElement=new p("TestPeekElement"),p.TestPeekTitle=new p("TestPeekTitle"),p.TouchBarContext=new p("TouchBarContext"),p.TitleBarContext=new p("TitleBarContext"),p.TitleBarTitleContext=new p("TitleBarTitleContext"),p.TunnelContext=new p("TunnelContext"),p.TunnelPrivacy=new p("TunnelPrivacy"),p.TunnelProtocol=new p("TunnelProtocol"),p.TunnelPortInline=new p("TunnelInline"),p.TunnelTitle=new p("TunnelTitle"),p.TunnelLocalAddressInline=new p("TunnelLocalAddressInline"),p.TunnelOriginInline=new p("TunnelOriginInline"),p.ViewItemContext=new p("ViewItemContext"),p.ViewContainerTitle=new p("ViewContainerTitle"),p.ViewContainerTitleContext=new p("ViewContainerTitleContext"),p.ViewTitle=new p("ViewTitle"),p.ViewTitleContext=new p("ViewTitleContext"),p.CommentThreadTitle=new p("CommentThreadTitle"),p.CommentThreadActions=new p("CommentThreadActions"),p.CommentTitle=new p("CommentTitle"),p.CommentActions=new p("CommentActions"),p.InteractiveToolbar=new p("InteractiveToolbar"),p.InteractiveCellTitle=new p("InteractiveCellTitle"),p.InteractiveCellDelete=new p("InteractiveCellDelete"),p.InteractiveCellExecute=new p("InteractiveCellExecute"),p.InteractiveInputExecute=new p("InteractiveInputExecute"),p.NotebookToolbar=new p("NotebookToolbar"),p.NotebookCellTitle=new p("NotebookCellTitle"),p.NotebookCellDelete=new p("NotebookCellDelete"),p.NotebookCellInsert=new p("NotebookCellInsert"),p.NotebookCellBetween=new p("NotebookCellBetween"),p.NotebookCellListTop=new p("NotebookCellTop"),p.NotebookCellExecute=new p("NotebookCellExecute"),p.NotebookCellExecutePrimary=new p("NotebookCellExecutePrimary"),p.NotebookDiffCellInputTitle=new p("NotebookDiffCellInputTitle"),p.NotebookDiffCellMetadataTitle=new p("NotebookDiffCellMetadataTitle"),p.NotebookDiffCellOutputsTitle=new p("NotebookDiffCellOutputsTitle"),p.NotebookOutputToolbar=new p("NotebookOutputToolbar"),p.NotebookEditorLayoutConfigure=new p("NotebookEditorLayoutConfigure"),p.NotebookKernelSource=new p("NotebookKernelSource"),p.BulkEditTitle=new p("BulkEditTitle"),p.BulkEditContext=new p("BulkEditContext"),p.TimelineItemContext=new p("TimelineItemContext"),p.TimelineTitle=new p("TimelineTitle"),p.TimelineTitleContext=new p("TimelineTitleContext"),p.TimelineFilterSubMenu=new p("TimelineFilterSubMenu"),p.AccountsContext=new p("AccountsContext"),p.PanelTitle=new p("PanelTitle"),p.AuxiliaryBarTitle=new p("AuxiliaryBarTitle"),p.TerminalInstanceContext=new p("TerminalInstanceContext"),p.TerminalEditorInstanceContext=new p("TerminalEditorInstanceContext"),p.TerminalNewDropdownContext=new p("TerminalNewDropdownContext"),p.TerminalTabContext=new p("TerminalTabContext"),p.TerminalTabEmptyAreaContext=new p("TerminalTabEmptyAreaContext"),p.TerminalInlineTabContext=new p("TerminalInlineTabContext"),p.WebviewContext=new p("WebviewContext"),p.InlineCompletionsActions=new p("InlineCompletionsActions"),p.NewFile=new p("NewFile"),p.MergeToolbar=new p("MergeToolbar"),p.MergeInput1Toolbar=new p("MergeToolbar1Toolbar"),p.MergeInput2Toolbar=new p("MergeToolbar2Toolbar");let f=(0,d.createDecorator)("menuService"),b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===p.CommandPalette}}addCommand(e){return this.addCommands(r.Iterable.single(e))}addCommands(e){for(let t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,a.toDisposable)(()=>{let t=!1;for(let i of e)t=this._commands.delete(i.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;return this._commands.forEach((t,i)=>e.set(i,t)),e}appendMenuItem(e,t){return this.appendMenuItems(r.Iterable.single({id:e,item:t}))}appendMenuItems(e){let t=new Set,i=new l.LinkedList;for(let{id:o,item:n}of e){let e=this._menuItems.get(o);!e&&(e=new l.LinkedList,this._menuItems.set(o,e)),i.push(e.push(n)),t.add(o)}return this._onDidChangeMenu.fire(t),(0,a.toDisposable)(()=>{if(i.size>0){for(let e of i)e();this._onDidChangeMenu.fire(t),i.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===p.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){let t=new Set;for(let i of e)g(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach((i,o)=>{!t.has(o)&&e.push({command:i})})}};class _ extends o.SubmenuAction{constructor(e,t,i,o){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=o}get actions(){let e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);for(let[,n]of(t.dispose(),i))n.length>0&&(e.push(...n),e.push(new o.Separator));return e.length&&e.pop(),e}}let y=class e{constructor(t,i,o,s,r,a){var l,c;if(this.hideActions=s,this._commandService=a,this.id=t.id,this.label=(null==o?void 0:o.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(c="string"==typeof t.tooltip?t.tooltip:null===(l=t.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){let e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=r.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=i?new e(i,void 0,o,s,r,a):void 0,this._options=o,h.ThemeIcon.isThemeIcon(t.icon)&&(this.class=n.CSSIcon.asClassName(t.icon))}dispose(){}run(...e){var t,i;let o=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(o=[...o,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(o=[...o,...e]),this._commandService.executeCommand(this.id,...o)}};y=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([m(4,u.IContextKeyService),m(5,c.ICommandService)],y)},691125:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return u},OVERRIDE_PROPERTY_REGEX:function(){return S},overrideIdentifiersFromKey:function(){return w}});var o=i("603868"),n=i("916904"),s=i("744138"),r=i("708339"),a=i("753861"),l=i("629711"),c=i("112721");let u={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.Registry.as(l.Extensions.JSONContribution),y="\\[([^\\]]+)\\]",C=RegExp(y,"g"),v=`^(${y})+$`,S=new RegExp(v);function w(e){let t=[];if(S.test(e)){let i=C.exec(e);for(;null==i?void 0:i.length;){let o=i[1].trim();o&&t.push(o),i=C.exec(e)}}return(0,o.distinct)(t)}let k=new class e{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.Emitter,this._onDidUpdateConfiguration=new n.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.localize("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=this.doRegisterConfigurations(e,t);_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;let i=[],o=[];for(let{overrides:n,source:l}of e)for(let e in n)if(i.push(e),S.test(e)){let i=this.configurationDefaultsOverrides.get(e),c=null!==(t=null==i?void 0:i.valuesSources)&&void 0!==t?t:new Map;if(l)for(let t of Object.keys(n[e]))c.set(t,l);let u=Object.assign(Object.assign({},(null==i?void 0:i.value)||{}),n[e]);this.configurationDefaultsOverrides.set(e,{source:l,value:u,valuesSources:c});let d=(0,a.getLanguageTagSettingPlainKey)(e),h={type:"object",default:u,description:r.localize("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",d),$ref:b,defaultDefaultValue:u,source:s.isString(l)?void 0:l,defaultValueSource:l};o.push(...w(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:n[e],source:l});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.registerOverrideIdentifiers(o),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){let i=[];return e.forEach(e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),i}validateAndRegisterProperties(e,t=!0,i,o,n=3){var a;n=s.isUndefinedOrNull(e.scope)?n:e.scope;let l=[],c=e.properties;if(c)for(let e in c){let u=c[e];if(t&&function(e,t){var i,o,n,s;return e.trim()?S.test(e)?r.localize("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==k.getConfigurationProperties()[e]?r.localize("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==k.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)?r.localize("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(n=t.policy)||void 0===n?void 0:n.name,k.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)):null:r.localize("config.property.empty","Cannot register an empty property")}(e,u)){delete c[e];continue}if(u.source=i,u.defaultDefaultValue=c[e].default,this.updatePropertyDefaultValue(e,u),S.test(e)?u.scope=void 0:(u.scope=s.isUndefinedOrNull(u.scope)?n:u.scope,u.restricted=s.isUndefinedOrNull(u.restricted)?!!(null==o?void 0:o.includes(e)):u.restricted),c[e].hasOwnProperty("included")&&!c[e].included){this.excludedConfigurationProperties[e]=c[e],delete c[e];continue}this.configurationProperties[e]=c[e],(null===(a=c[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(c[e].policy.name,e);!c[e].deprecationMessage&&c[e].markdownDeprecationMessage&&(c[e].deprecationMessage=c[e].markdownDeprecationMessage),l.push(e)}let u=e.allOf;if(u)for(let e of u)l.push(...this.validateAndRegisterProperties(e,t,i,o,n));return l}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let o=e.allOf;null==o||o.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:h.properties[e]=t;break;case 2:m.properties[e]=t;break;case 6:g.properties[e]=t;break;case 3:p.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:r.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,h.properties[t]=i,m.properties[t]=i,g.properties[t]=i,p.properties[t]=i,f.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){let e={type:"object",description:r.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};d.patternProperties[v]=e,h.patternProperties[v]=e,m.patternProperties[v]=e,g.patternProperties[v]=e,p.patternProperties[v]=e,f.patternProperties[v]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),o=null==i?void 0:i.value,n=null==i?void 0:i.source;s.isUndefined(o)&&(o=t.defaultDefaultValue,n=void 0),s.isUndefined(o)&&(o=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=o,t.defaultValueSource=n}};c.Registry.add(u.Configuration,k)},629711:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return s}});var o=i("916904"),n=i("112721");let s={JSONContribution:"base.contributions.json"},r=new class e{constructor(){this._onDidChangeSchema=new o.Emitter,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e).length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.Registry.add(s.JSONContribution,r)},568031:function(e,t,i){"use strict";i.r(t),i.d(t,{ILabelService:function(){return o}});let o=(0,i("706301").createDecorator)("labelService")},180204:function(e,t,i){"use strict";i.r(t),i.d(t,{IOpenerService:function(){return l},NullOpenerService:function(){return c},extractSelection:function(){return h},matchesScheme:function(){return u},matchesSomeScheme:function(){return d}});var o=i("919527"),n=i("266763"),s=i("938505"),r=i("706301"),a=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let l=(0,r.createDecorator)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:()=>o.Disposable.None,registerValidator:()=>o.Disposable.None,registerExternalUriResolver:()=>o.Disposable.None,setDefaultExternalOpener(){},registerExternalOpener:()=>o.Disposable.None,open(){return a(this,void 0,void 0,function*(){return!1})},resolveExternalUri(e){return a(this,void 0,void 0,function*(){return{resolved:e,dispose(){}}})}});function u(e,t){return s.URI.isUri(e)?(0,n.equalsIgnoreCase)(e.scheme,t):(0,n.startsWithIgnoreCase)(e,t+":")}function d(e,...t){return t.some(t=>u(e,t))}function h(e){let t;let i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},795827:function(e,t,i){"use strict";i.r(t);var o=i("161111"),n=i("919527"),s=i("24342"),r=i("596608"),a=i("708339"),l=i("664641"),c=i("772243"),u=i("297669"),d=i("852365"),h=function(e,t){return function(i,o){t(i,o,e)}},m=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};function g(e){return e.scheme===s.Schemas.file?e.fsPath:e.path}let p=0;class f{constructor(e,t,i,o,n,s,r){this.id=++p,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=o,this.groupOrder=n,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class b{constructor(e,t){this.resourceLabel=e,this.reason=t}}class _{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push(a.localize({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(a.localize({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class y{constructor(e,t,i,o,n,s,r){this.id=++p,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=o,this.groupOrder=n,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){!this.removedResources&&(this.removedResources=new _),!this.removedResources.has(t)&&this.removedResources.set(t,new b(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(!this.invalidatedResources&&(this.invalidatedResources=new _),!this.invalidatedResources.has(t)&&this.invalidatedResources.set(t,new b(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class C{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,i=this._past.length;e<i;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new d.ResourceEditStackSnapshot(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,o=0,n=-1;for(let s=0,r=this._past.length;s<r;s++,o++){let r=this._past[s];i&&(o>=t||r.id!==e.elements[o])&&(i=!1,n=0),!i&&1===r.type&&r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let n=this._future.length-1;n>=0;n--,o++){let r=this._future[n];i&&(o>=t||r.id!==e.elements[o])&&(i=!1,s=n),!i&&1===r.type&&r.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class v{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}let S=new C("","");S.locked=!0;let w=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e,t=d.UndoRedoGroup.None,i=d.UndoRedoSource.None){if(0===e.type){let o=g(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new f(e,o,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let o=new Set,n=[],s=[];for(let t of e.resources){let e=g(t),i=this.getUriComparisonKey(t);!o.has(i)&&(o.add(i),n.push(e),s.push(i))}1===n.length?this._pushElement(new f(e,n[0],s[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new y(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let i;let o=e.resourceLabels[t],n=e.strResources[t];this._editStacks.has(n)?i=this._editStacks.get(n):(i=new C(o,n),this._editStacks.set(n,i)),i.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let e=this._editStacks.get(t);if(e.hasFutureElements())return null;let i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=g(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitPastWorkspaceElement(e,o)}}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=g(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitFutureWorkspaceElement(e,o)}}removeElements(e){let t="string"==typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let o=this.getUriComparisonKey(e);this._editStacks.has(o)&&this._editStacks.get(o).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new d.ResourceEditStackSnapshot(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestPastElement();s&&s.sourceId===e&&(!t||s.sourceOrder>t.sourceOrder)&&(t=s,i=o)}return[t,i]}canUndo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){for(let i of((0,o.onUnexpectedError)(e),t.strResources))this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,o,n){let s;let r=this._acquireLocks(i);try{s=t()}catch(t){return r(),o.dispose(),this._onError(t,e)}return s?s.then(()=>(r(),o.dispose(),n()),t=>(r(),o.dispose(),this._onError(t,e))):(r(),o.dispose(),n())}_invokeWorkspacePrepare(e){return m(this,void 0,void 0,function*(){if(void 0===e.actual.prepareUndoRedo)return n.Disposable.None;let t=e.actual.prepareUndoRedo();return void 0===t?n.Disposable.None:t})}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(n.Disposable.None);let i=e.actual.prepareUndoRedo();return i?(0,n.isDisposable)(i)?t(i):i.then(e=>t(e)):t(n.Disposable.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||S);return new v(t)}_tryToSplitAndUndo(e,t,i,o){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(o),new k(this._undo(e,0,!0));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new k}_checkWorkspaceUndo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestPastElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let s=[];for(let e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let o=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,o,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,o,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,o){return m(this,void 0,void 0,function*(){let n;if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n=yield this._dialogService.show(r.default.Info,a.localize("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[a.localize({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),a.localize("nok","Undo this File"),a.localize("cancel","Cancel")],{cancelId:2});if(2===n.choice)return;if(1===n.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let s=this._checkWorkspaceUndo(e,t,i,!1);if(s)return s.returnValue;o=!0}try{n=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(let e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,n,()=>this._continueUndoInGroup(t.groupId,o))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,o=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new v([e]),o,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=o)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let o=this._editStacks.get(e),n=o.getClosestPastElement();if(!!n){if(n.groupId){let[e,o]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&o)return this._undo(o,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);if(1===n.type)return this._workspaceUndo(e,n,i);return this._resourceUndo(o,n,i)}}_confirmAndContinueUndo(e,t,i){return m(this,void 0,void 0,function*(){if(1!==(yield this._dialogService.show(r.default.Info,a.localize("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[a.localize("confirmDifferentSource.yes","Yes"),a.localize("confirmDifferentSource.no","No")],{cancelId:1})).choice)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder<t.sourceOrder)&&(t=s,i=o)}return[t,i]}canRedo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements()}_tryToSplitAndRedo(e,t,i,o){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(o),new k(this._redo(e));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new k}_checkWorkspaceRedo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestFutureElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let s=[];for(let e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),o=this._checkWorkspaceRedo(e,t,i,!1);return o?o.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return m(this,void 0,void 0,function*(){let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return o.dispose(),n.returnValue;for(let e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,o,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new v([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder<t.groupOrder)&&(t=s,i=o)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}if(1===i.type)return this._workspaceRedo(e,i);return this._resourceRedo(t,i)}}};w=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,l.IDialogService),h(1,u.INotificationService)],w);class k{constructor(e){this.returnValue=e}}(0,c.registerSingleton)(d.IUndoRedoService,w)},507307:function(e,t,i){"use strict";i.r(t),i.d(t,{IWorkspaceContextService:function(){return s},WORKSPACE_EXTENSION:function(){return c},WorkspaceFolder:function(){return l},isSingleFolderWorkspaceIdentifier:function(){return r},toWorkspaceIdentifier:function(){return a}});var o=i("708339");i("834289");var n=i("938505");let s=(0,i("706301").createDecorator)("contextService");function r(e){return"string"==typeof(null==e?void 0:e.id)&&n.URI.isUri(e.uri)}function a(e){return e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:void 0}class l{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}let c="code-workspace";(0,o.localize)("codeWorkspace","Code Workspace")},631412:function(e){},403905:function(e){},466599:function(e){},671651:function(e){},240091:function(e){},392444:function(e){},105088:function(e){},867831:function(e){},610049:function(e){}}]);
|
|
395
|
+
${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},182498:function(e,t,i){"use strict";i.r(t),i.d(t,{MenuEntryActionViewItem:function(){return I},createActionViewItem:function(){return T},createAndFillInActionBarActions:function(){return E}});var o=i("409737"),n=i("85763"),s=i("268587"),r=i("998200"),a=i("431453"),l=i("102881"),c=i("919527"),u=i("207875");i("519625");var d=i("708339"),h=i("351553"),m=i("549436"),g=i("158935"),p=i("706301"),f=i("534752"),b=i("297669"),_=i("243692"),y=i("439703"),C=i("774697"),v=i("744138"),S=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,o){t(i,o,e)}},k=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};function E(e,t,i,o,n,s,r){let l=e.getActions(t);return function(e,t,i,o=e=>"navigation"===e,n=Number.MAX_SAFE_INTEGER,s=()=>!1,r=!1){let l,c;Array.isArray(t)?(l=t,c=t):(l=t.primary,c=t.secondary);let u=new Set;for(let[t,n]of e){let e;for(let s of(o(t)?(e=l).length>0&&r&&e.push(new a.Separator):(e=c).length>0&&e.push(new a.Separator),n)){i&&(s=s instanceof h.MenuItemAction&&s.alt?s.alt:s);let o=e.push(s);s instanceof a.SubmenuAction&&u.add({group:t,action:s,index:o-1})}}for(let{group:e,action:t,index:i}of u){let r=o(e)?l:c,a=t.actions;(a.length<=1||r.length+a.length-2<=n)&&s(t,e,r.length)&&r.splice(i,1,...a)}if(l!==c&&l.length>n){let e=l.splice(n,l.length-n);c.unshift(...e,new a.Separator)}}(l,i,!1,"string"==typeof o?e=>e===o:o,n,s,r),function(e){let t=new c.DisposableStore;for(let[,i]of e)for(let e of i)t.add(e);return t}(l)}let I=class extends s.ActionViewItem{constructor(e,t,i,n,s,r,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.MutableDisposable),this._altKey=o.ModifierKeyEmitter.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return k(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(u.isWindows||u.isLinux)&&this._altKey.keyStatus.shiftKey,n=()=>{var e;let o=t&&i&&!!(null===(e=this._commandAction.alt)||void 0===e?void 0:e.enabled);o!==this._wantsAltCommand&&(this._wantsAltCommand=o,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{i=e.altKey||(u.isWindows||u.isLinux)&&e.shiftKey,n()})),this._register((0,o.addDisposableListener)(e,"mouseleave",e=>{t=!1,n()})),this._register((0,o.addDisposableListener)(e,"mouseenter",e=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),o=this._commandAction.tooltip||this._commandAction.label,n=i?(0,d.localize)("titleAndKb","{0} ({1})",o,i):o;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){let e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),o=i?(0,d.localize)("titleAndKb","{0} ({1})",e,i):e;n=(0,d.localize)("titleAndKbAndAlt","{0}\n[{1}] {2}",n,l.UILabelProvider.modifierLabels[u.OS].altKey,o)}return n}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;let{element:i,label:n}=this;if(!i||!n)return;let s=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(s){if(y.ThemeIcon.isThemeIcon(s)){let e=y.ThemeIcon.asClassNameArray(s);n.classList.add(...e),this._itemClassDispose.value=(0,c.toDisposable)(()=>{n.classList.remove(...e)})}else n.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(s.dark):(0,o.asCSSUrl)(s.light),n.classList.add("icon"),this._itemClassDispose.value=(0,c.combinedDisposable)((0,c.toDisposable)(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}}};I=S([w(2,f.IKeybindingService),w(3,b.INotificationService),w(4,m.IContextKeyService),w(5,y.IThemeService),w(6,g.IContextMenuService)],I);let L=class extends r.DropdownMenuActionViewItem{constructor(e,t,i,o){var n,s;super(e,{getActions:()=>e.actions},i,Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null!==(n=null==t?void 0:t.menuAsChild)&&void 0!==n&&n,classNames:null!==(s=null==t?void 0:t.classNames)&&void 0!==s?s:y.ThemeIcon.isThemeIcon(e.item.icon)?y.ThemeIcon.asClassName(e.item.icon):void 0})),this._contextMenuService=i,this._themeService=o}render(e){super.render(e),(0,v.assertType)(this.element),e.classList.add("menu-entry");let{icon:t}=this._action.item;if(t&&!y.ThemeIcon.isThemeIcon(t)){this.element.classList.add("icon");let e=()=>{this.element&&(this.element.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(t.dark):(0,o.asCSSUrl)(t.light))};e(),this._register(this._themeService.onDidColorThemeChange(()=>{e()}))}}};L=S([w(2,g.IContextMenuService),w(3,y.IThemeService)],L);let x=class extends s.BaseActionViewItem{constructor(e,t,i,o,n,s,l,c){var u,d,m;let g;super(null,e),this._keybindingService=i,this._notificationService=o,this._contextMenuService=n,this._menuService=s,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let p=c.get(this._storageKey,1);p&&(g=e.actions.find(e=>p===e.id)),!g&&(g=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,g,{keybinding:this._getDefaultActionKeybindingLabel(g)});let f=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(u=null==t?void 0:t.menuAsChild)||void 0===u||u,classNames:null!==(d=null==t?void 0:t.classNames)&&void 0!==d?d:["codicon","codicon-chevron-down"],actionRunner:null!==(m=null==t?void 0:t.actionRunner)&&void 0!==m?m:new a.ActionRunner});this._dropdown=new r.DropdownMenuActionViewItem(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof h.MenuItemAction&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.ActionRunner{runAction(e,t){return k(this,void 0,void 0,function*(){yield e.run(void 0)})}},this._container&&this._defaultAction.render((0,o.prepend)(this._container,(0,o.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){let t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let t=(0,o.$)(".action-container");this._defaultAction.render((0,o.append)(this._container,t)),this._register((0,o.addDisposableListener)(t,o.EventType.KEY_DOWN,e=>{let t=new n.StandardKeyboardEvent(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));let i=(0,o.$)(".dropdown-action-container");this._dropdown.render((0,o.append)(this._container,i)),this._register((0,o.addDisposableListener)(i,o.EventType.KEY_DOWN,e=>{var t;let i=new n.StandardKeyboardEvent(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function T(e,t,i){if(t instanceof h.MenuItemAction)return e.createInstance(I,t,i);if(t instanceof h.SubmenuItemAction)return t.item.rememberDefaultAction?e.createInstance(x,t,i):e.createInstance(L,t,i)}x=S([w(2,f.IKeybindingService),w(3,b.INotificationService),w(4,g.IContextMenuService),w(5,h.IMenuService),w(6,p.IInstantiationService),w(7,_.IStorageService)],x)},351553:function(e,t,i){"use strict";i.r(t),i.d(t,{IMenuService:function(){return f},MenuId:function(){return p},MenuItemAction:function(){return y},MenuRegistry:function(){return b},SubmenuItemAction:function(){return _},isIMenuItem:function(){return g}});var o=i("431453"),n=i("871628"),s=i("916904"),r=i("780189"),a=i("919527"),l=i("662300"),c=i("326896"),u=i("549436"),d=i("706301"),h=i("439703"),m=function(e,t){return function(i,o){t(i,o,e)}};function g(e){return void 0!==e.command}class p{constructor(e){if(p._instances.has(e))throw TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);p._instances.set(e,this),this.id=e}}p._instances=new Map,p.CommandPalette=new p("CommandPalette"),p.DebugBreakpointsContext=new p("DebugBreakpointsContext"),p.DebugCallStackContext=new p("DebugCallStackContext"),p.DebugConsoleContext=new p("DebugConsoleContext"),p.DebugVariablesContext=new p("DebugVariablesContext"),p.DebugWatchContext=new p("DebugWatchContext"),p.DebugToolBar=new p("DebugToolBar"),p.DebugToolBarStop=new p("DebugToolBarStop"),p.EditorContext=new p("EditorContext"),p.SimpleEditorContext=new p("SimpleEditorContext"),p.EditorContextCopy=new p("EditorContextCopy"),p.EditorContextPeek=new p("EditorContextPeek"),p.EditorContextShare=new p("EditorContextShare"),p.EditorTitle=new p("EditorTitle"),p.EditorTitleRun=new p("EditorTitleRun"),p.EditorTitleContext=new p("EditorTitleContext"),p.EmptyEditorGroup=new p("EmptyEditorGroup"),p.EmptyEditorGroupContext=new p("EmptyEditorGroupContext"),p.ExplorerContext=new p("ExplorerContext"),p.ExtensionContext=new p("ExtensionContext"),p.GlobalActivity=new p("GlobalActivity"),p.CommandCenter=new p("CommandCenter"),p.LayoutControlMenuSubmenu=new p("LayoutControlMenuSubmenu"),p.LayoutControlMenu=new p("LayoutControlMenu"),p.MenubarMainMenu=new p("MenubarMainMenu"),p.MenubarAppearanceMenu=new p("MenubarAppearanceMenu"),p.MenubarDebugMenu=new p("MenubarDebugMenu"),p.MenubarEditMenu=new p("MenubarEditMenu"),p.MenubarCopy=new p("MenubarCopy"),p.MenubarFileMenu=new p("MenubarFileMenu"),p.MenubarGoMenu=new p("MenubarGoMenu"),p.MenubarHelpMenu=new p("MenubarHelpMenu"),p.MenubarLayoutMenu=new p("MenubarLayoutMenu"),p.MenubarNewBreakpointMenu=new p("MenubarNewBreakpointMenu"),p.MenubarPanelAlignmentMenu=new p("MenubarPanelAlignmentMenu"),p.MenubarPanelPositionMenu=new p("MenubarPanelPositionMenu"),p.MenubarPreferencesMenu=new p("MenubarPreferencesMenu"),p.MenubarRecentMenu=new p("MenubarRecentMenu"),p.MenubarSelectionMenu=new p("MenubarSelectionMenu"),p.MenubarShare=new p("MenubarShare"),p.MenubarSwitchEditorMenu=new p("MenubarSwitchEditorMenu"),p.MenubarSwitchGroupMenu=new p("MenubarSwitchGroupMenu"),p.MenubarTerminalMenu=new p("MenubarTerminalMenu"),p.MenubarViewMenu=new p("MenubarViewMenu"),p.MenubarHomeMenu=new p("MenubarHomeMenu"),p.OpenEditorsContext=new p("OpenEditorsContext"),p.ProblemsPanelContext=new p("ProblemsPanelContext"),p.SCMChangeContext=new p("SCMChangeContext"),p.SCMResourceContext=new p("SCMResourceContext"),p.SCMResourceFolderContext=new p("SCMResourceFolderContext"),p.SCMResourceGroupContext=new p("SCMResourceGroupContext"),p.SCMSourceControl=new p("SCMSourceControl"),p.SCMTitle=new p("SCMTitle"),p.SearchContext=new p("SearchContext"),p.StatusBarWindowIndicatorMenu=new p("StatusBarWindowIndicatorMenu"),p.StatusBarRemoteIndicatorMenu=new p("StatusBarRemoteIndicatorMenu"),p.TestItem=new p("TestItem"),p.TestItemGutter=new p("TestItemGutter"),p.TestPeekElement=new p("TestPeekElement"),p.TestPeekTitle=new p("TestPeekTitle"),p.TouchBarContext=new p("TouchBarContext"),p.TitleBarContext=new p("TitleBarContext"),p.TitleBarTitleContext=new p("TitleBarTitleContext"),p.TunnelContext=new p("TunnelContext"),p.TunnelPrivacy=new p("TunnelPrivacy"),p.TunnelProtocol=new p("TunnelProtocol"),p.TunnelPortInline=new p("TunnelInline"),p.TunnelTitle=new p("TunnelTitle"),p.TunnelLocalAddressInline=new p("TunnelLocalAddressInline"),p.TunnelOriginInline=new p("TunnelOriginInline"),p.ViewItemContext=new p("ViewItemContext"),p.ViewContainerTitle=new p("ViewContainerTitle"),p.ViewContainerTitleContext=new p("ViewContainerTitleContext"),p.ViewTitle=new p("ViewTitle"),p.ViewTitleContext=new p("ViewTitleContext"),p.CommentThreadTitle=new p("CommentThreadTitle"),p.CommentThreadActions=new p("CommentThreadActions"),p.CommentTitle=new p("CommentTitle"),p.CommentActions=new p("CommentActions"),p.InteractiveToolbar=new p("InteractiveToolbar"),p.InteractiveCellTitle=new p("InteractiveCellTitle"),p.InteractiveCellDelete=new p("InteractiveCellDelete"),p.InteractiveCellExecute=new p("InteractiveCellExecute"),p.InteractiveInputExecute=new p("InteractiveInputExecute"),p.NotebookToolbar=new p("NotebookToolbar"),p.NotebookCellTitle=new p("NotebookCellTitle"),p.NotebookCellDelete=new p("NotebookCellDelete"),p.NotebookCellInsert=new p("NotebookCellInsert"),p.NotebookCellBetween=new p("NotebookCellBetween"),p.NotebookCellListTop=new p("NotebookCellTop"),p.NotebookCellExecute=new p("NotebookCellExecute"),p.NotebookCellExecutePrimary=new p("NotebookCellExecutePrimary"),p.NotebookDiffCellInputTitle=new p("NotebookDiffCellInputTitle"),p.NotebookDiffCellMetadataTitle=new p("NotebookDiffCellMetadataTitle"),p.NotebookDiffCellOutputsTitle=new p("NotebookDiffCellOutputsTitle"),p.NotebookOutputToolbar=new p("NotebookOutputToolbar"),p.NotebookEditorLayoutConfigure=new p("NotebookEditorLayoutConfigure"),p.NotebookKernelSource=new p("NotebookKernelSource"),p.BulkEditTitle=new p("BulkEditTitle"),p.BulkEditContext=new p("BulkEditContext"),p.TimelineItemContext=new p("TimelineItemContext"),p.TimelineTitle=new p("TimelineTitle"),p.TimelineTitleContext=new p("TimelineTitleContext"),p.TimelineFilterSubMenu=new p("TimelineFilterSubMenu"),p.AccountsContext=new p("AccountsContext"),p.PanelTitle=new p("PanelTitle"),p.AuxiliaryBarTitle=new p("AuxiliaryBarTitle"),p.TerminalInstanceContext=new p("TerminalInstanceContext"),p.TerminalEditorInstanceContext=new p("TerminalEditorInstanceContext"),p.TerminalNewDropdownContext=new p("TerminalNewDropdownContext"),p.TerminalTabContext=new p("TerminalTabContext"),p.TerminalTabEmptyAreaContext=new p("TerminalTabEmptyAreaContext"),p.TerminalInlineTabContext=new p("TerminalInlineTabContext"),p.WebviewContext=new p("WebviewContext"),p.InlineCompletionsActions=new p("InlineCompletionsActions"),p.NewFile=new p("NewFile"),p.MergeToolbar=new p("MergeToolbar"),p.MergeInput1Toolbar=new p("MergeToolbar1Toolbar"),p.MergeInput2Toolbar=new p("MergeToolbar2Toolbar");let f=(0,d.createDecorator)("menuService"),b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===p.CommandPalette}}addCommand(e){return this.addCommands(r.Iterable.single(e))}addCommands(e){for(let t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,a.toDisposable)(()=>{let t=!1;for(let i of e)t=this._commands.delete(i.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;return this._commands.forEach((t,i)=>e.set(i,t)),e}appendMenuItem(e,t){return this.appendMenuItems(r.Iterable.single({id:e,item:t}))}appendMenuItems(e){let t=new Set,i=new l.LinkedList;for(let{id:o,item:n}of e){let e=this._menuItems.get(o);!e&&(e=new l.LinkedList,this._menuItems.set(o,e)),i.push(e.push(n)),t.add(o)}return this._onDidChangeMenu.fire(t),(0,a.toDisposable)(()=>{if(i.size>0){for(let e of i)e();this._onDidChangeMenu.fire(t),i.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===p.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){let t=new Set;for(let i of e)g(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach((i,o)=>{!t.has(o)&&e.push({command:i})})}};class _ extends o.SubmenuAction{constructor(e,t,i,o){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=o}get actions(){let e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);for(let[,n]of(t.dispose(),i))n.length>0&&(e.push(...n),e.push(new o.Separator));return e.length&&e.pop(),e}}let y=class e{constructor(t,i,o,s,r,a){var l,c;if(this.hideActions=s,this._commandService=a,this.id=t.id,this.label=(null==o?void 0:o.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(c="string"==typeof t.tooltip?t.tooltip:null===(l=t.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){let e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=r.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=i?new e(i,void 0,o,s,r,a):void 0,this._options=o,h.ThemeIcon.isThemeIcon(t.icon)&&(this.class=n.CSSIcon.asClassName(t.icon))}dispose(){}run(...e){var t,i;let o=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(o=[...o,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(o=[...o,...e]),this._commandService.executeCommand(this.id,...o)}};y=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([m(4,u.IContextKeyService),m(5,c.ICommandService)],y)},691125:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return u},OVERRIDE_PROPERTY_REGEX:function(){return S},overrideIdentifiersFromKey:function(){return w}});var o=i("603868"),n=i("916904"),s=i("744138"),r=i("708339"),a=i("753861"),l=i("629711"),c=i("112721");let u={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.Registry.as(l.Extensions.JSONContribution),y="\\[([^\\]]+)\\]",C=RegExp(y,"g"),v=`^(${y})+$`,S=new RegExp(v);function w(e){let t=[];if(S.test(e)){let i=C.exec(e);for(;null==i?void 0:i.length;){let o=i[1].trim();o&&t.push(o),i=C.exec(e)}}return(0,o.distinct)(t)}let k=new class e{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.Emitter,this._onDidUpdateConfiguration=new n.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.localize("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=this.doRegisterConfigurations(e,t);_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;let i=[],o=[];for(let{overrides:n,source:l}of e)for(let e in n)if(i.push(e),S.test(e)){let i=this.configurationDefaultsOverrides.get(e),c=null!==(t=null==i?void 0:i.valuesSources)&&void 0!==t?t:new Map;if(l)for(let t of Object.keys(n[e]))c.set(t,l);let u=Object.assign(Object.assign({},(null==i?void 0:i.value)||{}),n[e]);this.configurationDefaultsOverrides.set(e,{source:l,value:u,valuesSources:c});let d=(0,a.getLanguageTagSettingPlainKey)(e),h={type:"object",default:u,description:r.localize("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",d),$ref:b,defaultDefaultValue:u,source:s.isString(l)?void 0:l,defaultValueSource:l};o.push(...w(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:n[e],source:l});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.registerOverrideIdentifiers(o),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){let i=[];return e.forEach(e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),i}validateAndRegisterProperties(e,t=!0,i,o,n=3){var a;n=s.isUndefinedOrNull(e.scope)?n:e.scope;let l=[],c=e.properties;if(c)for(let e in c){let u=c[e];if(t&&function(e,t){var i,o,n,s;return e.trim()?S.test(e)?r.localize("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==k.getConfigurationProperties()[e]?r.localize("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==k.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)?r.localize("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(n=t.policy)||void 0===n?void 0:n.name,k.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)):null:r.localize("config.property.empty","Cannot register an empty property")}(e,u)){delete c[e];continue}if(u.source=i,u.defaultDefaultValue=c[e].default,this.updatePropertyDefaultValue(e,u),S.test(e)?u.scope=void 0:(u.scope=s.isUndefinedOrNull(u.scope)?n:u.scope,u.restricted=s.isUndefinedOrNull(u.restricted)?!!(null==o?void 0:o.includes(e)):u.restricted),c[e].hasOwnProperty("included")&&!c[e].included){this.excludedConfigurationProperties[e]=c[e],delete c[e];continue}this.configurationProperties[e]=c[e],(null===(a=c[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(c[e].policy.name,e);!c[e].deprecationMessage&&c[e].markdownDeprecationMessage&&(c[e].deprecationMessage=c[e].markdownDeprecationMessage),l.push(e)}let u=e.allOf;if(u)for(let e of u)l.push(...this.validateAndRegisterProperties(e,t,i,o,n));return l}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let o=e.allOf;null==o||o.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:h.properties[e]=t;break;case 2:m.properties[e]=t;break;case 6:g.properties[e]=t;break;case 3:p.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:r.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,h.properties[t]=i,m.properties[t]=i,g.properties[t]=i,p.properties[t]=i,f.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){let e={type:"object",description:r.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};d.patternProperties[v]=e,h.patternProperties[v]=e,m.patternProperties[v]=e,g.patternProperties[v]=e,p.patternProperties[v]=e,f.patternProperties[v]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),o=null==i?void 0:i.value,n=null==i?void 0:i.source;s.isUndefined(o)&&(o=t.defaultDefaultValue,n=void 0),s.isUndefined(o)&&(o=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=o,t.defaultValueSource=n}};c.Registry.add(u.Configuration,k)},629711:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return s}});var o=i("916904"),n=i("112721");let s={JSONContribution:"base.contributions.json"},r=new class e{constructor(){this._onDidChangeSchema=new o.Emitter,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e).length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.Registry.add(s.JSONContribution,r)},180204:function(e,t,i){"use strict";i.r(t),i.d(t,{IOpenerService:function(){return l},NullOpenerService:function(){return c},extractSelection:function(){return h},matchesScheme:function(){return u},matchesSomeScheme:function(){return d}});var o=i("919527"),n=i("266763"),s=i("938505"),r=i("706301"),a=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let l=(0,r.createDecorator)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:()=>o.Disposable.None,registerValidator:()=>o.Disposable.None,registerExternalUriResolver:()=>o.Disposable.None,setDefaultExternalOpener(){},registerExternalOpener:()=>o.Disposable.None,open(){return a(this,void 0,void 0,function*(){return!1})},resolveExternalUri(e){return a(this,void 0,void 0,function*(){return{resolved:e,dispose(){}}})}});function u(e,t){return s.URI.isUri(e)?(0,n.equalsIgnoreCase)(e.scheme,t):(0,n.startsWithIgnoreCase)(e,t+":")}function d(e,...t){return t.some(t=>u(e,t))}function h(e){let t;let i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},795827:function(e,t,i){"use strict";i.r(t);var o=i("161111"),n=i("919527"),s=i("24342"),r=i("596608"),a=i("708339"),l=i("664641"),c=i("772243"),u=i("297669"),d=i("852365"),h=function(e,t){return function(i,o){t(i,o,e)}},m=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};function g(e){return e.scheme===s.Schemas.file?e.fsPath:e.path}let p=0;class f{constructor(e,t,i,o,n,s,r){this.id=++p,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=o,this.groupOrder=n,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class b{constructor(e,t){this.resourceLabel=e,this.reason=t}}class _{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push(a.localize({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(a.localize({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class y{constructor(e,t,i,o,n,s,r){this.id=++p,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=o,this.groupOrder=n,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){!this.removedResources&&(this.removedResources=new _),!this.removedResources.has(t)&&this.removedResources.set(t,new b(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(!this.invalidatedResources&&(this.invalidatedResources=new _),!this.invalidatedResources.has(t)&&this.invalidatedResources.set(t,new b(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class C{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,i=this._past.length;e<i;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new d.ResourceEditStackSnapshot(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,o=0,n=-1;for(let s=0,r=this._past.length;s<r;s++,o++){let r=this._past[s];i&&(o>=t||r.id!==e.elements[o])&&(i=!1,n=0),!i&&1===r.type&&r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let n=this._future.length-1;n>=0;n--,o++){let r=this._future[n];i&&(o>=t||r.id!==e.elements[o])&&(i=!1,s=n),!i&&1===r.type&&r.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class v{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}let S=new C("","");S.locked=!0;let w=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e,t=d.UndoRedoGroup.None,i=d.UndoRedoSource.None){if(0===e.type){let o=g(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new f(e,o,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let o=new Set,n=[],s=[];for(let t of e.resources){let e=g(t),i=this.getUriComparisonKey(t);!o.has(i)&&(o.add(i),n.push(e),s.push(i))}1===n.length?this._pushElement(new f(e,n[0],s[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new y(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let i;let o=e.resourceLabels[t],n=e.strResources[t];this._editStacks.has(n)?i=this._editStacks.get(n):(i=new C(o,n),this._editStacks.set(n,i)),i.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let e=this._editStacks.get(t);if(e.hasFutureElements())return null;let i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=g(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitPastWorkspaceElement(e,o)}}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=g(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitFutureWorkspaceElement(e,o)}}removeElements(e){let t="string"==typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let o=this.getUriComparisonKey(e);this._editStacks.has(o)&&this._editStacks.get(o).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new d.ResourceEditStackSnapshot(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestPastElement();s&&s.sourceId===e&&(!t||s.sourceOrder>t.sourceOrder)&&(t=s,i=o)}return[t,i]}canUndo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){for(let i of((0,o.onUnexpectedError)(e),t.strResources))this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,o,n){let s;let r=this._acquireLocks(i);try{s=t()}catch(t){return r(),o.dispose(),this._onError(t,e)}return s?s.then(()=>(r(),o.dispose(),n()),t=>(r(),o.dispose(),this._onError(t,e))):(r(),o.dispose(),n())}_invokeWorkspacePrepare(e){return m(this,void 0,void 0,function*(){if(void 0===e.actual.prepareUndoRedo)return n.Disposable.None;let t=e.actual.prepareUndoRedo();return void 0===t?n.Disposable.None:t})}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(n.Disposable.None);let i=e.actual.prepareUndoRedo();return i?(0,n.isDisposable)(i)?t(i):i.then(e=>t(e)):t(n.Disposable.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||S);return new v(t)}_tryToSplitAndUndo(e,t,i,o){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(o),new k(this._undo(e,0,!0));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new k}_checkWorkspaceUndo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestPastElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let s=[];for(let e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let o=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,o,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,o,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,o){return m(this,void 0,void 0,function*(){let n;if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n=yield this._dialogService.show(r.default.Info,a.localize("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[a.localize({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),a.localize("nok","Undo this File"),a.localize("cancel","Cancel")],{cancelId:2});if(2===n.choice)return;if(1===n.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let s=this._checkWorkspaceUndo(e,t,i,!1);if(s)return s.returnValue;o=!0}try{n=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(let e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,n,()=>this._continueUndoInGroup(t.groupId,o))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,o=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new v([e]),o,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=o)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let o=this._editStacks.get(e),n=o.getClosestPastElement();if(!!n){if(n.groupId){let[e,o]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&o)return this._undo(o,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);if(1===n.type)return this._workspaceUndo(e,n,i);return this._resourceUndo(o,n,i)}}_confirmAndContinueUndo(e,t,i){return m(this,void 0,void 0,function*(){if(1!==(yield this._dialogService.show(r.default.Info,a.localize("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[a.localize("confirmDifferentSource.yes","Yes"),a.localize("confirmDifferentSource.no","No")],{cancelId:1})).choice)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder<t.sourceOrder)&&(t=s,i=o)}return[t,i]}canRedo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements()}_tryToSplitAndRedo(e,t,i,o){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(o),new k(this._redo(e));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new k}_checkWorkspaceRedo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestFutureElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let s=[];for(let e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),o=this._checkWorkspaceRedo(e,t,i,!1);return o?o.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return m(this,void 0,void 0,function*(){let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return o.dispose(),n.returnValue;for(let e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,o,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new v([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder<t.groupOrder)&&(t=s,i=o)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}if(1===i.type)return this._workspaceRedo(e,i);return this._resourceRedo(t,i)}}};w=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,l.IDialogService),h(1,u.INotificationService)],w);class k{constructor(e){this.returnValue=e}}(0,c.registerSingleton)(d.IUndoRedoService,w)},507307:function(e,t,i){"use strict";i.r(t),i.d(t,{IWorkspaceContextService:function(){return s},WORKSPACE_EXTENSION:function(){return c},WorkspaceFolder:function(){return l},isSingleFolderWorkspaceIdentifier:function(){return r},toWorkspaceIdentifier:function(){return a}});var o=i("708339");i("834289");var n=i("938505");let s=(0,i("706301").createDecorator)("contextService");function r(e){return"string"==typeof(null==e?void 0:e.id)&&n.URI.isUri(e.uri)}function a(e){return e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:void 0}class l{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}let c="code-workspace";(0,o.localize)("codeWorkspace","Code Workspace")},631412:function(e){},403905:function(e){},466599:function(e){},671651:function(e){},240091:function(e){},392444:function(e){},105088:function(e){},867831:function(e){},610049:function(e){}}]);
|