(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+N8g":function(wt,P,r){},"+aX+":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return r.e(235).then(r.bind(null,"pHlb"))}})},"+qpR":function(wt,P,r){"use strict";r.d(P,"b",function(){return A}),r.d(P,"a",function(){return z});var I=r("mTMv"),oe=r("YK2C"),ne=r("bN5T"),N=r("S7i+"),F=function(){function _(f,p){this.chr=f,this.type=p,this.width=0}return _.prototype.fulfill=function(f){this.width=f},_}(),U=function(){function _(f,p){this._bareFontInfo=f,this._requests=p,this._container=null,this._testElements=null}return _.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},_.prototype._createDomElements=function(){var f=document.createElement("div");f.style.position="absolute",f.style.top="-50000px",f.style.width="50000px";var p=document.createElement("div");p.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),p.style.fontWeight=this._bareFontInfo.fontWeight,p.style.fontSize=this._bareFontInfo.fontSize+"px",p.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,p.style.lineHeight=this._bareFontInfo.lineHeight+"px",p.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(p);var g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight="bold",g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(g);var m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",f.appendChild(m);for(var w=[],B=0,H=this._requests;B 0;)m+=A?" ":" ",B--;break;case 60:m+="<";break;case 62:m+=">";break;case 38:m+="&";break;case 0:m+="";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="";break;case 32:m+=A?" ":" ";break;default:m+=String.fromCharCode(w)}}if(te+=''+m+"",g>K||z>=K)break}return te+=" "+pe+`
");var z=R.tokenize2(te,K,0);oe.a.convertToEndOffset(z.tokens,te.length);for(var _=new oe.a(z.tokens,te),f=_.inflate(),p=0,g=0,m=f.getCount();gUe&&(X=Ue),this._matchesPosition!==X&&(this._matchesPosition=X,et.matchesPosition=!0,Q=!0),this._matchesCount!==Ue&&(this._matchesCount=Ue,et.matchesCount=!0,Q=!0),typeof at!="undefined"&&(R.a.equalsRange(this._currentMatch,at)||(this._currentMatch=at,et.currentMatch=!0,Q=!0)),Q&&this._onFindReplaceStateChange.fire(et)},de.prototype.change=function(X,Ue,at){at===void 0&&(at=!0);var et={moveCursor:Ue,updateHistory:at,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},Q=!1,Ce=this.isRegex,Oe=this.wholeWord,it=this.matchCase,Qe=this.preserveCase;typeof X.searchString!="undefined"&&(this._searchString!==X.searchString&&(this._searchString=X.searchString,et.searchString=!0,Q=!0)),typeof X.replaceString!="undefined"&&(this._replaceString!==X.replaceString&&(this._replaceString=X.replaceString,et.replaceString=!0,Q=!0)),typeof X.isRevealed!="undefined"&&(this._isRevealed!==X.isRevealed&&(this._isRevealed=X.isRevealed,et.isRevealed=!0,Q=!0)),typeof X.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==X.isReplaceRevealed&&(this._isReplaceRevealed=X.isReplaceRevealed,et.isReplaceRevealed=!0,Q=!0)),typeof X.isRegex!="undefined"&&(this._isRegex=X.isRegex),typeof X.wholeWord!="undefined"&&(this._wholeWord=X.wholeWord),typeof X.matchCase!="undefined"&&(this._matchCase=X.matchCase),typeof X.preserveCase!="undefined"&&(this._preserveCase=X.preserveCase),typeof X.searchScope!="undefined"&&(R.a.equalsRange(this._searchScope,X.searchScope)||(this._searchScope=X.searchScope,et.searchScope=!0,Q=!0)),this._isRegexOverride=typeof X.isRegexOverride!="undefined"?X.isRegexOverride:0,this._wholeWordOverride=typeof X.wholeWordOverride!="undefined"?X.wholeWordOverride:0,this._matchCaseOverride=typeof X.matchCaseOverride!="undefined"?X.matchCaseOverride:0,this._preserveCaseOverride=typeof X.preserveCaseOverride!="undefined"?X.preserveCaseOverride:0,Ce!==this.isRegex&&(Q=!0,et.isRegex=!0),Oe!==this.wholeWord&&(Q=!0,et.wholeWord=!0),it!==this.matchCase&&(Q=!0,et.matchCase=!0),Qe!==this.preserveCase&&(Q=!0,et.preserveCase=!0),Q&&this._onFindReplaceStateChange.fire(et)},de}(ne.a),pe=r("UgoW"),nt=r("5xAg"),Et=r("carD"),Rt=r("QqjT"),Tt=r("S7i+"),Ht=r("YWAb"),Gt=r("6oPh"),rn=r("mTMv"),Ln=r("mmaD"),yn=r("SPtt"),Tn=r("ywU6"),Ft=function(){function Ge(de,X){de===void 0&&(de=[]),X===void 0&&(X=10),this._initialize(de),this._limit=X,this._onChange()}return Ge.prototype.add=function(de){this._history.delete(de),this._history.add(de),this._onChange()},Ge.prototype.next=function(){return this._navigator.next()},Ge.prototype.previous=function(){return this._navigator.previous()},Ge.prototype.current=function(){return this._navigator.current()},Ge.prototype.parent=function(){return null},Ge.prototype.first=function(){return this._navigator.first()},Ge.prototype.last=function(){return this._navigator.last()},Ge.prototype.has=function(de){return this._history.has(de)},Ge.prototype._onChange=function(){this._reduceToLimit();var de=this._elements;this._navigator=new Tn.a(de,0,de.length,de.length)},Ge.prototype._reduceToLimit=function(){var de=this._elements;de.length>this._limit&&this._initialize(de.slice(de.length-this._limit))},Ge.prototype._initialize=function(de){this._history=new Set;for(var X=0,Ue=de;X
":He+=Object(js.a)(y,ht.inflate(),i,u,l,le,K.h)}return He},n.prototype._getColorMap=function(){var e=zn.y.getColorMap(),i=["#000000"];if(e)for(var d=1,c=e.length;d=$)break;$=Be,C++}for(;Cb){qt=ti,en=un-qn,un-Nt>ht&&(dt=0),In=!1;break}an=Dn,Cn=di}if(In){l>0&&(y[l]=le[le.length-1],u[l]=He[le.length-1],l++);break}}if(dt===0){for(var un=xe,Dn=e.charCodeAt(ot),di=L.get(Dn),Ri=!1,Nn=ot-1;Nn>=0;Nn--){var ti=Nn+1,an=e.charCodeAt(Nn);if(an===9){Ri=!0;break}var Cn=void 0,li=void 0;if(Kn.A(an)?(Nn--,Cn=0,li=2):(Cn=L.get(an),li=Kn.y(an)?c:1),un<=b){if(qt===0&&(qt=ti,en=un),un<=b-ht)break;if(go(an,Cn,Dn,di)){dt=ti,Nt=un;break}}un-=li,Dn=an,di=Cn}if(dt!==0){var mo=ht-(en-Nt);if(mo<=i){var Li=e.charCodeAt(qt),qn=void 0;Kn.z(Li)?qn=2:qn=qo(Li,en,i,c),mo-qn<0&&(dt=0)}}if(Ri){C--;continue}}for(dt===0&&(dt=qt,Nt=en),y[l]=dt,u[l]=Nt,l++,b=Nt+ht;C<0||C=$)break;$=Be,C++}}return l===0?null:(y.length=l,u.length=l,Ao=n.breakOffsets,Yr=n.breakOffsetsVisibleColumn,n.breakOffsets=y,n.breakOffsetsVisibleColumn=u,n.wrappedTextIndentLength=st,n)}function Zr(L,n,e,i,d,c){if(i===-1)return null;var M=n.length;if(M<=1)return null;var ge=Ei(n,e,i,d,c),le=i-ge,He=[],st=[],ht=0,y=0,u=0,l=i,b=n.charCodeAt(0),S=L.get(b),C=qo(b,0,e,d),$=1;Kn.z(b)&&(C+=1,b=n.charCodeAt(1),S=L.get(b),$++);for(var Be=$;Be
`:"'+(Et?pe:Ke(pe,!0))+`
"},tt.prototype.blockquote=function(pe){return`"+(Et?pe:Ke(pe,!0))+"
`+pe+`
`},tt.prototype.html=function(pe){return pe},tt.prototype.heading=function(pe,nt,Et,Rt){return this.options.headerIds?"
`:`
`},tt.prototype.list=function(pe,nt,Et){var Rt=nt?"ol":"ul",Tt=nt&&Et!==1?' start="'+Et+'"':"";return"<"+Rt+Tt+`>
`+pe+""+Rt+`>
`},tt.prototype.listitem=function(pe){return"
`+pe+`
`+nt+`
`},tt.prototype.tablerow=function(pe){return`
`+pe+`
`},tt.prototype.tablecell=function(pe,nt){var Et=nt.header?"th":"td",Rt=nt.align?"<"+Et+' align="'+nt.align+'">':"<"+Et+">";return Rt+pe+""+Et+`>
`},tt.prototype.strong=function(pe){return""+pe+""},tt.prototype.em=function(pe){return""+pe+""},tt.prototype.codespan=function(pe){return""+pe+""},tt.prototype.br=function(){return this.options.xhtml?"
":"
"},tt.prototype.del=function(pe){return""+pe+""},tt.prototype.link=function(pe,nt,Et){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return Et;var Rt='"+Et+"",Rt},tt.prototype.image=function(pe,nt,Et){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return Et;var Rt='":">",Rt},tt.prototype.text=function(pe){return pe};function _t(){}_t.prototype.strong=_t.prototype.em=_t.prototype.codespan=_t.prototype.del=_t.prototype.text=function(pe){return pe},_t.prototype.link=_t.prototype.image=function(pe,nt,Et){return""+Et},_t.prototype.br=function(){return""};function Pt(pe){this.tokens=[],this.token=null,this.options=pe||Ie.defaults,this.options.renderer=this.options.renderer||new tt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xt}Pt.parse=function(pe,nt){var Et=new Pt(nt);return Et.parse(pe)},Pt.prototype.parse=function(pe){this.inline=new ze(pe.links,this.options),this.inlineText=new ze(pe.links,ee({},this.options,{renderer:new _t})),this.tokens=pe.reverse();for(var nt="";this.next();)nt+=this.tok();return nt},Pt.prototype.next=function(){return this.token=this.tokens.pop()},Pt.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Pt.prototype.parseText=function(){for(var pe=this.token.text;this.peek().type==="text";)pe+=`
`+this.next().text;return this.inline.output(pe)},Pt.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,Xe(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var pe="",nt="",Et,Rt,Tt,Ht;for(Tt="",Et=0;Et
"+Ke(Ln.message+"",!0)+"";throw Ln}}Ie.options=Ie.setOptions=function(pe){return ee(Ie.defaults,pe),Ie},Ie.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new tt,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Ie.defaults=Ie.getDefaults(),Ie.Parser=Pt,Ie.parser=Pt.parse,Ie.Renderer=tt,Ie.TextRenderer=_t,Ie.Lexer=me,Ie.lexer=me.lex,Ie.InlineLexer=ze,Ie.inlineLexer=ze.output,Ie.Slugger=Xt,Ie.parse=Ie,U=Ie}).call(void 0);var j=U,G=U.Parser,R=U.parser,E=U.Renderer,x=U.TextRenderer,K=U.Lexer,D=U.lexer,A=U.InlineLexer,te=U.inlineLexer,z=U.parse,_,_,f;(function(){function ie(J,me,ye){function ze(Pt,Xt){if(!me[Pt]){if(!J[Pt]){var Ke=typeof _=="function"&&_;if(!Xt&&Ke)return _(Pt,!0);if(tt)return tt(Pt,!0);var Xe=new Error("Cannot find module '"+Pt+"'");throw Xe.code="MODULE_NOT_FOUND",Xe}var Ze=me[Pt]={exports:{}};J[Pt][0].call(Ze.exports,function(Ye){var ke=J[Pt][1][Ye];return ze(ke||Ye)},Ze,Ze.exports,ie,J,me,ye)}return me[Pt].exports}for(var tt=typeof _=="function"&&_,_t=0;_t
"+(ie.supportThemeIcons?Object(re.c)(Ye):Ye)+"
"},J.codeBlockRenderer&&(Pt.code=function(Ye,ke){var $e=J.codeBlockRenderer(ke,Ye),we=F.b.nextId(),k=Promise.all([$e,_t]).then(function(ee){var Pe=ee[0],ve=me.querySelector('div[data-code="'+we+'"]');ve&&(ve.innerHTML=Pe)}).catch(function(ee){});return J.codeBlockRenderCallback&&k.then(J.codeBlockRenderCallback),'q?he[_e]=ce[Ve++]:Ve>Z?he[_e]=ce[Me++]:Ee(ce[Ve],ce[Me])<0?he[_e]=ce[Ve++]:he[_e]=ce[Me++]}function G(he,Ee,Se,q,Z){if(q<=Se)return;var ce=Se+(q-Se)/2|0;if(G(he,Ee,Se,ce,Z),G(he,Ee,ce+1,q,Z),Ee(he[ce],he[ce+1])<=0)return;j(he,Ee,Se,ce,q,Z)}function R(he,Ee){for(var Se=[],q=void 0,Z=0,ce=U(he.slice(0),Ee);Z0}function D(he,Ee){if(!Ee)return he.filter(function(q,Z){return he.indexOf(q)===Z});var Se=Object.create(null);return he.filter(function(q){var Z=Ee(q);return Se[Z]?!1:(Se[Z]=!0,!0)})}function A(he){var Ee=new Set;return he.filter(function(Se){return Ee.has(Se)?!1:(Ee.add(Se),!0)})}function te(he){var Ee=[];return he.forEach(function(Se){return Ee.push(Se)}),Ee}function z(he,Ee){for(var Se=0;Se 0?he[0]:Ee}function p(he){var Ee;return(Ee=[]).concat.apply(Ee,he)}function g(he,Ee){var Se=typeof Ee=="number"?he:0;typeof Ee=="number"?Se=he:(Se=0,Ee=he);var q=[];if(Se<=Ee)for(var Z=Se;Z Ee;Z--)q.push(Z);return q}function m(he,Ee,Se){var q=he.slice(0,Ee),Z=he.slice(Ee);return q.concat(Se,Z)}function w(he,Ee){var Se=he.indexOf(Ee);Se>-1&&(he.splice(Se,1),he.unshift(Ee))}function B(he,Ee){var Se=he.indexOf(Ee);Se>-1&&(he.splice(Se,1),he.push(Ee))}function H(he,Ee){for(var Se=0;Se 0)for(var f=0,p=_;f J,tt=ie>me,_t=ie me)continue;if(ke ie)continue;if(Ye 1&&ie--,_e.columnSelect(ue,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,fe.toViewLineNumber,ie)},_e.columnSelectRight=function(ue,se,fe){for(var ie=0,J=Math.min(fe.fromViewLineNumber,fe.toViewLineNumber),me=Math.max(fe.fromViewLineNumber,fe.toViewLineNumber),ye=J;ye<=me;ye++){var ze=se.getLineMaxColumn(ye),tt=F.a.visibleColumnFromColumn2(ue,se,new U.a(ye,ze));ie=Math.max(ie,tt)}var _t=fe.toViewVisualColumn;return _t =0;J--){var me=ue.charCodeAt(J),ye=se.get(me);if(ye===0){if(ie===2)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1));ie=1}else if(ye===2){if(ie===1)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1));ie=2}else if(ye===1&&ie!==0)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1))}return ie!==0?this._createWord(ue,ie,1,0,this._findEndOfWord(ue,se,ie,0)):null},_e._findEndOfWord=function(ue,se,fe,ie){for(var J=ue.length,me=ie;me =0;J--){var me=ue.charCodeAt(J),ye=se.get(me);if(ye===1)return J+1;if(fe===1&&ye===2)return J+1;if(fe===2&&ye===0)return J+1}return 0},_e.moveWordLeft=function(ue,se,fe,ie){var J=fe.lineNumber,me=fe.column,ye=!1;me===1&&(J>1&&(ye=!0,J=J-1,me=se.getLineMaxColumn(J)));var ze=_e._findPreviousWordOnLine(ue,se,new U.a(J,me));if(ie===0){if(ze&&!ye){var tt=se.getLineLastNonWhitespaceColumn(J);if(tt 1?new U.a(fe-1,ue.getLineMaxColumn(fe-1)):se;for(var J=ue.getLineContent(fe),me=se.column-1;me>1;me--){var ye=J.charCodeAt(me-2),ze=J.charCodeAt(me-1);if(ye!==95&&ze===95)return new U.a(fe,me);if(x.B(ye)&&x.C(ze))return new U.a(fe,me);if(x.C(ye)&&x.C(ze)&&me+1 =ze.start+1&&(ze=_e._findNextWordOnLine(ue,se,new U.a(J,ze.end+1))),ze?me=ze.start+1:me=se.getLineMaxColumn(J);return new U.a(J,me)},_e._moveWordPartRight=function(ue,se){var fe=se.lineNumber,ie=ue.getLineMaxColumn(fe);if(se.column===ie)return fe 1?ze=1:(ye--,ze=se.getLineMaxColumn(ye)):(_t&&ze<=_t.end+1&&(_t=_e._findPreviousWordOnLine(ue,se,new U.a(ye,_t.start+1))),_t?ze=_t.end+1:ze>1?ze=1:(ye--,ze=se.getLineMaxColumn(ye))),new j.a(ye,ze,me.lineNumber,me.column)},_e._deleteWordPartLeft=function(ue,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=_e._moveWordPartLeft(ue,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},_e._findFirstNonWhitespaceChar=function(ue,se){for(var fe=ue.length,ie=se;ie =Xt.start+1&&(Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,Xt.end+1))),Xt?ze=Xt.start+1:ze<_t||ye===tt?ze=_t:(ye++,Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,1)),Xt?ze=Xt.start+1:ze=se.getLineMaxColumn(ye))),new j.a(ye,ze,me.lineNumber,me.column)},_e._deleteWordPartRight=function(ue,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=_e._moveWordPartRight(ue,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},_e.word=function(ue,se,fe,ie,J){var me=Object(K.a)(ue.wordSeparators),ye=_e._findPreviousWordOnLine(me,se,J),ze=_e._findNextWordOnLine(me,se,J);if(!ie){var tt,_t;return ye&&ye.wordType===1&&ye.start<=J.column-1&&J.column-1<=ye.end?(tt=ye.start+1,_t=ye.end+1):ze&&ze.wordType===1&&ze.start<=J.column-1&&J.column-1<=ze.end?(tt=ze.start+1,_t=ze.end+1):(ye?tt=ye.end+1:tt=1,ze?_t=ze.start+1:_t=se.getLineMaxColumn(J.lineNumber)),new F.f(new j.a(J.lineNumber,tt,J.lineNumber,_t),0,new U.a(J.lineNumber,_t),0)}var Pt,Xt;ye&&ye.wordType===1&&ye.start ze&&(tt=ze,_t=ue.model.getLineMaxColumn(tt)),F.d.fromModelState(new F.f(new j.a(me.lineNumber,1,tt,_t),0,new U.a(tt,_t),0))}var Pt=se.modelState.selectionStart.getStartPosition().lineNumber;if(me.lineNumber Pt){var ze=ue.viewModel.getLineCount(),Xt=ye.lineNumber+1,Ke=1;return Xt>ze&&(Xt=ze,Ke=ue.viewModel.getLineMaxColumn(Xt)),F.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),Xt,Ke,0))}else{var Xe=se.modelState.selectionStart.getEndPosition();return F.d.fromModelState(se.modelState.move(se.modelState.hasSelection(),Xe.lineNumber,Xe.column,0))}},_e.word=function(ue,se,fe,ie){var J=ue.model.validatePosition(ie);return F.d.fromModelState(A.word(ue.config,ue.model,se.modelState,fe,J))},_e.cancelSelection=function(ue,se){if(!se.modelState.hasSelection())return new F.d(se.modelState,se.viewState);var fe=se.viewState.position.lineNumber,ie=se.viewState.position.column;return F.d.fromViewState(new F.f(new j.a(fe,ie,fe,ie),0,new U.a(fe,ie),0))},_e.moveTo=function(ue,se,fe,ie,J){var me=ue.model.validatePosition(ie),ye=J?ue.validateViewPosition(new U.a(J.lineNumber,J.column),me):ue.convertModelPositionToViewPosition(me);return F.d.fromViewState(se.viewState.move(fe,ye.lineNumber,ye.column,0))},_e.move=function(ue,se,fe){var ie=fe.select,J=fe.value;switch(fe.direction){case 0:return fe.unit===4?this._moveHalfLineLeft(ue,se,ie):this._moveLeft(ue,se,ie,J);case 1:return fe.unit===4?this._moveHalfLineRight(ue,se,ie):this._moveRight(ue,se,ie,J);case 2:return fe.unit===2?this._moveUpByViewLines(ue,se,ie,J):this._moveUpByModelLines(ue,se,ie,J);case 3:return fe.unit===2?this._moveDownByViewLines(ue,se,ie,J):this._moveDownByModelLines(ue,se,ie,J);case 4:return this._moveToViewMinColumn(ue,se,ie);case 5:return this._moveToViewFirstNonWhitespaceColumn(ue,se,ie);case 6:return this._moveToViewCenterColumn(ue,se,ie);case 7:return this._moveToViewMaxColumn(ue,se,ie);case 8:return this._moveToViewLastNonWhitespaceColumn(ue,se,ie);case 9:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=this._firstLineNumberInRange(ue.model,ye,J),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 11:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=this._lastLineNumberInRange(ue.model,ye,J),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 10:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=Math.round((ye.startLineNumber+ye.endLineNumber)/2),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 12:{for(var _t=ue.getCompletelyVisibleViewRange(),Pt=[],Xt=0,Ke=se.length;Xt fe.endLineNumber-1&&(J=fe.endLineNumber-1),J 1)for(var Pe=k.modelState?k.modelState.position:null,ve=k.viewState?k.viewState.position:null,Te=0,Ie=ee.length;Te ee&&(k=ee);var Pe=new j.a(k,1,k,ke.context.model.getLineMaxColumn(k)),ve=0;if(we.at)switch(we.at){case Ee.RawAtArgument.Top:ve=3;break;case Ee.RawAtArgument.Center:ve=1;break;case Ee.RawAtArgument.Bottom:ve=4;break;default:break}var Te=ke.context.convertModelRangeToViewRange(Pe);ke.revealRange($e.source,!1,Te,ve,0)},Ye}(re))),_e.SelectAll=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"selectAll",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.selectAll(ke.context,ke.getPrimaryCursor())])},Ye}(re))),_e.SetSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"setSelection",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[F.d.fromModelSelection($e.selection)])},Ye}(re)))})(Se||(Se={}));var q;(function(_e){var ue=function(se){B(fe,se);function fe(){return se!==null&&se.apply(this,arguments)||this}return fe.prototype.runEditorCommand=function(ie,J,me){var ye=J._getCursors();if(!ye)return;this.runCoreEditingCommand(J,ye,me||{})},fe}(ne.c);_e.CoreEditingCommand=ue,_e.LineBreakInsert=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.lineBreakInsert(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection})))},fe}(ue))),_e.Outdent=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.outdent(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(ue))),_e.Tab=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.tab(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(ue))),_e.DeleteLeft=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){var ye=R.a.deleteLeft(J.getPrevEditOperationType(),J.context.config,J.context.model,J.getAll().map(function(_t){return _t.modelState.selection})),ze=ye[0],tt=ye[1];ze&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),J.setPrevEditOperationType(2)},fe}(ue))),_e.DeleteRight=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){var ye=R.a.deleteRight(J.getPrevEditOperationType(),J.context.config,J.context.model,J.getAll().map(function(_t){return _t.modelState.selection})),ze=ye[0],tt=ye[1];ze&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),J.setPrevEditOperationType(3)},fe}(ue)))})(q||(q={}));function Z(_e){_e.register()}var ce=function(_e){B(ue,_e);function ue(se){var fe=_e.call(this,se)||this;return fe._editorHandler=se.editorHandler,fe._inputHandler=se.inputHandler,fe}return ue.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(ie&&ie.hasTextFocus())return this._runEditorHandler(se,ie,fe);var J=document.activeElement;if(J&&["input","textarea"].indexOf(J.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var me=se.get(N.a).getActiveCodeEditor();if(me)return me.focus(),this._runEditorHandler(se,me,fe)},ue.prototype._runEditorHandler=function(se,fe,ie){var J=this._editorHandler;typeof J=="string"?fe.trigger("keyboard",J,ie):(ie=ie||{},ie.source="keyboard",J.runEditorCommand(se,fe,ie))},ue}(ne.a),Me=function(_e){B(ue,_e);function ue(se,fe,ie){var J=_e.call(this,{id:se,precondition:void 0,description:ie})||this;return J._handlerId=fe,J}return ue.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(!ie)return;ie.trigger("keyboard",this._handlerId,fe)},ue}(ne.a);Z(new ce({editorHandler:Se.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:H,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:I.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),Z(new ce({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),Z(new Me("default:"+g.b.Undo,g.b.Undo)),Z(new ce({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),Z(new Me("default:"+g.b.Redo,g.b.Redo));function Ve(_e,ue){Z(new Me("default:"+_e,_e)),Z(new Me(_e,_e,ue))}Ve(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Ve(g.b.ReplacePreviousChar),Ve(g.b.CompositionStart),Ve(g.b.CompositionEnd),Ve(g.b.Paste),Ve(g.b.Cut)},LLZ0:function(wt,P,r){},LrZB:function(wt,P,r){},LzG9:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return r.e(246).then(r.bind(null,"i7BE"))}})},MgSW:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return r.e(230).then(r.bind(null,"kBTG"))}})},Mn97:function(wt,P,r){"use strict";r.d(P,"a",function(){return U}),r.d(P,"b",function(){return j});var I=r("bN5T"),oe=r("YK2C"),ne=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),N=function(G,R,E,x){function K(D){return D instanceof E?D:new E(function(A){A(D)})}return new(E||(E=Promise))(function(D,A){function te(f){try{_(x.next(f))}catch(p){A(p)}}function z(f){try{_(x.throw(f))}catch(p){A(p)}}function _(f){f.done?D(f.value):K(f.value).then(te,z)}_((x=x.apply(G,R||[])).next())})},F=function(G,R){var E={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},x,K,D,A;return A={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function te(_){return function(f){return z([_,f])}}function z(_){if(x)throw new TypeError("Generator is already executing.");for(;E;)try{if(x=1,K&&(D=_[0]&2?K.return:_[0]?K.throw||((D=K.return)&&D.call(K),0):K.next)&&!(D=D.call(K,_[1])).done)return D;(K=0,D)&&(_=[_[0]&2,D.value]);switch(_[0]){case 0:case 1:D=_;break;case 4:return E.label++,{value:_[1],done:!1};case 5:E.label++,K=_[1],_=[0];continue;case 7:_=E.ops.pop(),E.trys.pop();continue;default:if(!(D=E.trys,D=D.length>0&&D[D.length-1])&&(_[0]===6||_[0]===2)){E=0;continue}if(_[0]===3&&(!D||_[1]>D[0]&&_[1] =0;pe--)(Ie=we[pe])&&(Te=(ve<3?Ie(Te):ve>3?Ie(k,ee,Te):Ie(k,ee))||Te);return ve>3&&Te&&Object.defineProperty(k,ee,Te),Te},re=function(){for(var we=0,k=0,ee=arguments.length;k =0){var Te=this.renderedElements[ve];this.trait.unrender(Pe),Te.index=ee}else{var Te={index:ee,templateData:Pe};this.renderedElements.push(Te)}this.trait.renderIndex(ee,Pe)},we.prototype.splice=function(k,ee,Pe){for(var ve=[],Te=0,Ie=this.renderedElements;Te =k+ee&&ve.push({index:pe.index+Pe-ee,templateData:pe.templateData})}this.renderedElements=ve},we.prototype.renderIndexes=function(k){for(var ee=0,Pe=this.renderedElements;ee -1&&this.trait.renderIndex(Te,Ie)}},we.prototype.disposeTemplate=function(k){var ee=Object(F.k)(this.renderedElements,function(Pe){return Pe.templateData===k});if(ee<0)return;this.renderedElements.splice(ee,1)},we}(),Ee=function(){function we(k){this._trait=k,this.indexes=[],this.sortedIndexes=[],this._onChange=new x.a,this.onChange=this._onChange.event}return Object.defineProperty(we.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"renderer",{get:function(){return new he(this)},enumerable:!0,configurable:!0}),we.prototype.splice=function(k,ee,Pe){var ve=Pe.length-ee,Te=k+ee,Ie=re(this.sortedIndexes.filter(function(pe){return pe =Te}).map(function(pe){return pe+ve}));this.renderer.splice(k,ee,Pe.length),this._set(Ie,Ie)},we.prototype.renderIndex=function(k,ee){j.X(ee,this._trait,this.contains(k))},we.prototype.unrender=function(k){j.O(k,this._trait)},we.prototype.set=function(k,ee){return this._set(k,re(k).sort(Xe),ee)},we.prototype._set=function(k,ee,Pe){var ve=this.indexes,Te=this.sortedIndexes;this.indexes=k,this.sortedIndexes=ee;var Ie=Xt(Te,k);return this.renderer.renderIndexes(Ie),this._onChange.fire({indexes:k,browserEvent:Pe}),ve},we.prototype.get=function(){return this.indexes},we.prototype.contains=function(k){return Object(F.c)(this.sortedIndexes,k,Xe)>=0},we.prototype.dispose=function(){Object(ne.f)(this._onChange)},H([U.a],we.prototype,"renderer",null),we}(),Se=function(we){w(k,we);function k(){return we.call(this,"focused")||this}return k.prototype.renderIndex=function(ee,Pe){we.prototype.renderIndex.call(this,ee,Pe),this.contains(ee)?Pe.setAttribute("aria-selected","true"):Pe.removeAttribute("aria-selected")},k}(Ee),q=function(){function we(k,ee,Pe){this.trait=k,this.view=ee,this.identityProvider=Pe}return we.prototype.splice=function(k,ee,Pe){var ve=this;if(!this.identityProvider)return this.trait.splice(k,ee,Pe.map(function(){return!1}));var Te=this.trait.get().map(function(pe){return ve.identityProvider.getId(ve.view.element(pe)).toString()}),Ie=Pe.map(function(pe){return Te.indexOf(ve.identityProvider.getId(pe).toString())>-1});this.trait.splice(k,ee,Ie)},we}();function Z(we){return we.tagName==="INPUT"||we.tagName==="TEXTAREA"}var ce=function(){function we(k,ee,Pe){this.list=k,this.view=ee,this.disposables=new ne.b;var ve=Pe.multipleSelectionSupport!==!1;this.openController=Pe.openController||me;var Te=x.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(Ie){return!Z(Ie.target)}).map(function(Ie){return new E.a(Ie)});Te.filter(function(Ie){return Ie.keyCode===3}).on(this.onEnter,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===16}).on(this.onUpArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===18}).on(this.onDownArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===9}).on(this.onEscape,this,this.disposables),ve&&Te.filter(function(Ie){return(G.e?Ie.metaKey:Ie.ctrlKey)&&Ie.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return we.prototype.onEnter=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection(this.list.getFocus(),k.browserEvent),this.openController.shouldOpen(k.browserEvent)&&this.list.open(this.list.getFocus(),k.browserEvent)},we.prototype.onUpArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusPrevious(1,!1,k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onDownArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusNext(1,!1,k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageUpArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusPreviousPage(k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageDownArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusNextPage(k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onCtrlA=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection(Object(F.u)(this.list.length),k.browserEvent),this.view.domNode.focus()},we.prototype.onEscape=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection([],k.browserEvent),this.view.domNode.focus()},we.prototype.dispose=function(){this.disposables.dispose()},we}(),Me;(function(we){we[we.Idle=0]="Idle",we[we.Typing=1]="Typing"})(Me||(Me={}));var Ve=new(function(){function we(){}return we.prototype.mightProducePrintableCharacter=function(k){return k.ctrlKey||k.metaKey||k.altKey?!1:k.keyCode>=31&&k.keyCode<=56||k.keyCode>=21&&k.keyCode<=30||k.keyCode>=93&&k.keyCode<=102||k.keyCode>=80&&k.keyCode<=90},we}()),_e=function(){function we(k,ee,Pe,ve){this.list=k,this.view=ee,this.keyboardNavigationLabelProvider=Pe,this.delegate=ve,this.enabled=!1,this.state=Me.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.updateOptions(k.options)}return we.prototype.updateOptions=function(k){var ee=typeof k.enableKeyboardNavigation=="undefined"?!0:!!k.enableKeyboardNavigation;ee?this.enable():this.disable(),typeof k.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=k.automaticKeyboardNavigation)},we.prototype.enable=function(){var k=this;if(this.enabled)return;var ee=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).filter(function(Te){return!Z(Te.target)}).filter(function(){return k.automaticKeyboardNavigation||k.triggered}).map(function(Te){return new E.a(Te)}).filter(function(Te){return k.delegate.mightProducePrintableCharacter(Te)}).forEach(function(Te){Te.stopPropagation(),Te.preventDefault()}).map(function(Te){return Te.browserEvent.key}).event,Pe=x.b.debounce(ee,function(){return null},800),ve=x.b.reduce(x.b.any(ee,Pe),function(Te,Ie){return Ie===null?null:(Te||"")+Ie});ve(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},we.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},we.prototype.onInput=function(k){if(!k){this.state=Me.Idle,this.triggered=!1;return}var ee=this.list.getFocus(),Pe=ee.length>0?ee[0]:0,ve=this.state===Me.Idle?1:0;this.state=Me.Typing;for(var Te=0;Te =0&&we[ve]===k-(ee-ve);)Pe.push(we[ve--]);for(Pe.reverse(),ve=ee;ve =we.length)ee.push(k[ve++]);else if(ve>=k.length)ee.push(we[Pe++]);else if(we[Pe]===k[ve]){ee.push(we[Pe]),Pe++,ve++;continue}else we[Pe] =we.length)ee.push(k[ve++]);else if(ve>=k.length)ee.push(we[Pe++]);else if(we[Pe]===k[ve]){Pe++,ve++;continue}else we[Pe] -1?ee:[k];return Pe},we.prototype.getDragURI=function(k){return this.dnd.getDragURI(k)},we.prototype.getDragLabel=function(k,ee){return this.dnd.getDragLabel?this.dnd.getDragLabel(k,ee):void 0},we.prototype.onDragStart=function(k,ee){this.dnd.onDragStart&&this.dnd.onDragStart(k,ee)},we.prototype.onDragOver=function(k,ee,Pe,ve){return this.dnd.onDragOver(k,ee,Pe,ve)},we.prototype.onDragEnd=function(k){this.dnd.onDragEnd&&this.dnd.onDragEnd(k)},we.prototype.drop=function(k,ee,Pe,ve){this.dnd.drop(k,ee,Pe,ve)},we}(),$e=function(){function we(k,ee,Pe,ve,Te){Te===void 0&&(Te=_t),this.user=k,this._options=Te,this.eventBufferer=new x.c,this.disposables=new ne.b,this._onDidOpen=new x.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new x.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new x.a,this.onDidDispose=this._onDidDispose.event,this.focus=new Se,this.selection=new Ee("selected"),Object(f.g)(Te,tt,!1);var Ie=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Te.accessibilityProvider,this.accessibilityProvider&&(Ie.push(new Ye(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),ve=ve.map(function(Tt){return new Ze(Tt.templateId,re(Ie,[Tt]))});var pe=B(B({},Te),{dnd:Te.dnd&&new ke(this,Te.dnd)});if(this.view=new z.b(ee,Pe,ve,pe),typeof Te.ariaRole!="string"?this.view.domNode.setAttribute("role",A.TREE):this.view.domNode.setAttribute("role",Te.ariaRole),Te.styleController)this.styleController=Te.styleController(this.view.domId);else{var nt=j.v(this.view.domNode);this.styleController=new ze(nt,this.view.domId)}if(this.spliceable=new p([new q(this.focus,this.view,Te.identityProvider),new q(this.selection,this.view,Te.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=x.b.map(Object(K.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=x.b.map(Object(K.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new ue(this,this.view)),typeof Te.keyboardSupport!="boolean"||Te.keyboardSupport){var Et=new ce(this,this.view,Te);this.disposables.add(Et)}if(Te.keyboardNavigationLabelProvider){var Rt=Te.keyboardNavigationDelegate||Ve;this.typeLabelController=new _e(this,this.view,Te.keyboardNavigationLabelProvider,Rt),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(Te)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),Te.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(oe.a)("aria list","{0}. Use the navigation keys to navigate.",Te.ariaLabel))}return Object.defineProperty(we.prototype,"onFocusChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onContextMenu",{get:function(){var ee=this,Pe=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).map(function(Ie){return new E.a(Ie)}).filter(function(Ie){return ee.didJustPressContextMenuKey=Ie.keyCode===58||Ie.shiftKey&&Ie.keyCode===68}).filter(function(Ie){return Ie.preventDefault(),Ie.stopPropagation(),!1}).event,ve=x.b.chain(Object(K.a)(this.view.domNode,"keyup")).filter(function(){var Ie=ee.didJustPressContextMenuKey;return ee.didJustPressContextMenuKey=!1,Ie}).filter(function(){return ee.getFocus().length>0&&!!ee.view.domElement(ee.getFocus()[0])}).map(function(Ie){var pe=ee.getFocus()[0],nt=ee.view.element(pe),Et=ee.view.domElement(pe);return{index:pe,element:nt,anchor:Et,browserEvent:Ie}}).event,Te=x.b.chain(this.view.onContextMenu).filter(function(){return!ee.didJustPressContextMenuKey}).map(function(Ie){var pe=Ie.element,nt=Ie.index,Et=Ie.browserEvent;return{element:pe,index:nt,anchor:{x:Et.clientX+1,y:Et.clientY},browserEvent:Et}}).event;return x.b.any(Pe,ve,Te)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onKeyDown",{get:function(){return Object(K.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),we.prototype.createMouseController=function(k){return new ye(this)},we.prototype.updateOptions=function(k){k===void 0&&(k={}),this._options=B(B({},this._options),k),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(we.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),we.prototype.splice=function(k,ee,Pe){var ve=this;if(Pe===void 0&&(Pe=[]),k<0||k>this.view.length)throw new te(this.user,"Invalid start index: "+k);if(ee<0)throw new te(this.user,"Invalid delete count: "+ee);if(ee===0&&Pe.length===0)return;this.eventBufferer.bufferEvents(function(){return ve.spliceable.splice(k,ee,Pe)})},we.prototype.rerender=function(){this.view.rerender()},we.prototype.element=function(k){return this.view.element(k)},Object.defineProperty(we.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(ee){this.view.setScrollTop(ee)},enumerable:!0,configurable:!0}),we.prototype.domFocus=function(){this.view.domNode.focus()},we.prototype.layout=function(k,ee){this.view.layout(k,ee)},we.prototype.setSelection=function(k,ee){for(var Pe=0,ve=k;Pe =this.length)throw new te(this.user,"Invalid index "+Te)}this.selection.set(k,ee)},we.prototype.getSelection=function(){return this.selection.get()},we.prototype.getSelectedElements=function(){var k=this;return this.getSelection().map(function(ee){return k.view.element(ee)})},we.prototype.setFocus=function(k,ee){for(var Pe=0,ve=k;Pe =this.length)throw new te(this.user,"Invalid index "+Te)}this.focus.set(k,ee)},we.prototype.focusNext=function(k,ee,Pe,ve){if(k===void 0&&(k=1),ee===void 0&&(ee=!1),this.length===0)return;var Te=this.focus.get(),Ie=this.findNextIndex(Te.length>0?Te[0]+k:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusPrevious=function(k,ee,Pe,ve){if(k===void 0&&(k=1),ee===void 0&&(ee=!1),this.length===0)return;var Te=this.focus.get(),Ie=this.findPreviousIndex(Te.length>0?Te[0]-k:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusNextPage=function(k,ee){var Pe=this,ve=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ve=ve===0?0:ve-1;var Te=this.view.element(ve),Ie=this.getFocusedElements()[0];if(Ie!==Te){var pe=this.findPreviousIndex(ve,!1,ee);pe>-1&&Ie!==this.view.element(pe)?this.setFocus([pe],k):this.setFocus([ve],k)}else{var nt=this.view.getScrollTop();this.view.setScrollTop(nt+this.view.renderHeight-this.view.elementHeight(ve)),this.view.getScrollTop()!==nt&&setTimeout(function(){return Pe.focusNextPage(k,ee)},0)}},we.prototype.focusPreviousPage=function(k,ee){var Pe=this,ve,Te=this.view.getScrollTop();Te===0?ve=this.view.indexAt(Te):ve=this.view.indexAfter(Te-1);var Ie=this.view.element(ve),pe=this.getFocusedElements()[0];if(pe!==Ie){var nt=this.findNextIndex(ve,!1,ee);nt>-1&&pe!==this.view.element(nt)?this.setFocus([nt],k):this.setFocus([ve],k)}else{var Et=Te;this.view.setScrollTop(Te-this.view.renderHeight),this.view.getScrollTop()!==Et&&setTimeout(function(){return Pe.focusPreviousPage(k,ee)},0)}},we.prototype.focusLast=function(k,ee){if(this.length===0)return;var Pe=this.findPreviousIndex(this.length-1,!1,ee);Pe>-1&&this.setFocus([Pe],k)},we.prototype.focusFirst=function(k,ee){if(this.length===0)return;var Pe=this.findNextIndex(0,!1,ee);Pe>-1&&this.setFocus([Pe],k)},we.prototype.findNextIndex=function(k,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve =this.length&&!ee)return-1;if(k=k%this.length,!Pe||Pe(this.element(k)))return k;k++}return-1},we.prototype.findPreviousIndex=function(k,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve =this.length)throw new te(this.user,"Invalid index "+k);var Pe=this.view.getScrollTop(),ve=this.view.elementTop(k),Te=this.view.elementHeight(k);if(Object(N.h)(ee)){var Ie=Te-this.view.renderHeight;this.view.setScrollTop(Ie*Object(g.a)(ee,0,1)+ve)}else{var pe=ve+Te,nt=Pe+this.view.renderHeight;ve =nt||(ve =nt&&this.view.setScrollTop(pe-this.view.renderHeight))}},we.prototype.getRelativeTop=function(k){if(k<0||k>=this.length)throw new te(this.user,"Invalid index "+k);var ee=this.view.getScrollTop(),Pe=this.view.elementTop(k),ve=this.view.elementHeight(k);if(Pe ee+this.view.renderHeight)return null;var Te=ve-this.view.renderHeight;return Math.abs((ee-Pe)/Te)},we.prototype.getHTMLElement=function(){return this.view.domNode},we.prototype.open=function(k,ee){for(var Pe=this,ve=0,Te=k;ve =this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidOpen.fire({indexes:k,elements:k.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.pin=function(k,ee){for(var Pe=this,ve=0,Te=k;ve =this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidPin.fire({indexes:k,elements:k.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.style=function(k){this.styleController.style(k)},we.prototype.toListEvent=function(k){var ee=this,Pe=k.indexes,ve=k.browserEvent;return{indexes:Pe,elements:Pe.map(function(Te){return ee.view.element(Te)}),browserEvent:ve}},we.prototype._onFocusChange=function(){var k=this.focus.get();j.X(this.view.domNode,"element-focused",k.length>0),this.onDidChangeActiveDescendant()},we.prototype.onDidChangeActiveDescendant=function(){var k,ee=this.focus.get();if(ee.length>0){var Pe=void 0;((k=this.accessibilityProvider)===null||k===void 0?void 0:k.getActiveDescendantId)&&(Pe=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",Pe||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},we.prototype._onSelectionChange=function(){var k=this.selection.get();j.X(this.view.domNode,"selection-none",k.length===0),j.X(this.view.domNode,"selection-single",k.length===1),j.X(this.view.domNode,"selection-multiple",k.length>1)},we.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},H([U.a],we.prototype,"onFocusChange",null),H([U.a],we.prototype,"onSelectionChange",null),H([U.a],we.prototype,"onContextMenu",null),we}()},NCja:function(wt,P,r){},NFtf:function(wt,P,r){"use strict";r.r(P),r.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=r("1lNs"),oe=r.n(I);"use strict";var ne=monaco.Emitter,N=function(){function E(x,K,D){this._onDidChange=new ne,this._languageId=x,this.setDiagnosticsOptions(K),this.setModeConfiguration(D)}return Object.defineProperty(E.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),E.prototype.setDiagnosticsOptions=function(x){this._diagnosticsOptions=x||Object.create(null),this._onDidChange.fire(this)},E.prototype.setModeConfiguration=function(x){this._modeConfiguration=x||Object.create(null),this._onDidChange.fire(this)},E}(),F={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},U={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},j=new N("json",F,U);function G(){return{jsonDefaults:j}}monaco.languages.json=G();function R(){return r.e(199).then(r.bind(null,"cm7A"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){R().then(function(E){return E.setupMode(j)})})},NIjb:function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return N});function I(j,G){G===void 0&&(G=0);switch(typeof j){case"object":return j===null?oe(349,G):Array.isArray(j)?F(j,G):U(j,G);case"string":return N(j,G);case"boolean":return ne(j,G);case"number":return oe(j,G);case"undefined":return oe(0,937);default:return oe(0,617)}}function oe(j,G){return(G<<5)-G+j|0}function ne(j,G){return oe(j?433:863,G)}function N(j,G){G=oe(149417,G);for(var R=0,E=j.length;R 200)return N;if(typeof N=="object"){switch(N.$mid){case 1:return I.a.revive(N);case 2:return new RegExp(N.source,N.flags)}for(var U in N)Object.hasOwnProperty.call(N,U)&&(N[U]=ne(N[U],F+1))}return N}},PoD0:function(wt,P,r){"use strict";r.d(P,"b",function(){return I}),r.d(P,"a",function(){return oe}),r.d(P,"c",function(){return N}),r.d(P,"d",function(){return F});var I;(function(U){U.serviceIds=new Map,U.DI_TARGET="$di$target",U.DI_DEPENDENCIES="$di$dependencies";function j(G){return G[U.DI_DEPENDENCIES]||[]}U.getServiceDependencies=j})(I||(I={}));var oe=N("instantiationService");function ne(U,j,G,R){j[I.DI_TARGET]===j?j[I.DI_DEPENDENCIES].push({id:U,index:G,optional:R}):(j[I.DI_DEPENDENCIES]=[{id:U,index:G,optional:R}],j[I.DI_TARGET]=j)}function N(U){if(I.serviceIds.has(U))return I.serviceIds.get(U);var j=function G(R,E,x){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ne(G,R,x,!1)};return j.toString=function(){return U},I.serviceIds.set(U,j),j}function F(U){return function(j,G,R){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ne(U,j,R,!0)}}},Q5rX:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("vqGt"),oe=function(){function N(F,U){this._tokens=F,this._tokensCount=this._tokens.length>>>1,this._text=U}return N.prototype.equals=function(F){return F instanceof N?this.slicedEquals(F,0,this._tokensCount):!1},N.prototype.slicedEquals=function(F,U,j){if(this._text!==F._text)return!1;if(this._tokensCount!==F._tokensCount)return!1;for(var G=U<<1,R=G+(j<<1),E=G;E 0?this._tokens[F-1<<1]:0},N.prototype.getMetadata=function(F){var U=this._tokens[(F<<1)+1];return U},N.prototype.getLanguageId=function(F){var U=this._tokens[(F<<1)+1];return I.x.getLanguageId(U)},N.prototype.getStandardTokenType=function(F){var U=this._tokens[(F<<1)+1];return I.x.getTokenType(U)},N.prototype.getForeground=function(F){var U=this._tokens[(F<<1)+1];return I.x.getForeground(U)},N.prototype.getClassName=function(F){var U=this._tokens[(F<<1)+1];return I.x.getClassNameFromMetadata(U)},N.prototype.getInlineStyle=function(F,U){var j=this._tokens[(F<<1)+1];return I.x.getInlineStyleFromMetadata(j,U)},N.prototype.getEndOffset=function(F){return this._tokens[F<<1]},N.prototype.findTokenIndexAtOffset=function(F){return N.findIndexInTokensArray(this._tokens,F)},N.prototype.inflate=function(){return this},N.prototype.sliceAndInflate=function(F,U,j){return new ne(this,F,U,j)},N.convertToEndOffset=function(F,U){for(var j=F.length>>>1,G=j-1,R=0;R >>1)-1;j U&&(G=R)}return j},N}(),ne=function(){function N(F,U,j,G){this._source=F,this._startOffset=U,this._endOffset=j,this._deltaOffset=G,this._firstTokenIndex=F.findTokenIndexAtOffset(U),this._tokensCount=0;for(var R=this._firstTokenIndex,E=F.getCount();R =j)break;this._tokensCount++}}return N.prototype.equals=function(F){return F instanceof N?this._startOffset===F._startOffset&&this._endOffset===F._endOffset&&this._deltaOffset===F._deltaOffset&&this._source.slicedEquals(F._source,this._firstTokenIndex,this._tokensCount):!1},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getForeground=function(F){return this._source.getForeground(this._firstTokenIndex+F)},N.prototype.getEndOffset=function(F){var U=this._source.getEndOffset(this._firstTokenIndex+F);return Math.min(this._endOffset,U)-this._startOffset+this._deltaOffset},N.prototype.getClassName=function(F){return this._source.getClassName(this._firstTokenIndex+F)},N.prototype.getInlineStyle=function(F,U){return this._source.getInlineStyle(this._firstTokenIndex+F,U)},N.prototype.findTokenIndexAtOffset=function(F){return this._source.findTokenIndexAtOffset(F+this._startOffset-this._deltaOffset)-this._firstTokenIndex},N}()},QHMs:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return r.e(238).then(r.bind(null,"FJ/h"))}})},QMTm:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return r.e(201).then(r.bind(null,"z260"))}})},QWes:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return r.e(212).then(r.bind(null,"vi59"))}})},QqjT:function(wt,P,r){"use strict";r.d(P,"e",function(){return ne}),r.d(P,"f",function(){return N}),r.d(P,"g",function(){return F}),r.d(P,"d",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"b",function(){return R}),r.d(P,"c",function(){return E});var I=function(){function x(){this.listeners=[],this.unexpectedErrorHandler=function(K){setTimeout(function(){throw K.stack?new Error(K.message+` `+K.stack):K},0)}}return x.prototype.emit=function(K){this.listeners.forEach(function(D){D(K)})},x.prototype.onUnexpectedError=function(K){this.unexpectedErrorHandler(K),this.emit(K)},x.prototype.onUnexpectedExternalError=function(K){this.unexpectedErrorHandler(K)},x}(),oe=new I;function ne(x){j(x)||oe.onUnexpectedError(x);return}function N(x){j(x)||oe.onUnexpectedExternalError(x);return}function F(x){if(x instanceof Error){var K=x.name,D=x.message,A=x.stacktrace||x.stack;return{$isError:!0,name:K,message:D,stack:A}}return x}var U="Canceled";function j(x){return x instanceof Error&&x.name===U&&x.message===U}function G(){var x=new Error(U);return x.name=x.message,x}function R(x){return x?new Error("Illegal argument: "+x):new Error("Illegal argument")}function E(x){return x?new Error("Illegal state: "+x):new Error("Illegal state")}},"Qr/v":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("keybindingService")},Qun0:function(wt,P,r){"use strict";r.d(P,"b",function(){return U}),r.d(P,"a",function(){return j}),r.d(P,"f",function(){return G}),r.d(P,"e",function(){return E}),r.d(P,"d",function(){return K}),r.d(P,"c",function(){return D});var I=r("QqjT"),oe=function(){function A(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return A.prototype.define=function(te,z){this._keyCodeToStr[te]=z,this._strToKeyCode[z.toLowerCase()]=te},A.prototype.keyCodeToStr=function(te){return this._keyCodeToStr[te]},A.prototype.strToKeyCode=function(te){return this._strToKeyCode[te.toLowerCase()]||0},A}(),ne=new oe,N=new oe,F=new oe;(function(){function A(te,z,_,f){_===void 0&&(_=z),f===void 0&&(f=_),ne.define(te,z),N.define(te,_),F.define(te,f)}A(0,"unknown"),A(1,"Backspace"),A(2,"Tab"),A(3,"Enter"),A(4,"Shift"),A(5,"Ctrl"),A(6,"Alt"),A(7,"PauseBreak"),A(8,"CapsLock"),A(9,"Escape"),A(10,"Space"),A(11,"PageUp"),A(12,"PageDown"),A(13,"End"),A(14,"Home"),A(15,"LeftArrow","Left"),A(16,"UpArrow","Up"),A(17,"RightArrow","Right"),A(18,"DownArrow","Down"),A(19,"Insert"),A(20,"Delete"),A(21,"0"),A(22,"1"),A(23,"2"),A(24,"3"),A(25,"4"),A(26,"5"),A(27,"6"),A(28,"7"),A(29,"8"),A(30,"9"),A(31,"A"),A(32,"B"),A(33,"C"),A(34,"D"),A(35,"E"),A(36,"F"),A(37,"G"),A(38,"H"),A(39,"I"),A(40,"J"),A(41,"K"),A(42,"L"),A(43,"M"),A(44,"N"),A(45,"O"),A(46,"P"),A(47,"Q"),A(48,"R"),A(49,"S"),A(50,"T"),A(51,"U"),A(52,"V"),A(53,"W"),A(54,"X"),A(55,"Y"),A(56,"Z"),A(57,"Meta"),A(58,"ContextMenu"),A(59,"F1"),A(60,"F2"),A(61,"F3"),A(62,"F4"),A(63,"F5"),A(64,"F6"),A(65,"F7"),A(66,"F8"),A(67,"F9"),A(68,"F10"),A(69,"F11"),A(70,"F12"),A(71,"F13"),A(72,"F14"),A(73,"F15"),A(74,"F16"),A(75,"F17"),A(76,"F18"),A(77,"F19"),A(78,"NumLock"),A(79,"ScrollLock"),A(80,";",";","OEM_1"),A(81,"=","=","OEM_PLUS"),A(82,",",",","OEM_COMMA"),A(83,"-","-","OEM_MINUS"),A(84,".",".","OEM_PERIOD"),A(85,"/","/","OEM_2"),A(86,"`","`","OEM_3"),A(110,"ABNT_C1"),A(111,"ABNT_C2"),A(87,"[","[","OEM_4"),A(88,"\\","\\","OEM_5"),A(89,"]","]","OEM_6"),A(90,"'","'","OEM_7"),A(91,"OEM_8"),A(92,"OEM_102"),A(93,"NumPad0"),A(94,"NumPad1"),A(95,"NumPad2"),A(96,"NumPad3"),A(97,"NumPad4"),A(98,"NumPad5"),A(99,"NumPad6"),A(100,"NumPad7"),A(101,"NumPad8"),A(102,"NumPad9"),A(103,"NumPad_Multiply"),A(104,"NumPad_Add"),A(105,"NumPad_Separator"),A(106,"NumPad_Subtract"),A(107,"NumPad_Decimal"),A(108,"NumPad_Divide")})();var U;(function(A){function te(g){return ne.keyCodeToStr(g)}A.toString=te;function z(g){return ne.strToKeyCode(g)}A.fromString=z;function _(g){return N.keyCodeToStr(g)}A.toUserSettingsUS=_;function f(g){return F.keyCodeToStr(g)}A.toUserSettingsGeneral=f;function p(g){return N.strToKeyCode(g)||F.strToKeyCode(g)}A.fromUserSettings=p})(U||(U={}));function j(A,te){var z=(te&65535)<<16>>>0;return(A|z)>>>0}function G(A,te){if(A===0)return null;var z=(A&65535)>>>0,_=(A&4294901760)>>>16;return _!==0?new x([R(z,te),R(_,te)]):new x([R(z,te)])}function R(A,te){var z=!!(A&2048),_=!!(A&256),f=te===2?_:z,p=!!(A&1024),g=!!(A&512),m=te===2?z:_,w=A&255;return new E(f,p,g,m,w)}var E=function(){function A(te,z,_,f,p){this.ctrlKey=te,this.shiftKey=z,this.altKey=_,this.metaKey=f,this.keyCode=p}return A.prototype.equals=function(te){return this.ctrlKey===te.ctrlKey&&this.shiftKey===te.shiftKey&&this.altKey===te.altKey&&this.metaKey===te.metaKey&&this.keyCode===te.keyCode},A.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},A.prototype.toChord=function(){return new x([this])},A.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},A}(),x=function(){function A(te){if(te.length===0)throw Object(I.b)("parts");this.parts=te}return A.prototype.equals=function(te){if(te===null)return!1;if(this.parts.length!==te.parts.length)return!1;for(var z=0;z =0,F=D.indexOf("Macintosh")>=0,R=D.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=D.indexOf("Linux")>=0,G=!0,E=navigator.language,x=E;else if(typeof I=="object"){N=I.platform==="win32",F=I.platform==="darwin",U=I.platform==="linux",E=ne,x=ne;var te=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(te)try{var z=JSON.parse(te),_=z.availableLanguages["*"];E=z.locale,x=_||ne,K=z._translationsConfigFile}catch(q){}j=!0}var f=0;F?f=1:N?f=3:U&&(f=2);var p=N,g=F,m=U,w=j,B=G,H=R,re=typeof self=="object"?self:typeof oe=="object"?oe:{},he=re,Ee=function(){if(he.setImmediate)return he.setImmediate.bind(he);if(typeof he.postMessage=="function"&&!he.importScripts){var Z=[];he.addEventListener("message",function(Ve){if(Ve.data&&Ve.data.vscodeSetImmediateId)for(var _e=0,ue=Z.length;_e =H.actionsList.children.length?(H.actionsList.appendChild(Se),H.viewItems.push(q)):(H.actionsList.insertBefore(Se,H.actionsList.children[he]),H.viewItems.splice(he,0,q),he++)})},m.prototype.clear=function(){this.viewItems=Object(F.f)(this.viewItems),j.s(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(w){var B=!1,H=void 0;w===void 0?B=!0:typeof w=="number"?H=w:typeof w=="boolean"&&(B=w),B&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(H!==void 0&&(this.focusedItem=H),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var w=this.focusedItem,B;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var w=this.focusedItem,B;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(w,B){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:B});for(var H=0;H 0&&Me[Me.length-1])&&(se[0]===6||se[0]===2)){q=0;continue}if(se[0]===3&&(!Me||se[1]>Me[0]&&se[1] 0&&!q.providerFilter.has(ze)?void 0:Promise.resolve(ze.provideCompletionItems(Ee,Se,Z,ce)).then(function(tt){var _t=se.length;if(tt){for(var Pt=0,Xt=tt.suggestions||[];Pt Se.sortTextLow)return 1}return Ee.completion.label Se.completion.label?1:Ee.completion.kind-Se.completion.kind}function m(Ee,Se){if(Ee.completion.kind!==Se.completion.kind){if(Ee.completion.kind===25)return-1;if(Se.completion.kind===25)return 1}return g(Ee,Se)}function w(Ee,Se){if(Ee.completion.kind!==Se.completion.kind){if(Ee.completion.kind===25)return 1;if(Se.completion.kind===25)return-1}return g(Ee,Se)}var B=new Map;B.set(0,m),B.set(2,w),B.set(1,g);function H(Ee){return B.get(Ee)}Object(N.e)("_executeCompletionItemProvider",function(Ee,Se,q){return K(void 0,void 0,void 0,function(){var Z,ce,Me,Ve,_e,ue,se,fe;return D(this,function(ie){switch(ie.label){case 0:return Z={incomplete:!1,suggestions:[]},ce=new x.b,Me=[],Ve=q.maxItemsToResolve||0,[4,p(Ee,Se)];case 1:for(_e=ie.sent(),ue=0,se=_e;ue U.length)return!1;if(G){var E=Object(I.N)(U,j);if(!E)return!1;if(j.length===U.length)return!0;var x=j.length;return j.charAt(j.length-1)===R&&x--,U.charAt(x)===R}return j.charAt(j.length-1)!==R&&(j+=R),U.indexOf(j)===0}function F(U){return U>=65&&U<=90||U>=97&&U<=122}},UFql:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return F});var I=r("yBOt"),oe=function(){function U(j,G,R,E){this.startColumn=j,this.endColumn=G,this.className=R,this.type=E}return U._equals=function(j,G){return j.startColumn===G.startColumn&&j.endColumn===G.endColumn&&j.className===G.className&&j.type===G.type},U.equalsArr=function(j,G){var R=j.length,E=G.length;if(R!==E)return!1;for(var x=0;x G)continue;if(z.isEmpty()&&(te.type===0||te.type===3))continue;var _=z.startLineNumber===G?z.startColumn:R,f=z.endLineNumber===G?z.endColumn:E;x[K++]=new U(_,f,te.inlineClassName,te.type)}return x},U.compare=function(j,G){return j.startColumn===G.startColumn?j.endColumn===G.endColumn?j.className G.className?1:0:j.endColumn-G.endColumn:j.startColumn-G.startColumn},U}(),ne=function(){function U(j,G,R){this.startOffset=j,this.endOffset=G,this.className=R}return U}(),N=function(){function U(){this.stopOffsets=[],this.classNames=[],this.count=0}return U.prototype.consumeLowerThan=function(j,G,R){for(;this.count>0&&this.stopOffsets[0] 0&&G =j){this.stopOffsets.splice(R,0,j),this.classNames.splice(R,0,G);break}this.count++;return},U}(),F=function(){function U(){}return U.normalize=function(j,G){if(G.length===0)return[];for(var R=[],E=new N,x=0,K=0,D=G.length;K 1){var f=j.charCodeAt(te-2);I.z(f)&&te--}if(z>1){var f=j.charCodeAt(z-2);I.z(f)&&z--}var p=te-1,g=z-2;x=E.consumeLowerThan(p,x,R),E.count===0&&(x=p),E.insert(g,_)}return E.consumeLowerThan(1073741824,x,R),R},U}()},UJ5a:function(wt,P,r){},UO9b:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("/W++");function oe(ne){return ne&&typeof ne.getEditorType=="function"?ne.getEditorType()===I.a.ICodeEditor:!1}},UgoW:function(wt,P,r){},Uq4v:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("mTMv"),oe=r("S7i+"),ne={clipboard:{writeText:oe.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:oe.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(I.i)return!1;if(I.e){var N=navigator.userAgent.indexOf("Edge/"),F=parseInt(navigator.userAgent.substring(N+5,navigator.userAgent.indexOf(".",N)),10);if(!F||F>=12&&F<=16)return!1}return!0}()},keyboard:function(){return oe.f||I.l?0:navigator.keyboard||I.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},V0RK:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I=function(){function oe(ne,N){this.lineNumber=ne,this.column=N}return oe.prototype.with=function(ne,N){return ne===void 0&&(ne=this.lineNumber),N===void 0&&(N=this.column),ne===this.lineNumber&&N===this.column?this:new oe(ne,N)},oe.prototype.delta=function(ne,N){return ne===void 0&&(ne=0),N===void 0&&(N=0),this.with(this.lineNumber+ne,this.column+N)},oe.prototype.equals=function(ne){return oe.equals(this,ne)},oe.equals=function(ne,N){return!ne&&!N?!0:!!ne&&!!N&&ne.lineNumber===N.lineNumber&&ne.column===N.column},oe.prototype.isBefore=function(ne){return oe.isBefore(this,ne)},oe.isBefore=function(ne,N){return ne.lineNumber 0){g=w[0].getStartPosition();var B=p.getTopForPosition(g.lineNumber,g.column);m=p.getScrollTop()-B}}return new f(g,m)},f.prototype.restore=function(p){if(this._visiblePosition){var g=p.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);p.setScrollTop(g+this._visiblePositionScrollDelta)}},f}()},VV9f:function(wt,P,r){"use strict";r.d(P,"f",function(){return N}),r.d(P,"b",function(){return Ee}),r.d(P,"c",function(){return Se}),r.d(P,"a",function(){return ye}),r.d(P,"d",function(){return ze}),r.d(P,"e",function(){return Ye});var I=r("emi/"),oe=r("yBOt");function ne(){for(var we=[],k=0;k 0?[{start:0,end:k.length}]:[]:null}function U(we,k){var ee=k.toLowerCase().indexOf(we.toLowerCase());return ee===-1?null:[{start:ee,end:ee+we.length}]}function j(we,k){return G(we.toLowerCase(),k.toLowerCase(),0,0)}function G(we,k,ee,Pe){if(ee===we.length)return[];if(Pe===k.length)return null;if(we[ee]===k[Pe]){var ve=null;return(ve=G(we,k,ee+1,Pe+1))?te({start:Pe,end:Pe+1},ve):null}return G(we,k,ee,Pe+1)}function R(we){return 97<=we&&we<=122}function E(we){return 65<=we&&we<=90}function x(we){return 48<=we&&we<=57}function K(we){return we===32||we===9||we===10||we===13}var D=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(we){return D.add(we.charCodeAt(0))});function A(we){return R(we)||E(we)||x(we)}function te(we,k){return k.length===0?k=[we]:we.end===k[0].start?k[0].start=we.start:k.unshift(we),k}function z(we,k){for(var ee=k;ee 0&&!A(we.charCodeAt(ee-1)))return ee}return we.length}function _(we,k,ee,Pe){if(ee===we.length)return[];if(Pe===k.length)return null;if(we[ee]!==k[Pe].toLowerCase())return null;var ve=null,Te=Pe+1;for(ve=_(we,k,ee+1,Pe+1);!ve&&(Te=z(k,Te)) .6}function g(we){var k=we.upperPercent,ee=we.lowerPercent,Pe=we.alphaPercent,ve=we.numericPercent;return ee>.2&&k<.8&&Pe>.6&&ve<.2}function m(we){for(var k=0,ee=0,Pe=0,ve=0,Te=0;Te 60)return null;var ee=f(k);if(!g(ee)){if(!p(ee))return null;k=k.toLowerCase()}var Pe=null,ve=0;for(we=we.toLowerCase();ve =0)nt+=1,pe+=Math.pow(2,Tt),Et=Tt+1;else if(pe!==0)break}return[nt,pe,Te]}function Se(we){if(typeof we=="undefined")return[];for(var k=we[1].toString(2),ee=we[2],Pe=[],ve=ee;ve =we.length)return!1;var ee=we.charCodeAt(k);switch(ee){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ie(we,k){if(k<0||k>=we.length)return!1;var ee=we.charCodeAt(k);switch(ee){case 32:case 9:return!0;default:return!1}}function J(we,k,ee){return k[we]!==ee[we]}function me(we,k,ee,Pe,ve,Te){for(;kq?q:we.length,nt=Pe.length>q?q:Pe.length;if(ee>=pe||Te>=nt||pe-ee>nt-Te)return;if(!me(k,ee,pe,ve,Te,nt))return;var Et=1,Rt=1,Tt=ee,Ht=Te;for(Et=1,Tt=ee;Tt 1?1:Gt),Ln=ce[Et-1][Rt]+-1,yn=ce[Et][Rt-1]+-1;yn>=Ln?yn>rn?(ce[Et][Rt]=yn,Ve[Et][Rt]=4):yn===rn?(ce[Et][Rt]=yn,Ve[Et][Rt]=4|2):(ce[Et][Rt]=rn,Ve[Et][Rt]=2):Ln>rn?(ce[Et][Rt]=Ln,Ve[Et][Rt]=1):Ln===rn?(ce[Et][Rt]=Ln,Ve[Et][Rt]=1|2):(ce[Et][Rt]=rn,Ve[Et][Rt]=2)}return _e&&se(we,ee,Pe,Te),_t=0,Xt=-100,Ke=Te,Xe=Ie,Ze(Et-1,Rt-1,pe===nt?1:0,0,!1),_t===0?void 0:[Xt,Pt,Te]}function tt(we,k,ee,Pe,ve,Te,Ie){return k[ee]!==Te[Ie]?-1:Ie===ee-Pe||J(Ie,ve,Te)&&(Ie===0||!J(Ie-1,ve,Te))?we[ee]===ve[Ie]?7:5:fe(Te,Ie)&&(Ie===0||!fe(Te,Ie-1))||(fe(Te,Ie-1)||ie(Te,Ie-1))?5:1}var _t=0,Pt=0,Xt=0,Ke=0,Xe=!1;function Ze(we,k,ee,Pe,ve){if(_t>=10||ee<-25)return;for(var Te=0;we>0&&k>0;){var Ie=Me[we][k],pe=Ve[we][k];if(pe===4)k-=1,ve?ee-=5:Pe!==0&&(ee-=1),ve=!1,Te=0;else if(pe&2)if(pe&4&&Ze(we,k-1,Pe!==0?ee-1:ee,Pe,ve),ee+=Ie,we-=1,k-=1,ve=!0,Pe+=Math.pow(2,k+Ke),Ie===1){if(Te+=1,we===0&&!Xe)return}else ee+=1+Te*(Ie-1),Te=0;else return}ee-=k>=3?9:k*3,_t+=1,ee>Xt&&(Xt=ee,Pt=Pe)}function Ye(we,k,ee,Pe,ve,Te,Ie){return ke(we,k,ee,Pe,ve,Te,!0,Ie)}function ke(we,k,ee,Pe,ve,Te,Ie,pe){var nt=ze(we,k,ee,Pe,ve,Te,pe);if(nt&&!Ie)return nt;if(we.length>=3)for(var Et=Math.min(7,we.length-1),Rt=ee+1;Rt nt[0])&&(nt=Ht))}}return nt}function $e(we,k){if(k+1>=we.length)return;var ee=we[k],Pe=we[k+1];return ee===Pe?void 0:we.slice(0,k)+Pe+ee+we.slice(k+2)}},VoE1:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return r.e(248).then(r.bind(null,"rbDI"))}})},W03H:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("IWorkspaceEditService")},WKDz:function(wt,P,r){"use strict";r.d(P,"a",function(){return E});var I=r("jSiy"),oe=r.n(I),ne=r("fF8p"),N=r("WWv/"),F=r("bN5T"),U=r("eAZY"),j=r("mucJ"),G=function(){var A=function(z,_){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])},A(z,_)};return function(te,z){A(te,z);function _(){this.constructor=te}te.prototype=z===null?Object.create(z):(_.prototype=z.prototype,new _)}}(),R=function(){function A(te){this._element=te}return Object.defineProperty(A.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"textContent",{set:function(z){if(this.disposed||z===this._textContent)return;this._textContent=z,this._element.textContent=z},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"className",{set:function(z){if(this.disposed||z===this._className)return;this._className=z,this._element.className=z},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"title",{set:function(z){if(this.disposed||z===this._title)return;this._title=z,this._title?this._element.title=z:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"empty",{set:function(z){if(this.disposed||z===this._empty)return;this._empty=z,this._element.style.marginLeft=z?"0":""},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.disposed=!0},A}(),E=function(A){G(te,A);function te(z,_){var f=A.call(this)||this;f.domNode=f._register(new R(ne.p(z,ne.a(".monaco-icon-label"))));var p=ne.p(f.domNode.element,ne.a(".monaco-icon-label-container")),g=ne.p(p,ne.a("span.monaco-icon-name-container"));return f.descriptionContainer=f._register(new R(ne.p(p,ne.a("span.monaco-icon-description-container")))),(_==null?void 0:_.supportHighlights)?f.nameNode=new D(g,!!_.supportCodicons):f.nameNode=new x(g),(_==null?void 0:_.supportDescriptionHighlights)?f.descriptionNodeFactory=function(){return new N.a(ne.p(f.descriptionContainer.element,ne.a("span.label-description")),!!_.supportCodicons)}:f.descriptionNodeFactory=function(){return f._register(new R(ne.p(f.descriptionContainer.element,ne.a("span.label-description"))))},f}return te.prototype.setLabel=function(z,_,f){var p=["monaco-icon-label"];f&&(f.extraClasses&&p.push.apply(p,f.extraClasses),f.italic&&p.push("italic")),this.domNode.className=p.join(" "),this.domNode.title=(f==null?void 0:f.title)||"",this.nameNode.setLabel(z,f),(_||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof N.a?(this.descriptionNode.set(_||"",f?f.descriptionMatches:void 0),(f==null?void 0:f.descriptionTitle)?this.descriptionNode.element.title=f.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=_||"",this.descriptionNode.title=(f==null?void 0:f.descriptionTitle)||"",this.descriptionNode.empty=!_))},te}(F.a),x=function(){function A(te){this.container=te,this.label=void 0,this.singleLabel=void 0}return A.prototype.setLabel=function(te,z){if(this.label===te&&Object(j.e)(this.options,z))return;if(this.label=te,this.options=z,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=ne.p(this.container,ne.a("a.label-name",{id:z==null?void 0:z.domId}))),this.singleLabel.textContent=te;else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var _=0;_ A&&(te=A-D),te<0&&(te=0),z<0&&(z=0),f+z>_&&(f=_-z),f<0&&(f=0),this.width=D,this.scrollWidth=A,this.scrollLeft=te,this.height=z,this.scrollHeight=_,this.scrollTop=f}return K.prototype.equals=function(D){return this.width===D.width&&this.scrollWidth===D.scrollWidth&&this.scrollLeft===D.scrollLeft&&this.height===D.height&&this.scrollHeight===D.scrollHeight&&this.scrollTop===D.scrollTop},K.prototype.withScrollDimensions=function(D){return new K(typeof D.width!="undefined"?D.width:this.width,typeof D.scrollWidth!="undefined"?D.scrollWidth:this.scrollWidth,this.scrollLeft,typeof D.height!="undefined"?D.height:this.height,typeof D.scrollHeight!="undefined"?D.scrollHeight:this.scrollHeight,this.scrollTop)},K.prototype.withScrollPosition=function(D){return new K(this.width,this.scrollWidth,typeof D.scrollLeft!="undefined"?D.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof D.scrollTop!="undefined"?D.scrollTop:this.scrollTop)},K.prototype.createScrollEvent=function(D){var A=this.width!==D.width,te=this.scrollWidth!==D.scrollWidth,z=this.scrollLeft!==D.scrollLeft,_=this.height!==D.height,f=this.scrollHeight!==D.scrollHeight,p=this.scrollTop!==D.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:A,scrollWidthChanged:te,scrollLeftChanged:z,heightChanged:_,scrollHeightChanged:f,scrollTopChanged:p}},K}(),F=function(K){ne(D,K);function D(A,te){var z=K.call(this)||this;return z._onScroll=z._register(new I.a),z.onScroll=z._onScroll.event,z._smoothScrollDuration=A,z._scheduleAtNextAnimationFrame=te,z._state=new N(0,0,0,0,0,0),z._smoothScrolling=null,z}return D.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),K.prototype.dispose.call(this)},D.prototype.setSmoothScrollDuration=function(A){this._smoothScrollDuration=A},D.prototype.validateScrollPosition=function(A){return this._state.withScrollPosition(A)},D.prototype.getScrollDimensions=function(){return this._state},D.prototype.setScrollDimensions=function(A){var te=this._state.withScrollDimensions(A);this._setState(te),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},D.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},D.prototype.getCurrentScrollPosition=function(){return this._state},D.prototype.setScrollPositionNow=function(A){var te=this._state.withScrollPosition(A);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(te)},D.prototype.setScrollPositionSmooth=function(A){var te=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(A);if(this._smoothScrolling){A={scrollLeft:typeof A.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:A.scrollLeft,scrollTop:typeof A.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:A.scrollTop};var z=this._state.withScrollPosition(A);if(this._smoothScrolling.to.scrollLeft===z.scrollLeft&&this._smoothScrolling.to.scrollTop===z.scrollTop)return;var _=this._smoothScrolling.combine(this._state,z,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=_}else{var z=this._state.withScrollPosition(A);this._smoothScrolling=R.start(this._state,z,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!te._smoothScrolling)return;te._smoothScrolling.animationFrameDisposable=null,te._performSmoothScrolling()})},D.prototype._performSmoothScrolling=function(){var A=this;if(!this._smoothScrolling)return;var te=this._smoothScrolling.tick(),z=this._state.withScrollPosition(te);if(this._setState(z),te.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!A._smoothScrolling)return;A._smoothScrolling.animationFrameDisposable=null,A._performSmoothScrolling()})},D.prototype._setState=function(A){var te=this._state;if(te.equals(A))return;this._state=A,this._onScroll.fire(this._state.createScrollEvent(te))},D}(oe.a),U=function(){function K(D,A,te){this.scrollLeft=D,this.scrollTop=A,this.isDone=te}return K}();function j(K,D){var A=D-K;return function(te){return K+A*x(te)}}function G(K,D,A){return function(te){return te2.5*te){var _=void 0,f=void 0;return D";var x=this.text.substring(j,E.start);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(x)):Object(ne.o)(x),U+="",j=E.end}E.extraClasses?U+='':U+='';var K=this.text.substring(E.start,E.end);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(K)):Object(ne.o)(K),U+="",j=E.end}if(j ";var K=this.text.substring(j);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(K)):Object(ne.o)(K),U+=" "}this.domNode.innerHTML=U,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},F.escapeNewLines=function(U,j){var G=0,R=0;return U.replace(/\r\n|\r|\n/g,function(E,x){R=E===`\r `?-1:0,x+=G;for(var K=0,D=j;K=x&&(A.start+=R),A.end>=x&&(A.end+=R)}return G+=R,"\u23CE"})},F}()},WcJl:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe){var ne=this,N=!1,F;return function(){return N||(N=!0,F=oe.apply(ne,arguments)),F}}},Whdu:function(wt,P,r){"use strict";r.d(P,"a",function(){return te}),r.d(P,"c",function(){return z}),r.d(P,"b",function(){return _}),r.d(P,"j",function(){return f}),r.d(P,"e",function(){return p}),r.d(P,"k",function(){return g}),r.d(P,"g",function(){return w}),r.d(P,"f",function(){return B}),r.d(P,"i",function(){return H}),r.d(P,"h",function(){return re}),r.d(P,"d",function(){return he});var I=r("QqjT"),oe=r("zOJ8"),ne=r("vQ3m"),N=r("V0RK"),F=r("1Ylb"),U=r("AhSp"),j=r("1OsU"),G=r("OJ8J"),R=r("bBv/"),E=r("sobA"),x=r("E+fE"),K=r("yimU"),D=r("yqRl"),A=function(){var q=function(ce,Me){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,_e){Ve.__proto__=_e}||function(Ve,_e){for(var ue in _e)_e.hasOwnProperty(ue)&&(Ve[ue]=_e[ue])},q(ce,Me)};return function(Z,ce){q(Z,ce);function Me(){this.constructor=Z}Z.prototype=ce===null?Object.create(ce):(Me.prototype=ce.prototype,new Me)}}(),te=function(){function q(Z){this.id=Z.id,this.precondition=Z.precondition,this._kbOpts=Z.kbOpts,this._menuOpts=Z.menuOpts,this._description=Z.description}return q.prototype.register=function(){var Z=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var ce=this._kbOpts.kbExpr;this.precondition&&(ce?ce=R.a.and(ce,this.precondition):ce=this.precondition),E.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Ve,_e){return Z.runCommand(Ve,_e)},weight:this._kbOpts.weight,when:ce,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else G.a.registerCommand({id:this.id,handler:function(Ve,_e){return Z.runCommand(Ve,_e)},description:this._description})},q.prototype._registerMenuItem=function(Z){j.c.appendMenuItem(Z.menuId,{group:Z.group,command:{id:this.id,title:Z.title},when:Z.when,order:Z.order})},q}(),z=function(q){A(Z,q);function Z(){return q!==null&&q.apply(this,arguments)||this}return Z.bindToContribution=function(ce){return function(Me){A(Ve,Me);function Ve(_e){var ue=Me.call(this,_e)||this;return ue._callback=_e.handler,ue}return Ve.prototype.runEditorCommand=function(_e,ue,se){var fe=ce(ue);fe&&this._callback(ce(ue),se)},Ve}(Z)},Z.prototype.runCommand=function(ce,Me){var Ve=this,_e=ce.get(ne.a),ue=_e.getFocusedCodeEditor()||_e.getActiveCodeEditor();return ue?ue.invokeWithinContext(function(se){var fe=se.get(R.c);return fe.contextMatchesRules(Object(D.n)(Ve.precondition))?Ve.runEditorCommand(se,ue,Me):void 0}):void 0},Z}(te),_=function(q){A(Z,q);function Z(ce){var Me=q.call(this,Z.convertOptions(ce))||this;return Me.label=ce.label,Me.alias=ce.alias,Me}return Z.convertOptions=function(ce){var Me;Array.isArray(ce.menuOpts)?Me=ce.menuOpts:ce.menuOpts?Me=[ce.menuOpts]:Me=[];function Ve(_e){return _e.menuId||(_e.menuId=7),_e.title||(_e.title=ce.label),_e.when=R.a.and(ce.precondition,_e.when),_e}return Array.isArray(ce.contextMenuOpts)?Me.push.apply(Me,ce.contextMenuOpts.map(Ve)):ce.contextMenuOpts&&Me.push(Ve(ce.contextMenuOpts)),ce.menuOpts=Me,ce},Z.prototype.runEditorCommand=function(ce,Me,Ve){return this.reportTelemetry(ce,Me),this.run(ce,Me,Ve||{})},Z.prototype.reportTelemetry=function(ce,Me){ce.get(K.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},Z}(z);function f(q,Z){G.a.registerCommand(q,function(ce,Me){return Z(ce,Me||{})})}function p(q,Z){f(q,function(ce,Me){var Ve=Me.resource,_e=Me.position;if(!(Ve instanceof oe.a))throw Object(I.b)("resource");if(!N.a.isIPosition(_e))throw Object(I.b)("position");var ue=ce.get(F.a).getModel(Ve);if(ue){var se=N.a.lift(_e);return Z(ue,se,Me)}return ce.get(U.a).createModelReference(Ve).then(function(fe){return new Promise(function(ie,J){try{var me=Z(fe.object.textEditorModel,N.a.lift(_e),Me);ie(me)}catch(ye){J(ye)}}).finally(function(){fe.dispose()})})})}function g(q,Z){G.a.registerCommand(q,function(ce){for(var Me=[],Ve=1;Ve =0})}q.getSomeEditorContributions=Ve;function _e(){return Se.INSTANCE.getDiffEditorContributions()}q.getDiffEditorContributions=_e})(he||(he={}));var Ee={EditorCommonContributions:"editor.contributions"},Se=function(){function q(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return q.prototype.registerEditorContribution=function(Z,ce){this.editorContributions.push({id:Z,ctor:ce})},q.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},q.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},q.prototype.registerEditorAction=function(Z){Z.register(),this.editorActions.push(Z)},q.prototype.getEditorActions=function(){return this.editorActions.slice(0)},q.prototype.registerEditorCommand=function(Z){Z.register(),this.editorCommands[Z.id]=Z},q.prototype.getEditorCommand=function(Z){return this.editorCommands[Z]||null},q.INSTANCE=new q,q}();x.a.add(Ee.EditorCommonContributions,Se.INSTANCE)},XAYP:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("ywU6"),oe=function(){function N(F){this.element=F,this.next=N.Undefined,this.prev=N.Undefined}return N.Undefined=new N(void 0),N}(),ne=function(){function N(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}return Object.defineProperty(N.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),N.prototype.isEmpty=function(){return this._first===oe.Undefined},N.prototype.clear=function(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0},N.prototype.unshift=function(F){return this._insert(F,!1)},N.prototype.push=function(F){return this._insert(F,!0)},N.prototype._insert=function(F,U){var j=this,G=new oe(F);if(this._first===oe.Undefined)this._first=G,this._last=G;else if(U){var R=this._last;this._last=G,G.prev=R,R.next=G}else{var E=this._first;this._first=G,G.next=E,E.prev=G}this._size+=1;var x=!1;return function(){x||(x=!0,j._remove(G))}},N.prototype.shift=function(){if(this._first===oe.Undefined)return;var F=this._first.element;return this._remove(this._first),F},N.prototype.pop=function(){if(this._last===oe.Undefined)return;var F=this._last.element;return this._remove(this._last),F},N.prototype._remove=function(F){if(F.prev!==oe.Undefined&&F.next!==oe.Undefined){var U=F.prev;U.next=F.next,F.next.prev=U}else F.prev===oe.Undefined&&F.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):F.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):F.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1},N.prototype.iterator=function(){var F,U=this._first;return{next:function(){return U===oe.Undefined?I.b:(F?F.value=U.element:F={done:!1,value:U.element},U=U.next,F)}}},N.prototype.toArray=function(){for(var F=[],U=this._first;U!==oe.Undefined;U=U.next)F.push(U.element);return F},N}()},XGV8:function(wt,P,r){"use strict";r.d(P,"a",function(){return te}),r.d(P,"b",function(){return z});var I=r("QqjT"),oe=r("yBOt"),ne=r("i14n"),N=r("g2LA"),F=r("w9Cd"),U=r("F5bH"),j=r("tkZS"),G=Object.create(null);function R(_,f){G[_]||(G[_]=["",_]);for(var p=G[_],g=p.length;g<=f;g++)p[g]=p[g-1]+_;return p[f]}var E=function(){function _(f,p){this._opts=p,this._selection=f,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return _.unshiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var H=R(" ",m),re=N.a.prevIndentTabStop(B,m),he=re/m;return R(H,he)}else{var H=" ",re=N.a.prevRenderTabStop(B,g),he=re/g;return R(H,he)}},_.shiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var H=R(" ",m),re=N.a.nextIndentTabStop(B,m),he=re/m;return R(H,he)}else{var H=" ",re=N.a.nextRenderTabStop(B,g),he=re/g;return R(H,he)}},_.prototype._addEditOperation=function(f,p,g){this._useLastEditRangeForCursorEndPosition?f.addTrackedEditOperation(p,g):f.addEditOperation(p,g)},_.prototype.getEditOperations=function(f,p){var g=this._selection.startLineNumber,m=this._selection.endLineNumber;this._selection.endColumn===1&&g!==m&&(m=m-1);var w=this._opts,B=w.tabSize,H=w.indentSize,re=w.insertSpaces,he=g===m;if(this._selection.isEmpty()&&(/^\s*$/.test(f.getLineContent(g))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var Ee=0,Se=0,q=g;q<=m;q++,Ee=Se){Se=0;var Z=f.getLineContent(q),ce=oe.q(Z);if(this._opts.isUnshift&&(Z.length===0||ce===0))continue;if(!he&&!this._opts.isUnshift&&Z.length===0)continue;if(ce===-1&&(ce=Z.length),q>1){var Me=N.a.visibleColumnFromColumn(Z,ce+1,B);if(Me%H!==0&&f.isCheapToTokenize(q-1)){var Ve=j.a.getEnterAction(this._opts.autoIndent,f,new F.a(q-1,f.getLineMaxColumn(q-1),q-1,f.getLineMaxColumn(q-1)));if(Ve){if(Se=Ee,Ve.appendText)for(var _e=0,ue=Ve.appendText.length;_e 1){var H=void 0;for(H=g-1;H>=1;H--){var re=p.getLineContent(H),he=oe.D(re);if(he>=0)break}if(H<1)return null;var Ee=p.getLineMaxColumn(H),Se=j.a.getEnterAction(f.autoIndent,p,new F.a(H,Ee,H,Ee));Se&&(w=Se.indentation+Se.appendText)}return m&&(m===D.a.Indent&&(w=_.shiftIndent(f,w)),m===D.a.Outdent&&(w=_.unshiftIndent(f,w)),w=f.normalizeIndentation(w)),w||null},_._replaceJumpToNextIndent=function(f,p,g,m){var w="",B=g.getStartPosition();if(f.insertSpaces)for(var H=N.a.visibleColumnFromColumn2(f,p,B),re=f.indentSize,he=re-H%re,Ee=0;Ee =4){var ce=j.a.getIndentForEnter(f.autoIndent,p,m,{unshiftIndent:function(J){return _.unshiftIndent(f,J)},shiftIndent:function(J){return _.shiftIndent(f,J)},normalizeIndentation:function(J){return f.normalizeIndentation(J)}});if(ce){var Me=N.a.visibleColumnFromColumn2(f,p,m.getEndPosition()),Ve=m.endColumn,_e=` `;Z!==f.normalizeIndentation(ce.beforeEnter)&&(_e=f.normalizeIndentation(ce.beforeEnter)+q.substring(Z.length,m.startColumn-1)+` `,m=new F.a(m.startLineNumber,1,m.endLineNumber,m.endColumn));var ue=p.getLineContent(m.endLineNumber),se=oe.q(ue);if(se>=0?m=m.setEndPosition(m.endLineNumber,Math.max(m.endColumn,se+1)):m=m.setEndPosition(m.endLineNumber,p.getLineMaxColumn(m.endLineNumber)),g)return new ne.d(m,_e+f.normalizeIndentation(ce.afterEnter),!0);var fe=0;return Ve<=se+1&&(f.insertSpaces||(Me=Math.ceil(Me/f.indentSize)),fe=Math.min(Me+1-f.normalizeIndentation(ce.afterEnter).length-1,0)),new ne.c(m,_e+f.normalizeIndentation(ce.afterEnter),0,fe,!0)}}return _._typeCommand(m,` `+f.normalizeIndentation(Z),g)},_._isAutoIndentType=function(f,p,g){if(f.autoIndent<4)return!1;for(var m=0,w=g.length;m 2?Ee.charCodeAt(he.column-2):0;if(Z===92&&q)return!1;if(f.autoClosingOvertype==="auto"){for(var ce=!1,Me=0,Ve=m.length;Me =0||g.indexOf(p)>=0},_._isBeforeClosingBrace=function(f,p,g){var m=f.autoClosingPairsClose2.get(g);if(!m)return!1;for(var w=_._autoClosingPairIsSymmetric(p),B=0,H=m;B B.open.length){for(var Ee=!0,Se=0,q=g;Se Z.column-1){var Me=ce.charAt(Z.column-1),Ve=_._isBeforeClosingBrace(f,re,Me);if(!Ve&&!he(Me))return null}if(!p.isCheapToTokenize(Z.lineNumber))return null;if(re.open.length===1&&B&&H!=="always"){var _e=Object(K.a)(f.wordSeparators);if(w&&Z.column>1&&_e.get(ce.charCodeAt(Z.column-2))===0)return null;if(!w&&Z.column>2&&_e.get(ce.charCodeAt(Z.column-3))===0)return null}p.forceTokenization(Z.lineNumber);var ue=p.getLineTokens(Z.lineNumber),se=!1;try{se=j.a.shouldAutoClosePair(re,ue,w?Z.column:Z.column-1)}catch(fe){Object(I.e)(fe)}if(!se)return null}return re},_._runAutoClosingOpenCharType=function(f,p,g,m,w,B,H){for(var re=[],he=0,Ee=m.length;he 1)&&ze.fire(Pt),ye=0},ue)})},onLastListenerRemove:function(){ie.dispose()}});return ze.event}A.debounce=B;function H(Ve){var _e=new Date().getTime();return z(te(Ve),function(ue){return new Date().getTime()-_e})}A.stopwatch=H;function re(Ve){var _e=!0,ue;return f(Ve,function(se){var fe=_e||se!==ue;return _e=!1,ue=se,fe})}A.latch=re;function he(Ve,_e,ue){_e===void 0&&(_e=!1),ue===void 0&&(ue=[]);var se=ue.slice(),fe=Ve(function(me){se?se.push(me):J.fire(me)}),ie=function(){se&&se.forEach(function(ye){return J.fire(ye)}),se=null},J=new R({onFirstListenerAdd:function(){fe||(fe=Ve(function(ye){return J.fire(ye)}))},onFirstListenerDidAdd:function(){se&&(_e?setTimeout(ie):ie())},onLastListenerRemove:function(){fe&&fe.dispose(),fe=null}});return J.event}A.buffer=he;var Ee=function(){function Ve(_e){this.event=_e}return Ve.prototype.map=function(_e){return new Ve(z(this.event,_e))},Ve.prototype.forEach=function(_e){return new Ve(_(this.event,_e))},Ve.prototype.filter=function(_e){return new Ve(f(this.event,_e))},Ve.prototype.reduce=function(_e,ue){return new Ve(m(this.event,_e,ue))},Ve.prototype.latch=function(){return new Ve(re(this.event))},Ve.prototype.debounce=function(_e,ue,se,fe){return ue===void 0&&(ue=100),se===void 0&&(se=!1),new Ve(B(this.event,_e,ue,se,fe))},Ve.prototype.on=function(_e,ue,se){return this.event(_e,ue,se)},Ve.prototype.once=function(_e,ue,se){return te(this.event)(_e,ue,se)},Ve}();function Se(Ve){return new Ee(Ve)}A.chain=Se;function q(Ve,_e,ue){ue===void 0&&(ue=function(ye){return ye});var se=function(){for(var ye=[],ze=0;ze 0?new G(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(A.prototype,"event",{get:function(){var z=this;return this._event||(this._event=function(_,f,p){z._listeners||(z._listeners=new N.a);var g=z._listeners.isEmpty();g&&z._options&&z._options.onFirstListenerAdd&&z._options.onFirstListenerAdd(z);var m=z._listeners.push(f?[_,f]:_);g&&z._options&&z._options.onFirstListenerDidAdd&&z._options.onFirstListenerDidAdd(z),z._options&&z._options.onListenerDidAdd&&z._options.onListenerDidAdd(z,_,f);var w;z._leakageMon&&(w=z._leakageMon.check(z._listeners.size));var B;return B={dispose:function(){if(w&&w(),B.dispose=A._noop,!z._disposed&&(m(),z._options&&z._options.onLastListenerRemove)){var re=z._listeners&&!z._listeners.isEmpty();re||z._options.onLastListenerRemove(z)}}},p instanceof ne.b?p.add(B):Array.isArray(p)&&p.push(B),B}),this._event},enumerable:!0,configurable:!0}),A.prototype.fire=function(te){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new N.a);for(var z=this._listeners.iterator(),_=z.next();!_.done;_=z.next())this._deliveryQueue.push([_.value,te]);for(;this._deliveryQueue.size>0;){var f=this._deliveryQueue.shift(),p=f[0],g=f[1];try{typeof p=="function"?p.call(void 0,g):p[0].call(p[1],g)}catch(m){Object(I.e)(m)}}}},A.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},A._noop=function(){},A}(),E=function(A){F(te,A);function te(z){var _=A.call(this,z)||this;return _._isPaused=0,_._eventQueue=new N.a,_._mergeFn=z&&z.merge,_}return te.prototype.pause=function(){this._isPaused++},te.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var z=this._eventQueue.toArray();this._eventQueue.clear(),A.prototype.fire.call(this,this._mergeFn(z))}else for(;!this._isPaused&&this._eventQueue.size!==0;)A.prototype.fire.call(this,this._eventQueue.shift())},te.prototype.fire=function(z){this._listeners&&(this._isPaused!==0?this._eventQueue.push(z):A.prototype.fire.call(this,z))},te}(R),x=function(){function A(){var te=this;this.hasListeners=!1,this.events=[],this.emitter=new R({onFirstListenerAdd:function(){return te.onFirstListenerAdd()},onLastListenerRemove:function(){return te.onLastListenerRemove()}})}return Object.defineProperty(A.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),A.prototype.add=function(te){var z=this,_={event:te,listener:null};this.events.push(_),this.hasListeners&&this.hook(_);var f=function(){z.hasListeners&&z.unhook(_);var g=z.events.indexOf(_);z.events.splice(g,1)};return Object(ne.h)(Object(oe.a)(f))},A.prototype.onFirstListenerAdd=function(){var te=this;this.hasListeners=!0,this.events.forEach(function(z){return te.hook(z)})},A.prototype.onLastListenerRemove=function(){var te=this;this.hasListeners=!1,this.events.forEach(function(z){return te.unhook(z)})},A.prototype.hook=function(te){var z=this;te.listener=te.event(function(_){return z.emitter.fire(_)})},A.prototype.unhook=function(te){te.listener&&te.listener.dispose(),te.listener=null},A.prototype.dispose=function(){this.emitter.dispose()},A}(),K=function(){function A(){this.buffers=[]}return A.prototype.wrapEvent=function(te){var z=this;return function(_,f,p){return te(function(g){var m=z.buffers[z.buffers.length-1];m?m.push(function(){return _.call(f,g)}):_.call(f,g)},void 0,p)}},A.prototype.bufferEvents=function(te){var z=[];this.buffers.push(z);var _=te();return this.buffers.pop(),z.forEach(function(f){return f()}),_},A}(),D=function(){function A(){var te=this;this.listening=!1,this.inputEvent=U.None,this.inputEventListener=ne.a.None,this.emitter=new R({onFirstListenerDidAdd:function(){te.listening=!0,te.inputEventListener=te.inputEvent(te.emitter.fire,te.emitter)},onLastListenerRemove:function(){te.listening=!1,te.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(A.prototype,"input",{set:function(z){this.inputEvent=z,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=z(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},A}()},YWAb:function(wt,P,r){},"Ym/J":function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"b",function(){return F});var I=r("/epU"),oe=r("PoD0"),ne=I.a,N=Object(oe.c)("notificationService"),F=function(){function U(){}return U}()},YrLJ:function(wt,P,r){},Ytku:function(wt,P,r){"use strict";r.d(P,"c",function(){return oe}),r.d(P,"b",function(){return N}),r.d(P,"a",function(){return F});function I(U,j){var G=Math.pow(10,j);return Math.round(U*G)/G}var oe=function(){function U(j,G,R,E){E===void 0&&(E=1),this.r=Math.min(255,Math.max(0,j))|0,this.g=Math.min(255,Math.max(0,G))|0,this.b=Math.min(255,Math.max(0,R))|0,this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.r===G.r&&j.g===G.g&&j.b===G.b&&j.a===G.a},U}(),ne=function(){function U(j,G,R,E){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.l=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.l===G.l&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,E=j.b/255,x=j.a,K=Math.max(G,R,E),D=Math.min(G,R,E),A=0,te=0,z=(D+K)/2,_=K-D;if(_>0){te=Math.min(z<=.5?_/(2*z):_/(2-2*z),1);switch(K){case G:A=(R-E)/_+(R 1&&(R-=1),R<1/6?j+(G-j)*6*R:R<1/2?G:R<2/3?j+(G-j)*(2/3-R)*6:j},U.toRGBA=function(j){var G=j.h/360,R=j.s,E=j.l,x=j.a,K,D,A;if(R===0)K=D=A=E;else{var te=E<.5?E*(1+R):E+R-E*R,z=2*E-te;K=U._hue2rgb(z,te,G+1/3),D=U._hue2rgb(z,te,G),A=U._hue2rgb(z,te,G-1/3)}return new oe(Math.round(K*255),Math.round(D*255),Math.round(A*255),x)},U}(),N=function(){function U(j,G,R,E){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.v=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.v===G.v&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,E=j.b/255,x=Math.max(G,R,E),K=Math.min(G,R,E),D=x-K,A=x===0?0:D/x,te;return D===0?te=0:x===G?te=((R-E)/D%6+6)%6:x===R?te=(E-G)/D+2:te=(G-R)/D+4,new U(Math.round(te*60),A,x,j.a)},U.toRGBA=function(j){var G=j.h,R=j.s,E=j.v,x=j.a,K=E*R,D=K*(1-Math.abs(G/60%2-1)),A=E-K,te=[0,0,0],z=te[0],_=te[1],f=te[2];return G<60?(z=K,_=D):G<120?(z=D,_=K):G<180?(_=K,f=D):G<240?(_=D,f=K):G<300?(z=D,f=K):G<360&&(z=K,f=D),z=Math.round((z+A)*255),_=Math.round((_+A)*255),f=Math.round((f+A)*255),new oe(z,_,f,x)},U}(),F=function(){function U(j){if(j)if(j instanceof oe)this.rgba=j;else if(j instanceof ne)this._hsla=j,this.rgba=ne.toRGBA(j);else if(j instanceof N)this._hsva=j,this.rgba=N.toRGBA(j);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return U.fromHex=function(j){return U.Format.CSS.parseHex(j)||U.red},Object.defineProperty(U.prototype,"hsla",{get:function(){return this._hsla?this._hsla:ne.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"hsva",{get:function(){return this._hsva?this._hsva:N.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),U.prototype.equals=function(j){return!!j&&oe.equals(this.rgba,j.rgba)&&ne.equals(this.hsla,j.hsla)&&N.equals(this.hsva,j.hsva)},U.prototype.getRelativeLuminance=function(){var j=U._relativeLuminanceForComponent(this.rgba.r),G=U._relativeLuminanceForComponent(this.rgba.g),R=U._relativeLuminanceForComponent(this.rgba.b),E=.2126*j+.7152*G+.0722*R;return I(E,4)},U._relativeLuminanceForComponent=function(j){var G=j/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)},U.prototype.isLighter=function(){var j=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return j>=128},U.prototype.isLighterThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G>R},U.prototype.isDarkerThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G =48&&_<=57},z.isVariableCharacter=function(_){return _===95||_>=97&&_<=122||_>=65&&_<=90},z.prototype.text=function(_){this.value=_,this.pos=0},z.prototype.tokenText=function(_){return this.value.substr(_.pos,_.len)},z.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var _=this.pos,f=0,p=this.value.charCodeAt(_),g;if(g=z._table[p],typeof g=="number")return this.pos+=1,{type:g,pos:_,len:1};if(z.isDigitCharacter(p)){g=8;do f+=1,p=this.value.charCodeAt(_+f);while(z.isDigitCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}}if(z.isVariableCharacter(p)){g=9;do p=this.value.charCodeAt(_+ ++f);while(z.isVariableCharacter(p)||z.isDigitCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}}g=10;do f+=1,p=this.value.charCodeAt(_+f);while(!isNaN(p)&&typeof z._table[p]=="undefined"&&!z.isDigitCharacter(p)&&!z.isVariableCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}},z._table=(ne={},ne[36]=0,ne[58]=1,ne[44]=2,ne[123]=3,ne[125]=4,ne[92]=5,ne[47]=6,ne[124]=7,ne[43]=11,ne[45]=12,ne[63]=13,ne),z}(),F=function(){function z(){this._children=[]}return z.prototype.appendChild=function(_){return _ instanceof U&&this._children[this._children.length-1]instanceof U?this._children[this._children.length-1].value+=_.value:(_.parent=this,this._children.push(_)),this},z.prototype.replace=function(_,f){var p=_.parent,g=p.children.indexOf(_),m=p.children.slice(0);m.splice.apply(m,oe([g,1],f)),p._children=m,function w(B,H){for(var re=0,he=B;re p.index?1:0},Object.defineProperty(_.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof R?this._children[0]:void 0},enumerable:!0,configurable:!0}),_.prototype.clone=function(){var f=new _(this.index);return this.transform&&(f.transform=this.transform.clone()),f._children=this.children.map(function(p){return p.clone()}),f},_}(j),R=function(z){I(_,z);function _(){var f=z!==null&&z.apply(this,arguments)||this;return f.options=[],f}return _.prototype.appendChild=function(f){return f instanceof U&&(f.parent=this,this.options.push(f)),this},_.prototype.toString=function(){return this.options[0].value},_.prototype.len=function(){return this.options[0].len()},_.prototype.clone=function(){var f=new _;return this.options.forEach(f.appendChild,f),f},_}(F),E=function(z){I(_,z);function _(){var f=z!==null&&z.apply(this,arguments)||this;return f.regexp=new RegExp(""),f}return _.prototype.resolve=function(f){var p=this,g=!1,m=f.replace(this.regexp,function(){return g=!0,p._replace(Array.prototype.slice.call(arguments,0,-2))});return!g&&this._children.some(function(w){return w instanceof x&&Boolean(w.elseValue)})&&(m=this._replace([])),m},_.prototype._replace=function(f){for(var p="",g=0,m=this._children;g 0;){var p=f.shift(),g=_(p);if(!g)break;f.unshift.apply(f,p.children)}}var A=function(z){I(_,z);function _(){return z!==null&&z.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var p=[],g;this.walk(function(m){return m instanceof G&&(p.push(m),g=!g||g.index 0?m.set(Me.index,Me.children):w.push(Me)),!0});for(var H=0,re=w;H 0&&f),!m.has(0)&&p&&g.appendChild(new G(0)),g},z.prototype._accept=function(_,f){if(_===void 0||this._token.type===_){var p=f?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),p}return!1},z.prototype._backTo=function(_){return this._scanner.pos=_.pos+_.len,this._token=_,!1},z.prototype._until=function(_){for(var f=this._token;this._token.type!==_;){if(this._token.type===14)return!1;if(this._token.type===5){var p=this._scanner.next();if(p.type!==0&&p.type!==4&&p.type!==5)return!1}this._token=this._scanner.next()}var g=this._scanner.value.substring(f.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),g},z.prototype._parse=function(_){return this._parseEscaped(_)||this._parseTabstopOrVariableName(_)||this._parseComplexPlaceholder(_)||this._parseComplexVariable(_)||this._parseAnything(_)},z.prototype._parseEscaped=function(_){var f;return(f=this._accept(5,!0))?(f=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||f,_.appendChild(new U(f)),!0):!1},z.prototype._parseTabstopOrVariableName=function(_){var f,p=this._token,g=this._accept(0)&&(f=this._accept(9,!0)||this._accept(8,!0));return g?(_.appendChild(/^\d+$/.test(f)?new G(Number(f)):new K(f)),!0):this._backTo(p)},z.prototype._parseComplexPlaceholder=function(_){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(8,!0));if(!g)return this._backTo(p);var m=new G(Number(f));if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(m),!0;if(this._parse(m))continue;return _.appendChild(new U("${"+f+":")),m.children.forEach(_.appendChild,_),!0}else if(m.index>0&&this._accept(7))for(var w=new R;;){if(this._parseChoiceElement(w)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(w),this._accept(4)))return _.appendChild(m),!0}return this._backTo(p),!1}else return this._accept(6)?this._parseTransform(m)?(_.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(_.appendChild(m),!0):this._backTo(p)},z.prototype._parseChoiceElement=function(_){for(var f=this._token,p=[];!(this._token.type===2||this._token.type===7);){var g=void 0;if((g=this._accept(5,!0))?g=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||g:g=this._accept(void 0,!0),!g)return this._backTo(f),!1;p.push(g)}return p.length===0?(this._backTo(f),!1):(_.appendChild(new U(p.join(""))),!0)},z.prototype._parseComplexVariable=function(_){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(9,!0));if(!g)return this._backTo(p);var m=new K(f);if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(m),!0;if(this._parse(m))continue;return _.appendChild(new U("${"+f+":")),m.children.forEach(_.appendChild,_),!0}else return this._accept(6)?this._parseTransform(m)?(_.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(_.appendChild(m),!0):this._backTo(p)},z.prototype._parseTransform=function(_){for(var f=new E,p="",g="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,p+=m;continue}if(this._token.type!==14){p+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,f.appendChild(new U(m));continue}if(this._parseFormatString(f)||this._parseAnything(f))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){g+=this._accept(void 0,!0);continue}return!1}try{f.regexp=new RegExp(p,g)}catch(w){return!1}return _.transform=f,!0},z.prototype._parseFormatString=function(_){var f=this._token;if(!this._accept(0))return!1;var p=!1;this._accept(3)&&(p=!0);var g=this._accept(8,!0);if(g)if(p){if(this._accept(4))return _.appendChild(new x(Number(g))),!0;if(!this._accept(1))return this._backTo(f),!1}else return _.appendChild(new x(Number(g))),!0;else return this._backTo(f),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(f),!1):(_.appendChild(new x(Number(g),m)),!0)}else if(this._accept(11)){var w=this._until(4);if(w)return _.appendChild(new x(Number(g),void 0,w,void 0)),!0}else if(this._accept(12)){var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,void 0,B)),!0}else if(this._accept(13)){var w=this._until(1);if(w){var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,w,B)),!0}}else{var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,void 0,B)),!0}return this._backTo(f),!1},z.prototype._parseAnything=function(_){return this._token.type!==14?(_.appendChild(new U(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},z}()},aar3:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("S7i+"),oe=I.b.performance&&typeof I.b.performance.now=="function",ne=function(){function N(F){this._highResolution=oe&&F,this._startTime=this._now(),this._stopTime=-1}return N.create=function(F){return F===void 0&&(F=!0),new N(F)},N.prototype.stop=function(){this._stopTime=this._now()},N.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},N.prototype._now=function(){return this._highResolution?I.b.performance.now():new Date().getTime()},N}()},"ab6+":function(wt,P,r){},astx:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return r.e(216).then(r.bind(null,"buUZ"))}})},awj8:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return r.e(237).then(r.bind(null,"Ywaa"))}})},b0bP:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return r.e(210).then(r.bind(null,"mzqm"))}})},"bBv/":function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"b",function(){return D}),r.d(P,"d",function(){return A}),r.d(P,"c",function(){return te}),r.d(P,"e",function(){return z});var I=r("yBOt"),oe=r("PoD0"),ne=function(){var _=function(p,g){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},_(p,g)};return function(f,p){_(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),N=function(){function _(){}return _.has=function(f){return U.create(f)},_.equals=function(f,p){return j.create(f,p)},_.regex=function(f,p){return E.create(f,p)},_.not=function(f){return R.create(f)},_.and=function(){for(var f=[],p=0;p =0){var g=f.split("!=");return G.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("==")>=0){var g=f.split("==");return j.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("=~")>=0){var g=f.split("=~");return E.create(g[0].trim(),this._deserializeRegexValue(g[1],p))}return/^\!\s*/.test(f)?R.create(f.substr(1).trim()):U.create(f)},_._deserializeValue=function(f,p){if(f=f.trim(),f==="true")return!0;if(f==="false")return!1;var g=/^'([^']*)'$/.exec(f);return g?g[1].trim():f},_._deserializeRegexValue=function(f,p){if(Object(I.x)(f)){if(p)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var g=f.indexOf("/"),m=f.lastIndexOf("/");if(g===m||g<0){if(p)throw new Error("bad regexp-value '"+f+"', missing /-enclosure");return console.warn("bad regexp-value '"+f+"', missing /-enclosure"),null}var w=f.slice(g+1,m),B=f[m+1]==="i"?"i":"";try{return new RegExp(w,B)}catch(H){if(p)throw new Error("bad regexp-value '"+f+"', parse error: "+H);return console.warn("bad regexp-value '"+f+"', parse error: "+H),null}},_}();function F(_,f){var p=_.getType(),g=f.getType();if(p!==g)return p-g;switch(p){case 1:return _.cmp(f);case 2:return _.cmp(f);case 3:return _.cmp(f);case 4:return _.cmp(f);case 6:return _.cmp(f);case 7:return _.cmp(f);case 5:return _.cmp(f);default:throw new Error("Unknown ContextKeyExpr!")}}var U=function(){function _(f){this.key=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 1},_.prototype.cmp=function(f){return this.key f.key?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key:!1},_.prototype.evaluate=function(f){return!!f.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return R.create(this.key)},_}(),j=function(){function _(f,p){this.key=f,this.value=p}return _.create=function(f,p){return typeof p=="boolean"?p?U.create(f):R.create(f):new _(f,p)},_.prototype.getType=function(){return 3},_.prototype.cmp=function(f){return this.key f.key?1:this.value f.value?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key&&this.value===f.value:!1},_.prototype.evaluate=function(f){return f.getValue(this.key)==this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return G.create(this.key,this.value)},_}(),G=function(){function _(f,p){this.key=f,this.value=p}return _.create=function(f,p){return typeof p=="boolean"?p?R.create(f):U.create(f):new _(f,p)},_.prototype.getType=function(){return 4},_.prototype.cmp=function(f){return this.key f.key?1:this.value f.value?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key&&this.value===f.value:!1},_.prototype.evaluate=function(f){return f.getValue(this.key)!=this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return j.create(this.key,this.value)},_}(),R=function(){function _(f){this.key=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 2},_.prototype.cmp=function(f){return this.key f.key?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key:!1},_.prototype.evaluate=function(f){return!f.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return U.create(this.key)},_}(),E=function(){function _(f,p){this.key=f,this.regexp=p}return _.create=function(f,p){return new _(f,p)},_.prototype.getType=function(){return 6},_.prototype.cmp=function(f){if(this.key f.key)return 1;var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return p g?1:0},_.prototype.equals=function(f){if(f instanceof _){var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return this.key===f.key&&p===g}return!1},_.prototype.evaluate=function(f){var p=f.getValue(this.key);return this.regexp?this.regexp.test(p):!1},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return x.create(this)},_}(),x=function(){function _(f){this._actual=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 7},_.prototype.cmp=function(f){return this._actual.cmp(f._actual)},_.prototype.equals=function(f){return f instanceof _?this._actual.equals(f._actual):!1},_.prototype.evaluate=function(f){return!this._actual.evaluate(f)},_.prototype.keys=function(){return this._actual.keys()},_.prototype.negate=function(){return this._actual},_}(),K=function(){function _(f){this.expr=f}return _.create=function(f){var p=_._normalizeArr(f);return p.length===0?void 0:p.length===1?p[0]:new _(p)},_.prototype.getType=function(){return 5},_.prototype.cmp=function(f){if(this.expr.length f.expr.length)return 1;for(var p=0,g=this.expr.length;p 1;){for(var B=f.shift(),H=f.shift(),re=[],he=0,Ee=w(B);he =this.el.clientHeight-4)return this.orthogonalEndSash}else{if(f.offsetX<=4)return this.orthogonalStartSash;if(f.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},_.prototype.dispose=function(){z.prototype.dispose.call(this),this.el.remove()},_}(ne.a)},clE0:function(wt,P,r){"use strict";r.r(P),r.d(P,"SnippetController2",function(){return Pt});var I=r("bN5T"),oe=r("yBOt"),ne=r("Whdu"),N=r("w9Cd"),F=r("F5bH"),U=r("2GBI"),j=r("Sn7V"),G=r("bBv/"),R=r("lgEJ"),E=r("Inmo"),x=r("KQl8"),K=r("qz6B"),D=r("8ZZ4"),A=r("0ytw"),te=r("dEFY"),z=r("PoD0"),_=r("ZiB8"),f=r("g9ht"),p=r("xFpO"),g=r("67Fg"),m=r("tkZS"),w=r("zOJ8"),B="code-workspace";function H(Ke){return Ke instanceof w.a}function re(Ke){return Ke.configuration?{configPath:Ke.configuration,id:Ke.id}:Ke.folders.length===1?Ke.folders[0].uri:void 0}var he=r("ekSf"),Ee=function(){function Ke(Xe){this._delegates=Xe}return Ke.prototype.resolve=function(Xe){for(var Ze=0,Ye=this._delegates;Ze =0){for(var Ye=[],ke=0,$e=this._placeholderGroups[this._placeholderGroupsIdx];ke<$e.length;ke++){var we=$e[ke];if(we.transform){var k=this._placeholderDecorations.get(we),ee=this._editor.getModel().getDecorationRange(k),Pe=this._editor.getModel().getValueInRange(ee);Ye.push(K.a.replaceMove(ee,we.transform.resolve(Pe)))}}Ye.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Ye)}var ve=!1;Xe===!0&&this._placeholderGroupsIdx 0&&(this._placeholderGroupsIdx-=1,ve=!0);var Te=this._editor.getModel().changeDecorations(function(Ie){for(var pe=new Set,nt=[],Et=0,Rt=Ze._placeholderGroups[Ze._placeholderGroupsIdx];Et 0)return!0}Ze=Ze.parent}return!1},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),Ke.prototype.computePossibleSelections=function(){for(var Xe=new Map,Ze=0,Ye=this._placeholderGroups;Ze 0&&Ht!==ve.getLineFirstNonWhitespaceColumn(Tn.positionLineNumber),!0),Lt.resolveVariables(new Ee([Ie,new Z(nt,Ft,Gt.length,Xe.getOption(60)==="spread"),new Se(ve,Tn),new ce(ve),new Me,new Ve(Te),new _e]));var Qt=ve.getOffsetAt(Vt)+Et;Et+=Lt.toString().length-ve.getValueLengthInRange(Dt),ee[Ft]=K.a.replace(Dt,Lt.toString()),Pe[Ft]=new ie(Xe,Lt,Qt)}return{edits:ee,snippets:Pe}},Ke.prototype.dispose=function(){Object(I.f)(this._snippets)},Ke.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},Ke.prototype.insert=function(){var Xe=this;if(!this._editor.hasModel())return;var Ze=Ke.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Ye=Ze.edits,ke=Ze.snippets;this._snippets=ke,this._editor.executeEdits("snippet",Ye,function($e){return Xe._snippets[0].hasPlaceholder?Xe._move(!0):$e.map(function(we){return F.a.fromPositions(we.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},Ke.prototype.merge=function(Xe,Ze){var Ye=this;if(Ze===void 0&&(Ze=J),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,Xe]);var ke=Ke.createEditsAndSnippets(this._editor,Xe,Ze.overwriteBefore,Ze.overwriteAfter,!0,Ze.adjustWhitespace,Ze.clipboardText),$e=ke.edits,we=ke.snippets;this._editor.executeEdits("snippet",$e,function(k){for(var ee=0,Pe=Ye._snippets;ee 0},Ke}(),ye=function(){return ye=Object.assign||function(Ke){for(var Xe,Ze=1,Ye=arguments.length;Ze =0;k--)(we=Ke[k])&&($e=(ke<3?we($e):ke>3?we(Xe,Ze,$e):we(Xe,Ze))||$e);return ke>3&&$e&&Object.defineProperty(Xe,Ze,$e),$e},tt=function(Ke,Xe){return function(Ze,Ye){Xe(Ze,Ye,Ke)}},_t={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},Pt=function(){function Ke(Xe,Ze,Ye){this._editor=Xe,this._logService=Ze,this._snippetListener=new I.b,this._modelVersionId=-1,this._inSnippet=Ke.InSnippetMode.bindTo(Ye),this._hasNextTabstop=Ke.HasNextTabstop.bindTo(Ye),this._hasPrevTabstop=Ke.HasPrevTabstop.bindTo(Ye)}return Ke.get=function(Xe){return Xe.getContribution(Ke.ID)},Ke.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(I.f)(this._session),this._snippetListener.dispose()},Ke.prototype.insert=function(Xe,Ze){try{this._doInsert(Xe,typeof Ze=="undefined"?_t:ye(ye({},_t),Ze))}catch(Ye){this.cancel(),this._logService.error(Ye),this._logService.error("snippet_error"),this._logService.error("insert_template=",Xe),this._logService.error("existing_template=",this._session?this._session._logInfo():" ")}},Ke.prototype._doInsert=function(Xe,Ze){var Ye=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Ze.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(Xe,Ze):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new me(this._editor,Xe,Ze),this._session.insert()),Ze.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(ke){return ke.isFlush&&Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Ye._updateState()}))},Ke.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},Ke.prototype._handleChoice=function(){var Xe=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Ze=this._session.choice;if(!Ze){this._currentChoice=void 0;return}if(this._currentChoice!==Ze){this._currentChoice=Ze,this._editor.setSelections(this._editor.getSelections().map(function(ke){return F.a.fromPositions(ke.getStartPosition())}));var Ye=Ze.options[0];Object(j.f)(this._editor,Ze.options.map(function(ke,$e){return{kind:13,label:ke.value,insertText:ke.value,sortText:Object(oe.J)("a",$e+1),range:N.a.fromPositions(Xe._editor.getPosition(),Xe._editor.getPosition().delta(0,Ye.value.length))}}))}},Ke.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},Ke.prototype.cancel=function(Xe){Xe===void 0&&(Xe=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(I.f)(this._session),this._session=void 0,this._modelVersionId=-1,Xe&&this._editor.setSelections([this._editor.getSelection()])},Ke.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},Ke.prototype.next=function(){this._session&&this._session.next(),this._updateState()},Ke.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},Ke.ID="snippetController2",Ke.InSnippetMode=new G.d("inSnippetMode",!1),Ke.HasNextTabstop=new G.d("hasNextTabstop",!1),Ke.HasPrevTabstop=new G.d("hasPrevTabstop",!1),Ke=ze([tt(1,R.a),tt(2,G.c)],Ke),Ke}();Object(ne.h)(Pt.ID,Pt);var Xt=ne.c.bindToContribution(Pt.get);Object(ne.g)(new Xt({id:"jumpToNextSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasNextTabstop),handler:function(Xe){return Xe.next()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:2}})),Object(ne.g)(new Xt({id:"jumpToPrevSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasPrevTabstop),handler:function(Xe){return Xe.prev()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:1024|2}})),Object(ne.g)(new Xt({id:"leaveSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.cancel(!0)},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(ne.g)(new Xt({id:"acceptSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.finish()}}))},cqUj:function(wt,P,r){"use strict";r.d(P,"c",function(){return N}),r.d(P,"b",function(){return F}),r.d(P,"a",function(){return U}),r.d(P,"d",function(){return j}),r.d(P,"e",function(){return G});var I=r("v4mt"),oe=r("vqGt"),ne=function(){function R(){}return R.prototype.clone=function(){return this},R.prototype.equals=function(E){return this===E},R}(),N=new ne,F="vs.editor.nullMode",U=new oe.q(F,0);function j(R,E,x,K){return new I.b([new I.a(K,"",R)],x)}function G(R,E,x,K){var D=new Uint32Array(2);return D[0]=K,D[1]=(R<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new I.c(D,x===null?N:x)}},d3Gc:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return r.e(250).then(r.bind(null,"X66W"))}})},dBuo:function(wt,P,r){"use strict";r.r(P),r.d(P,"SuggestController",function(){return X}),r.d(P,"TriggerSuggestAction",function(){return Ue});var I=r("5xAg"),oe=r("Inmo"),ne=r("QqjT"),N=r("Qun0"),F=r("bN5T"),U=r("Whdu"),j=r("qz6B"),G=r("w9Cd"),R=r("2GBI"),E=r("clE0"),x=r("ZiB8"),K=r("emi/"),D=r("41id"),A=r("vqGt"),te=r("dE3Z"),z=r("PoD0"),_=r("gC1f"),f=r("qJsm"),p=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),g=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},m=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},w=function(){function Q(){}return Q.prototype.select=function(Ce,Oe,it){if(it.length===0)return 0;for(var Qe=it[0].score[0],je=1;je At&&bn.type===Qe[jt].completion.kind&&bn.insertText===Qe[jt].completion.insertText&&(At=bn.touch,Jt=jt),Qe[jt].completion.preselect&&Ot===-1)return Ot=jt}return Jt!==-1?Jt:Ot!==-1?Ot:0},Ce.prototype.toJSON=function(){var Oe=[];return this._cache.forEach(function(it,Qe){Oe.push([Qe,it])}),Oe},Ce.prototype.fromJSON=function(Oe){this._cache.clear();for(var it=0,Qe=0,je=Oe;Qe 0){this._seq=Oe[0][1].touch+1;for(var it=0,Qe=Oe;it =0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},_e=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},ue=function(){function Q(Ce,Oe){this._editor=Ce,this._index=0,this._ckOtherSuggestions=Q.OtherSuggestions.bindTo(Oe)}return Q.prototype.dispose=function(){this.reset()},Q.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(F.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},Q.prototype.set=function(Ce,Oe){var it=this,Qe=Ce.model,je=Ce.index;if(Qe.items.length===0){this.reset();return}var Ct=Q._moveIndex(!0,Qe,je);if(Ct===je){this.reset();return}this._acceptNext=Oe,this._model=Qe,this._index=je,this._listener=this._editor.onDidChangeCursorPosition(function(){it._ignore||it.reset()}),this._ckOtherSuggestions.set(!0)},Q._moveIndex=function(Ce,Oe,it){for(var Qe=it;!(Qe=(Qe+Oe.items.length+(Ce?1:-1))%Oe.items.length,Qe===it);)if(!Oe.items[Qe].completion.additionalTextEdits)break;return Qe},Q.prototype.next=function(){this._move(!0)},Q.prototype.prev=function(){this._move(!1)},Q.prototype._move=function(Ce){if(!this._model)return;try{this._ignore=!0,this._index=Q._moveIndex(Ce,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},Q.OtherSuggestions=new Z.d("hasOtherSuggestions",!1),Q=Ve([_e(1,Z.c)],Q),Q}(),se=r("YK2C"),fe=r("F5bH"),ie=r("VV9f"),J=r("yBOt"),me=function(){function Q(Ce,Oe){this.leadingLineContent=Ce,this.characterCountDelta=Oe}return Q}(),ye=function(){function Q(Ce,Oe,it,Qe,je,Ct){this._snippetCompareFn=Q._compareCompletionItems,this._items=Ce,this._column=Oe,this._wordDistance=Qe,this._options=je,this._refilterKind=1,this._lineContext=it,Ct==="top"?this._snippetCompareFn=Q._compareCompletionItemsSnippetsUp:Ct==="bottom"&&(this._snippetCompareFn=Q._compareCompletionItemsSnippetsDown)}return Object.defineProperty(Q.prototype,"lineContext",{get:function(){return this._lineContext},set:function(Oe){(this._lineContext.leadingLineContent!==Oe.leadingLineContent||this._lineContext.characterCountDelta!==Oe.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta 2e3?ie.d:ie.e,At=0;At =bn)jt.score=ie.a.Default;else if(typeof jt.completion.filterText=="string"){var Yn=Jt(Qe,je,mn,jt.completion.filterText,jt.filterTextLow,0,!1);if(!Yn)continue;Object(J.f)(jt.completion.filterText,Xn)===0?jt.score=Yn:(jt.score=Object(ie.b)(Qe,je,mn,Xn,jt.labelLow,0),jt.score[0]=Yn[0])}else{var Yn=Jt(Qe,je,mn,Xn,jt.labelLow,0,!1);if(!Yn)continue;jt.score=Yn}}jt.idx=At,jt.distance=this._wordDistance.distance(jt.position,jt.completion),Ot.push(jt),this._stats.suggestionCount++;switch(jt.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Ot.sort(this._snippetCompareFn),this._refilterKind=0},Q._compareCompletionItems=function(Ce,Oe){return Ce.score[0]>Oe.score[0]?-1:Ce.score[0] Oe.distance?1:Ce.idx Oe.idx?1:0},Q._compareCompletionItemsSnippetsDown=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return 1;if(Oe.completion.kind===25)return-1}return Q._compareCompletionItems(Ce,Oe)},Q._compareCompletionItemsSnippetsUp=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return-1;if(Oe.completion.kind===25)return 1}return Q._compareCompletionItems(Ce,Oe)},Q}(),ze=r("l+zK"),tt=r("V0RK"),_t=r("XAYP"),Pt=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Xt=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1] =Q._maxRounds){Ce();break}if(!Qe){Ce();break}var Jt=it.findNextBracket(Qe);if(!Jt){Ce();break}var At=Date.now()-Ot;if(At>Q._maxDuration){setTimeout(function(){return Q._bracketsRightYield(Ce,Oe+1,it,Qe,je)});break}var jt=Jt.close[0];if(Jt.isOpen){var hn=Ct.has(jt)?Ct.get(jt):0;Ct.set(jt,hn+1)}else{var hn=Ct.has(jt)?Ct.get(jt):0;if(hn-=1,Ct.set(jt,Math.max(0,hn)),hn<0){var bn=je.get(jt);bn||(bn=new _t.a,je.set(jt,bn)),bn.push(Jt.range)}}Qe=Jt.range.getEndPosition()}},Q._bracketsLeftYield=function(Ce,Oe,it,Qe,je,Ct){for(var Ot=new Map,Jt=Date.now();;){if(Oe>=Q._maxRounds&&je.size===0){Ce();break}if(!Qe){Ce();break}var At=it.findPrevBracket(Qe);if(!At){Ce();break}var jt=Date.now()-Jt;if(jt>Q._maxDuration){setTimeout(function(){return Q._bracketsLeftYield(Ce,Oe+1,it,Qe,je,Ct)});break}var hn=At.close[0];if(At.isOpen){var bn=Ot.has(hn)?Ot.get(hn):0;if(bn-=1,Ot.set(hn,Math.max(0,bn)),bn<0){var mn=je.get(hn);if(mn){var Vn=mn.shift();mn.size===0&&je.delete(hn);var Xn=G.a.fromPositions(At.range.getEndPosition(),Vn.getStartPosition()),Yn=G.a.fromPositions(At.range.getStartPosition(),Vn.getEndPosition());Ct.push({range:Xn}),Ct.push({range:Yn}),Q._addBracketLeading(it,Yn,Ct)}}}else{var bn=Ot.has(hn)?Ot.get(hn):0;Ot.set(hn,bn+1)}Qe=At.range.getStartPosition()}},Q._addBracketLeading=function(Ce,Oe,it){if(Oe.startLineNumber===Oe.endLineNumber)return;var Qe=Oe.startLineNumber,je=Ce.getLineFirstNonWhitespaceColumn(Qe);je!==0&&je!==Oe.startColumn&&(it.push({range:G.a.fromPositions(new tt.a(Qe,je),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Qe,1),Oe.getEndPosition())}));var Ct=Qe-1;if(Ct>0){var Ot=Ce.getLineFirstNonWhitespaceColumn(Ct);Ot===Oe.startColumn&&Ot!==Ce.getLineLastNonWhitespaceColumn(Ct)&&(it.push({range:G.a.fromPositions(new tt.a(Ct,Ot),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Ct,1),Oe.getEndPosition())}))}},Q._maxDuration=30,Q._maxRounds=2,Q}(),Xe=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Ze=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Ye=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1] =0?mn[Vn]:mn[Math.max(0,~Vn-1)],Yn=je.length,Ui=0,ii=je[0];Ui 0?At={triggerKind:2}:At={triggerKind:0},this._requestToken=new ze.b;var jt=this._editor.getOption(86),hn=1;switch(jt){case"top":hn=0;break;case"bottom":hn=2;break}var bn=Q._createItemKindFilter(this._editor),mn=ke.create(this._editorWorker,this._editor),Vn=Object(Me.e)(Ct,this._editor.getPosition(),new Me.a(hn,bn,it),At,this._requestToken.token);Promise.all([Vn,mn]).then(function(Xn){var Yn=Xn[0],Ui=Xn[1];if(Object(F.f)(je._requestToken),je._state===0)return;if(!je._editor.hasModel())return;var ii=je._editor.getModel();if(Object(oe.q)(Qe)){var Pi=Object(Me.d)(hn);Yn=Yn.concat(Qe).sort(Pi)}var uo=new $e(ii,je._editor.getPosition(),Ot,Ce.shy);je._completionModel=new ye(Yn,je._context.column,{leadingLineContent:uo.leadingLineContent,characterCountDelta:uo.column-je._context.column},Ui,je._editor.getOption(89),je._editor.getOption(86));for(var eo=0,to=Yn;eo this._context.column&&this._completionModel.incomplete.size>0&&Ce.leadingWord.word.length!==0){var Oe=this._completionModel.incomplete,it=this._completionModel.adopt(Oe);this.trigger({auto:this._state===2,shy:!1},!0,Oe,it)}else{var Qe=this._completionModel.lineContext,je=!1;if(this._completionModel.lineContext={leadingLineContent:Ce.leadingLineContent,characterCountDelta:Ce.column-this._context.column},this._completionModel.items.length===0){if($e.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn 0,je&&Ce.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:je})}},Q}(),k=r("htSr"),ee=r("SvGJ"),Pe=r("R8yv"),ve=r("WWf0"),Te=r("03vC"),Ie=r("UJ5a"),pe=r("TwZP"),nt=r("0BkX"),Et=Object(nt.Rb)("symbolIcon.arrayForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rt=Object(nt.Rb)("symbolIcon.booleanForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tt=Object(nt.Rb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ht=Object(nt.Rb)("symbolIcon.colorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gt=Object(nt.Rb)("symbolIcon.constantForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rn=Object(nt.Rb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ln=Object(nt.Rb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yn=Object(nt.Rb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tn=Object(nt.Rb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ft=Object(nt.Rb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pt=Object(nt.Rb)("symbolIcon.fileForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gt=Object(nt.Rb)("symbolIcon.folderForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Dt=Object(nt.Rb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lt=Object(nt.Rb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vt=Object(nt.Rb)("symbolIcon.keyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qt=Object(nt.Rb)("symbolIcon.keywordForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nn=Object(nt.Rb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sn=Object(nt.Rb)("symbolIcon.moduleForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ln=Object(nt.Rb)("symbolIcon.namespaceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),En=Object(nt.Rb)("symbolIcon.nullForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),On=Object(nt.Rb)("symbolIcon.numberForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pn=Object(nt.Rb)("symbolIcon.objectForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gn=Object(nt.Rb)("symbolIcon.operatorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qn=Object(nt.Rb)("symbolIcon.packageForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jn=Object(nt.Rb)("symbolIcon.propertyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gi=Object(nt.Rb)("symbolIcon.referenceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kn=Object(nt.Rb)("symbolIcon.snippetForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yi=Object(nt.Rb)("symbolIcon.stringForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mi=Object(nt.Rb)("symbolIcon.structForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vt=Object(nt.Rb)("symbolIcon.textForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mt=Object(nt.Rb)("symbolIcon.typeParameterForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zt=Object(nt.Rb)("symbolIcon.unitForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tn=Object(nt.Rb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(pe.e)(function(Q,Ce){var Oe=Q.getColor(Et);Oe&&Ce.addRule(".codicon-symbol-array { color: "+Oe+" !important; }");var it=Q.getColor(Rt);it&&Ce.addRule(".codicon-symbol-boolean { color: "+it+" !important; }");var Qe=Q.getColor(Tt);Qe&&Ce.addRule(".codicon-symbol-class { color: "+Qe+" !important; }");var je=Q.getColor(nn);je&&Ce.addRule(".codicon-symbol-method { color: "+je+" !important; }");var Ct=Q.getColor(Ht);Ct&&Ce.addRule(".codicon-symbol-color { color: "+Ct+" !important; }");var Ot=Q.getColor(Gt);Ot&&Ce.addRule(".codicon-symbol-constant { color: "+Ot+" !important; }");var Jt=Q.getColor(rn);Jt&&Ce.addRule(".codicon-symbol-constructor { color: "+Jt+" !important; }");var At=Q.getColor(Ln);At&&Ce.addRule(` .codicon-symbol-value,.codicon-symbol-enum { color: `+At+" !important; }");var jt=Q.getColor(yn);jt&&Ce.addRule(".codicon-symbol-enum-member { color: "+jt+" !important; }");var hn=Q.getColor(Tn);hn&&Ce.addRule(".codicon-symbol-event { color: "+hn+" !important; }");var bn=Q.getColor(Ft);bn&&Ce.addRule(".codicon-symbol-field { color: "+bn+" !important; }");var mn=Q.getColor(pt);mn&&Ce.addRule(".codicon-symbol-file { color: "+mn+" !important; }");var Vn=Q.getColor(gt);Vn&&Ce.addRule(".codicon-symbol-folder { color: "+Vn+" !important; }");var Xn=Q.getColor(Dt);Xn&&Ce.addRule(".codicon-symbol-function { color: "+Xn+" !important; }");var Yn=Q.getColor(Lt);Yn&&Ce.addRule(".codicon-symbol-interface { color: "+Yn+" !important; }");var Ui=Q.getColor(Vt);Ui&&Ce.addRule(".codicon-symbol-key { color: "+Ui+" !important; }");var ii=Q.getColor(Qt);ii&&Ce.addRule(".codicon-symbol-keyword { color: "+ii+" !important; }");var Pi=Q.getColor(sn);Pi&&Ce.addRule(".codicon-symbol-module { color: "+Pi+" !important; }");var uo=Q.getColor(ln);uo&&Ce.addRule(".codicon-symbol-namespace { color: "+uo+" !important; }");var eo=Q.getColor(En);eo&&Ce.addRule(".codicon-symbol-null { color: "+eo+" !important; }");var to=Q.getColor(On);to&&Ce.addRule(".codicon-symbol-number { color: "+to+" !important; }");var zn=Q.getColor(Pn);zn&&Ce.addRule(".codicon-symbol-object { color: "+zn+" !important; }");var zo=Q.getColor(Gn);zo&&Ce.addRule(".codicon-symbol-operator { color: "+zo+" !important; }");var Oi=Q.getColor(Qn);Oi&&Ce.addRule(".codicon-symbol-package { color: "+Oi+" !important; }");var wr=Q.getColor(Jn);wr&&Ce.addRule(".codicon-symbol-property { color: "+wr+" !important; }");var Po=Q.getColor(gi);Po&&Ce.addRule(".codicon-symbol-reference { color: "+Po+" !important; }");var Ho=Q.getColor(Kn);Ho&&Ce.addRule(".codicon-symbol-snippet { color: "+Ho+" !important; }");var Fo=Q.getColor(yi);Fo&&Ce.addRule(".codicon-symbol-string { color: "+Fo+" !important; }");var tr=Q.getColor(mi);tr&&Ce.addRule(".codicon-symbol-struct { color: "+tr+" !important; }");var pr=Q.getColor(vt);pr&&Ce.addRule(".codicon-symbol-text { color: "+pr+" !important; }");var co=Q.getColor(Mt);co&&Ce.addRule(".codicon-symbol-type-parameter { color: "+co+" !important; }");var So=Q.getColor(zt);So&&Ce.addRule(".codicon-symbol-unit { color: "+So+" !important; }");var gr=Q.getColor(tn);gr&&Ce.addRule(".codicon-symbol-variable { color: "+gr+" !important; }")});var Ut=r("fF8p"),Sn=r("N7KK"),Rn=r("AyeG"),Bn=r("Qr/v"),Fn=r("yimU"),ri=r("7wrl"),ci=r("FCoH"),zi=r("rvt5"),oo=r("mWsY"),Zn=r("WKDz"),Ii=r("Ojgo"),Si=r("67Fg"),ji=r("jyJ4"),Un;(function(Q){Q[Q.FILE=0]="FILE",Q[Q.FOLDER=1]="FOLDER",Q[Q.ROOT_FOLDER=2]="ROOT_FOLDER"})(Un||(Un={}));function Ci(Q,Ce,Oe,it){var Qe=it===Un.ROOT_FOLDER?["rootfolder-icon"]:it===Un.FOLDER?["folder-icon"]:["file-icon"];if(Oe){var je;if(Oe.scheme===Ii.b.data){var Ct=Si.a.parseMetaData(Oe);je=Ct.get(Si.a.META_DATA_LABEL)}else je=Ti(Object(Si.c)(Oe).toLowerCase());if(it===Un.FOLDER)Qe.push(je+"-name-folder-icon");else{if(je){Qe.push(je+"-name-file-icon");for(var Ot=je.split("."),Jt=1;Jt =0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},bi=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},Di=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Xi=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1] hn.length?jt:hn}else Ct.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(je.icon.className="icon hide",je.iconContainer.className="icon hide",Jt.extraClasses=Object(oe.m)([Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ot}),Un.FOLDER),Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ct.detail}),Un.FOLDER)])):(je.icon.className="icon hide",je.iconContainer.className="",Object(Ut.f)(je.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(A.C)(Ct.kind)));Ct.tags&&Ct.tags.indexOf(1)>=0&&(Jt.extraClasses=(Jt.extraClasses||[]).concat(["deprecated"]),Jt.matches=[]),je.iconLabel.setLabel(Ot,void 0,Jt),typeof Ct.label=="string"?(je.signatureLabel.textContent="",je.qualifierLabel.textContent="",je.detailsLabel.textContent=(Ct.detail||"").replace(/\n.*$/m,""),Object(Ut.O)(je.right,"always-show-details")):(je.signatureLabel.textContent=(Ct.label.signature||"").replace(/\n.*$/m,""),je.qualifierLabel.textContent=(Ct.label.qualifier||"").replace(/\n.*$/m,""),je.detailsLabel.textContent=(Ct.label.type||"").replace(/\n.*$/m,""),Object(Ut.e)(je.right,"always-show-details")),Re(Ce)?(Object(Ut.e)(je.right,"can-expand-details"),Object(Ut.W)(je.readMore),je.readMore.onmousedown=function(bn){bn.stopPropagation(),bn.preventDefault()},je.readMore.onclick=function(bn){bn.stopPropagation(),bn.preventDefault(),Qe.widget.toggleDetails()}):(Object(Ut.O)(je.right,"can-expand-details"),Object(Ut.I)(je.readMore),je.readMore.onmousedown=null,je.readMore.onclick=null)},Q.prototype.disposeTemplate=function(Ce){Ce.disposables.dispose()},Q=ro([bi(3,Gi.a),bi(4,zi.a),bi(5,pe.c)],Q),Q}(),lt=function(){function Q(Ce,Oe,it,Qe,je){var Ct=this;this.widget=Oe,this.editor=it,this.markdownRenderer=Qe,this.kbToggleDetails=je,this.borderWidth=1,this.disposables=new F.b,this.el=Object(Ut.p)(Ce,Object(Ut.a)(".details")),this.disposables.add(Object(F.h)(function(){return Ce.removeChild(Ct.el)})),this.body=Object(Ut.a)(".body"),this.scrollbar=new Rn.a(this.body,{}),Object(Ut.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Ut.p)(this.body,Object(Ut.a)(".header")),this.close=Object(Ut.p)(this.header,Object(Ut.a)("span.codicon.codicon-close")),this.close.title=Se.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(Ut.p)(this.header,Object(Ut.a)("p.type")),this.docs=Object(Ut.p)(this.body,Object(Ut.a)("p.docs")),this.configureFont(),se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Ot){return Ot.hasChanged(34)}).on(this.configureFont,this,this.disposables),Qe.onDidRenderCodeBlock(function(){return Ct.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(Q.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),Q.prototype.renderLoading=function(){this.type.textContent=Se.a("loading","Loading..."),this.docs.textContent=""},Q.prototype.renderItem=function(Ce,Oe){var it=this;this.renderDisposeable=Object(F.f)(this.renderDisposeable);var Qe=Ce.completion,je=Qe.documentation,Ct=Qe.detail;if(Oe){var Ot="";Ot+="score: "+Ce.score[0]+(Ce.word?", compared '"+(Ce.completion.filterText&&Ce.completion.filterText+" (filterText)"||Ce.completion.label)+"' with '"+Ce.word+"'":" (no prefix)")+` `,Ot+="distance: "+Ce.distance+`, see localityBonus-setting `,Ot+="index: "+Ce.idx+", based on "+(Ce.completion.sortText&&'sortText: "'+Ce.completion.sortText+'"'||"label")+` `,je=new vi.a().appendCodeblock("empty",Ot),Ct="Provider: "+Ce.provider._debugDisplayName}if(!Oe&&!Re(Ce)){this.type.textContent="",this.docs.textContent="",Object(Ut.e)(this.el,"no-docs");return}if(Object(Ut.O)(this.el,"no-docs"),typeof je=="string")Object(Ut.O)(this.docs,"markdown-docs"),this.docs.textContent=je;else{Object(Ut.e)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Jt=this.markdownRenderer.render(je);this.renderDisposeable=Jt,this.docs.appendChild(Jt.element)}Ct?(this.type.innerText=Ct,Object(Ut.W)(this.type)):(this.type.innerText="",Object(Ut.I)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(At){At.preventDefault(),At.stopPropagation()},this.close.onclick=function(At){At.preventDefault(),At.stopPropagation(),it.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},Q.prototype.scrollDown=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop+=Ce},Q.prototype.scrollUp=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop-=Ce},Q.prototype.scrollTop=function(){this.body.scrollTop=0},Q.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},Q.prototype.pageDown=function(){this.scrollDown(80)},Q.prototype.pageUp=function(){this.scrollUp(80)},Q.prototype.setBorderWidth=function(Ce){this.borderWidth=Ce},Q.prototype.configureFont=function(){var Ce=this.editor.getOptions(),Oe=Ce.get(34),it=Oe.fontFamily,Qe=Ce.get(90)||Oe.fontSize,je=Ce.get(91)||Oe.lineHeight,Ct=Oe.fontWeight,Ot=Qe+"px",Jt=je+"px";this.el.style.fontSize=Ot,this.el.style.fontWeight=Ct,this.el.style.fontFeatureSettings=Oe.fontFeatureSettings,this.type.style.fontFamily=it,this.close.style.height=Jt,this.close.style.width=Jt},Q.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(F.f)(this.renderDisposeable)},Q}(),yt=function(){function Q(Ce,Oe,it,Qe,je,Ct,Ot,Jt,At){var jt=this,hn,bn;this.editor=Ce,this.telemetryService=Oe,this.keybindingService=it,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=F.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new te.e,this.toDispose=new F.b,this.onDidSelectEmitter=new se.a,this.onDidFocusEmitter=new se.a,this.onDidHideEmitter=new se.a,this.onDidShowEmitter=new se.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new se.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var mn=this.toDispose.add(new ci.a(Ce,Ot,Jt)),Vn=(bn=(hn=it.lookupKeybinding("toggleSuggestionDetails"))===null||hn===void 0?void 0:hn.getLabel())!==null&&bn!==void 0?bn:"";this.msgDetailsLess=Se.a("detail.less","{0} for less...",Vn),this.msgDetailMore=Se.a("detail.more","{0} for more...",Vn),this.isAuto=!1,this.focusedItem=null,this.storageService=Ct,this.element=Object(Ut.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(Ut.i)(this.element,"click",function(ii){ii.target===jt.element&&jt.hideWidget()})),this.messageElement=Object(Ut.p)(this.element,Object(Ut.a)(".message")),this.listElement=Object(Ut.p)(this.element,Object(Ut.a)(".tree"));var Xn=function(){return Object(Ut.X)(jt.element,"with-status-bar",!jt.editor.getOption(89).hideStatusBar)};Xn(),this.statusBarElement=Object(Ut.p)(this.element,Object(Ut.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.statusBarRightSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=At.createInstance(lt,this.element,this,this.editor,mn,Vn);var Yn=function(){return Object(Ut.X)(jt.element,"no-icons",!jt.editor.getOption(89).showIcons)};Yn();var Ui=At.createInstance(ft,this,this.editor,Vn);this.list=new Sn.c("SuggestWidget",this.listElement,this,[Ui],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Pi){var uo=typeof Pi.completion.label=="string"?Pi.completion.label:Pi.completion.label.name;if(Pi.isResolved&&jt.expandDocsSettingFromStorage()){var eo=Pi.completion,to=eo.documentation,zn=eo.detail,zo=J.r("{0}{1}",zn||"",to?typeof to=="string"?to:to.value:"");return Se.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",uo,zo)}else return uo}}}),this.toDispose.add(Object(ri.b)(this.list,je,{listInactiveFocusBackground:O,listInactiveFocusOutline:nt.b})),this.toDispose.add(je.onThemeChange(function(ii){return jt.onThemeChange(ii)})),this.toDispose.add(Ce.onDidLayoutChange(function(){return jt.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onTap(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onSelectionChange(function(ii){return jt.onListSelection(ii)})),this.toDispose.add(this.list.onFocusChange(function(ii){return jt.onListFocus(ii)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return jt.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(ii){ii.hasChanged(89)&&(Xn(),Yn())})),this.suggestWidgetVisible=Me.b.Visible.bindTo(Qe),this.suggestWidgetMultipleSuggestions=Me.b.MultipleSuggestions.bindTo(Qe),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(je.getTheme()),this.toDispose.add(Object(Ut.n)(this.details.element,"keydown",function(ii){jt._onDetailsKeydown.fire(ii)})),this.toDispose.add(this.editor.onMouseDown(function(ii){return jt.onEditorMouseDown(ii)}))}return Q.prototype.onEditorMouseDown=function(Ce){this.details.element.contains(Ce.target.element)?this.details.element.focus():this.element.contains(Ce.target.element)&&this.editor.focus()},Q.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},Q.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},Q.prototype.onListMouseDownOrTap=function(Ce){if(typeof Ce.element=="undefined"||typeof Ce.index=="undefined")return;Ce.browserEvent.preventDefault(),Ce.browserEvent.stopPropagation(),this.select(Ce.element,Ce.index)},Q.prototype.onListSelection=function(Ce){if(!Ce.elements.length)return;this.select(Ce.elements[0],Ce.indexes[0])},Q.prototype.select=function(Ce,Oe){var it=this.completionModel;if(!it)return;this.onDidSelectEmitter.fire({item:Ce,index:Oe,model:it}),this.editor.focus()},Q.prototype.onThemeChange=function(Ce){var Oe=Ce.getColor(Mi);Oe&&(this.listElement.style.backgroundColor=Oe.toString(),this.statusBarElement.style.backgroundColor=Oe.toString(),this.details.element.style.backgroundColor=Oe.toString(),this.messageElement.style.backgroundColor=Oe.toString());var it=Ce.getColor(so);it&&(this.listElement.style.borderColor=it.toString(),this.statusBarElement.style.borderColor=it.toString(),this.details.element.style.borderColor=it.toString(),this.messageElement.style.borderColor=it.toString(),this.detailsBorderColor=it.toString());var Qe=Ce.getColor(nt.U);Qe&&(this.detailsFocusBorderColor=Qe.toString()),this.details.setBorderWidth(Ce.type==="hc"?2:1)},Q.prototype.onListFocus=function(Ce){var Oe=this,it,Qe;if(this.ignoreFocusEvents)return;if(!Ce.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!this.completionModel)return;var je=Ce.elements[0],Ct=Ce.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,je!==this.focusedItem){var Ot=this.editor.getOption(89).insertMode==="insert",Jt=(it=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||it===void 0?void 0:it.getLabel(),At=(Qe=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||Qe===void 0?void 0:Qe.getLabel();tt.a.equals(je.editInsertEnd,je.editReplaceEnd)?this.setStatusBarLeftText(Se.a("accept","{0} to accept",Jt)):Ot?this.setStatusBarLeftText(Se.a("insert","{0} to insert, {1} to replace",Jt,At)):this.setStatusBarLeftText(Se.a("replace","{0} to replace, {1} to insert",Jt,At)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=je,this.list.reveal(Ct),this.currentSuggestionDetails=Object(te.f)(function(jt){return Di(Oe,void 0,void 0,function(){var hn,bn,mn=this;return Xi(this,function(Vn){switch(Vn.label){case 0:return hn=Object(te.g)(function(){return mn.showDetails(!0)},250),jt.onCancellationRequested(function(){return hn.dispose()}),[4,je.resolve(jt)];case 1:return bn=Vn.sent(),hn.dispose(),[2,bn]}})})}),this.currentSuggestionDetails.then(function(){if(Ct>=Oe.list.length||je!==Oe.list.element(Ct))return;Oe.ignoreFocusEvents=!0,Oe.list.splice(Ct,1,[je]),Oe.list.setFocus([Ct]),Oe.ignoreFocusEvents=!1,Oe.expandDocsSettingFromStorage()?Oe.showDetails(!1):Object(Ut.O)(Oe.element,"docs-side"),Re(Oe.focusedItem)?Oe.expandDocsSettingFromStorage()?Oe.setStatusBarRightText(Oe.msgDetailsLess):Oe.setStatusBarRightText(Oe.msgDetailMore):Oe.statusBarRightSpan.innerText="",Oe.editor.setAriaOptions({activeDescendant:We(Ct)})}).catch(ne.e)}this.onDidFocusEmitter.fire({item:je,index:Ct,model:this.completionModel})},Q.prototype.setState=function(Ce){if(!this.element)return;var Oe=this.state!==Ce;this.state=Ce,Object(Ut.X)(this.element,"frozen",Ce===4);switch(Ce){case 0:Object(Ut.I)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,Oe&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Q.LOADING_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Q.NO_SUGGESTIONS_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement),this.show();break;case 5:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},Q.prototype.showTriggered=function(Ce,Oe){var it=this;if(this.state!==0)return;this.isAuto=!!Ce,this.isAuto||(this.loadingTimeout=Object(te.g)(function(){return it.setState(1)},Oe))},Q.prototype.showSuggestions=function(Ce,Oe,it,Qe){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==Ce&&(this.completionModel=Ce),it&&this.state!==2&&this.state!==0){this.setState(4);return}var je=this.completionModel.items.length,Ct=je===0;if(this.suggestWidgetMultipleSuggestions.set(je>1),Ct)Qe?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Ot=this.completionModel.stats;Ot.wasAutomaticallyTriggered=!!Qe,this.telemetryService.publicLog("suggestWidget",qi({},Ot))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),it?this.setState(4):this.setState(3),this.list.reveal(Oe,0),this.list.setFocus([Oe]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},Q.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},Q.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},Q.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},Q.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},Q.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},Q.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},Q.prototype.getFocusedItem=function(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},Q.prototype.toggleDetailsFocus=function(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},Q.prototype.toggleDetails=function(){if(!Re(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Ut.I)(this.details.element),Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},Q.prototype.showDetails=function(Ce){Ce||this.expandSideOrBelow(),Object(Ut.W)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",Ce?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},Q.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},Q.prototype.show=function(){var Ce=this,Oe=this.updateListHeight();Oe!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=Oe),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(Ut.e)(Ce.element,"visible"),Ce.onDidShowEmitter.fire(Ce)},100)},Q.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Ut.O)(this.element,"visible")},Q.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},Q.prototype.getPosition=function(){if(this.state===0)return null;var Ce=[2,1];return this.preferDocPositionTop&&(Ce=[1]),{position:this.editor.getPosition(),preference:Ce}},Q.prototype.getDomNode=function(){return this.element},Q.prototype.getId=function(){return Q.ID},Q.prototype.isFrozen=function(){return this.state===4},Q.prototype.updateListHeight=function(){var Ce=0;if(this.state===2||this.state===1)Ce=this.unfocusedHeight;else{var Oe=this.list.contentHeight/this.unfocusedHeight,it=this.editor.getOption(89).maxVisibleSuggestions;Ce=Math.min(Oe,it)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=Ce+"px",this.statusBarElement.style.top=Ce+"px",this.list.layout(Ce),Ce},Q.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var Ce=this.editor.getOption(49),Oe=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),it=Object(Ut.B)(this.editor.getDomNode()),Qe=it.left+Oe.left,je=it.top+Oe.top+Oe.height,Ct=Object(Ut.B)(this.element),Ot=Ct.left,Jt=Ct.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY Jt&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},Q.prototype.expandSideOrBelow=function(){if(!Re(this.focusedItem)&&this.firstFocusInCurrentList){Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below");return}var Ce=this.element.style.maxWidth.match(/(\d+)px/);!Ce||Number(Ce[1]) =0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},kt=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},Yt=function(Q){xt(Ce,Q);function Ce(Oe,it){var Qe=Q.call(this)||this;return Qe._editor=Oe,Qe._enabled=!1,Qe._ckAtEnd=Ce.AtEnd.bindTo(it),Qe._register(Qe._editor.onDidChangeConfiguration(function(je){return je.hasChanged(94)&&Qe._update()})),Qe._update(),Qe}return Ce.prototype.dispose=function(){Q.prototype.dispose.call(this),Object(F.f)(this._selectionListener),this._ckAtEnd.reset()},Ce.prototype._update=function(){var Oe=this,it=this._editor.getOption(94)==="on";if(this._enabled===it)return;if(this._enabled=it,this._enabled){var Qe=function(){if(!Oe._editor.hasModel()){Oe._ckAtEnd.set(!1);return}var Ct=Oe._editor.getModel(),Ot=Oe._editor.getSelection(),Jt=Ct.getWordAtPosition(Ot.getStartPosition());if(!Jt){Oe._ckAtEnd.set(!1);return}Oe._ckAtEnd.set(Jt.endColumn===Ot.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(Qe),Qe()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},Ce.AtEnd=new Z.d("atEndOfWord",!1),Ce=It([kt(1,Z.c)],Ce),Ce}(F.a),Zt=r("mRZz"),dn=r("yqRl"),fn=r("3NxR"),An=function(){function Q(Ce,Oe,it){var Qe=this;this._disposables=new F.b,this._disposables.add(Oe.onDidShow(function(){return Qe._onItem(Oe.getFocusedItem())})),this._disposables.add(Oe.onDidFocus(this._onItem,this)),this._disposables.add(Oe.onDidHide(this.reset,this)),this._disposables.add(Ce.onWillType(function(je){if(Qe._active&&!Oe.isFrozen()){var Ct=je.charCodeAt(je.length-1);Qe._active.acceptCharacters.has(Ct)&&Ce.getOption(0)&&it(Qe._active.item)}}))}return Q.prototype._onItem=function(Ce){if(!Ce||!Object(oe.q)(Ce.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===Ce.item)return;for(var Oe=new fn.b,it=0,Qe=Ce.item.completion.commitCharacters;it 0&&Oe.add(je.charCodeAt(0))}this._active={acceptCharacters:Oe,item:Ce}},Q.prototype.reset=function(){this._active=void 0},Q.prototype.dispose=function(){this._disposables.dispose()},Q}(),gn=r("S7i+"),Mn=r("6zAk"),xn=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Le=function(){function Q(Ce){var Oe=this;this._controller=Ce,this._disposables=new F.b,this._decorations=[],this._disposables.add(Ce.model.onDidSuggest(function(it){if(!it.shy){var Qe=Oe._controller.widget.getValue(),je=Qe.getFocusedItem();je&&Oe._highlight(je.item),Oe._widgetListener||(Oe._widgetListener=Qe.onDidFocus(function(Ct){return Oe._highlight(Ct.item)}))}})),this._disposables.add(Ce.model.onDidCancel(function(){Oe._reset()}))}return Q.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(F.f)(this._widgetListener),Object(F.f)(this._shiftKeyListener)},Q.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},Q.prototype._highlight=function(Ce){var Oe=this,it;this._currentItem=Ce;var Qe=this._controller.editor.getOption(89),je=[];if(Qe.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=W.event(function(){return Oe._highlight(Oe._currentItem)}));var Ct=this._controller.getOverwriteInfo(Ce,W.isPressed),Ot=this._controller.editor.getPosition();if(Qe.insertMode==="insert"&&Ct.overwriteAfter>0)je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Ot.column+Ct.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(Qe.insertMode==="replace"&&Ct.overwriteAfter===0){var Jt=(it=this._controller.editor.getModel())===null||it===void 0?void 0:it.getWordAtPosition(Ot);Jt&&Jt.endColumn>Ot.column&&(je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Jt.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,je)},Q}(),W=new(function(Q){xn(Ce,Q);function Ce(){var Oe=Q.call(this)||this;return Oe._subscriptions=new F.b,Oe._isPressed=!1,Oe._subscriptions.add(Object(Mn.a)(document.body,"keydown")(function(it){return Oe.isPressed=it.shiftKey})),Oe._subscriptions.add(Object(Mn.a)(document.body,"keyup")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Mn.a)(document.body,"mouseleave")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Mn.a)(document.body,"blur")(function(){return Oe.isPressed=!1})),Oe}return Object.defineProperty(Ce.prototype,"isPressed",{get:function(){return this._isPressed},set:function(it){this._isPressed!==it&&(this._isPressed=it,this.fire(it))},enumerable:!0,configurable:!0}),Ce.prototype.dispose=function(){this._subscriptions.dispose(),Q.prototype.dispose.call(this)},Ce}(se.a)),ae=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Fe=function(){return Fe=Object.assign||function(Q){for(var Ce,Oe=1,it=arguments.length;Oe =0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},ct=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},St=function(){for(var Q=0,Ce=0,Oe=arguments.length;Ce =g)return Promise.resolve(f);var B=z[p++],H=Promise.resolve(B());return H.then(function(re){return _(re)?Promise.resolve(re):w()})};return m()}var x=function(){function z(_,f){this._token=-1,typeof _=="function"&&typeof f=="number"&&this.setIfNotSet(_,f)}return z.prototype.dispose=function(){this.cancel()},z.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},z.prototype.cancelAndSet=function(_,f){var p=this;this.cancel(),this._token=setTimeout(function(){p._token=-1,_()},f)},z.prototype.setIfNotSet=function(_,f){var p=this;if(this._token!==-1)return;this._token=setTimeout(function(){p._token=-1,_()},f)},z}(),K=function(){function z(){this._token=-1}return z.prototype.dispose=function(){this.cancel()},z.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},z.prototype.cancelAndSet=function(_,f){this.cancel(),this._token=setInterval(function(){_()},f)},z}(),D=function(){function z(_,f){this.timeoutToken=-1,this.runner=_,this.timeout=f,this.timeoutHandler=this.onTimeout.bind(this)}return z.prototype.dispose=function(){this.cancel(),this.runner=null},z.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},z.prototype.schedule=function(_){_===void 0&&(_=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,_)},z.prototype.isScheduled=function(){return this.timeoutToken!==-1},z.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},z.prototype.doRun=function(){this.runner&&this.runner()},z}(),A;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var z=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});A=function(f){var p=setTimeout(function(){return f(z)}),g=!1;return{dispose:function(){if(g)return;g=!0,clearTimeout(p)}}}}else A=function(f,p){var g=requestIdleCallback(f,typeof p=="number"?{timeout:p}:void 0),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(g)}}}})();var te=function(){function z(_){var f=this;this._didRun=!1,this._executor=function(){try{f._value=_()}catch(p){f._error=p}finally{f._didRun=!0}},this._handle=A(function(){return f._executor()})}return z.prototype.dispose=function(){this._handle.dispose()},z.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},z}()},dEFY:function(wt,P,r){"use strict";r.d(P,"a",function(){return F}),r.d(P,"b",function(){return R});var I=r("zOJ8"),oe=r("67Fg"),ne=r("PoD0"),N=r("emi/"),F=Object(ne.c)("contextService"),U;(function(E){function x(K){return K&&typeof K=="object"&&typeof K.id=="string"&&Array.isArray(K.folders)}E.isIWorkspace=x})(U||(U={}));var j;(function(E){function x(K){return K&&typeof K=="object"&&I.a.isUri(K.uri)&&typeof K.name=="string"&&typeof K.toResource=="function"}E.isIWorkspaceFolder=x})(j||(j={}));var G=function(){function E(x,K,D){K===void 0&&(K=[]),D===void 0&&(D=null),this._id=x,this._configuration=D,this._foldersMap=N.c.forPaths(),this.folders=K}return Object.defineProperty(E.prototype,"folders",{get:function(){return this._folders},set:function(K){this._folders=K,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"configuration",{get:function(){return this._configuration},set:function(K){this._configuration=K},enumerable:!0,configurable:!0}),E.prototype.getFolder=function(x){return x&&this._foldersMap.findSubstr(x.with({scheme:x.scheme,authority:x.authority,path:x.path}).toString())||null},E.prototype.updateFoldersMap=function(){this._foldersMap=N.c.forPaths();for(var x=0,K=this.folders;x =G.end||G.start>=j.end)return{start:0,end:0};var R=Math.max(j.start,G.start),E=Math.min(j.end,G.end);return E-R<=0?{start:0,end:0}:{start:R,end:E}}oe.intersect=ne;function N(j){return j.end-j.start<=0}oe.isEmpty=N;function F(j,G){return!N(ne(j,G))}oe.intersects=F;function U(j,G){var R=[],E={start:j.start,end:Math.min(G.start,j.end)},x={start:Math.max(G.end,j.start),end:j.end};return N(E)||R.push(E),N(x)||R.push(x),R}oe.relativeComplement=U})(I||(I={}))},ekSf:function(wt,P,r){"use strict";r.d(P,"b",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"c",function(){return E});var I=r("zOJ8"),oe=r("xFpO"),ne=r("yBOt"),N=r("Ojgo"),F=r("S7i+"),U=r("67Fg");function j(D,A,te){if(typeof D=="string"&&(D=I.a.file(D)),te){var z=te.getWorkspaceFolder(D);if(z){var _=te.getWorkspace().folders.length>1,f=void 0;if(Object(U.e)(z.uri,D)?f="":f=Object(U.h)(z.uri,D),_){var p=z.name?z.name:Object(U.b)(z.uri);f=f?p+" \u2022 "+f:p}return f}}if(D.scheme!==N.b.file&&D.scheme!==N.b.untitled)return D.with({query:null,fragment:null}).toString(!0);if(R(D.fsPath))return Object(oe.normalize)(E(D.fsPath));var g=Object(oe.normalize)(D.fsPath);return!F.h&&A&&(g=K(g,A.userHome)),g}function G(D){if(!D)return;typeof D=="string"&&(D=I.a.file(D));var A=Object(U.b)(D)||(D.scheme===N.b.file?D.fsPath:D.path);return R(A)?E(A):A}function R(D){return!!(F.h&&D&&D[1]===":")}function E(D){return R(D)?D.charAt(0).toUpperCase()+D.slice(1):D}var x=Object.create(null);function K(D,A){if(F.h||!D||!A)return D;var te=x.original===A?x.normalized:void 0;return te||(te=""+Object(ne.K)(A,oe.posix.sep)+oe.posix.sep,x={original:A,normalized:te}),(F.d?Object(ne.M)(D,te):Object(ne.N)(D,te))&&(D="~/"+D.substr(te.length)),D}},"emi/":function(wt,P,r){"use strict";r.d(P,"e",function(){return oe}),r.d(P,"d",function(){return ne}),r.d(P,"c",function(){return j}),r.d(P,"b",function(){return G}),r.d(P,"a",function(){return E});var I=function(){var x=function(D,A){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,z){te.__proto__=z}||function(te,z){for(var _ in z)z.hasOwnProperty(_)&&(te[_]=z[_])},x(D,A)};return function(K,D){x(K,D);function A(){this.constructor=K}K.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}();function oe(x){var K=[];return x.forEach(function(D){return K.push(D)}),K}function ne(x){var K=[];return x.forEach(function(D,A){return K.push(A)}),K}var N=function(){function x(){this._value="",this._pos=0}return x.prototype.reset=function(K){return this._value=K,this._pos=0,this},x.prototype.next=function(){return this._pos+=1,this},x.prototype.hasNext=function(){return this._pos 0)te.left||(te.left=new U,te.left.segment=A.value()),te=te.left;else if(z<0)te.right||(te.right=new U,te.right.segment=A.value()),te=te.right;else if(A.hasNext())A.next(),te.mid||(te.mid=new U,te.mid.segment=A.value()),te=te.mid;else break}var _=te.value;return te.value=D,te.key=K,_},x.prototype.get=function(K){for(var D=this._iter.reset(K),A=this._root;A;){var te=D.cmp(A.segment);if(te>0)A=A.left;else if(te<0)A=A.right;else if(D.hasNext())D.next(),A=A.mid;else break}return A?A.value:void 0},x.prototype.findSubstr=function(K){for(var D=this._iter.reset(K),A=this._root,te=void 0;A;){var z=D.cmp(A.segment);if(z>0)A=A.left;else if(z<0)A=A.right;else if(D.hasNext())D.next(),te=A.value||te,A=A.mid;else break}return A&&A.value||te},x.prototype.forEach=function(K){this._forEach(this._root,K)},x.prototype._forEach=function(K,D){K&&(this._forEach(K.left,D),K.value&&D(K.value,K.key),this._forEach(K.mid,D),this._forEach(K.right,D))},x}(),G=function(){function x(){this.map=new Map,this.ignoreCase=!1}return x.prototype.set=function(K,D){this.map.set(this.toKey(K),D)},x.prototype.get=function(K){return this.map.get(this.toKey(K))},x.prototype.toKey=function(K){var D=K.toString();return this.ignoreCase&&(D=D.toLowerCase()),D},x}(),R=function(){function x(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return x.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(x.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),x.prototype.get=function(K,D){D===void 0&&(D=0);var A=this._map.get(K);return A?(D!==0&&this.touch(A,D),A.value):void 0},x.prototype.set=function(K,D,A){A===void 0&&(A=0);var te=this._map.get(K);if(te)te.value=D,A!==0&&this.touch(te,A);else{te={key:K,value:D,next:void 0,previous:void 0};switch(A){case 0:this.addItemLast(te);break;case 1:this.addItemFirst(te);break;case 2:this.addItemLast(te);break;default:this.addItemLast(te);break}this._map.set(K,te),this._size++}},x.prototype.delete=function(K){return!!this.remove(K)},x.prototype.remove=function(K){var D=this._map.get(K);return D?(this._map.delete(K),this.removeItem(D),this._size--,D.value):void 0},x.prototype.forEach=function(K,D){for(var A=this._head;A;)D?K.bind(D)(A.value,A.key,this):K(A.value,A.key,this),A=A.next},x.prototype.trimOld=function(K){if(K>=this.size)return;if(K===0){this.clear();return}for(var D=this._head,A=this.size;D&&A>K;)this._map.delete(D.key),D=D.next,A--;this._head=D,this._size=A,D&&(D.previous=void 0)},x.prototype.addItemFirst=function(K){if(!this._head&&!this._tail)this._tail=K;else if(this._head)K.next=this._head,this._head.previous=K;else throw new Error("Invalid list");this._head=K},x.prototype.addItemLast=function(K){if(!this._head&&!this._tail)this._head=K;else if(this._tail)K.previous=this._tail,this._tail.next=K;else throw new Error("Invalid list");this._tail=K},x.prototype.removeItem=function(K){if(K===this._head&&K===this._tail)this._head=void 0,this._tail=void 0;else if(K===this._head){if(!K.next)throw new Error("Invalid list");K.next.previous=void 0,this._head=K.next}else if(K===this._tail){if(!K.previous)throw new Error("Invalid list");K.previous.next=void 0,this._tail=K.previous}else{var D=K.next,A=K.previous;if(!D||!A)throw new Error("Invalid list");D.previous=A,A.next=D}K.next=void 0,K.previous=void 0},x.prototype.touch=function(K,D){if(!this._head||!this._tail)throw new Error("Invalid list");if(D!==1&&D!==2)return;if(D===1){if(K===this._head)return;var A=K.next,te=K.previous;K===this._tail?(te.next=void 0,this._tail=te):(A.previous=te,te.next=A),K.previous=void 0,K.next=this._head,this._head.previous=K,this._head=K}else if(D===2){if(K===this._tail)return;var A=K.next,te=K.previous;K===this._head?(A.previous=void 0,this._head=A):(A.previous=te,te.next=A),K.next=void 0,K.previous=this._tail,this._tail.next=K,this._tail=K}},x.prototype.toJSON=function(){var K=[];return this.forEach(function(D,A){K.push([A,D])}),K},x}(),E=function(x){I(K,x);function K(D,A){A===void 0&&(A=1);var te=x.call(this)||this;return te._limit=D,te._ratio=Math.min(Math.max(0,A),1),te}return K.prototype.get=function(D){return x.prototype.get.call(this,D,2)},K.prototype.peek=function(D){return x.prototype.get.call(this,D,0)},K.prototype.set=function(D,A){x.prototype.set.call(this,D,A,2),this.checkTrim()},K.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},K}(R)},epcv:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe,ne,N){return Math.min(Math.max(oe,ne),N)}},fF8p:function(wt,P,r){"use strict";r.d(P,"s",function(){return z}),r.d(P,"Q",function(){return _}),r.d(P,"L",function(){return f}),r.d(P,"H",function(){return w}),r.d(P,"e",function(){return B}),r.d(P,"f",function(){return H}),r.d(P,"O",function(){return re}),r.d(P,"P",function(){return he}),r.d(P,"X",function(){return Ee}),r.d(P,"i",function(){return q}),r.d(P,"n",function(){return Me}),r.d(P,"m",function(){return Ve}),r.d(P,"g",function(){return _e}),r.d(P,"h",function(){return ue}),r.d(P,"j",function(){return se}),r.d(P,"k",function(){return fe}),r.d(P,"T",function(){return me}),r.d(P,"V",function(){return ye}),r.d(P,"l",function(){return Xt}),r.d(P,"y",function(){return Ke}),r.d(P,"x",function(){return Xe}),r.d(P,"E",function(){return ke}),r.d(P,"B",function(){return $e}),r.d(P,"d",function(){return we}),r.d(P,"G",function(){return k}),r.d(P,"A",function(){return ee}),r.d(P,"z",function(){return Pe}),r.d(P,"F",function(){return ve}),r.d(P,"J",function(){return Te}),r.d(P,"w",function(){return Ie}),r.d(P,"M",function(){return nt}),r.d(P,"D",function(){return Et}),r.d(P,"v",function(){return Rt}),r.d(P,"u",function(){return rn}),r.d(P,"N",function(){return Ln}),r.d(P,"K",function(){return yn}),r.d(P,"c",function(){return Tn}),r.d(P,"b",function(){return Ft}),r.d(P,"U",function(){return pt}),r.d(P,"S",function(){return gt}),r.d(P,"Y",function(){return Lt}),r.d(P,"p",function(){return Vt}),r.d(P,"a",function(){return ln}),r.d(P,"W",function(){return En}),r.d(P,"I",function(){return On}),r.d(P,"R",function(){return Gn}),r.d(P,"C",function(){return Qn}),r.d(P,"t",function(){return Jn}),r.d(P,"Z",function(){return gi}),r.d(P,"o",function(){return Kn}),r.d(P,"r",function(){return yi}),r.d(P,"q",function(){return mi});var I=r("mTMv"),oe=r("6zAk"),ne=r("/RM0"),N=r("oBNp"),F=r("dE3Z"),U=r("QqjT"),j=r("YK2C"),G=r("bN5T"),R=r("S7i+"),E=r("Inmo"),x=r("Ojgo"),K=r("Uq4v"),D=function(){var vt=function(zt,tn){return vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ut,Sn){Ut.__proto__=Sn}||function(Ut,Sn){for(var Rn in Sn)Sn.hasOwnProperty(Rn)&&(Ut[Rn]=Sn[Rn])},vt(zt,tn)};return function(Mt,zt){vt(Mt,zt);function tn(){this.constructor=Mt}Mt.prototype=zt===null?Object.create(zt):(tn.prototype=zt.prototype,new tn)}}(),A=function(){return A=Object.assign||function(vt){for(var Mt,zt=1,tn=arguments.length;zt =0;){if(Bn=Rn+Sn,(Rn===0||tn.charCodeAt(Rn-1)===32)&&tn.charCodeAt(Bn)===32){this._lastStart=Rn,this._lastEnd=Bn+1;return}if(Rn>0&&tn.charCodeAt(Rn-1)===32&&Bn===Ut){this._lastStart=Rn-1,this._lastEnd=Bn;return}if(Rn===0&&Bn===Ut){this._lastStart=0,this._lastEnd=Bn;return}}this._lastStart=-1},vt.prototype.hasClass=function(Mt,zt){return this._findClassName(Mt,zt),this._lastStart!==-1},vt.prototype.addClasses=function(Mt){for(var zt=this,tn=[],Ut=1;Ut 0;){Mt.sort(ze.sort);var Rn=Mt.shift();Rn.execute()}tn=!1};ye=function(Rn,Bn){Bn===void 0&&(Bn=0);var Fn=new ze(Rn,Bn);return vt.push(Fn),zt||(zt=!0,J(Ut)),Fn},me=function(Rn,Bn){if(tn){var Fn=new ze(Rn,Bn);return Mt.push(Fn),Fn}else return ye(Rn,Bn)}})();var tt=16,_t=function(Mt,zt){return zt},Pt=function(vt){D(Mt,vt);function Mt(zt,tn,Ut,Sn,Rn){Sn===void 0&&(Sn=_t),Rn===void 0&&(Rn=tt);var Bn=vt.call(this)||this,Fn=null,ri=0,ci=Bn._register(new F.e),zi=function(){ri=new Date().getTime(),Ut(Fn),Fn=null};return Bn._register(q(zt,tn,function(oo){Fn=Sn(Fn,oo);var Zn=new Date().getTime()-ri;Zn>=Rn?(ci.cancel(),zi()):ci.setIfNotSet(zi,Rn-Zn)})),Bn}return Mt}(G.a);function Xt(vt,Mt,zt,tn,Ut){return new Pt(vt,Mt,zt,tn,Ut)}function Ke(vt){return document.defaultView.getComputedStyle(vt,null)}function Xe(vt){if(vt!==document.body)return new Ye(vt.clientWidth,vt.clientHeight);if(R.c&&window.visualViewport){var Mt=window.visualViewport.width,zt=window.visualViewport.height-(I.l?20+4:0);return new Ye(Mt,zt)}if(window.innerWidth&&window.innerHeight)return new Ye(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ye(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ye(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Ze=function(){function vt(){}return vt.convertToPixels=function(Mt,zt){return parseFloat(zt)||0},vt.getDimension=function(Mt,zt,tn){var Ut=Ke(Mt),Sn="0";return Ut&&(Ut.getPropertyValue?Sn=Ut.getPropertyValue(zt):Sn=Ut.getAttribute(tn)),vt.convertToPixels(Mt,Sn)},vt.getBorderLeftWidth=function(Mt){return vt.getDimension(Mt,"border-left-width","borderLeftWidth")},vt.getBorderRightWidth=function(Mt){return vt.getDimension(Mt,"border-right-width","borderRightWidth")},vt.getBorderTopWidth=function(Mt){return vt.getDimension(Mt,"border-top-width","borderTopWidth")},vt.getBorderBottomWidth=function(Mt){return vt.getDimension(Mt,"border-bottom-width","borderBottomWidth")},vt.getPaddingLeft=function(Mt){return vt.getDimension(Mt,"padding-left","paddingLeft")},vt.getPaddingRight=function(Mt){return vt.getDimension(Mt,"padding-right","paddingRight")},vt.getPaddingTop=function(Mt){return vt.getDimension(Mt,"padding-top","paddingTop")},vt.getPaddingBottom=function(Mt){return vt.getDimension(Mt,"padding-bottom","paddingBottom")},vt.getMarginLeft=function(Mt){return vt.getDimension(Mt,"margin-left","marginLeft")},vt.getMarginTop=function(Mt){return vt.getDimension(Mt,"margin-top","marginTop")},vt.getMarginRight=function(Mt){return vt.getDimension(Mt,"margin-right","marginRight")},vt.getMarginBottom=function(Mt){return vt.getDimension(Mt,"margin-bottom","marginBottom")},vt}(),Ye=function(){function vt(Mt,zt){this.width=Mt,this.height=zt}return vt}();function ke(vt){for(var Mt=vt.offsetParent,zt=vt.offsetTop,tn=vt.offsetLeft;(vt=vt.parentNode)!==null&&vt!==document.body&&vt!==document.documentElement;){zt-=vt.scrollTop;var Ut=pe(vt)?null:Ke(vt);Ut&&(tn-=Ut.direction!=="rtl"?vt.scrollLeft:-vt.scrollLeft),vt===Mt&&(tn+=Ze.getBorderLeftWidth(vt),zt+=Ze.getBorderTopWidth(vt),zt+=vt.offsetTop,tn+=vt.offsetLeft,Mt=vt.offsetParent)}return{left:tn,top:zt}}function $e(vt){var Mt=vt.getBoundingClientRect();return{left:Mt.left+we.scrollX,top:Mt.top+we.scrollY,width:Mt.width,height:Mt.height}}var we=new(function(){function vt(){}return Object.defineProperty(vt.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),vt}());function k(vt){var Mt=Ze.getMarginLeft(vt)+Ze.getMarginRight(vt);return vt.offsetWidth+Mt}function ee(vt){var Mt=Ze.getBorderLeftWidth(vt)+Ze.getBorderRightWidth(vt),zt=Ze.getPaddingLeft(vt)+Ze.getPaddingRight(vt);return vt.offsetWidth-Mt-zt}function Pe(vt){var Mt=Ze.getBorderTopWidth(vt)+Ze.getBorderBottomWidth(vt),zt=Ze.getPaddingTop(vt)+Ze.getPaddingBottom(vt);return vt.offsetHeight-Mt-zt}function ve(vt){var Mt=Ze.getMarginTop(vt)+Ze.getMarginBottom(vt);return vt.offsetHeight+Mt}function Te(vt,Mt){for(;vt;){if(vt===Mt)return!0;vt=vt.parentNode}return!1}function Ie(vt,Mt,zt){for(;vt&&vt.nodeType===vt.ELEMENT_NODE;){if(w(vt,Mt))return vt;if(zt){if(typeof zt=="string"){if(w(vt,zt))return null}else if(vt===zt)return null}vt=vt.parentNode}return null}function pe(vt){return vt&&!!vt.host&&!!vt.mode}function nt(vt){return!!Et(vt)}function Et(vt){for(;vt.parentNode;){if(vt===document.body)return null;vt=vt.parentNode}return pe(vt)?vt:null}function Rt(vt){vt===void 0&&(vt=document.getElementsByTagName("head")[0]);var Mt=document.createElement("style");return Mt.type="text/css",Mt.media="screen",vt.appendChild(Mt),Mt}var Tt=null;function Ht(){return Tt||(Tt=Rt()),Tt}function Gt(vt){return vt&&vt.sheet&&vt.sheet.rules?vt.sheet.rules:vt&&vt.sheet&&vt.sheet.cssRules?vt.sheet.cssRules:[]}function rn(vt,Mt,zt){if(zt===void 0&&(zt=Ht()),!zt||!Mt)return;zt.sheet.insertRule(vt+"{"+Mt+"}",0)}function Ln(vt,Mt){if(Mt===void 0&&(Mt=Ht()),!Mt)return;for(var zt=Gt(Mt),tn=[],Ut=0;Ut =0;Ut--)Mt.sheet.deleteRule(tn[Ut])}function yn(vt){return typeof HTMLElement=="object"?vt instanceof HTMLElement:vt&&typeof vt=="object"&&vt.nodeType===1&&typeof vt.nodeName=="string"}var Tn={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:I.m?"webkitAnimationStart":"animationstart",ANIMATION_END:I.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:I.m?"webkitAnimationIteration":"animationiteration"},Ft={stop:function(Mt,zt){Mt.preventDefault?Mt.preventDefault():Mt.returnValue=!1,zt&&(Mt.stopPropagation?Mt.stopPropagation():Mt.cancelBubble=!0)}};function pt(vt){for(var Mt=[],zt=0;vt&&vt.nodeType===vt.ELEMENT_NODE;zt++)Mt[zt]=vt.scrollTop,vt=vt.parentNode;return Mt}function gt(vt,Mt){for(var zt=0;vt&&vt.nodeType===vt.ELEMENT_NODE;zt++)vt.scrollTop!==Mt[zt]&&(vt.scrollTop=Mt[zt]),vt=vt.parentNode}var Dt=function(vt){D(Mt,vt);function Mt(zt){var tn=vt.call(this)||this;tn._onDidFocus=tn._register(new j.a),tn.onDidFocus=tn._onDidFocus.event,tn._onDidBlur=tn._register(new j.a),tn.onDidBlur=tn._onDidBlur.event;var Ut=Te(document.activeElement,zt),Sn=!1,Rn=function(){Sn=!1,Ut||(Ut=!0,tn._onDidFocus.fire())},Bn=function(){Ut&&(Sn=!0,window.setTimeout(function(){Sn&&(Sn=!1,Ut=!1,tn._onDidBlur.fire())},0))};return tn._refreshStateHandler=function(){var Fn=Te(document.activeElement,zt);Fn!==Ut&&(Ut?Bn():Rn())},tn._register(Object(oe.a)(zt,Tn.FOCUS,!0)(Rn)),tn._register(Object(oe.a)(zt,Tn.BLUR,!0)(Bn)),tn}return Mt}(G.a);function Lt(vt){return new Dt(vt)}function Vt(vt){for(var Mt=[],zt=1;zt =65536?2:1,q===9)Ee=m.nextRenderTabStop(Ee,H);else{for(var Z=oe.s(q);Se =65536?2:1,Z=Me}oe.y(q)||oe.w(q)?Ee=Ee+2:Ee=Ee+1}}return Ee},m.visibleColumnFromColumn2=function(w,B,H){return this.visibleColumnFromColumn(B.getLineContent(H.lineNumber),H.column,w.tabSize)},m.columnFromVisibleColumn=function(w,B,H){if(B<=0)return 1;for(var re=w.length,he=0,Ee=1,Se=0;Se =65536?2:1;var Z=void 0;if(q===9)Z=m.nextRenderTabStop(he,H);else{for(var ce=oe.s(q);Se =65536?2:1,ce=Ve}oe.y(q)||oe.w(q)?Z=he+2:Z=he+1}var _e=Se+1;if(Z>=B){var ue=B-he,se=Z-B;return se Se?Se:he},m.nextRenderTabStop=function(w,B){return w+B-w%B},m.nextIndentTabStop=function(w,B){return w+B-w%B},m.prevRenderTabStop=function(w,B){return w-1-(w-1)%B},m.prevIndentTabStop=function(w,B){return w-1-(w-1)%B},m}();function g(m){return m==="'"||m==='"'||m==="`"}},g9ht:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});function I(ne,N){var F;return N.length===0?F=ne:F=ne.replace(/\{(\d+)\}/g,function(U,j){var G=j[0];return typeof N[G]!="undefined"?N[G]:U}),F}function oe(ne,N){for(var F=[],U=2;U =0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Ee=function(y,u){return function(l,b){u(l,b,y)}},Se=500,q=function(y){re(u,y);function u(l,b,S){var C=y.call(this)||this;return C._editor=l,C._codeEditorService=b,C._configurationService=S,C._localToDispose=C._register(new N.b),C._decorationsIds=[],C._colorDatas=new Map,C._colorDecoratorIds=[],C._decorationsTypes=new Set,C._register(l.onDidChangeModel(function($){C._isEnabled=C.isEnabled(),C.onModelChanged()})),C._register(l.onDidChangeModelLanguage(function($){return C.onModelChanged()})),C._register(te.c.onDidChange(function($){return C.onModelChanged()})),C._register(l.onDidChangeConfiguration(function($){var Be=C._isEnabled;C._isEnabled=C.isEnabled(),Be!==C._isEnabled&&(C._isEnabled?C.onModelChanged():C.removeAllDecorations())})),C._timeoutTimer=null,C._computePromise=null,C._isEnabled=C.isEnabled(),C.onModelChanged(),C}return u.prototype.isEnabled=function(){var l=this._editor.getModel();if(!l)return!1;var b=l.getLanguageIdentifier(),S=this._configurationService.getValue(b.language);if(S){var C=S.colorDecorators;if(C&&C.enable!==void 0&&!C.enable)return C.enable}return this._editor.getOption(12)},u.get=function(l){return l.getContribution(this.ID)},u.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),y.prototype.dispose.call(this)},u.prototype.onModelChanged=function(){var l=this;if(this.stop(),!this._isEnabled)return;var b=this._editor.getModel();if(!b||!te.c.has(b))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(S){l._timeoutTimer||(l._timeoutTimer=new m.e,l._timeoutTimer.cancelAndSet(function(){l._timeoutTimer=null,l.beginCompute()},u.RECOMPUTE_TIME))})),this.beginCompute()},u.prototype.beginCompute=function(){var l=this;this._computePromise=Object(m.f)(function(b){var S=l._editor.getModel();return S?p(S,b):Promise.resolve([])}),this._computePromise.then(function(b){l.updateDecorations(b),l.updateColorDecorators(b),l._computePromise=null},z.e)},u.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},u.prototype.updateDecorations=function(l){var b=this,S=l.map(function(C){return{range:{startLineNumber:C.colorInfo.range.startLineNumber,startColumn:C.colorInfo.range.startColumn,endLineNumber:C.colorInfo.range.endLineNumber,endColumn:C.colorInfo.range.endColumn},options:A.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,S),this._colorDatas=new Map,this._decorationsIds.forEach(function(C,$){return b._colorDatas.set(C,l[$])})},u.prototype.updateColorDecorators=function(l){for(var b=this,S=[],C={},$=0;$ l.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),y.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},y.prototype.guessColorPresentation=function(u,l){for(var b=0;b 0;return u&&l}var Ye=function(){function y(u,l,b,S,C){var $=this;this._computer=u,this._state=0,this._hoverTime=C,this._firstWaitScheduler=new m.d(function(){return $._triggerAsyncComputation()},0),this._secondWaitScheduler=new m.d(function(){return $._triggerSyncComputation()},0),this._loadingMessageScheduler=new m.d(function(){return $._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=l,this._errorCallback=b,this._progressCallback=S}return y.prototype.setHoverTime=function(u){this._hoverTime=u},y.prototype._firstWaitTime=function(){return this._hoverTime/2},y.prototype._secondWaitTime=function(){return this._hoverTime/2},y.prototype._loadingMessageTime=function(){return 3*this._hoverTime},y.prototype._triggerAsyncComputation=function(){var u=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(m.f)(function(l){return u._computer.computeAsync(l)}),this._asyncComputationPromise.then(function(l){u._asyncComputationPromiseDone=!0,u._withAsyncResult(l)},function(l){return u._onError(l)})):this._asyncComputationPromiseDone=!0},y.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},y.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},y.prototype._withAsyncResult=function(u){u&&this._computer.onResult(u,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},y.prototype._onComplete=function(u){this._completeCallback&&this._completeCallback(u)},y.prototype._onError=function(u){this._errorCallback?this._errorCallback(u):Object(z.e)(u)},y.prototype._onProgress=function(u){this._progressCallback&&this._progressCallback(u)},y.prototype.start=function(u){if(u===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},y.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&(this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state=0},y}(),ke=r("AyeG"),$e=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),we=function(){for(var y=0,u=0,l=arguments.length;u =0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Lt=function(y,u){return function(l,b){u(l,b,y)}},Vt=function(y){gt(u,y);function u(l,b,S,C,$,Be,ot,xe,dt,Nt){var qt=y.call(this,l,S.getRawOptions(),{},C,$,Be,ot,xe,dt,Nt)||this;return qt._parentEditor=S,qt._overwriteOptions=b,y.prototype.updateOptions.call(qt,qt._overwriteOptions),qt._register(S.onDidChangeConfiguration(function(en){return qt._onParentConfigurationChanged(en)})),qt}return u.prototype.getParentEditor=function(){return this._parentEditor},u.prototype._onParentConfigurationChanged=function(l){y.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),y.prototype.updateOptions.call(this,this._overwriteOptions)},u.prototype.updateOptions=function(l){Gt.g(this._overwriteOptions,l,!0),y.prototype.updateOptions.call(this,this._overwriteOptions)},u=Dt([Lt(3,Tn.a),Lt(4,B.a),Lt(5,yn.b),Lt(6,pe.c),Lt(7,fe.c),Lt(8,Ft.a),Lt(9,pt.b)],u),u}(Ln.a),Qt=r("LLZ0"),nn=r("carD"),sn=r("PQix"),ln=new x.a(new x.c(0,122,204)),En={showArrow:!0,showFrame:!0,className:"",frameColor:ln,arrowColor:ln,keepEditorSelection:!1},On="vs.editor.contrib.zoneWidget",Pn=function(){function y(u,l,b,S,C,$){this.id="",this.domNode=u,this.afterLineNumber=l,this.afterColumn=b,this.heightInLines=S,this._onDomNodeTop=C,this._onComputedHeight=$}return y.prototype.onDomNodeTop=function(u){this._onDomNodeTop(u)},y.prototype.onComputedHeight=function(u){this._onComputedHeight(u)},y}(),Gn=function(){function y(u,l){this._id=u,this._domNode=l}return y.prototype.getId=function(){return this._id},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return null},y}(),Qn=function(){function y(u){this._editor=u,this._ruleName=y._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return y.prototype.dispose=function(){this.hide(),R.N(this._ruleName)},Object.defineProperty(y.prototype,"color",{set:function(l){this._color!==l&&(this._color=l,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"height",{set:function(l){this._height!==l&&(this._height=l,this._updateStyle())},enumerable:!0,configurable:!0}),y.prototype._updateStyle=function(){R.N(this._ruleName),R.u(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},y.prototype.show=function(u){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:U.a.fromPositions(u),options:{className:this._ruleName,stickiness:1}}])},y.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},y._IdGenerator=new sn.a(".arrow-decoration-"),y}(),Jn=function(){function y(u,l){var b=this;l===void 0&&(l={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new N.b,this.container=null,this._isShowing=!1,this.editor=u,this.options=Gt.c(l),Gt.g(this.options,En,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(function(S){var C=b._getWidth(S);b.domNode.style.width=C+"px",b.domNode.style.left=b._getLeft(S)+"px",b._onWidth(C)}))}return y.prototype.dispose=function(){var u=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(l){u._viewZone&&l.removeZone(u._viewZone.id),u._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},y.prototype.create=function(){R.e(this.domNode,"zone-widget"),this.options.className&&R.e(this.domNode,this.options.className),this.container=document.createElement("div"),R.e(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Qn(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},y.prototype.style=function(u){u.frameColor&&(this.options.frameColor=u.frameColor),u.arrowColor&&(this.options.arrowColor=u.arrowColor),this._applyStyles()},y.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var u=this.options.frameColor.toString();this.container.style.borderTopColor=u,this.container.style.borderBottomColor=u}if(this._arrow&&this.options.arrowColor){var l=this.options.arrowColor.toString();this._arrow.color=l}},y.prototype._getWidth=function(u){return u.width-u.minimapWidth-u.verticalScrollbarWidth},y.prototype._getLeft=function(u){return u.minimapWidth>0&&u.minimapLeft===0?u.minimapWidth:0},y.prototype._onViewZoneTop=function(u){this.domNode.style.top=u+"px"},y.prototype._onViewZoneHeight=function(u){if(this.domNode.style.height=u+"px",this.container){var l=u-this._decoratingElementsHeight();this.container.style.height=l+"px";var b=this.editor.getLayoutInfo();this._doLayout(l,this._getWidth(b))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(y.prototype,"position",{get:function(){var l=this._positionMarkerId[0];if(!l)return;var b=this.editor.getModel();if(!b)return;var S=b.getDecorationRange(l);return S?S.getStartPosition():void 0},enumerable:!0,configurable:!0}),y.prototype.show=function(u,l){var b=U.a.isIRange(u)?U.a.lift(u):U.a.fromPositions(u);this._isShowing=!0,this._showImpl(b,l),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:b,options:A.a.EMPTY}])},y.prototype.hide=function(){var u=this;this._viewZone&&(this.editor.changeViewZones(function(l){u._viewZone&&l.removeZone(u._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},y.prototype._decoratingElementsHeight=function(){var u=this.editor.getOption(49),l=0;if(this.options.showArrow){var b=Math.round(u/3);l+=2*b}if(this.options.showFrame){var S=Math.round(u/9);l+=2*S}return l},y.prototype._showImpl=function(u,l){var b=this,S=u.getStartPosition(),C=this.editor.getLayoutInfo(),$=this._getWidth(C);this.domNode.style.width=$+"px",this.domNode.style.left=this._getLeft(C)+"px";var Be=document.createElement("div");Be.style.overflow="hidden";var ot=this.editor.getOption(49),xe=this.editor.getLayoutInfo().height/ot*.8;l>=xe&&(l=xe);var dt=0,Nt=0;if(this._arrow&&this.options.showArrow&&(dt=Math.round(ot/3),this._arrow.height=dt,this._arrow.show(S)),this.options.showFrame&&(Nt=Math.round(ot/9)),this.editor.changeViewZones(function(Cn){b._viewZone&&Cn.removeZone(b._viewZone.id),b._overlayWidget&&(b.editor.removeOverlayWidget(b._overlayWidget),b._overlayWidget=null),b.domNode.style.top="-1000px",b._viewZone=new Pn(Be,S.lineNumber,S.column,l,function(In){return b._onViewZoneTop(In)},function(In){return b._onViewZoneHeight(In)}),b._viewZone.id=Cn.addZone(b._viewZone),b._overlayWidget=new Gn(On+b._viewZone.id,b.domNode),b.editor.addOverlayWidget(b._overlayWidget)}),this.container&&this.options.showFrame){var qt=this.options.frameWidth?this.options.frameWidth:Nt;this.container.style.borderTopWidth=qt+"px",this.container.style.borderBottomWidth=qt+"px"}var en=l*ot-this._decoratingElementsHeight();this.container&&(this.container.style.top=dt+"px",this.container.style.height=en+"px",this.container.style.overflow="hidden"),this._doLayout(en,$),this.options.keepEditorSelection||this.editor.setSelection(u);var un=this.editor.getModel();if(un){var an=u.endLineNumber+1;an<=un.getLineCount()?this.revealLine(an,!1):this.revealLine(un.getLineCount(),!0)}},y.prototype.revealLine=function(u,l){l?this.editor.revealLineInCenter(u,0):this.editor.revealLine(u,0)},y.prototype.setCssClass=function(u,l){if(!this.container)return;l&&this.container.classList.remove(l),R.e(this.container,u)},y.prototype._onWidth=function(u){},y.prototype._doLayout=function(u,l){},y.prototype._relayout=function(u){var l=this;this._viewZone&&this._viewZone.heightInLines!==u&&this.editor.changeViewZones(function(b){l._viewZone&&(l._viewZone.heightInLines=u,b.layoutZone(l._viewZone.id))})},y.prototype._initSash=function(){var u=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new nn.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var l;this._disposables.add(this._resizeSash.onDidStart(function(b){u._viewZone&&(l={startY:b.startY,heightInLines:u._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){l=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(b){if(l){var S=(b.currentY-l.startY)/u.editor.getOption(49),C=S<0?Math.ceil(S):Math.floor(S),$=l.heightInLines+C;$>5&&$<35&&u._relayout($)}}))},y.prototype.getHorizontalSashLeft=function(){return 0},y.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},y.prototype.getHorizontalSashWidth=function(){var u=this.editor.getLayoutInfo();return u.width-u.minimapWidth},y}(),gi=r("qJsm"),Kn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),yi=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},mi=function(y,u){return function(l,b){u(l,b,y)}},vt=Object(Tn.c)("IPeekViewService");Object(gi.b)(vt,function(){function y(){this._widgets=new Map}return y.prototype.addExclusiveWidget=function(u,l){var b=this,S=this._widgets.get(u);S&&(S.listener.dispose(),S.widget.dispose());var C=function(){var Be=b._widgets.get(u);Be&&Be.widget===l&&(Be.listener.dispose(),b._widgets.delete(u))};this._widgets.set(u,{widget:l,listener:l.onDidClose(C)})},y}());var Mt;(function(y){y.inPeekEditor=new pe.d("inReferenceSearchEditor",!0),y.notInPeekEditor=y.inPeekEditor.toNegated()})(Mt||(Mt={}));var zt=function(){function y(u,l){u instanceof Vt&&Mt.inPeekEditor.bindTo(l)}return y.prototype.dispose=function(){},y.ID="editor.contrib.referenceController",y=yi([mi(1,pe.c)],y),y}();Object(F.h)(zt.ID,zt);function tn(y){var u=y.get(B.a).getFocusedCodeEditor();return u instanceof Vt?u.getParentEditor():u}var Ut={headerBackgroundColor:x.a.white,primaryHeadingColor:x.a.fromHex("#333333"),secondaryHeadingColor:x.a.fromHex("#6c6c6cb3")},Sn=function(y){Kn(u,y);function u(l,b){b===void 0&&(b={});var S=y.call(this,l,b)||this;return S._onDidClose=new Z.a,S.onDidClose=S._onDidClose.event,Gt.g(S.options,Ut,!1),S}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this._onDidClose.fire(this)},u.prototype.style=function(l){var b=this.options;l.headerBackgroundColor&&(b.headerBackgroundColor=l.headerBackgroundColor),l.primaryHeadingColor&&(b.primaryHeadingColor=l.primaryHeadingColor),l.secondaryHeadingColor&&(b.secondaryHeadingColor=l.secondaryHeadingColor),y.prototype.style.call(this,l)},u.prototype._applyStyles=function(){y.prototype._applyStyles.call(this);var l=this.options;this._headElement&&l.headerBackgroundColor&&(this._headElement.style.backgroundColor=l.headerBackgroundColor.toString()),this._primaryHeading&&l.primaryHeadingColor&&(this._primaryHeading.style.color=l.primaryHeadingColor.toString()),this._secondaryHeading&&l.secondaryHeadingColor&&(this._secondaryHeading.style.color=l.secondaryHeadingColor.toString()),this._bodyElement&&l.frameColor&&(this._bodyElement.style.borderColor=l.frameColor.toString())},u.prototype._fillContainer=function(l){this.setCssClass("peekview-widget"),this._headElement=R.a(".head"),this._bodyElement=R.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),l.appendChild(this._headElement),l.appendChild(this._bodyElement)},u.prototype._fillHead=function(l){var b=this,S=R.a(".peekview-title");R.p(this._headElement,S),R.n(S,"click",function(Be){return b._onTitleClick(Be)}),this._fillTitleIcon(S),this._primaryHeading=R.a("span.filename"),this._secondaryHeading=R.a("span.dirname"),this._metaHeading=R.a("span.meta"),R.p(S,this._primaryHeading,this._secondaryHeading,this._metaHeading);var C=R.a(".peekview-actions");R.p(this._headElement,C);var $=this._getActionBarOptions();this._actionbarWidget=new Tt.a(C,$),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new Ht.a("peekview.close",oe.a("label.close","Close"),"codicon-close",!0,function(){return b.dispose(),Promise.resolve()}),{label:!1,icon:!0})},u.prototype._fillTitleIcon=function(l){},u.prototype._getActionBarOptions=function(){return{}},u.prototype._onTitleClick=function(l){},u.prototype.setTitle=function(l,b){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=rn.o(l),this._primaryHeading.setAttribute("aria-label",l),b?this._secondaryHeading.innerHTML=rn.o(b):R.s(this._secondaryHeading))},u.prototype.setMetaTitle=function(l){this._metaHeading&&(l?(this._metaHeading.innerHTML=rn.o(l),R.W(this._metaHeading)):R.I(this._metaHeading))},u.prototype._doLayout=function(l,b){if(!this._isShowing&&l<0){this.dispose();return}var S=Math.ceil(this.editor.getOption(49)*1.2),C=Math.round(l-(S+2));this._doLayoutHead(S,b),this._doLayoutBody(C,b)},u.prototype._doLayoutHead=function(l,b){this._headElement&&(this._headElement.style.height=l+"px",this._headElement.style.lineHeight=this._headElement.style.height)},u.prototype._doLayoutBody=function(l,b){this._bodyElement&&(this._bodyElement.style.height=l+"px")},u}(Jn),Rn=Object(se.Rb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},oe.a("peekViewTitleBackground","Background color of the peek view title area.")),Bn=Object(se.Rb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},oe.a("peekViewTitleForeground","Color of the peek view title.")),Fn=Object(se.Rb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},oe.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ri=Object(se.Rb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:se.e},oe.a("peekViewBorder","Color of the peek view borders and arrow.")),ci=Object(se.Rb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:x.a.black},oe.a("peekViewResultsBackground","Background color of the peek view result list.")),zi=Object(se.Rb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:x.a.white},oe.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),oo=Object(se.Rb)("peekViewResult.fileForeground",{dark:x.a.white,light:"#1E1E1E",hc:x.a.white},oe.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Zn=Object(se.Rb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},oe.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Ii=Object(se.Rb)("peekViewResult.selectionForeground",{dark:x.a.white,light:"#6C6C6C",hc:x.a.white},oe.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Si=Object(se.Rb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:x.a.black},oe.a("peekViewEditorBackground","Background color of the peek view editor.")),ji=Object(se.Rb)("peekViewEditorGutter.background",{dark:Si,light:Si,hc:Si},oe.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Un=Object(se.Rb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},oe.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ci=Object(se.Rb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},oe.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Wi=Object(se.Rb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:se.b},oe.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor.")),Ti=r("/epU"),Gi;(function(y){function u(l){switch(l){case Ti.a.Ignore:return"severity-ignore codicon-info";case Ti.a.Info:return"codicon-info";case Ti.a.Warning:return"codicon-warning";case Ti.a.Error:return"codicon-error"}return""}y.className=u})(Gi||(Gi={})),Object(fe.e)(function(y,u){var l=y.getColor(se.Nb);l&&u.addRule(` .monaco-editor .zone-widget .codicon-error, .markers-panel .marker-icon.codicon-error, .extensions-viewlet > .extensions .codicon-error, .monaco-dialog-box .dialog-message-row .codicon-error { color: `+l+`; } `);var b=y.getColor(se.Pb);l&&u.addRule(` .monaco-editor .zone-widget .codicon-warning, .markers-panel .marker-icon.codicon-warning, .extensions-viewlet > .extensions .codicon-warning, .extension-editor .codicon-warning, .monaco-dialog-box .dialog-message-row .codicon-warning { color: `+b+`; } `);var S=y.getColor(se.Ob);l&&u.addRule(` .monaco-editor .zone-widget .codicon-info, .markers-panel .marker-icon.codicon-info, .extensions-viewlet > .extensions .codicon-info, .extension-editor .codicon-info, .monaco-dialog-box .dialog-message-row .codicon-info { color: `+S+`; } `)});var Bi=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),vi=function(){function y(u,l,b,S){var C=this;this._openerService=S,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new N.b,this._editor=l;var $=document.createElement("div");$.className="descriptioncontainer",$.setAttribute("aria-live","assertive"),$.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),R.e(this._messageBlock,"message"),$.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),$.appendChild(this._relatedBlock),this._disposables.add(R.n(this._relatedBlock,"click",function(Be){Be.preventDefault();var ot=C._relatedDiagnostics.get(Be.target);ot&&b(ot)})),this._scrollable=new ke.b($,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),u.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Be){$.style.left="-"+Be.scrollLeft+"px",$.style.top="-"+Be.scrollTop+"px"})),this._disposables.add(this._scrollable)}return y.prototype.dispose=function(){Object(N.f)(this._disposables)},y.prototype.update=function(u){var l=this,b=u.source,S=u.message,C=u.relatedInformation,$=u.code,Be=((b==null?void 0:b.length)||0)+"()".length;$&&(typeof $=="string"?Be+=$.length:Be+=$.value.length);var ot=S.split(/\r\n|\r|\n/g);this._lines=ot.length,this._longestLineLength=0;for(var xe=0,dt=ot;xe 1?oe.a("problems","{0} of {1} problems",b,S):oe.a("change","{0} of {1} problem",b,S);this.setTitle(Object(Te.b)(ot.uri),xe)}this._icon.className="codicon "+Gi.className(ve.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Be,0),this.editor.focus()},u.prototype.updateMarker=function(l){this._container.classList.remove("stale"),this._message.update(l)},u.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},u.prototype._doLayoutBody=function(l,b){y.prototype._doLayoutBody.call(this,l,b),this._heightInPixel=l,this._message.layout(l,b),this._container.style.height=l+"px"},u.prototype._onWidth=function(l){this._message.layout(this._heightInPixel,l)},u.prototype._relayout=function(){y.prototype._relayout.call(this,this.computeRequiredHeight())},u.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},u}(Sn),ro=Object(se.Jb)(se.q,se.p),bi=Object(se.Jb)(se.O,se.N),Di=Object(se.Jb)(se.H,se.G),Xi=Object(se.Rb)("editorMarkerNavigationError.background",{dark:ro,light:ro,hc:ro},oe.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),lo=Object(se.Rb)("editorMarkerNavigationWarning.background",{dark:bi,light:bi,hc:bi},oe.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Mi=Object(se.Rb)("editorMarkerNavigationInfo.background",{dark:Di,light:Di,hc:Di},oe.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),so=Object(se.Rb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:x.a.white,hc:"#0C141F"},oe.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(fe.e)(function(y,u){var l=y.getColor(se.cc);l&&(u.addRule(".monaco-editor .marker-widget a { color: "+l+"; }"),u.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+l+"; }"))});var Je=r("1OsU"),O=r("Qr/v"),T=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Y=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},De=function(y,u){return function(l,b){u(l,b,y)}},Re=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},We=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] =0?this._markers[this._nextIdx]:void 0;this._markers=u||[],this._markers.sort(yt.compareMarker),l?this._nextIdx=Math.max(-1,Object(Ke.c)(this._markers,l,yt.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},y.prototype.withoutWatchingEditorPosition=function(u){this._ignoreSelectionChange=!0;try{u()}finally{this._ignoreSelectionChange=!1}},y.prototype._initIdx=function(u){for(var l=!1,b=this._editor.getPosition(),S=0;S 0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:S=!0),b!==this._nextIdx){var C=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(C)}return S},y.prototype.canNavigate=function(){return this._markers.length>0},y.prototype.findMarkerAtPosition=function(u){return Object(Ke.h)(this._markers,function(l){return U.a.containsPosition(l,u)})},Object.defineProperty(y.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),y.prototype.indexOf=function(u){return 1+this._markers.indexOf(u)},y.prototype.dispose=function(){this._toUnbind.dispose()},y}(),lt=function(){function y(u,l,b,S,C,$,Be){this._markerService=l,this._contextKeyService=b,this._themeService=S,this._editorService=C,this._keybindingService=$,this._openerService=Be,this._model=null,this._widget=null,this._disposeOnClose=new N.b,this._editor=u,this._widgetVisible=Zt.bindTo(this._contextKeyService)}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},y.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},y.prototype.getOrCreateModel=function(){var u=this;if(this._model)return this._model;var l=this._getMarkers();this._model=new ft(this._editor,l),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var b=this._keybindingService.lookupKeybinding(It.ID),S=this._keybindingService.lookupKeybinding(xt.ID),C=[new Ht.a(xt.ID,xt.LABEL+(S?" ("+S.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return Re(u,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!0,!0),[2]})})}),new Ht.a(It.ID,It.LABEL+(b?" ("+b.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return Re(u,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new qi(this._editor,C,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return u.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var $=0,Be=C;$ 0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] =0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Ot=function(y,u){return function(l,b){u(l,b,y)}},Jt=function(y){je(u,y);function u(l,b){var S=y.call(this)||this;return S.closeTimeout=3e3,S._messageWidget=S._register(new N.d),S._messageListeners=S._register(new N.b),S._editor=l,S._visible=u.MESSAGE_VISIBLE.bindTo(b),S._register(S._editor.onDidAttemptReadOnlyEdit(function(){return S._onDidAttemptReadOnlyEdit()})),S}return u.get=function(l){return l.getContribution(u.ID)},u.prototype.dispose=function(){y.prototype.dispose.call(this),this._visible.reset()},u.prototype.showMessage=function(l,b){var S=this;Object(Qe.a)(l),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new jt(this._editor,b,l),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return S.closeMessage()})),this._messageListeners.add(new m.e(function(){return S.closeMessage()},this.closeTimeout));var C;this._messageListeners.add(this._editor.onMouseMove(function($){if(!$.target.position)return;C?C.containsPosition($.target.position)||S.closeMessage():C=new U.a(b.lineNumber-3,1,$.target.position.lineNumber+3,1)}))},u.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(jt.fadeOut(this._messageWidget.value))},u.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(oe.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},u.ID="editor.contrib.messageController",u.MESSAGE_VISIBLE=new pe.d("messageVisible",!1),u=Ct([Ot(1,pe.c)],u),u}(N.a),At=F.c.bindToContribution(Jt.get);Object(F.g)(new At({id:"leaveEditorMessage",precondition:Jt.MESSAGE_VISIBLE,handler:function(u){return u.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var jt=function(){function y(u,l,b){var S=l.lineNumber,C=l.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=u,this._editor.revealLinesInCenterIfOutsideViewport(S,S,0),this._position={lineNumber:S,column:C-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var $=document.createElement("div");$.classList.add("message"),$.textContent=b,this._domNode.appendChild($);var Be=document.createElement("div");Be.classList.add("anchor"),this._domNode.appendChild(Be),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return y.fadeOut=function(u){var l,b=function S(){u.dispose(),clearTimeout(l),u.getDomNode().removeEventListener("animationend",S)};return l=setTimeout(b,110),u.getDomNode().addEventListener("animationend",b),u.getDomNode().classList.add("fadeOut"),{dispose:b}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y}();Object(F.h)(Jt.ID,Jt),Object(fe.e)(function(y,u){var l=y.getColor(se.fb);if(l){var b=y.type===fe.b?2:1;u.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+l+"; }"),u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+b+"px solid "+l+"; }")}var S=y.getColor(se.eb);S&&u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+S+"; }");var C=y.getColor(se.gb);C&&u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+C+"; }")});var hn=r("sjWa"),bn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),mn=function(){return mn=Object.assign||function(y){for(var u,l=1,b=arguments.length;l=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Xn=function(y,u){return function(l,b){u(l,b,y)}},Yn=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Ui=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] =0}).filter(function(b){return b.resolvedKeybinding}).map(function(b){var S=b.commandArgs;return b.command===X?S={kind:gn.SourceOrganizeImports.value}:b.command===Ue&&(S={kind:gn.SourceFixAll.value}),mn({resolvedKeybinding:b.resolvedKeybinding},W.fromUser(S,{kind:gn.None,apply:"never"}))})});return function(b){if(b.kind){var S=u.bestKeybindingForCodeAction(b,l.getValue());return S==null?void 0:S.resolvedKeybinding}return}},y.prototype.bestKeybindingForCodeAction=function(u,l){if(!u.kind)return;var b=new gn(u.kind);return l.filter(function(S){return S.kind.contains(b)}).filter(function(S){return S.preferred?u.isPreferred:!0}).reduceRight(function(S,C){return S?S.kind.contains(C.kind)?C:S:C},void 0)},y.codeActionCommands=[Ge,St,de,X,Ue],y}(),to=r("ux5E"),zn=r("3HcJ"),zo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Oi=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},wr=function(y,u){return function(l,b){u(l,b,y)}},Po;(function(y){y.Hidden={type:0};var u=function(){function l(b,S,C,$){this.actions=b,this.trigger=S,this.editorPosition=C,this.widgetPosition=$,this.type=1}return l}();y.Showing=u})(Po||(Po={}));var Ho=function(y){zo(u,y);function u(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._quickFixActionId=b,$._preferredFixActionId=S,$._keybindingService=C,$._onClick=$._register(new Z.a),$.onClick=$._onClick.event,$._state=Po.Hidden,$._domNode=document.createElement("div"),$._domNode.className="codicon codicon-lightbulb",$._editor.addContentWidget($),$._register($._editor.onDidChangeModelContent(function(Be){var ot=$._editor.getModel();($.state.type!==1||!ot||$.state.editorPosition.lineNumber>=ot.getLineCount())&&$.hide()})),zn.b.ignoreTarget($._domNode),$._register(R.m($._domNode,function(Be){if($.state.type!==1)return;$._editor.focus(),Be.preventDefault();var ot=R.B($._domNode),xe=ot.top,dt=ot.height,Nt=$._editor.getOption(49),qt=Math.floor(Nt/3);$.state.widgetPosition.position!==null&&$.state.widgetPosition.position.lineNumber<$.state.editorPosition.lineNumber&&(qt+=Nt),$._onClick.fire({x:Be.posx,y:xe+dt+qt,actions:$.state.actions,trigger:$.state.trigger})})),$._register(R.i($._domNode,"mouseenter",function(Be){if((Be.buttons&1)!==1)return;$.hide();var ot=new _e.a;ot.startMonitoring(Be.target,Be.buttons,_e.b,function(){},function(){ot.dispose()})})),$._register($._editor.onDidChangeConfiguration(function(Be){Be.hasChanged(47)&&!$._editor.getOption(47).enabled&&$.hide()})),$._updateLightBulbTitle(),$._register($._keybindingService.onDidUpdateKeybindings($._updateLightBulbTitle,$)),$}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this._editor.removeContentWidget(this)},u.prototype.getId=function(){return"LightBulbWidget"},u.prototype.getDomNode=function(){return this._domNode},u.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},u.prototype.update=function(l,b,S){var C=this;if(l.validActions.length<=0)return this.hide();var $=this._editor.getOptions();if(!$.get(47).enabled)return this.hide();var Be=S.lineNumber,ot=S.column,xe=this._editor.getModel();if(!xe)return this.hide();var dt=xe.getOptions().tabSize,Nt=$.get(34),qt=xe.getLineContent(Be),en=A.b.computeIndentLevel(qt,dt),un=Nt.spaceWidth*en>22,an=function(Nn){return Nn>2&&C._editor.getTopForLineNumber(Nn)===C._editor.getTopForLineNumber(Nn-1)},Cn=Be;if(!un){if(Be>1&&!an(Be-1))Cn-=1;else if(!an(Be+1))Cn+=1;else if(ot*Nt.spaceWidth<22)return this.hide()}this.state=new Po.Showing(l,b,S,{position:{lineNumber:Cn,column:1},preference:u._posPref}),R.X(this._domNode,"codicon-lightbulb-autofix",l.hasAutoFix),this._editor.layoutContentWidget(this)},u.prototype.hide=function(){this.state=Po.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(u.prototype,"state",{get:function(){return this._state},set:function(b){this._state=b,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),u.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var l=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(l){this.title=oe.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",l.getLabel());return}}var b=this._keybindingService.lookupKeybinding(this._quickFixActionId);b?this.title=oe.a("quickFixWithKb","Show Fixes ({0})",b.getLabel()):this.title=oe.a("quickFix","Show Fixes")},Object.defineProperty(u.prototype,"title",{set:function(b){this._domNode.title=b},enumerable:!0,configurable:!0}),u._posPref=[0],u=Oi([wr(3,O.a)],u),u}(N.a);Object(fe.e)(function(y,u){var l=y.getColor(se.J);l&&u.addRule(` .monaco-editor .contentWidgets .codicon-lightbulb { color: `+l+`; }`);var b=y.getColor(se.I);b&&u.addRule(` .monaco-editor .contentWidgets .codicon-lightbulb-autofix { color: `+b+`; }`)});var Fo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),tr=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},pr=function(y,u){return function(l,b){u(l,b,y)}},co=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},So=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] 0||l.autoApply==="ifSingle"&&b.validActions.length===1)?b.validActions[0]:void 0},u.prototype.showCodeActionList=function(l,b,S,C){return co(this,void 0,void 0,function(){return So(this,function($){return this._codeActionWidget.getValue().show(l,b,S,C),[2]})})},u=tr([pr(4,Tn.a)],u),u}(N.a),Br=r("z5rs"),Lr=r("yimU"),Ai=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Ko=new pe.d("supportedCodeAction",""),is=function(y){Ai(u,y);function u(l,b,S,C){C===void 0&&(C=250);var $=y.call(this)||this;return $._editor=l,$._markerService=b,$._signalChange=S,$._delay=C,$._autoTriggerTimer=$._register(new m.e),$._register($._markerService.onMarkerChanged(function(Be){return $._onMarkerChanges(Be)})),$._register($._editor.onDidChangeCursorPosition(function(){return $._onCursorChange()})),$}return u.prototype.trigger=function(l){var b=this._getRangeOfSelectionUnlessWhitespaceEnclosed(l);return this._createEventAndSignalChange(l,b)},u.prototype._onMarkerChanges=function(l){var b=this,S=this._editor.getModel();if(!S)return;l.some(function(C){return Object(Te.e)(C,S.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){b.trigger({type:1})},this._delay)},u.prototype._onCursorChange=function(){var l=this;this._autoTriggerTimer.cancelAndSet(function(){l.trigger({type:1})},this._delay)},u.prototype._getRangeOfMarker=function(l){var b=this._editor.getModel();if(!b)return;for(var S=0,C=this._markerService.read({resource:b.uri});S =0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Dr=function(y,u){return function(l,b){u(l,b,y)}},pn=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Os=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] this._editor.getModel().getLineCount())return[];var S=q.get(this._editor),C=l.getLineMaxColumn(b),$=this._editor.getLineDecorations(b),Be=!1,ot=this._range,xe=$.map(function(dt){var Nt=dt.range.startLineNumber===b?dt.range.startColumn:1,qt=dt.range.endLineNumber===b?dt.range.endColumn:C;if(Nt>ot.startColumn||ot.endColumn>qt)return null;var en=new U.a(ot.startLineNumber,Nt,ot.startLineNumber,qt),un=u._markerDecorationsService.getMarker(l,dt);if(un)return new Xo(en,un);var an=S.getColorData(dt.range.getStartPosition());if(!Be&&an){Be=!0;var Cn=an.colorInfo,In=Cn.color,Nn=Cn.range;return new Go(Nn,In,an.provider)}else{if(Object(K.b)(dt.options.hoverMessage))return null;var ti=dt.options.hoverMessage?Object(Ke.b)(dt.options.hoverMessage):[];return{contents:ti,range:en}}});return Object(Ke.d)(xe)},y.prototype.onResult=function(u,l){l?this._result=u.concat(this._result.sort(function(b,S){return b instanceof Go?-1:S instanceof Go?1:0})):this._result=this._result.concat(u)},y.prototype.getResult=function(){return this._result.slice(0)},y.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},y.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new K.a().appendText(oe.a("modesContentHover.loading","Loading..."))]}},y}(),Ur={type:2,filter:{include:gn.QuickFix}},Yo=function(y){wo(u,y);function u(l,b,S,C,$,Be){Be===void 0&&(Be=Ie.b);var ot=y.call(this,u.ID,l)||this;return ot._themeService=S,ot._keybindingService=C,ot._modeService=$,ot._openerService=Be,ot.renderDisposable=ot._register(new N.d),ot._messages=[],ot._lastRange=null,ot._computer=new us(ot._editor,b),ot._highlightDecorations=[],ot._isChangingDecorations=!1,ot._shouldFocus=!1,ot._colorPicker=null,ot._hoverOperation=new Ye(ot._computer,function(xe){return ot._withResult(xe,!0)},null,function(xe){return ot._withResult(xe,!1)},ot._editor.getOption(44).delay),ot._register(R.n(ot.getDomNode(),R.c.FOCUS,function(){ot._colorPicker&&R.e(ot.getDomNode(),"colorpicker-hover")})),ot._register(R.n(ot.getDomNode(),R.c.BLUR,function(){R.O(ot.getDomNode(),"colorpicker-hover")})),ot._register(l.onDidChangeConfiguration(function(xe){ot._hoverOperation.setHoverTime(ot._editor.getOption(44).delay)})),ot._register(te.y.onDidChange(function(xe){ot.isVisible&&ot._lastRange&&ot._messages.length>0&&(ot._domNode.textContent="",ot._renderMessages(ot._lastRange,ot._messages))})),ot}return u.prototype.dispose=function(){this._hoverOperation.cancel(),y.prototype.dispose.call(this)},u.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},u.prototype.startShowingAt=function(l,b,S){if(this._lastRange&&this._lastRange.equalsRange(l))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==l.startLineNumber)this.hide();else{for(var C=[],$=0,Be=this._messages.length;$ =l.endColumn&&C.push(ot)}if(C.length>0){if(cs(C,this._messages))return;this._renderMessages(l,C)}else this.hide()}this._lastRange=l,this._computer.setRange(l),this._shouldFocus=S,this._hoverOperation.start(b)},u.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),y.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},u.prototype.isColorPickerVisible=function(){return!!this._colorPicker},u.prototype._withResult=function(l,b){this._messages=l,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):b&&this.hide()},u.prototype._renderMessages=function(l,b){var S=this;this.renderDisposable.dispose(),this._colorPicker=null;var C=1073741824,$=b[0].range?U.a.lift(b[0].range):null,Be=document.createDocumentFragment(),ot=!0,xe=!1,dt=new N.b,Nt=[];if(b.forEach(function(en){if(!en.range)return;if(C=Math.min(C,en.range.startColumn),$=$?U.a.plusRange($,en.range):U.a.lift(en.range),en instanceof Go){xe=!0;var un=en.color,an=un.red,Cn=un.green,In=un.blue,Nn=un.alpha,ti=new x.c(Math.round(an*255),Math.round(Cn*255),Math.round(In*255),Nn),Dn=new x.a(ti);if(!S._editor.hasModel())return;var di=S._editor.getModel(),qn=new U.a(en.range.startLineNumber,en.range.startColumn,en.range.endLineNumber,en.range.endColumn),Ri={range:en.range,color:en.color},li=new ce(Dn,[],0),mo=new Xt(Be,li,S._editor.getOption(105),S._themeService);g(di,Ri,en.provider,E.a.None).then(function(Li){if(li.colorPresentations=Li||[],!S._editor.hasModel())return;var ui=S._editor.getModel().getValueInRange(en.range);li.guessColorPresentation(Dn,ui);var Hi=function(){var hi,Fi;li.presentation.textEdit?(hi=[li.presentation.textEdit],Fi=new U.a(li.presentation.textEdit.range.startLineNumber,li.presentation.textEdit.range.startColumn,li.presentation.textEdit.range.endLineNumber,li.presentation.textEdit.range.endColumn),Fi=Fi.setEndPosition(Fi.endLineNumber,Fi.startColumn+li.presentation.textEdit.text.length)):(hi=[{identifier:null,range:qn,text:li.presentation.label,forceMoveMarkers:!1}],Fi=qn.setEndPosition(qn.endLineNumber,qn.startColumn+li.presentation.label.length)),S._editor.pushUndoStop(),S._editor.executeEdits("colorpicker",hi),li.presentation.additionalTextEdits&&(hi=xs(li.presentation.additionalTextEdits),S._editor.executeEdits("colorpicker",hi),S.hide()),S._editor.pushUndoStop(),qn=Fi},$i=function(hi){return g(di,{range:qn,color:{red:hi.rgba.r/255,green:hi.rgba.g/255,blue:hi.rgba.b/255,alpha:hi.rgba.a}},en.provider,E.a.None).then(function(Fi){li.colorPresentations=Fi||[]})},Ji=li.onColorFlushed(function(Qi){$i(Qi).then(Hi)}),Vi=li.onDidChangeColor($i);S._colorPicker=mo,S.showAt(qn.getStartPosition(),qn,S._shouldFocus),S.updateContents(Be),S._colorPicker.layout(),S.renderDisposable.value=Object(N.e)(Ji,Vi,mo,dt)})}else en instanceof Xo?(Nt.push(en),ot=!1):en.contents.filter(function(Li){return!Object(K.b)(Li)}).forEach(function(Li){var ui=Ni("div.hover-row.markdown-hover"),Hi=R.p(ui,Ni("div.hover-contents")),$i=dt.add(new Pe.a(S._editor,S._modeService,S._openerService));dt.add($i.onDidRenderCodeBlock(function(){Hi.className="hover-contents code-hover-contents",S.onContentsChange()}));var Ji=dt.add($i.render(Li));Hi.appendChild(Ji.element),Be.appendChild(ui),ot=!1})}),Nt.length){Nt.forEach(function(en){return Be.appendChild(S.renderMarkerHover(en))});var qt=Nt.length===1?Nt[0]:Nt.sort(function(en,un){return ve.c.compare(en.marker.severity,un.marker.severity)})[0];Be.appendChild(this.renderMarkerStatusbar(qt))}!xe&&!ot&&(this.showAt(new D.a(l.startLineNumber,C),$,this._shouldFocus),this.updateContents(Be)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,$?[{range:$,options:u._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},u.prototype.renderMarkerHover=function(l){var b=this,S=Ni("div.hover-row"),C=R.p(S,Ni("div.marker.hover-contents")),$=l.marker,Be=$.source,ot=$.message,xe=$.code,dt=$.relatedInformation;this._editor.applyFontInfo(C);var Nt=R.p(C,Ni("span"));if(Nt.style.whiteSpace="pre-wrap",Nt.innerText=ot,Be||xe){if(typeof xe=="string"){var qt=R.p(C,Ni("span"));qt.style.opacity="0.6",qt.style.paddingLeft="6px",qt.innerText=Be&&xe?Be+"("+xe+")":Be||"("+xe+")"}else if(xe){var en=Ni("span");if(Be){var un=R.p(en,Ni("span"));un.innerText=Be}this._codeLink=R.p(en,Ni("a.code-link")),this._codeLink.setAttribute("href",xe.link.toString()),this._codeLink.onclick=function(Li){b._openerService.open(xe.link),Li.preventDefault(),Li.stopPropagation()};var an=R.p(this._codeLink,Ni("span"));an.innerText=xe.value;var qt=R.p(C,en);qt.style.opacity="0.6",qt.style.paddingLeft="6px"}}if(Object(Ke.q)(dt))for(var Cn=function(Li,ui,Hi,$i){var Ji=R.p(C,Ni("div"));Ji.style.marginTop="8px";var Vi=R.p(Ji,Ni("a"));Vi.innerText=Object(Te.b)(ui)+"("+Hi+", "+$i+"): ",Vi.style.cursor="pointer",Vi.onclick=function(hi){hi.stopPropagation(),hi.preventDefault(),b._openerService&&b._openerService.open(ui.with({fragment:Hi+","+$i}),{fromUserGesture:!0}).catch(z.e)};var Qi=R.p(Ji,Ni("span"));Qi.innerText=Li,In._editor.applyFontInfo(Qi)},In=this,Nn=0,ti=dt;Nn 0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},u.prototype._renderMessages=function(l,b){this._renderDisposeables.clear();for(var S=document.createDocumentFragment(),C=0,$=b;C<$.length;C++){var Be=$[C],ot=this._markdownRenderer.render(Be.value);this._renderDisposeables.add(ot),S.appendChild(Object(R.a)("div.hover-row",void 0,ot.element))}this.updateContents(S),this.showAt(l)},u.ID="editor.contrib.modesGlyphHoverWidget",u}(ee),hs=r("XfmC"),ea=r("1W4+"),As=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Ns=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] 0?(l?S=(S+1)%C:S=(S+C-1)%C,b.children[S]):(S=b.parent.groups.indexOf(b),l?(S=(S+1)%$,b.parent.groups[S].children[0]):(S=(S+$-1)%$,b.parent.groups[S].children[b.parent.groups[S].children.length-1]))},y.prototype.nearestReference=function(u,l){var b=this.references.map(function(S,C){return{idx:C,prefixLen:rn.c(S.uri.toString(),u.toString()),offsetDist:Math.abs(S.range.startLineNumber-l.lineNumber)*100+Math.abs(S.range.startColumn-l.column)}}).sort(function(S,C){return S.prefixLen>C.prefixLen?-1:S.prefixLen C.offsetDist?1:0})[0];return b?this.references[b.idx]:void 0},y.prototype.referenceAt=function(u,l){for(var b=0,S=this.references;b =0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},or=function(y,u){return function(l,b){u(l,b,y)}},rr=function(){function y(u){this._resolverService=u}return y.prototype.hasChildren=function(u){return u instanceof oi?!0:u instanceof ho&&!u.failure},y.prototype.getChildren=function(u){if(u instanceof oi)return u.groups;if(u instanceof ho)return u.resolve(this._resolverService).then(function(l){return l.children});throw new Error("bad tree")},y=Mo([or(0,Or.a)],y),y}(),no=function(){function y(){}return y.prototype.getHeight=function(){return 23},y.prototype.getTemplateId=function(u){return u instanceof ho?xr.id:sr.id},y}(),Co=function(){function y(u){this._keybindingService=u}return y.prototype.getKeyboardNavigationLabel=function(u){if(u instanceof Wo){var l=u.parent.preview,b=l&&l.preview(u.range);if(b)return b.value}return Object(Te.b)(u.uri)},y=Mo([or(0,O.a)],y),y}(),wi=function(){function y(){}return y.prototype.getId=function(u){return u instanceof Wo?u.id:u.uri},y}(),ki=function(y){na(u,y);function u(l,b,S){var C=y.call(this)||this;C._uriLabel=b;var $=document.createElement("div");return R.e($,"reference-file"),C.file=C._register(new Ps.a($,{supportHighlights:!0})),C.badge=new Fs(R.p($,R.a(".count"))),C._register(Object(ks.a)(C.badge,S)),l.appendChild($),C}return u.prototype.set=function(l,b){var S=Object(Te.d)(l.uri);this.file.setLabel(Object(Et.a)(l.uri),this._uriLabel.getUriLabel(S,{relative:!0}),{title:this._uriLabel.getUriLabel(l.uri),matches:b});var C=l.children.length;this.badge.setCount(C),l.failure?this.badge.setTitleFormat(Object(oe.a)("referencesFailre","Failed to resolve file.")):C>1?this.badge.setTitleFormat(Object(oe.a)("referencesCount","{0} references",C)):this.badge.setTitleFormat(Object(oe.a)("referenceCount","{0} reference",C))},u=Mo([or(1,ir.a),or(2,fe.c)],u),u}(N.a),xr=function(){function y(u){this._instantiationService=u,this.templateId=y.id}return y.prototype.renderTemplate=function(u){return this._instantiationService.createInstance(ki,u)},y.prototype.renderElement=function(u,l,b){b.set(u.element,Object(si.c)(u.filterData))},y.prototype.disposeTemplate=function(u){u.dispose()},y.id="FileReferencesRenderer",y=Mo([or(0,Tn.a)],y),y}(),Ar=function(){function y(u){this.label=new js.a(u,!1)}return y.prototype.set=function(u,l){var b=u.parent.preview,S=b&&b.preview(u.range);if(!S)this.label.set(Object(Te.b)(u.uri)+":"+(u.range.startLineNumber+1)+":"+(u.range.startColumn+1));else{var C=S.value,$=S.highlight;l&&!si.a.isDefault(l)?(R.X(this.label.element,"referenceMatch",!1),this.label.set(C,Object(si.c)(l))):(R.X(this.label.element,"referenceMatch",!0),this.label.set(C,[$]))}},y}(),sr=function(){function y(){this.templateId=y.id}return y.prototype.renderTemplate=function(u){return new Ar(u)},y.prototype.renderElement=function(u,l,b){b.set(u.element,u.filterData)},y.prototype.disposeTemplate=function(){},y.id="OneReferenceRenderer",y}(),Kr=function(){function y(){}return y.prototype.getAriaLabel=function(u){return u.ariaMessage},y}(),Nr=r("rjb4"),ar=r("cWK8"),_o=r("yqRl"),Lo=r("epcv"),vs=r("6zAk"),fo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),lr=function(){for(var y=0,u=0,l=arguments.length;u 0&&(this.proportions=this.viewItems.map(function(b){return b.size/l.contentSize}))},u.prototype.onSashStart=function(l){for(var b=this,S=l.sash,C=l.start,$=l.alt,Be=0,ot=this.viewItems;Be =this.viewItems.length)return;b=typeof b=="number"?b:l.size,b=Object(Lo.a)(b,l.minimumSize,l.maximumSize),this.inverseAltBehavior&&S>0?(this.resize(S-1,Math.floor((l.size-b)/2)),this.distributeEmptySpace(),this.layoutViews()):(l.size=b,this.relayout([S],void 0))},u.prototype.resizeView=function(l,b){var S=this;if(this.state!==po.Idle)throw new Error("Cant modify splitview");if(this.state=po.Busy,l<0||l>=this.viewItems.length)return;var C=Object(Ke.u)(this.viewItems.length).filter(function(xe){return xe!==l}),$=lr(C.filter(function(xe){return S.viewItems[xe].priority===1}),[l]),Be=C.filter(function(xe){return S.viewItems[xe].priority===2}),ot=this.viewItems[l];b=Math.round(b),b=Object(Lo.a)(b,ot.minimumSize,Math.min(ot.maximumSize,this.size)),ot.size=b,this.relayout($,Be),this.state=po.Idle},u.prototype.distributeViewSizes=function(){for(var l=this,b=[],S=0,C=0,$=this.viewItems;C<$.length;C++){var Be=$[C];Be.maximumSize-Be.minimumSize>0&&(b.push(Be),S+=Be.size)}for(var ot=Math.floor(S/b.length),xe=0,dt=b;xe =this.viewItems.length?-1:this.viewItems[l].size},u.prototype.doAddView=function(l,b,S,C){var $=this;if(S===void 0&&(S=this.viewItems.length),this.state!==po.Idle)throw new Error("Cant modify splitview");this.state=po.Busy;var Be=R.a(".split-view-view");S===this.viewItems.length?this.viewContainer.appendChild(Be):this.viewContainer.insertBefore(Be,this.viewContainer.children.item(S));var ot=l.onDidChange(function(ui){return $.onViewChange(qt,ui)}),xe=Object(N.h)(function(){return $.viewContainer.removeChild(Be)}),dt=Object(N.e)(ot,xe),Nt;typeof b=="number"?Nt=b:b.type==="split"?Nt=this.getViewSize(b.index)/2:b.type==="invisible"?Nt={cachedVisibleSize:b.cachedVisibleSize}:Nt=l.minimumSize;var qt=this.orientation===0?new Eo(Be,l,Nt,dt):new Bs(Be,l,Nt,dt);if(this.viewItems.splice(S,0,qt),this.viewItems.length>1){var en=this.orientation===0?1:0,un=this.orientation===0?{getHorizontalSashTop:function(Hi){return $.getSashPosition(Hi)}}:{getVerticalSashLeft:function(Hi){return $.getSashPosition(Hi)}},an=new nn.a(this.sashContainer,un,{orientation:en,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Cn=this.orientation===0?function(ui){return{sash:an,start:ui.startY,current:ui.currentY,alt:ui.altKey}}:function(ui){return{sash:an,start:ui.startX,current:ui.currentX,alt:ui.altKey}},In=Z.b.map(an.onDidStart,Cn),Nn=In(this.onSashStart,this),ti=Z.b.map(an.onDidChange,Cn),Dn=ti(this.onSashChange,this),di=Z.b.map(an.onDidEnd,function(){return Object(Ke.k)($.sashItems,function(ui){return ui.sash===an})}),qn=di(this.onSashEnd,this),Ri=an.onDidReset(function(){var ui=Object(Ke.k)($.sashItems,function(Qi){return Qi.sash===an}),Hi=Object(Ke.u)(ui,-1),$i=Object(Ke.u)(ui+1,$.viewItems.length),Ji=$.findFirstSnapIndex(Hi),Vi=$.findFirstSnapIndex($i);if(typeof Ji=="number"&&!$.viewItems[Ji].visible)return;if(typeof Vi=="number"&&!$.viewItems[Vi].visible)return;$._onDidSashReset.fire(ui)}),li=Object(N.e)(Nn,Dn,qn,Ri,an),mo={sash:an,disposable:li};this.sashItems.splice(S-1,0,mo)}Be.appendChild(l.element);var Li;typeof b!="number"&&b.type==="split"&&(Li=[b.index]),C||this.relayout([S],Li),this.state=po.Idle,!C&&typeof b!="number"&&b.type==="distribute"&&this.distributeViewSizes()},u.prototype.relayout=function(l,b){var S=this.viewItems.reduce(function(C,$){return C+$.size},0);this.resize(this.viewItems.length-1,this.size-S,void 0,l,b),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},u.prototype.resize=function(l,b,S,C,$,Be,ot,xe,dt){var Nt=this;if(S===void 0&&(S=this.viewItems.map(function(io){return io.size})),Be===void 0&&(Be=Number.NEGATIVE_INFINITY),ot===void 0&&(ot=Number.POSITIVE_INFINITY),l<0||l>=this.viewItems.length)return 0;var qt=Object(Ke.u)(l,-1),en=Object(Ke.u)(l+1,this.viewItems.length);if($)for(var un=0,an=$;un =xe.limitDelta;Ji=Qi!==Vi.visible,Vi.setVisible(Qi,xe.size)}if(!Ji&&dt){var Vi=this.viewItems[dt.index],Qi=b 0||l});l=!1;var S=this.viewItems.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}),C=lr(this.viewItems).reverse();l=!1;var $=C.map(function(Dn){return l=Dn.size-Dn.minimumSize>0||l}).reverse();l=!1;for(var Be=C.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}).reverse(),ot=0,xe=0;xe 0||this.startSnappingEnabled)?dt.state=1:ti&&b[xe]&&(ot 0)return;if(!$.visible&&$.snap)return C}return},u.prototype.dispose=function(){y.prototype.dispose.call(this),this.viewItems.forEach(function(l){return l.dispose()}),this.viewItems=[],this.sashItems.forEach(function(l){return l.disposable.dispose()}),this.sashItems=[]},u}(N.a),br=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Vs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Do=function(y,u){return function(l,b){u(l,b,y)}},zs=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Uo=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] 0?l.children[0]:void 0},u.prototype._revealReference=function(l,b){return zs(this,void 0,void 0,function(){var S,C,$,Be,ot;return Uo(this,function(xe){switch(xe.label){case 0:return this._revealedReference===l?[2]:(this._revealedReference=l,l.uri.scheme!==Is.b.inMemory?this.setTitle(Object(Te.c)(l.uri),this._uriLabel.getUriLabel(Object(Te.d)(l.uri))):this.setTitle(oe.a("peekView.alternateTitle","References")),S=this._textModelResolverService.createModelReference(l.uri),this._tree.getInput()===l.parent?(this._tree.reveal(l),[3,3]):[3,1]);case 1:return b&&this._tree.reveal(l.parent),[4,this._tree.expand(l.parent)];case 2:xe.sent(),this._tree.reveal(l),xe.label=3;case 3:return[4,S];case 4:return C=xe.sent(),this._model?(Object(N.f)(this._previewModelReference),$=C.object,$?(Be=this._preview.getModel()===$.textEditorModel?0:1,ot=U.a.lift(l.range).collapseToStart(),this._previewModelReference=C,this._preview.setModel($.textEditorModel),this._preview.setSelection(ot),this._preview.revealRangeInCenter(ot,Be)):(this._preview.setModel(this._previewNotAvailableMessage),C.dispose()),[2]):(C.dispose(),[2])}})})},u=Vs([Do(3,fe.c),Do(4,Or.a),Do(5,Tn.a),Do(6,vt),Do(7,ir.a)],u),u}(Sn);Object(fe.e)(function(y,u){var l=y.getColor(Un);l&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+l+"; }");var b=y.getColor(Ci);b&&u.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+b+"; }");var S=y.getColor(Wi);S&&u.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+S+"; box-sizing: border-box; }");var C=y.getColor(se.b);C&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+C+"; box-sizing: border-box; }");var $=y.getColor(ci);$&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+$+"; }");var Be=y.getColor(zi);Be&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Be+"; }");var ot=y.getColor(oo);ot&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+ot+"; }");var xe=y.getColor(Zn);xe&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+xe+"; }");var dt=y.getColor(Ii);dt&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+dt+" !important; }");var Nt=y.getColor(Si);Nt&&u.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+(" background-color: "+Nt+";")+"}");var qt=y.getColor(ji);qt&&u.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+qt+";")+"}")});var Vo=r("sobA"),Cs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},$o=function(y,u){return function(l,b){u(l,b,y)}},xo=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Yi=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] =0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Oo=function(y,u){return function(l,b){u(l,b,y)}},Zr=new pe.d("hasSymbols",!1),qo=Object(Tn.c)("ISymbolNavigationService"),ur=function(){function y(u,l,b,S){this._editorService=l,this._notificationService=b,this._keybindingService=S,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Zr.bindTo(u)}return y.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(N.f)(this._currentState),Object(N.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},y.prototype.put=function(u){var l=this,b=u.parent.parent;if(b.references.length<=1){this.reset();return}this._currentModel=b,this._currentIdx=b.references.indexOf(u),this._ctxHasSymbols.set(!0),this._showMessage();var S=new go(this._editorService),C=S.onDidChange(function($){if(l._ignoreEditorChange)return;var Be=l._editorService.getActiveCodeEditor();if(!Be)return;var ot=Be.getModel(),xe=Be.getPosition();if(!ot||!xe)return;for(var dt=!1,Nt=!1,qt=0,en=b.references;qt 0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1] 1)?(this._openInPeek(S,C),[3,3]):[3,1];case 1:return Be=C.firstReference(),ot=C.references.length>1&&$==="gotoAndPeek",[4,this._openReference(S,l,Be,this._configuration.openToSide,!ot)];case 2:xe=dt.sent(),ot&&xe?this._openInPeek(xe,C):C.dispose(),$==="goto"&&b.put(Be),dt.label=3;case 3:return[2]}})})},u.prototype._openReference=function(l,b,S,C,$){return Zi(this,void 0,void 0,function(){var Be,ot,xe,dt;return yo(this,function(Nt){switch(Nt.label){case 0:return Be=void 0,Object(te.D)(S)&&(Be=S.targetSelectionRange),Be||(Be=S.range),[4,b.openCodeEditor({resource:S.uri,options:{selection:U.a.collapseToStart(Be),revealInCenterIfOutsideViewport:!0}},l,C)];case 1:return ot=Nt.sent(),ot?($&&(xe=ot.getModel(),dt=ot.deltaDecorations([],[{range:Be,options:{className:"symbolHighlight"}}]),setTimeout(function(){ot.getModel()===xe&&ot.deltaDecorations(dt,[])},350)),[2,ot]):[2,void 0]}})})},u.prototype._openInPeek=function(l,b){var S=Xr.get(l);S&&l.hasModel()?S.toggleWidget(l.getSelection(),Object(m.f)(function(C){return Promise.resolve(b)}),this._configuration.openInPeek):b.dispose()},u}(F.b),Pr=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,Vr(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("def.title","Definitions")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("noResultWord","No definition found for '{0}'",l.word):oe.a("generic.noResults","No definition found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDefinitionCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDefinitions},u}(cr),$r=Tr.g&&!Ve.l?2048|70:70;Object(F.f)((Cr=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:$r,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:oe.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return yn.a.registerCommandAlias("editor.action.goToDeclaration",u.id),l}return u}(Pr),Cr.id="editor.action.revealDefinition",Cr)),Object(F.f)((_r=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:Object(ne.a)(2048|41,$r),weight:100}})||this;return yn.a.registerCommandAlias("editor.action.openDeclarationToTheSide",u.id),l}return u}(Pr),_r.id="editor.action.revealDefinitionAside",_r)),Object(F.f)((ai=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.id,label:oe.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return yn.a.registerCommandAlias("editor.action.previewDeclaration",u.id),l}return u}(Pr),ai.id="editor.action.peekDefinition",ai));var _s=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,fs(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("decl.title","Declarations")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("decl.noResultWord","No declaration found for '{0}'",l.word):oe.a("decl.generic.noResults","No declaration found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDeclarationCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDeclarations},u}(cr);Object(F.f)((Er=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:pe.a.and(j.a.hasDeclarationProvider,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:oe.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("decl.noResultWord","No declaration found for '{0}'",l.word):oe.a("decl.generic.noResults","No declaration found")},u}(_s),Er.id="editor.action.revealDeclaration",Er)),Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:oe.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:pe.a.and(j.a.hasDeclarationProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return u}(_s));var Es=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,zr(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("typedef.title","Type Definitions")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",l.word):oe.a("goToTypeDefinition.generic.noResults","No type definition found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeTypeDefinitionCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleTypeDefinitions},u}(cr);Object(F.f)((er=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.ID,label:oe.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:pe.a.and(j.a.hasTypeDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:oe.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return u}(Es),er.ID="editor.action.goToTypeDefinition",er)),Object(F.f)((Rr=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,label:oe.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:pe.a.and(j.a.hasTypeDefinitionProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return u}(Es),Rr.ID="editor.action.peekTypeDefinition",Rr));var Jr=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,ps(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("impl.title","Implementations")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("goToImplementation.noResultWord","No implementation found for '{0}'",l.word):oe.a("goToImplementation.generic.noResults","No implementation found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeImplementationCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleImplementations},u}(cr);Object(F.f)((No=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.ID,label:oe.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:pe.a.and(j.a.hasImplementationProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:oe.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return u}(Jr),No.ID="editor.action.goToImplementation",No)),Object(F.f)((Ir=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,label:oe.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:pe.a.and(j.a.hasImplementationProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return u}(Jr),Ir.ID="editor.action.peekImplementation",Ir));var Ss=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getNoResultFoundMessage=function(l){return l?oe.a("references.no","No references found for '{0}'",l.word):oe.a("references.noGeneric","No references found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeReferenceCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleReferences},u}(cr);Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:oe.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:pe.a.and(j.a.hasReferenceProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:oe.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,yr(l,b,!0,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("ref.title","References")]))]}})})},u}(Ss)),Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:oe.a("references.action.label","Peek References"),alias:"Peek References",precondition:pe.a.and(j.a.hasReferenceProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,yr(l,b,!1,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("ref.title","References")]))]}})})},u}(Ss));var Qr=function(y){Ei(u,y);function u(l,b,S){var C=y.call(this,l,{id:"editor.action.goToLocation",label:oe.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:pe.a.and(Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated())})||this;return C._references=b,C._gotoMultipleBehaviour=S,C}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){return yo(this,function(C){return[2,new oi(this._references,oe.a("generic.title","Locations"))]})})},u.prototype._getNoResultFoundMessage=function(l){return l&&oe.a("generic.noResult","No results for '{0}'",l.word)||""},u.prototype._getGoToPreference=function(l){var b;return(b=this._gotoMultipleBehaviour)!==null&&b!==void 0?b:l.getOption(41).multipleReferences},u.prototype._getAlternativeCommand=function(){return""},u}(cr);yn.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_.a},{name:"position",description:"The position at which to start",constraint:D.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(u,l,b,S,C,$){return Zi(void 0,void 0,void 0,function(){var Be,ot;return yo(this,function(xe){switch(xe.label){case 0:return Object(_o.a)(_.a.isUri(l)),Object(_o.a)(D.a.isIPosition(b)),Object(_o.a)(Array.isArray(S)),Object(_o.a)(typeof C=="undefined"||typeof C=="string"),Object(_o.a)(typeof $=="undefined"||typeof $=="boolean"),Be=u.get(B.a),[4,Be.openCodeEditor({resource:l},Be.getFocusedCodeEditor())];case 1:return ot=xe.sent(),Object(Hr.a)(ot)?(ot.setPosition(b),ot.revealPositionInCenterIfOutsideViewport(b,0),[2,ot.invokeWithinContext(function(dt){var Nt=new Qr({muteMessage:!0,openInPeek:Boolean($),openToSide:!1},S,C);dt.get(Tn.a).invokeFunction(Nt.run.bind(Nt),ot)})]):[2]}})})}}),yn.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_.a},{name:"position",description:"The position at which to start",constraint:D.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(u,l,b,S,C){return Zi(void 0,void 0,void 0,function(){return yo(this,function($){return u.get(yn.b).executeCommand("editor.action.goToLocations",l,b,S,C,!0),[2]})})}}),yn.a.registerCommand({id:"editor.action.findReferences",handler:function(u,l,b){Object(_o.a)(_.a.isUri(l)),Object(_o.a)(D.a.isIPosition(b));var S=u.get(B.a);return S.openCodeEditor({resource:l},S.getFocusedCodeEditor()).then(function(C){if(!Object(Hr.a)(C)||!C.hasModel())return;var $=Xr.get(C);if(!$)return;var Be=Object(m.f)(function(xe){return yr(C.getModel(),D.a.lift(b),!1,xe).then(function(dt){return new oi(dt,oe.a("ref.title","References"))})}),ot=new U.a(b.lineNumber,b.column,b.lineNumber,b.column);return Promise.resolve($.toggleWidget(ot,Be,!1))})}}),yn.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Fr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}();function hr(y,u){return!!y[u]}var kr=function(){function y(u,l){this.target=u.target,this.hasTriggerModifier=hr(u.event,l.triggerModifier),this.hasSideBySideModifier=hr(u.event,l.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Ve.i||u.event.detail<=1}return y}(),qr=function(){function y(u,l){this.keyCodeIsTriggerKey=u.keyCode===l.triggerKey,this.keyCodeIsSideBySideKey=u.keyCode===l.triggerSideBySideKey,this.hasTriggerModifier=hr(u,l.triggerModifier)}return y}(),L=function(){function y(u,l,b,S){this.triggerKey=u,this.triggerModifier=l,this.triggerSideBySideKey=b,this.triggerSideBySideModifier=S}return y.prototype.equals=function(u){return this.triggerKey===u.triggerKey&&this.triggerModifier===u.triggerModifier&&this.triggerSideBySideKey===u.triggerSideBySideKey&&this.triggerSideBySideModifier===u.triggerSideBySideModifier},y}();function n(y){return y==="altKey"?Tr.e?new L(57,"metaKey",6,"altKey"):new L(5,"ctrlKey",6,"altKey"):Tr.e?new L(6,"altKey",57,"metaKey"):new L(6,"altKey",5,"ctrlKey")}var e=function(y){Fr(u,y);function u(l){var b=y.call(this)||this;return b._onMouseMoveOrRelevantKeyDown=b._register(new Z.a),b.onMouseMoveOrRelevantKeyDown=b._onMouseMoveOrRelevantKeyDown.event,b._onExecute=b._register(new Z.a),b.onExecute=b._onExecute.event,b._onCancel=b._register(new Z.a),b.onCancel=b._onCancel.event,b._editor=l,b._opts=n(b._editor.getOption(59)),b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._register(b._editor.onDidChangeConfiguration(function(S){if(S.hasChanged(59)){var C=n(b._editor.getOption(59));if(b._opts.equals(C))return;b._opts=C,b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._onCancel.fire()}})),b._register(b._editor.onMouseMove(function(S){return b.onEditorMouseMove(new kr(S,b._opts))})),b._register(b._editor.onMouseDown(function(S){return b.onEditorMouseDown(new kr(S,b._opts))})),b._register(b._editor.onMouseUp(function(S){return b.onEditorMouseUp(new kr(S,b._opts))})),b._register(b._editor.onKeyDown(function(S){return b.onEditorKeyDown(new qr(S,b._opts))})),b._register(b._editor.onKeyUp(function(S){return b.onEditorKeyUp(new qr(S,b._opts))})),b._register(b._editor.onMouseDrag(function(){return b.resetHandler()})),b._register(b._editor.onDidChangeCursorSelection(function(S){return b.onDidChangeCursorSelection(S)})),b._register(b._editor.onDidChangeModel(function(S){return b.resetHandler()})),b._register(b._editor.onDidChangeModelContent(function(){return b.resetHandler()})),b._register(b._editor.onDidScrollChange(function(S){(S.scrollTopChanged||S.scrollLeftChanged)&&b.resetHandler()})),b}return u.prototype.onDidChangeCursorSelection=function(l){l.selection&&l.selection.startColumn!==l.selection.endColumn&&this.resetHandler()},u.prototype.onEditorMouseMove=function(l){this.lastMouseMoveEvent=l,this._onMouseMoveOrRelevantKeyDown.fire([l,null])},u.prototype.onEditorMouseDown=function(l){this.hasTriggerKeyOnMouseDown=l.hasTriggerModifier},u.prototype.onEditorMouseUp=function(l){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(l)},u.prototype.onEditorKeyDown=function(l){this.lastMouseMoveEvent&&(l.keyCodeIsTriggerKey||l.keyCodeIsSideBySideKey&&l.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,l]):l.hasTriggerModifier&&this._onCancel.fire()},u.prototype.onEditorKeyUp=function(l){l.keyCodeIsTriggerKey&&this._onCancel.fire()},u.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},u}(N.a),i=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},d=function(y,u){return function(l,b){u(l,b,y)}},c=function(){function y(u,l,b){var S=this;this.textModelResolverService=l,this.modeService=b,this.toUnhook=new N.b,this.toUnhookForKeyboard=new N.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=u;var C=new e(u);this.toUnhook.add(C),this.toUnhook.add(C.onMouseMoveOrRelevantKeyDown(function($){var Be=$[0],ot=$[1];S.startFindDefinitionFromMouse(Be,Object(_o.n)(ot))})),this.toUnhook.add(C.onExecute(function($){S.isEnabled($)&&S.gotoDefinition($.target.position,$.hasSideBySideModifier).then(function(){S.removeLinkDecorations()},function(Be){S.removeLinkDecorations(),Object(z.e)(Be)})})),this.toUnhook.add(C.onCancel(function(){S.removeLinkDecorations(),S.currentWordAtPosition=null}))}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.startFindDefinitionFromCursor=function(u){var l=this;return this.startFindDefinition(u).then(function(){l.toUnhookForKeyboard.add(l.editor.onDidChangeCursorPosition(function(){l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear()})),l.toUnhookForKeyboard.add(l.editor.onKeyDown(function(b){b&&(l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear())}))})},y.prototype.startFindDefinitionFromMouse=function(u,l){if(u.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(u,l)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var b=u.target.position;this.startFindDefinition(b)},y.prototype.startFindDefinition=function(u){var l=this,b;this.toUnhookForKeyboard.clear();var S=u?(b=this.editor.getModel())===null||b===void 0?void 0:b.getWordAtPosition(u):null;if(!S)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===S.startColumn&&this.currentWordAtPosition.endColumn===S.endColumn&&this.currentWordAtPosition.word===S.word)return Promise.resolve(0);this.currentWordAtPosition=S;var C=new fn.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(m.f)(function($){return l.findDefinition(u,$)}),this.previousPromise.then(function($){if(!$||!$.length||!C.validate(l.editor)){l.removeLinkDecorations();return}if($.length>1)l.addDecoration(new U.a(u.lineNumber,S.startColumn,u.lineNumber,S.endColumn),new K.a().appendText(oe.a("multipleResults","Click to show {0} definitions.",$.length)));else{var Be=$[0];if(!Be.uri)return;l.textModelResolverService.createModelReference(Be.uri).then(function(ot){if(!ot.object||!ot.object.textEditorModel){ot.dispose();return}var xe=ot.object.textEditorModel,dt=Be.range.startLineNumber;if(dt<1||dt>xe.getLineCount()){ot.dispose();return}var Nt=l.getPreviewValue(xe,dt,Be),qt;Be.originSelectionRange?qt=U.a.lift(Be.originSelectionRange):qt=new U.a(u.lineNumber,S.startColumn,u.lineNumber,S.endColumn);var en=l.modeService.getModeIdByFilepathOrFirstLine(xe.uri);l.addDecoration(qt,new K.a().appendCodeblock(en||"",Nt)),ot.dispose()})}}).then(void 0,z.e)},y.prototype.getPreviewValue=function(u,l,b){var S=b.targetSelectionRange?b.range:this.getPreviewRangeBasedOnBrackets(u,l),C=S.endLineNumber-S.startLineNumber;C>=y.MAX_SOURCE_PREVIEW_LINES&&(S=this.getPreviewRangeBasedOnIndentation(u,l));var $=this.stripIndentationFromPreviewRange(u,l,S);return $},y.prototype.stripIndentationFromPreviewRange=function(u,l,b){for(var S=u.getLineFirstNonWhitespaceColumn(l),C=S,$=l+1;$ b)return new U.a(l,1,b+1,1);$=u.findNextBracket(new D.a(xe,dt))}return new U.a(l,1,b+1,1)},y.prototype.addDecoration=function(u,l){var b={range:u,options:{inlineClassName:"goto-definition-link",hoverMessage:l}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[b])},y.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},y.prototype.isEnabled=function(u,l){return this.editor.hasModel()&&u.isNoneOrSingleMouseDown&&u.target.type===6&&(u.hasTriggerModifier||(l?l.keyCodeIsTriggerKey:!1))&&te.f.has(this.editor.getModel())},y.prototype.findDefinition=function(u,l){var b=this.editor.getModel();return b?Vr(b,u,l):Promise.resolve(null)},y.prototype.gotoDefinition=function(u,l){var b=this;this.editor.setPosition(u);var S=new Pr({openToSide:l,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(C){return S.run(C,b.editor)})},y.prototype.dispose=function(){this.toUnhook.dispose()},y.ID="editor.contrib.gotodefinitionatposition",y.MAX_SOURCE_PREVIEW_LINES=8,y=i([d(1,Or.a),d(2,G.a)],y),y}();Object(F.h)(c.ID,c),Object(fe.e)(function(y,u){var l=y.getColor(se.n);l&&u.addRule(".monaco-editor .goto-definition-link { color: "+l+" !important; }")});var M=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),ge=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},le=function(y,u){return function(l,b){u(l,b,y)}},He=function(){function y(u,l,b,S,C,$){var Be=this;this._editor=u,this._openerService=l,this._modeService=b,this._markerDecorationsService=S,this._keybindingService=C,this._themeService=$,this._toUnhook=new N.b,this._contentWidget=new N.d,this._glyphWidget=new N.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(ot){ot.hasChanged(44)&&(Be._hideWidgets(),Be._unhookEvents(),Be._hookEvents())})}return Object.defineProperty(y.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),y.get=function(u){return u.getContribution(y.ID)},y.prototype._hookEvents=function(){var u=this,l=function(){return u._hideWidgets()},b=this._editor.getOption(44);this._isHoverEnabled=b.enabled,this._isHoverSticky=b.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(S){return u._onEditorMouseDown(S)})),this._toUnhook.add(this._editor.onMouseUp(function(S){return u._onEditorMouseUp(S)})),this._toUnhook.add(this._editor.onMouseMove(function(S){return u._onEditorMouseMove(S)})),this._toUnhook.add(this._editor.onKeyDown(function(S){return u._onKeyDown(S)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return u._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(l)),this._toUnhook.add(this._editor.onMouseLeave(l)),this._toUnhook.add(this._editor.onDidChangeModel(l)),this._toUnhook.add(this._editor.onDidScrollChange(function(S){return u._onEditorScrollChanged(S)}))},y.prototype._unhookEvents=function(){this._toUnhook.clear()},y.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},y.prototype._onEditorScrollChanged=function(u){(u.scrollTopChanged||u.scrollLeftChanged)&&this._hideWidgets()},y.prototype._onEditorMouseDown=function(u){this._isMouseDown=!0;var l=u.target.type;if(l===9&&u.target.detail===Yo.ID){this._hoverClicked=!0;return}if(l===12&&u.target.detail===vr.ID)return;l!==12&&u.target.detail!==vr.ID&&(this._hoverClicked=!1),this._hideWidgets()},y.prototype._onEditorMouseUp=function(u){this._isMouseDown=!1},y.prototype._onEditorMouseMove=function(u){var l=u.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&l===9&&u.target.detail===Yo.ID)return;if(this._isHoverSticky&&l===12&&u.target.detail===vr.ID)return;if(l===7){var b=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,S=u.target.detail;S&&!S.isAfterLines&&typeof S.horizontalDistanceToText=="number"&&S.horizontalDistanceToTextnt?nt:Ie},Te.float=function(Ie,pe){if(typeof Ie=="number")return Ie;if(typeof Ie=="undefined")return pe;var nt=parseFloat(Ie);return isNaN(nt)?pe:nt},Te.prototype.validate=function(Ie){return this.validationFn(Te.float(Ie,this.defaultValue))},Te}(x),te=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et){Et===void 0&&(Et=void 0);var Rt=this;return typeof Et!="undefined"&&(Et.type="string",Et.default=nt),Rt=ve.call(this,Ie,pe,nt,Et)||this,Rt}return Te.string=function(Ie,pe){return typeof Ie!="string"?pe:Ie},Te.prototype.validate=function(Ie){return Te.string(Ie,this.defaultValue)},Te}(x),z=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt){Rt===void 0&&(Rt=void 0);var Tt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=Et,Rt.default=nt),Tt=ve.call(this,Ie,pe,nt,Rt)||this,Tt._allowedValues=Et,Tt}return Te.stringSet=function(Ie,pe,nt){return typeof Ie!="string"||nt.indexOf(Ie)===-1?pe:Ie},Te.prototype.validate=function(Ie){return Te.stringSet(Ie,this.defaultValue,this._allowedValues)},Te}(x),_=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt,Tt,Ht){Ht===void 0&&(Ht=void 0);var Gt=this;return typeof Ht!="undefined"&&(Ht.type="string",Ht.enum=Rt,Ht.default=Et),Gt=ve.call(this,Ie,pe,nt,Ht)||this,Gt._allowedValues=Rt,Gt._convert=Tt,Gt}return Te.prototype.validate=function(Ie){return typeof Ie!="string"?this.defaultValue:this._allowedValues.indexOf(Ie)===-1?this.defaultValue:this._convert(Ie)},Te}(R);function f(ve){switch(ve){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var p=function(ve){N(Te,ve);function Te(){return ve.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[I.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),I.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),I.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:I.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return Te.prototype.validate=function(Ie){switch(Ie){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},Te.prototype.compute=function(Ie,pe,nt){return nt===0?Ie.accessibilitySupport:nt},Te}(R),g=function(ve){N(Te,ve);function Te(){var Ie=this,pe={insertSpace:!0};return Ie=ve.call(this,13,"comments",pe,{"editor.comments.insertSpace":{type:"boolean",default:pe.insertSpace,description:I.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{insertSpace:K.boolean(pe.insertSpace,this.defaultValue.insertSpace)}},Te}(R);function m(ve){switch(ve){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var w;(function(ve){ve[ve.Line=1]="Line",ve[ve.Block=2]="Block",ve[ve.Underline=3]="Underline",ve[ve.LineThin=4]="LineThin",ve[ve.BlockOutline=5]="BlockOutline",ve[ve.UnderlineThin=6]="UnderlineThin"})(w||(w={}));function B(ve){switch(ve){case"line":return w.Line;case"block":return w.Block;case"underline":return w.Underline;case"line-thin":return w.LineThin;case"block-outline":return w.BlockOutline;case"underline-thin":return w.UnderlineThin}}var H=function(ve){N(Te,ve);function Te(){return ve.call(this,104,[55,26])||this}return Te.prototype.compute=function(Ie,pe,nt){var Et="monaco-editor";return pe.get(26)&&(Et+=" "+pe.get(26)),Ie.extraEditorClassName&&(Et+=" "+Ie.extraEditorClassName),pe.get(55)==="default"?Et+=" mouse-default":pe.get(55)==="copy"&&(Et+=" mouse-copy"),pe.get(85)&&(Et+=" showUnused"),Et},Te}(E),re=function(ve){N(Te,ve);function Te(){return ve.call(this,25,"emptySelectionClipboard",!0,{description:I.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return Te.prototype.compute=function(Ie,pe,nt){return nt&&Ie.emptySelectionClipboard},Te}(K),he=function(ve){N(Te,ve);function Te(){var Ie=this,pe={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Ie=ve.call(this,28,"find",pe,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:pe.seedSearchStringFromSelection,description:I.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:pe.autoFindInSelection,enumDescriptions:[I.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),I.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),I.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:I.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:pe.globalFindClipboard,description:I.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:oe.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:pe.addExtraSpaceOnTop,description:I.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{seedSearchStringFromSelection:K.boolean(pe.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Ie.autoFindInSelection=="boolean"?Ie.autoFindInSelection?"always":"never":z.stringSet(pe.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:K.boolean(pe.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:K.boolean(pe.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},Te}(R),Ee=function(ve){N(Te,ve);function Te(){return ve.call(this,35,"fontLigatures",Te.OFF,{anyOf:[{type:"boolean",description:I.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:I.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:I.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return Te.prototype.validate=function(Ie){return typeof Ie=="undefined"?this.defaultValue:typeof Ie=="string"?Ie==="false"?Te.OFF:Ie==="true"?Te.ON:Ie:Boolean(Ie)?Te.ON:Te.OFF},Te.OFF='"liga" off, "calt" off',Te.ON='"liga" on, "calt" on',Te}(R),Se=function(ve){N(Te,ve);function Te(){return ve.call(this,34)||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo},Te}(E),q=function(ve){N(Te,ve);function Te(){return ve.call(this,36,"fontSize",$e.fontSize,{type:"number",minimum:6,maximum:100,default:$e.fontSize,description:I.a("fontSize","Controls the font size in pixels.")})||this}return Te.prototype.validate=function(Ie){var pe=A.float(Ie,this.defaultValue);return pe===0?$e.fontSize:A.clamp(pe,6,100)},Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.fontSize},Te}(x),Z=function(ve){N(Te,ve);function Te(){var Ie=this,pe={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},nt={type:"string",enum:["peek","gotoAndPeek","goto"],default:pe.multiple,enumDescriptions:[I.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),I.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),I.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Ie=ve.call(this,41,"gotoLocation",pe,{"editor.gotoLocation.multiple":{deprecationMessage:I.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":F({description:I.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleTypeDefinitions":F({description:I.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleDeclarations":F({description:I.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleImplementations":F({description:I.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleReferences":F({description:I.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},nt),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:pe.alternativeDefinitionCommand,description:I.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:pe.alternativeTypeDefinitionCommand,description:I.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:pe.alternativeDeclarationCommand,description:I.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:pe.alternativeImplementationCommand,description:I.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:pe.alternativeReferenceCommand,description:I.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Ie}return Te.prototype.validate=function(Ie){var pe,nt,Et,Rt,Tt;if(typeof Ie!="object")return this.defaultValue;var Ht=Ie;return{multiple:z.stringSet(Ht.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(pe=Ht.multipleDefinitions)!==null&&pe!==void 0?pe:z.stringSet(Ht.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(nt=Ht.multipleTypeDefinitions)!==null&&nt!==void 0?nt:z.stringSet(Ht.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Et=Ht.multipleDeclarations)!==null&&Et!==void 0?Et:z.stringSet(Ht.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Rt=Ht.multipleImplementations)!==null&&Rt!==void 0?Rt:z.stringSet(Ht.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Tt=Ht.multipleReferences)!==null&&Tt!==void 0?Tt:z.stringSet(Ht.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:te.string(Ht.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:te.string(Ht.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:te.string(Ht.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:te.string(Ht.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:te.string(Ht.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},Te}(R),ce=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,delay:300,sticky:!0};return Ie=ve.call(this,44,"hover",pe,{"editor.hover.enabled":{type:"boolean",default:pe.enabled,description:I.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:pe.delay,description:I.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:pe.sticky,description:I.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),delay:D.clampedInt(pe.delay,this.defaultValue.delay,0,1e4),sticky:K.boolean(pe.sticky,this.defaultValue.sticky)}},Te}(R),Me=function(ve){N(Te,ve);function Te(){return ve.call(this,107,[40,48,30,54,78,50])||this}return Te.prototype.compute=function(Ie,pe,nt){return Te.computeLayout(pe,{outerWidth:Ie.outerWidth,outerHeight:Ie.outerHeight,lineHeight:Ie.fontInfo.lineHeight,lineNumbersDigitCount:Ie.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Ie.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Ie.fontInfo.maxDigitWidth,pixelRatio:Ie.pixelRatio})},Te.computeLayout=function(Ie,pe){var nt=pe.outerWidth|0,Et=pe.outerHeight|0,Rt=pe.lineHeight|0,Tt=pe.lineNumbersDigitCount|0,Ht=pe.typicalHalfwidthCharacterWidth,Gt=pe.maxDigitWidth,rn=pe.pixelRatio,Ln=Ie.get(40),yn=Ie.get(50).renderType!==0,Tn=Ie.get(51)|0,Ft=Ie.get(54),pt=Ft.enabled,gt=Ft.side,Dt=Ft.renderCharacters,Lt=rn>=2?Math.round(Ft.scale*2):Ft.scale,Vt=Ft.maxColumn|0,Qt=Ie.get(78),nn=Qt.verticalScrollbarSize|0,sn=Qt.verticalHasArrows,ln=Qt.arrowSize|0,En=Qt.horizontalScrollbarSize|0,On=Ie.get(48),Pn=Ie.get(30),Gn;if(typeof On=="string"&&/^\d+(\.\d+)?ch$/.test(On)){var Qn=parseFloat(On.substr(0,On.length-2));Gn=D.clampedInt(Qn*Ht,0,0,1e3)}else Gn=D.clampedInt(On,0,0,1e3);Pn&&(Gn+=16);var Jn=0;if(yn){var gi=Math.max(Tt,Tn);Jn=Math.round(gi*Gt)}var Kn=0;Ln&&(Kn=Rt);var yi=0,mi=yi+Kn,vt=mi+Jn,Mt=vt+Gn,zt=nt-Kn-Jn-Gn,tn,Ut,Sn,Rn;if(!pt)Ut=0,Sn=0,tn=0,Rn=zt;else{var Bn=Lt/rn;tn=Dt?1:2,Sn=Math.max(0,Math.floor((zt-nn-2)*Bn/(Ht+Bn)))+U;var Fn=Sn/Bn;Fn>Vt&&(Sn=Math.floor(Vt*Bn)),Rn=zt-Sn,gt==="left"?(Ut=0,yi+=Sn,mi+=Sn,vt+=Sn,Mt+=Sn):Ut=nt-Sn-nn}var ri=Math.max(1,Math.floor((Rn-nn-2)/Ht)),ci=sn?ln:0;return{width:nt,height:Et,glyphMarginLeft:yi,glyphMarginWidth:Kn,lineNumbersLeft:mi,lineNumbersWidth:Jn,decorationsLeft:vt,decorationsWidth:Gn,contentLeft:Mt,contentWidth:Rn,renderMinimap:tn,minimapLeft:Ut,minimapWidth:Sn,viewportColumn:ri,verticalScrollbarWidth:nn,horizontalScrollbarHeight:En,overviewRuler:{top:ci,width:nn,height:Et-2*ci,right:0}}},Te}(E),Ve=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0};return Ie=ve.call(this,47,"lightbulb",pe,{"editor.lightbulb.enabled":{type:"boolean",default:pe.enabled,description:I.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled)}},Te}(R),_e=function(ve){N(Te,ve);function Te(){return ve.call(this,49,"lineHeight",$e.lineHeight,0,150,{description:I.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.lineHeight},Te}(D),ue=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Ie=ve.call(this,54,"minimap",pe,{"editor.minimap.enabled":{type:"boolean",default:pe.enabled,description:I.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:pe.side,description:I.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:pe.showSlider,description:I.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:pe.scale,minimum:1,maximum:3,description:I.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:pe.renderCharacters,description:I.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:pe.maxColumn,description:I.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),side:z.stringSet(pe.side,this.defaultValue.side,["right","left"]),showSlider:z.stringSet(pe.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:K.boolean(pe.renderCharacters,this.defaultValue.renderCharacters),scale:D.clampedInt(pe.scale,1,1,3),maxColumn:D.clampedInt(pe.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Te}(R);function se(ve){return ve==="ctrlCmd"?oe.e?"metaKey":"ctrlKey":"altKey"}var fe=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,cycle:!1};return Ie=ve.call(this,64,"parameterHints",pe,{"editor.parameterHints.enabled":{type:"boolean",default:pe.enabled,description:I.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:pe.cycle,description:I.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),cycle:K.boolean(pe.cycle,this.defaultValue.cycle)}},Te}(R),ie=function(ve){N(Te,ve);function Te(){return ve.call(this,105)||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.pixelRatio},Te}(E),J=function(ve){N(Te,ve);function Te(){var Ie=this,pe={other:!0,comments:!1,strings:!1};return Ie=ve.call(this,66,"quickSuggestions",pe,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:pe.strings,description:I.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:pe.comments,description:I.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:pe.other,description:I.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:pe,description:I.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Ie.defaultValue=pe,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie=="boolean")return Ie;if(typeof Ie=="object"){var pe=Ie,nt={other:K.boolean(pe.other,this.defaultValue.other),comments:K.boolean(pe.comments,this.defaultValue.comments),strings:K.boolean(pe.strings,this.defaultValue.strings)};return nt.other&&nt.comments&&nt.strings?!0:!nt.other&&!nt.comments&&!nt.strings?!1:nt}return this.defaultValue},Te}(R),me=function(ve){N(Te,ve);function Te(){return ve.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[I.a("lineNumbers.off","Line numbers are not rendered."),I.a("lineNumbers.on","Line numbers are rendered as absolute number."),I.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),I.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:I.a("lineNumbers","Controls the display of line numbers.")})||this}return Te.prototype.validate=function(Ie){var pe=this.defaultValue.renderType,nt=this.defaultValue.renderFn;return typeof Ie!="undefined"&&(typeof Ie=="function"?(pe=4,nt=Ie):Ie==="interval"?pe=3:Ie==="relative"?pe=2:Ie==="on"?pe=1:pe=0),{renderType:pe,renderFn:nt}},Te}(R);function ye(ve){var Te=ve.get(73);return Te==="editable"?ve.get(68):!(Te==="on")}var ze=function(ve){N(Te,ve);function Te(){var Ie=this,pe=[];return Ie=ve.call(this,77,"rulers",pe,{type:"array",items:{type:"number"},default:pe,description:I.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,Ie}return Te.prototype.validate=function(Ie){if(Array.isArray(Ie)){for(var pe=[],nt=0,Et=Ie;nt console.log` because `log` has been completed recently."),I.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:I.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new z(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[I.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),I.a("tabCompletion.off","Disable tab completions."),I.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:I.a("tabCompletion","Enables tab completions.")})),useTabStops:ee(new K(95,"useTabStops",!0,{description:I.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ee(new te(96,"wordSeparators",ne.b,{description:I.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new z(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[I.a("wordWrap.off","Lines will never wrap."),I.a("wordWrap.on","Lines will wrap at the viewport width."),I.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),I.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:I.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new te(98,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:ee(new te(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:ee(new D(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:I.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:ee(new K(101,"wordWrapMinified",!0)),wrappingIndent:ee(new _(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],Ke,{enumDescriptions:[I.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),I.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),I.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),I.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:I.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ee(new z(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[I.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),I.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:I.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ee(new H),pixelRatio:ee(new ie),tabFocusMode:ee(new Xt),layoutInfo:ee(new Me),wrappingInfo:ee(new Xe)}},jyJ4:function(wt,P,r){"use strict";r.d(P,"a",function(){return G}),r.d(P,"c",function(){return R}),r.d(P,"b",function(){return E});var I=r("g9ht"),oe=r("YK2C"),ne=r("vqGt"),N=r("tkZS"),F=r("E+fE"),U={ModesRegistry:"editor.modesRegistry"},j=function(){function x(){this._onDidChangeLanguages=new oe.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return x.prototype.registerLanguage=function(K){this._languages.push(K),this._onDidChangeLanguages.fire(void 0)},x.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},x}(),G=new j;F.a.add(U.ModesRegistry,G);var R="plaintext",E=new ne.q(R,1);G.registerLanguage({id:R,extensions:[".txt",".gitignore"],aliases:[I.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),N.a.register(E,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},"k//2":function(wt,P,r){},kEqQ:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=function(){function N(F,U,j){this.from=F|0,this.to=U|0,this.colorId=j|0}return N.compare=function(F,U){return F.colorId===U.colorId?F.from===U.from?F.to-U.to:F.from-U.from:F.colorId-U.colorId},N}(),oe=function(){function N(F,U,j){this.startLineNumber=F,this.endLineNumber=U,this.color=j,this._colorZone=null}return N.compare=function(F,U){return F.color===U.color?F.startLineNumber===U.startLineNumber?F.endLineNumber-U.endLineNumber:F.startLineNumber-U.startLineNumber:F.color j&&(f=j-p);var g=A.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var w=new I(f-p,f+p,m);A.setColorZone(w),x.push(w)}return this._colorZonesInvalid=!1,x.sort(I.compare),x},N}()},khgB:function(wt,P,r){"use strict";r.d(P,"f",function(){return oe}),r.d(P,"b",function(){return ne}),r.d(P,"c",function(){return N}),r.d(P,"d",function(){return F}),r.d(P,"a",function(){return U}),r.d(P,"e",function(){return j});var I=r("yBOt"),oe=function(){function G(R,E,x,K){this.top=R|0,this.left=E|0,this.width=x|0,this.height=K|0}return G}(),ne=function(){function G(R,E){this.tabSize=R,this.data=E}return G}(),N=function(){function G(R,E,x,K,D,A){this.content=R,this.continuesWithWrappedLine=E,this.minColumn=x,this.maxColumn=K,this.startVisibleColumn=D,this.tokens=A}return G}(),F=function(){function G(R,E,x,K,D,A,te,z,_,f){this.minColumn=R,this.maxColumn=E,this.content=x,this.continuesWithWrappedLine=K,this.isBasicASCII=G.isBasicASCII(x,A),this.containsRTL=G.containsRTL(x,this.isBasicASCII,D),this.tokens=te,this.inlineDecorations=z,this.tabSize=_,this.startVisibleColumn=f}return G.isBasicASCII=function(R,E){return E?I.v(R):!0},G.containsRTL=function(R,E,x){return!E&&x?I.i(R):!1},G}(),U=function(){function G(R,E,x){this.range=R,this.inlineClassName=E,this.type=x}return G}(),j=function(){function G(R,E){this.range=R,this.options=E}return G}()},kpiZ:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return r.e(255).then(r.bind(null,"Cag9"))}})},"l+zK":function(wt,P,r){"use strict";r.d(P,"a",function(){return ne}),r.d(P,"b",function(){return F});var I=r("YK2C"),oe=Object.freeze(function(U,j){var G=setTimeout(U.bind(j),0);return{dispose:function(){clearTimeout(G)}}}),ne;(function(U){function j(G){return G===U.None||G===U.Cancelled||G instanceof N?!0:!G||typeof G!="object"?!1:typeof G.isCancellationRequested=="boolean"&&typeof G.onCancellationRequested=="function"}U.isCancellationToken=j,U.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:I.b.None}),U.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:oe})})(ne||(ne={}));var N=function(){function U(){this._isCancelled=!1,this._emitter=null}return U.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(U.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?oe:(this._emitter||(this._emitter=new I.a),this._emitter.event)},enumerable:!0,configurable:!0}),U.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},U}(),F=function(){function U(j){this._token=void 0,this._parentListener=void 0,this._parentListener=j&&j.onCancellationRequested(this.cancel,this)}return Object.defineProperty(U.prototype,"token",{get:function(){return this._token||(this._token=new N),this._token},enumerable:!0,configurable:!0}),U.prototype.cancel=function(){this._token?this._token instanceof N&&this._token.cancel():this._token=ne.Cancelled},U.prototype.dispose=function(j){j===void 0&&(j=!1),j&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof N&&this._token.dispose():this._token=ne.None},U}()},lgEJ:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne}),r.d(P,"c",function(){return N});var I=r("PoD0"),oe=Object(I.c)("logService"),ne;(function(F){F[F.Trace=0]="Trace",F[F.Debug=1]="Debug",F[F.Info=2]="Info",F[F.Warning=3]="Warning",F[F.Error=4]="Error",F[F.Critical=5]="Critical",F[F.Off=6]="Off"})(ne||(ne={}));var N=function(){function F(){}return F.prototype.getLevel=function(){return ne.Info},F.prototype.trace=function(U){for(var j=[],G=1;G 0&&he.push({open:Se,close:q})}return he}var F=function(){function _(f,p){var g=N(p);this.brackets=g.map(function(Z,ce){return new ne(f,ce,Z.open,Z.close,R(Z.open,Z.close,g,ce),E(Z.open,Z.close,g,ce))}),this.forwardRegex=x(this.brackets),this.reversedRegex=K(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var m=0,w=this.brackets;m =0&&g.push(he)}for(var Ee=0,Se=B.close;Ee =0&&g.push(q)}}}function j(_,f){return _.length-f.length}function G(_){if(_.length<=1)return _;for(var f=[],p=new Set,g=0,m=_;g =0;w--)m+=g.charAt(w);return m}var f=null,p=null;return function(m){return f!==m&&(f=m,p=_(f)),p}}(),z=function(){function _(){}return _._findPrevBracketInText=function(f,p,g,m){var w=g.match(f);if(!w)return null;var B=g.length-(w.index||0),H=w[0].length,re=m+B;return new oe.a(p,re-H+1,p,re+1)},_.findPrevBracketInRange=function(f,p,g,m,w){var B=te(g),H=B.substring(g.length-w,g.length-m);return this._findPrevBracketInText(f,p,H,m)},_.findNextBracketInText=function(f,p,g,m){var w=g.match(f);if(!w)return null;var B=w.index||0,H=w[0].length;if(H===0)return null;var re=m+B;return new oe.a(p,re+1,p,re+1+H)},_.findNextBracketInRange=function(f,p,g,m,w){var B=g.substring(m,w);return this.findNextBracketInText(f,p,B,m)},_}()},loeZ:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\